From: Bastien Guerry Date: Sat, 26 Jan 2013 12:40:18 +0000 (+0100) Subject: org-footnote.el: Fix bug when using `electric-indent-mode' X-Git-Tag: 7.9.3e~13 X-Git-Url: https://repo.or.cz/w/org-mode.git/commitdiff_plain/b425e2a2d6277d59749dcd7ce04336092eeaaeae 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. --- diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el index 269ea8ebf..4cde24bf5 100644 --- a/lisp/org-footnote.el +++ b/lisp/org-footnote.el @@ -486,7 +486,8 @@ or new, let the user edit the definition of the footnote." (defun org-footnote-create-definition (label) "Start the definition of a footnote with label LABEL." (interactive "sLabel: ") - (let ((label (org-footnote-normalize-label label))) + (let ((label (org-footnote-normalize-label label)) + electric-indent-mode) ;; Prevent wrong indentation (cond ;; In an Org file. ((derived-mode-p 'org-mode)