mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
(electric-indent-actions): Add missing NEWS
* lisp/electric.el (electric-indent-actions): Fix docstring.
This commit is contained in:
parent
9a86a093bc
commit
06d87e44cb
2 changed files with 8 additions and 2 deletions
6
etc/NEWS
6
etc/NEWS
|
|
@ -737,6 +737,12 @@ To use this, add a list to both electric pair user options: '("/*" . "*/")'.
|
|||
You can also specify to insert an extra space after the first string
|
||||
pair: '("/*" " */" t)'.
|
||||
|
||||
---
|
||||
** New user option 'electric-indent-actions'.
|
||||
This user options specifies a list of actions to reindent. The possible
|
||||
elements for this list are: 'yank', reindent the yanked text;
|
||||
'before-save', indent the whole buffer before saving it.
|
||||
|
||||
+++
|
||||
** You can now use 'M-~' during 'C-x s' ('save-some-buffers').
|
||||
Typing 'M-~' while saving some buffers means not to save the buffer and
|
||||
|
|
|
|||
|
|
@ -196,9 +196,9 @@ Returns nil when we can't find this char."
|
|||
"List of actions to indent.
|
||||
|
||||
The valid elements of this list can be:
|
||||
- yank: Indent the yanked text only if point is not in a string or
|
||||
- `yank': Indent the yanked text only if point is not in a string or
|
||||
comment and yanked region is longer than 1 line.
|
||||
- save: Indent the whole buffer before saving it.
|
||||
- `before-save': Indent the whole buffer before saving it.
|
||||
|
||||
The indentation will not happen when the major mode is unable to
|
||||
reindent code reliably, such as in buffers where indentation is
|
||||
|
|
|
|||
Loading…
Reference in a new issue