diff options
| -rw-r--r-- | lisp/simple.el | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 44ab8e125d6..4d80c4c1b4d 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -2002,12 +2002,15 @@ makes the search case-sensitive. | |||
| 2002 | See also `minibuffer-history-case-insensitive-variables'." | 2002 | See also `minibuffer-history-case-insensitive-variables'." |
| 2003 | (interactive | 2003 | (interactive |
| 2004 | (let* ((enable-recursive-minibuffers t) | 2004 | (let* ((enable-recursive-minibuffers t) |
| 2005 | (regexp (read-from-minibuffer "Previous element matching (regexp): " | 2005 | (regexp (read-from-minibuffer |
| 2006 | nil | 2006 | (format "Previous element matching regexp%s: " |
| 2007 | minibuffer-local-map | 2007 | (if minibuffer-history-search-history |
| 2008 | nil | 2008 | (format " (default %s)" |
| 2009 | 'minibuffer-history-search-history | 2009 | (car minibuffer-history-search-history)) |
| 2010 | (car minibuffer-history-search-history)))) | 2010 | "")) |
| 2011 | nil minibuffer-local-map nil | ||
| 2012 | 'minibuffer-history-search-history | ||
| 2013 | (car minibuffer-history-search-history)))) | ||
| 2011 | ;; Use the last regexp specified, by default, if input is empty. | 2014 | ;; Use the last regexp specified, by default, if input is empty. |
| 2012 | (list (if (string= regexp "") | 2015 | (list (if (string= regexp "") |
| 2013 | (if minibuffer-history-search-history | 2016 | (if minibuffer-history-search-history |