summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2013-01-26 12:40:18 (GMT)
committer Bastien Guerry <bzg@altern.org>2013-01-26 12:40:18 (GMT)
commitb425e2a2d6277d59749dcd7ce04336092eeaaeae (patch)
tree155c522f16bc5256ba4d17e6f6f857d783d4ae64
parenta5ed80fb32e6d1495bafeef0e3e05fd8a968c62e (diff)
downloadorg-mode-b425e2a2d6277d59749dcd7ce04336092eeaaeae.zip
org-mode-b425e2a2d6277d59749dcd7ce04336092eeaaeae.tar.gz
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.
-rw-r--r--lisp/org-footnote.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el
index 269ea8e..4cde24b 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)