From: Stefan Kangas Date: Fri, 29 Dec 2023 10:24:48 +0000 (+0100) Subject: Don't recommend using `cperl-hairy` X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=82eb4f00203f912cc0be902c8151c07c4792425d;p=emacs.git 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'. --- 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 \\{cperl-mode-map} -Setting the variable `cperl-font-lock' to t switches on `font-lock-mode' -\(even with older Emacsen), `cperl-electric-lbrace-space' to t switches -on electric space between $ and {, `cperl-electric-parens-string' is -the string that contains parentheses that should be electric in CPerl -\(see also `cperl-electric-parens-mark' and `cperl-electric-parens'), -setting `cperl-electric-keywords' enables electric expansion of -control structures in CPerl. `cperl-electric-linefeed' governs which -one of two linefeed behavior is preferable. You can enable all these -options simultaneously (recommended mode of use) by setting -`cperl-hairy' to t. In this case you can switch separate options off -by setting them to `null'. Note that one may undo the extra -whitespace inserted by semis and braces in `auto-newline'-mode by -consequent \\[cperl-electric-backspace]. +Setting the variable `cperl-font-lock' to t switches on `font-lock-mode', +`cperl-electric-lbrace-space' to t switches on electric space between $ +and {, `cperl-electric-parens-string' is the string that contains +parentheses that should be electric in CPerl (see also +`cperl-electric-parens-mark' and `cperl-electric-parens'), setting +`cperl-electric-keywords' enables electric expansion of control +structures in CPerl. `cperl-electric-linefeed' governs which one of two +linefeed behavior is preferable. You can enable all these options +simultaneously by setting `cperl-hairy' to t. In this case you can +switch separate options off by setting them to `null'. Note that one may +undo the extra whitespace inserted by semis and braces in +`auto-newline'-mode by consequent \\[cperl-electric-backspace]. Short one-liner-style help is available on \\[cperl-get-help], and one can run perldoc or man via menu.