]> git.eshelyaron.com Git - emacs.git/commit
perl-mode.el: Improve indent after hanging open-paren
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 5 Jul 2024 14:02:39 +0000 (10:02 -0400)
committerEshel Yaron <me@eshelyaron.com>
Sun, 7 Jul 2024 13:16:54 +0000 (15:16 +0200)
commit52252146c5cef86652bff1f05bac705fc8e85444
tree68ef5aa6e1a102523e711fd0c8a3a20107e1e4f1
parentabf5861a280c82d0c4e513a4dd296cb4fd4879d0
perl-mode.el: Improve indent after hanging open-paren

Make the indentation of the code right after an open paren/brace
use the same rule as already used to indent the corresponding
matching paren/brace.

* lisp/progmodes/perl-mode.el (perl-calculate-indent):
Use `perl-indent-new-calculate`s "virtual" indentation instead of
approximating it with `current-indentation`.

(cherry picked from commit bd86a6c4fde1aa42ea9e8b5434f0cb63f8d52684)
lisp/progmodes/perl-mode.el
test/manual/indent/perl.perl