From b425e2a2d6277d59749dcd7ce04336092eeaaeae Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Sat, 26 Jan 2013 13:40:18 +0100 Subject: [PATCH] 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. --- lisp/org-footnote.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.11.4.GIT