summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien <bzg@gnu.org>2020-02-04 17:04:15 +0100
committerBastien <bzg@gnu.org>2020-02-04 17:04:15 +0100
commit321b119c4418de816a55f42e17c4db6e796df1cd (patch)
tree36edc88ef01d6460d1ac93a4313b69d0b2fd88c7
parent2cfcdeab96a09a9121cfd99c31daac97fd91f054 (diff)
downloadorg-mode-321b119c4418de816a55f42e17c4db6e796df1cd.tar.gz
org.el: Fix `org-indent-region' bug in source block
* lisp/org.el (org-indent-region): Use `save-window-excursion' to restore point after indenting region in source blocks. Thanks to Gustavo Barros for reporting this bug.
-rw-r--r--lisp/org.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 2b7cb9a..073946a 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -19280,7 +19280,7 @@ indent. The function will not indent contents of example blocks,
verse blocks and export blocks as leading white spaces are
assumed to be significant there."
(interactive "r")
- (save-excursion
+ (save-window-excursion
(goto-char start)
(skip-chars-forward " \r\t\n")
(unless (eobp) (beginning-of-line))