diff options
| author | Juri Linkov | 2023-01-23 09:55:29 +0200 |
|---|---|---|
| committer | Juri Linkov | 2023-01-23 09:56:13 +0200 |
| commit | e6c5f32e77dceed4e26b16889cc56547093bdc45 (patch) | |
| tree | c460292e855b0587dbd206f8bc2dd418c0a34047 | |
| parent | 647cc9c65e7c2b691267bde7333eff6cc8d9132a (diff) | |
| download | emacs-e6c5f32e77dceed4e26b16889cc56547093bdc45.tar.gz emacs-e6c5f32e77dceed4e26b16889cc56547093bdc45.zip | |
* lisp/find-dired.el (find-dired): Fix bug where M-p skips first history item.
Don't apply "skip first duplicate history item" trick when find-args
used as initial input is nil.
| -rw-r--r-- | lisp/find-dired.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/find-dired.el b/lisp/find-dired.el index 9fa139a8025..33376ee4ed9 100644 --- a/lisp/find-dired.el +++ b/lisp/find-dired.el | |||
| @@ -177,7 +177,9 @@ using GNU findutils (on macOS and *BSD systems), see instead the | |||
| 177 | man page for \"find\"." | 177 | man page for \"find\"." |
| 178 | (interactive (list (read-directory-name "Run find in directory: " nil "" t) | 178 | (interactive (list (read-directory-name "Run find in directory: " nil "" t) |
| 179 | (read-string "Run find (with args): " find-args | 179 | (read-string "Run find (with args): " find-args |
| 180 | '(find-args-history . 1)))) | 180 | (if find-args |
| 181 | '(find-args-history . 1) | ||
| 182 | 'find-args-history)))) | ||
| 181 | (setq find-args args ; save for next interactive call | 183 | (setq find-args args ; save for next interactive call |
| 182 | args (concat find-program " . " | 184 | args (concat find-program " . " |
| 183 | (if (string= args "") | 185 | (if (string= args "") |