diff options
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/isearch.el | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6d58882e9e7..52af8847372 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-10-09 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * isearch.el (isearch-pre-command-hook): Use this-single-command-keys | ||
| 4 | instead of this-command-keys. Add universal-argument-more and | ||
| 5 | universal-argument-minus to the list of prefix commands. (Bug#15568) | ||
| 6 | |||
| 1 | 2013-10-09 Glenn Morris <rgm@gnu.org> | 7 | 2013-10-09 Glenn Morris <rgm@gnu.org> |
| 2 | 8 | ||
| 3 | * vc/vc-svn.el (vc-svn-create-repo): | 9 | * vc/vc-svn.el (vc-svn-create-repo): |
diff --git a/lisp/isearch.el b/lisp/isearch.el index 09da9399bc8..9a1729ac7e6 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -2230,11 +2230,10 @@ a prefix argument command (when `isearch-allow-prefix' is non-nil), | |||
| 2230 | or it is a scrolling command (when `isearch-allow-scroll' is non-nil). | 2230 | or it is a scrolling command (when `isearch-allow-scroll' is non-nil). |
| 2231 | Otherwise, exit Isearch (when `search-exit-option' is non-nil) | 2231 | Otherwise, exit Isearch (when `search-exit-option' is non-nil) |
| 2232 | before the command is executed globally with terminated Isearch." | 2232 | before the command is executed globally with terminated Isearch." |
| 2233 | (let* ((key (this-command-keys)) | 2233 | (let* ((key (this-single-command-keys)) |
| 2234 | (main-event (aref key 0))) | 2234 | (main-event (aref key 0))) |
| 2235 | (cond | 2235 | (cond |
| 2236 | ;; Don't exit Isearch for isearch key bindings. | 2236 | ;; Don't exit Isearch for isearch key bindings. |
| 2237 | ;; FIXME: remove prefix arg to lookup key without prefix. | ||
| 2238 | ((commandp (lookup-key isearch-mode-map key nil))) | 2237 | ((commandp (lookup-key isearch-mode-map key nil))) |
| 2239 | ;; Optionally edit the search string instead of exiting. | 2238 | ;; Optionally edit the search string instead of exiting. |
| 2240 | ((eq search-exit-option 'edit) | 2239 | ((eq search-exit-option 'edit) |
| @@ -2242,8 +2241,9 @@ before the command is executed globally with terminated Isearch." | |||
| 2242 | ;; Handle a scrolling function or prefix argument. | 2241 | ;; Handle a scrolling function or prefix argument. |
| 2243 | ((or (and isearch-allow-prefix | 2242 | ((or (and isearch-allow-prefix |
| 2244 | (memq this-command '(universal-argument | 2243 | (memq this-command '(universal-argument |
| 2245 | negative-argument | 2244 | universal-argument-more |
| 2246 | digit-argument))) | 2245 | universal-argument-minus |
| 2246 | digit-argument negative-argument))) | ||
| 2247 | (and isearch-allow-scroll | 2247 | (and isearch-allow-scroll |
| 2248 | (or (eq (get this-command 'isearch-scroll) t) | 2248 | (or (eq (get this-command 'isearch-scroll) t) |
| 2249 | (eq (get this-command 'scroll-command) t)))) | 2249 | (eq (get this-command 'scroll-command) t)))) |