emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals-release/org 94b410b 3/3: footnote: Improve last commit


From: ELPA Syncer
Subject: [elpa] externals-release/org 94b410b 3/3: footnote: Improve last commit
Date: Wed, 6 Oct 2021 08:57:19 -0400 (EDT)

branch: externals-release/org
commit 94b410b32c3b2b3a047f08f67af0dc9915cb0e64
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Commit: Nicolas Goaziou <mail@nicolasgoaziou.fr>

    footnote: Improve last commit
    
    * lisp/org-footnote.el (org-footnote--allow-reference-p): Improve last
    commit.
---
 lisp/org-footnote.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el
index fcd8522..fcc7579 100644
--- a/lisp/org-footnote.el
+++ b/lisp/org-footnote.el
@@ -281,10 +281,10 @@ otherwise."
            (save-excursion (goto-char (org-element-property :end context))
                            (skip-chars-backward " \r\t\n")
                            (if (eq (org-element-class context) 'object) (point)
-                             (1+ (line-beginning-position 2))))))
+                             (line-beginning-position 2)))))
        ;; At the beginning of a footnote definition, right after the
        ;; label, is OK.
-       ((eq type 'footnote-definition) (looking-at (rx (or space buffer-end))))
+       ((eq type 'footnote-definition) (looking-at (rx space)))
        ;; Other elements are invalid.
        ((eq (org-element-class context) 'element) nil)
        ;; Just before object is fine.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]