aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2023-12-29 11:24:48 +0100
committerStefan Kangas2023-12-29 11:25:10 +0100
commit82eb4f00203f912cc0be902c8151c07c4792425d (patch)
tree2cda1b5c563ee2ba68b9e944c6e7eb78747587a2
parentea3d211f3f7ecc5b59d5affc1aed812a2ded62b0 (diff)
downloademacs-82eb4f00203f912cc0be902c8151c07c4792425d.tar.gz
emacs-82eb4f00203f912cc0be902c8151c07c4792425d.zip
Don't recommend using `cperl-hairy`
Enabling `cperl-hairy` makes cperl-mode break many Emacs conventions and can be confusing to new users. Let's not say that this is the "recommended mode of use", instead leaving it up to the user. * lisp/progmodes/cperl-mode.el (cperl-mode): Don't recommend using `cperl-hairy'.
-rw-r--r--lisp/progmodes/cperl-mode.el25
1 files changed, 12 insertions, 13 deletions
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el
index 58cf2728f61..46ef155d07c 100644
--- a/lisp/progmodes/cperl-mode.el
+++ b/lisp/progmodes/cperl-mode.el
@@ -1696,19 +1696,18 @@ into
1696 1696
1697\\{cperl-mode-map} 1697\\{cperl-mode-map}
1698 1698
1699Setting the variable `cperl-font-lock' to t switches on `font-lock-mode' 1699Setting the variable `cperl-font-lock' to t switches on `font-lock-mode',
1700\(even with older Emacsen), `cperl-electric-lbrace-space' to t switches 1700`cperl-electric-lbrace-space' to t switches on electric space between $
1701on electric space between $ and {, `cperl-electric-parens-string' is 1701and {, `cperl-electric-parens-string' is the string that contains
1702the string that contains parentheses that should be electric in CPerl 1702parentheses that should be electric in CPerl (see also
1703\(see also `cperl-electric-parens-mark' and `cperl-electric-parens'), 1703`cperl-electric-parens-mark' and `cperl-electric-parens'), setting
1704setting `cperl-electric-keywords' enables electric expansion of 1704`cperl-electric-keywords' enables electric expansion of control
1705control structures in CPerl. `cperl-electric-linefeed' governs which 1705structures in CPerl. `cperl-electric-linefeed' governs which one of two
1706one of two linefeed behavior is preferable. You can enable all these 1706linefeed behavior is preferable. You can enable all these options
1707options simultaneously (recommended mode of use) by setting 1707simultaneously by setting `cperl-hairy' to t. In this case you can
1708`cperl-hairy' to t. In this case you can switch separate options off 1708switch separate options off by setting them to `null'. Note that one may
1709by setting them to `null'. Note that one may undo the extra 1709undo the extra whitespace inserted by semis and braces in
1710whitespace inserted by semis and braces in `auto-newline'-mode by 1710`auto-newline'-mode by consequent \\[cperl-electric-backspace].
1711consequent \\[cperl-electric-backspace].
1712 1711
1713Short one-liner-style help is available on \\[cperl-get-help], 1712Short one-liner-style help is available on \\[cperl-get-help],
1714and one can run perldoc or man via menu. 1713and one can run perldoc or man via menu.