1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

Ensure indent-region argument order in tempo.el is correct

* lisp/tempo.el (tempo-insert): Call 'indent-region' with the
stored region markers to ensure that the start and end arguments
are used in the correct order.  (Bug#68185)
This commit is contained in:
Morgan Willcock 2023-12-31 20:47:17 +00:00 committed by Eli Zaretskii
parent ff00b85acf
commit 5765cc3a5a

View file

@ -333,7 +333,8 @@ possible."
(`(r> . ,rest) (if on-region
(progn
(goto-char tempo-region-stop)
(indent-region (mark) (point) nil))
(indent-region tempo-region-start
tempo-region-stop))
(tempo-insert-prompt-compat rest)))
(`(s ,name) (tempo-insert-named name))
(`(l . ,rest) (dolist (elt rest) (tempo-insert elt on-region)))
@ -344,7 +345,7 @@ possible."
('r> (if on-region
(progn
(goto-char tempo-region-stop)
(indent-region (mark) (point) nil))
(indent-region tempo-region-start tempo-region-stop))
(tempo-insert-mark (point-marker))))
('> (indent-according-to-mode))
('& (if (not (or (= (current-column) 0)