summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp
diff options
context:
space:
mode:
authorMiha Rihtaršič <miha@kamnitnik.top>2021-11-17 09:12:21 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2021-11-18 08:11:26 +0100
commitf596f0db82c0b1ff3fe8e8f1d8b07d2fe7504ab6 (patch)
tree53531e053459279635bc7f64ef13909dcffd14ce /test/lisp/emacs-lisp
parentb48cbaf5c7e47c002fd274aea21554245075bfe8 (diff)
downloademacs-f596f0db82c0b1ff3fe8e8f1d8b07d2fe7504ab6.tar.gz
emacs-f596f0db82c0b1ff3fe8e8f1d8b07d2fe7504ab6.tar.bz2
emacs-f596f0db82c0b1ff3fe8e8f1d8b07d2fe7504ab6.zip
Don't ignore restriction in indent-region-line-by-line
* lisp/indent.el (indent-according-to-mode): Don't widen if the new optional argument is non-nil. (indent-region): Explicitly widen before calling indent-region-line-by-line. (indent-region-line-by-line): Don't widen (bug#51892). Emacs convention is that low-level functions should respect restriction so that their callers can set restriction according to their needs. For example, 'c-indent-region' is a lower-level function which respects the current restriction and 'indent-region' is a higher-level user command which sets the restriction for lower-level functions, it calls "(widen)". 'indent-region-line-by-line' is a low-level function on a similar level as 'c-indent-region'. This patch makes it respect the current restriction instead of having it call "(widen)".
Diffstat (limited to 'test/lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions