diff options
| author | Stefan Kangas | 2023-12-29 11:24:48 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2023-12-29 11:25:10 +0100 |
| commit | 82eb4f00203f912cc0be902c8151c07c4792425d (patch) | |
| tree | 2cda1b5c563ee2ba68b9e944c6e7eb78747587a2 | |
| parent | ea3d211f3f7ecc5b59d5affc1aed812a2ded62b0 (diff) | |
| download | emacs-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.el | 25 |
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 | ||
| 1699 | Setting the variable `cperl-font-lock' to t switches on `font-lock-mode' | 1699 | Setting 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 $ |
| 1701 | on electric space between $ and {, `cperl-electric-parens-string' is | 1701 | and {, `cperl-electric-parens-string' is the string that contains |
| 1702 | the string that contains parentheses that should be electric in CPerl | 1702 | parentheses 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 |
| 1704 | setting `cperl-electric-keywords' enables electric expansion of | 1704 | `cperl-electric-keywords' enables electric expansion of control |
| 1705 | control structures in CPerl. `cperl-electric-linefeed' governs which | 1705 | structures in CPerl. `cperl-electric-linefeed' governs which one of two |
| 1706 | one of two linefeed behavior is preferable. You can enable all these | 1706 | linefeed behavior is preferable. You can enable all these options |
| 1707 | options simultaneously (recommended mode of use) by setting | 1707 | simultaneously 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 | 1708 | switch separate options off by setting them to `null'. Note that one may |
| 1709 | by setting them to `null'. Note that one may undo the extra | 1709 | undo the extra whitespace inserted by semis and braces in |
| 1710 | whitespace inserted by semis and braces in `auto-newline'-mode by | 1710 | `auto-newline'-mode by consequent \\[cperl-electric-backspace]. |
| 1711 | consequent \\[cperl-electric-backspace]. | ||
| 1712 | 1711 | ||
| 1713 | Short one-liner-style help is available on \\[cperl-get-help], | 1712 | Short one-liner-style help is available on \\[cperl-get-help], |
| 1714 | and one can run perldoc or man via menu. | 1713 | and one can run perldoc or man via menu. |