aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Mackenzie2011-09-06 01:01:46 +0000
committerAlan Mackenzie2011-09-06 01:01:46 +0000
commitd809b8eb5eb739839063fb9af1dc3ac593a0a560 (patch)
tree5593016786f0aaa787a6edcedfdd154fec95a767
parentbbd6590c364daad8ac9f7c3b3a31bc9d32ada3e3 (diff)
downloademacs-d809b8eb5eb739839063fb9af1dc3ac593a0a560.tar.gz
emacs-d809b8eb5eb739839063fb9af1dc3ac593a0a560.zip
isearch.el (isearch-other-meta-char): Wherever a key list is unread,
"unread" the prefix arg, too. This fixes bug #8901.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/isearch.el5
2 files changed, 10 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7a922e002d7..d82391d691a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-09-06 Alan Mackenzie <acm@muc.de>
2
3 * isearch.el (isearch-other-meta-char): Wherever a key list is
4 unread, "unread" the prefix arg, too. This fixes bug #8901.
5
12011-09-05 Oleksandr Gavenko <gavenkoa@gmail.com> (tiny change) 62011-09-05 Oleksandr Gavenko <gavenkoa@gmail.com> (tiny change)
2 7
3 * progmodes/grep.el (rgrep): Add "-type d" (bug#9414). 8 * progmodes/grep.el (rgrep): Add "-type d" (bug#9414).
diff --git a/lisp/isearch.el b/lisp/isearch.el
index 6eab3dbcbc4..7f54067f9aa 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -1920,6 +1920,7 @@ Isearch mode."
1920 (if (lookup-key global-map key) 1920 (if (lookup-key global-map key)
1921 (progn 1921 (progn
1922 (isearch-done) 1922 (isearch-done)
1923 (setq prefix-arg arg)
1923 (apply 'isearch-unread keylist)) 1924 (apply 'isearch-unread keylist))
1924 (setq keylist 1925 (setq keylist
1925 (listify-key-sequence (lookup-key local-function-key-map key))) 1926 (listify-key-sequence (lookup-key local-function-key-map key)))
@@ -1935,6 +1936,7 @@ Isearch mode."
1935 (setq keylist (cdr keylist))) 1936 (setq keylist (cdr keylist)))
1936 ;; As the remaining keys in KEYLIST can't be handled 1937 ;; As the remaining keys in KEYLIST can't be handled
1937 ;; here, we must reread them. 1938 ;; here, we must reread them.
1939 (setq prefix-arg arg)
1938 (apply 'isearch-unread keylist) 1940 (apply 'isearch-unread keylist)
1939 (setq keylist nil))))) 1941 (setq keylist nil)))))
1940 ( 1942 (
@@ -1957,8 +1959,10 @@ Isearch mode."
1957 isearch-other-control-char))))) 1959 isearch-other-control-char)))))
1958 (setcar keylist (- main-event (- ?\C-\S-a ?\C-a))) 1960 (setcar keylist (- main-event (- ?\C-\S-a ?\C-a)))
1959 (cancel-kbd-macro-events) 1961 (cancel-kbd-macro-events)
1962 (setq prefix-arg arg)
1960 (apply 'isearch-unread keylist)) 1963 (apply 'isearch-unread keylist))
1961 ((eq search-exit-option 'edit) 1964 ((eq search-exit-option 'edit)
1965 (setq prefix-arg arg)
1962 (apply 'isearch-unread keylist) 1966 (apply 'isearch-unread keylist)
1963 (isearch-edit-string)) 1967 (isearch-edit-string))
1964 ;; Handle a scrolling function. 1968 ;; Handle a scrolling function.
@@ -1987,6 +1991,7 @@ Isearch mode."
1987 (isearch-edit-string)) 1991 (isearch-edit-string))
1988 (search-exit-option 1992 (search-exit-option
1989 (let (window) 1993 (let (window)
1994 (setq prefix-arg arg)
1990 (isearch-unread-key-sequence keylist) 1995 (isearch-unread-key-sequence keylist)
1991 (setq main-event (car unread-command-events)) 1996 (setq main-event (car unread-command-events))
1992 1997