From: Juri Linkov Date: Tue, 29 Jul 2008 14:45:01 +0000 (+0000) Subject: (hi-lock-line-face-buffer, hi-lock-face-buffer) X-Git-Tag: emacs-pretest-23.0.90~3822 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8677dea3af74e8253bb85a00beb9dd4975946d63;p=emacs.git (hi-lock-line-face-buffer, hi-lock-face-buffer) (hi-lock-face-phrase-buffer): Use `(car regexp-history)' as the second arg of `read-regexp'. --- diff --git a/lisp/hi-lock.el b/lisp/hi-lock.el index ca74d6f0a8d..da6bd441240 100644 --- a/lisp/hi-lock.el +++ b/lisp/hi-lock.el @@ -398,7 +398,8 @@ and \\[next-history-element] to retrieve default values. \(See info node `Minibuffer History'.)" (interactive (list - (hi-lock-regexp-okay (read-regexp "Regexp to highlight line")) + (hi-lock-regexp-okay + (read-regexp "Regexp to highlight line" (car regexp-history))) (hi-lock-read-face-name))) (or (facep face) (setq face 'hi-yellow)) (unless hi-lock-mode (hi-lock-mode 1)) @@ -421,7 +422,8 @@ and \\[next-history-element] to retrieve default values. \(See info node `Minibuffer History'.)" (interactive (list - (hi-lock-regexp-okay (read-regexp "Regexp to highlight")) + (hi-lock-regexp-okay + (read-regexp "Regexp to highlight" (car regexp-history))) (hi-lock-read-face-name))) (or (facep face) (setq face 'hi-yellow)) (unless hi-lock-mode (hi-lock-mode 1)) @@ -439,7 +441,7 @@ lower-case letters made case insensitive." (list (hi-lock-regexp-okay (hi-lock-process-phrase - (read-regexp "Phrase to highlight"))) + (read-regexp "Phrase to highlight" (car regexp-history)))) (hi-lock-read-face-name))) (or (facep face) (setq face 'hi-yellow)) (unless hi-lock-mode (hi-lock-mode 1))