mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-25 07:28:20 +00:00
Fix 'reindent-then-newline-and-indent' with 'abbrev-mode'
* lisp/simple.el (reindent-then-newline-and-indent): Use a marker for the initial position. (Bug#71459)
This commit is contained in:
parent
6d12157fa8
commit
ffa349f983
@ -915,7 +915,9 @@ In programming language modes, this is the same as TAB.
|
||||
In some text modes, where TAB inserts a tab, this indents to the
|
||||
column specified by the function `current-left-margin'."
|
||||
(interactive "*")
|
||||
(let ((pos (point))
|
||||
;; Use a marker because the call to 'newline' below could insert some
|
||||
;; text, e.g., if 'abbrev-mode' is turned on.
|
||||
(let ((pos (point-marker))
|
||||
(electric-indent-mode nil))
|
||||
;; Be careful to insert the newline before indenting the line.
|
||||
;; Otherwise, the indentation might be wrong.
|
||||
|
Loading…
Reference in New Issue
Block a user