diff options
| author | Eli Zaretskii | 2022-02-14 19:38:56 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2022-02-14 19:38:56 +0200 |
| commit | fa135ff305004f9fca85f0b0401a8dcc93c9ae1b (patch) | |
| tree | 76b5095871c9aca2ea1bc43071855f17d9a858ea | |
| parent | fef0a6a2b4afe8de3cdfa53d658c007a0e791fb4 (diff) | |
| download | emacs-fa135ff305004f9fca85f0b0401a8dcc93c9ae1b.tar.gz emacs-fa135ff305004f9fca85f0b0401a8dcc93c9ae1b.zip | |
; Improve a recently added NEWS entry about 'command-query'.
| -rw-r--r-- | etc/NEWS | 11 |
1 files changed, 9 insertions, 2 deletions
| @@ -154,8 +154,15 @@ An autoload definition appears just as a '(defun . NAME)' and the | |||
| 154 | 154 | ||
| 155 | +++ | 155 | +++ |
| 156 | ** New function 'command-query'. | 156 | ** New function 'command-query'. |
| 157 | Commands that are marked with this function will prompt the user | 157 | This function makes its argument command prompt the user for |
| 158 | before executing. | 158 | confirmation before executing. |
| 159 | |||
| 160 | +++ | ||
| 161 | ** The 'disabled' property of a command's symbol can now be a list. | ||
| 162 | The first element of the list should be the symbol 'query', which will | ||
| 163 | cause the command disabled this way prompt the user with a y/n or a | ||
| 164 | yes/no question before executing. The new function 'command-query' is | ||
| 165 | a convenient method of making commands disabled in this way. | ||
| 159 | 166 | ||
| 160 | --- | 167 | --- |
| 161 | ** 'count-lines' will now report buffer totals if given a prefix. | 168 | ** 'count-lines' will now report buffer totals if given a prefix. |