mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-09 09:16:02 -08:00
(comint-previous-matching-input): Use let* in the interactive.
This commit is contained in:
parent
1c71e0ff95
commit
080478d65a
1 changed files with 8 additions and 8 deletions
|
|
@ -425,14 +425,14 @@ buffer. The hook comint-exec-hook is run after each exec."
|
|||
With prefix argument N, search for Nth previous match.
|
||||
If N is negative, find the next or Nth next match."
|
||||
(interactive
|
||||
(let ((minibuffer-history-sexp-flag nil)
|
||||
;; Don't clobber this.
|
||||
(last-command last-command)
|
||||
(regexp (read-from-minibuffer "Previous input matching (regexp): "
|
||||
nil
|
||||
minibuffer-local-map
|
||||
nil
|
||||
'minibuffer-history-search-history)))
|
||||
(let* ((minibuffer-history-sexp-flag nil)
|
||||
;; Don't clobber this.
|
||||
(last-command last-command)
|
||||
(regexp (read-from-minibuffer "Previous input matching (regexp): "
|
||||
nil
|
||||
minibuffer-local-map
|
||||
nil
|
||||
'minibuffer-history-search-history)))
|
||||
(list (if (string= regexp "")
|
||||
(setcar minibuffer-history-search-history
|
||||
(nth 1 minibuffer-history-search-history))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue