diff options
| author | Stephen Berman | 2025-04-15 19:01:19 +0200 |
|---|---|---|
| committer | Stephen Berman | 2025-04-15 19:01:19 +0200 |
| commit | 0ac12aed09702b2d135312e8dad4e173fcd23dae (patch) | |
| tree | 54313d7c48f47feed46fd4d36be0218c7f612063 /etc | |
| parent | 74842b4cb2c164ceed5cbe6ee5ad578ee46fe012 (diff) | |
| download | emacs-0ac12aed09702b2d135312e8dad4e173fcd23dae.tar.gz emacs-0ac12aed09702b2d135312e8dad4e173fcd23dae.zip | |
Optionally add new empty file to Dired subdirectory
Suggested by Kasper GaĆkowski <kpg@posteo.net> (bug#77668)
* etc/NEWS: Announce new Dired user option.
* lisp/dired-aux.el (dired-create-empty-file-in-current-directory):
New user option.
(dired-create-empty-file): Use it. Update and clarify doc string.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 14 |
1 files changed, 14 insertions, 0 deletions
| @@ -1423,6 +1423,20 @@ a control panel window. | |||
| 1423 | 1423 | ||
| 1424 | ** Dired | 1424 | ** Dired |
| 1425 | 1425 | ||
| 1426 | --- | ||
| 1427 | *** New user option 'dired-create-empty-file-in-current-directory'. | ||
| 1428 | When non-nil, 'dired-create-empty-file' creates a new empty file and | ||
| 1429 | adds an entry for it (or its topmost new parent directory if created) | ||
| 1430 | under the current subdirectory in the Dired buffer by default | ||
| 1431 | (otherwise, it adds adds the new file (and new subdirectories if | ||
| 1432 | provided) to whichever directory the user enters at the prompt). When | ||
| 1433 | nil, `dired-create-empty-file' acts on the default directory by default. | ||
| 1434 | |||
| 1435 | Note that setting this user option to non-nil makes invoking | ||
| 1436 | 'dired-create-empty-file' outside of a Dired buffer raise an error (like | ||
| 1437 | other Dired commands that always prompt with the current subdirectory, | ||
| 1438 | such as 'dired-create-directory'). | ||
| 1439 | |||
| 1426 | +++ | 1440 | +++ |
| 1427 | *** New user option 'dired-check-symlinks' allows disabling validity checks. | 1441 | *** New user option 'dired-check-symlinks' allows disabling validity checks. |
| 1428 | Dired uses 'file-truename' to check symbolic link validity when | 1442 | Dired uses 'file-truename' to check symbolic link validity when |