mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
Fix point movement when indenting in sieve-mode
* lisp/net/sieve-mode.el (sieve-mode-indent-function): Fix point movement when point is at the start of the line (bug#58202).
This commit is contained in:
parent
b14f049f00
commit
ef6f16da2f
1 changed files with 7 additions and 1 deletions
|
|
@ -200,7 +200,13 @@ Turning on Sieve mode runs `sieve-mode-hook'."
|
|||
(let ((depth (car (syntax-ppss))))
|
||||
(when (looking-at "[ \t]*}")
|
||||
(setq depth (1- depth)))
|
||||
(indent-line-to (* 2 depth)))))
|
||||
(indent-line-to (* 2 depth))))
|
||||
;; Skip to the end of the indentation if at the beginning of the
|
||||
;; line.
|
||||
(when (save-excursion
|
||||
(skip-chars-backward " \t")
|
||||
(bolp))
|
||||
(skip-chars-forward " \t")))
|
||||
|
||||
(provide 'sieve-mode)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue