forked from mirrors/org-mode
org-footnote.el: Fix bug when using `electric-indent-mode'
* org-footnote.el (org-footnote-create-definition): Prevent `electric-indent-mode' from inserting the definition at the wrong place. Thanks to Xue Fuqiao for reporting this bug.
This commit is contained in:
parent
a5ed80fb32
commit
b425e2a2d6
|
@ -486,7 +486,8 @@ or new, let the user edit the definition of the footnote."
|
||||||
(defun org-footnote-create-definition (label)
|
(defun org-footnote-create-definition (label)
|
||||||
"Start the definition of a footnote with label LABEL."
|
"Start the definition of a footnote with label LABEL."
|
||||||
(interactive "sLabel: ")
|
(interactive "sLabel: ")
|
||||||
(let ((label (org-footnote-normalize-label label)))
|
(let ((label (org-footnote-normalize-label label))
|
||||||
|
electric-indent-mode) ;; Prevent wrong indentation
|
||||||
(cond
|
(cond
|
||||||
;; In an Org file.
|
;; In an Org file.
|
||||||
((derived-mode-p 'org-mode)
|
((derived-mode-p 'org-mode)
|
||||||
|
|
Loading…
Reference in New Issue