]> git.eshelyaron.com Git - emacs.git/commit
cperl-mode.el: Make sure cperl-file-style is set buffer-local
authorHarald Jörg <haj@posteo.de>
Mon, 8 Jan 2024 15:12:19 +0000 (16:12 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 8 Jan 2024 21:55:14 +0000 (22:55 +0100)
commitccf0de0dda3d964d39bc052a1f0ae759126dec00
tree09a944c67c7636de283ed36e5ed0f6fb9ceb00dd
parent01b904004291edbf30b33dbb4b7648911fac2c7b
cperl-mode.el: Make sure cperl-file-style is set buffer-local

* lisp/progmodes/cperl-mode.el (cperl-file-style): Add description
what the options actually do.
(cperl-menu): Split the menu entry "Indent styles" into "Default
indent styles" and "Indent styles for current buffer"
(cperl--set-file-style): call `cperl-file-style' instead of
`cperl-set-style'.  This completes the fix for Bug#17948.
(cperl-set-style): Explain when to use `cperl-file-style'.
Use `set-default-toplevel-value' instead of `set'.
(cperl-set-style-back): Use `set-default-toplevel-value' instead
of `set'.
(cperl-file-style): New command to set the file style for the
current buffer.

* etc/NEWS: Announce the new command cperl-file-style.

(cherry picked from commit 774c8ec74c98d69d56b2511a613145f2b69fb2eb)
etc/NEWS
lisp/progmodes/cperl-mode.el