diff options
| author | Stefan Monnier | 2009-02-12 05:38:25 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2009-02-12 05:38:25 +0000 |
| commit | 00c4240510a32dad1a170381d30d4303272af8ed (patch) | |
| tree | 990e14503e94717fa674e9fdf824b5d3d87bfdde | |
| parent | 7664ec4458446c2782265f18fa0d80cb560b33a0 (diff) | |
| download | emacs-00c4240510a32dad1a170381d30d4303272af8ed.tar.gz emacs-00c4240510a32dad1a170381d30d4303272af8ed.zip | |
(isearch-yank-char-in-minibuffer)
(isearch-other-meta-char): Use with-current-buffer.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/isearch.el | 12 |
2 files changed, 8 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index cc997431b41..f3af325ee8a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * isearch.el (isearch-yank-char-in-minibuffer) | ||
| 4 | (isearch-other-meta-char): Use with-current-buffer. | ||
| 5 | |||
| 3 | * progmodes/verilog-mode.el (verilog-mode): Avoid circular use of | 6 | * progmodes/verilog-mode.el (verilog-mode): Avoid circular use of |
| 4 | syntax-ppss. | 7 | syntax-ppss. |
| 5 | 8 | ||
diff --git a/lisp/isearch.el b/lisp/isearch.el index 9199039ec81..c08c114f7d5 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -544,9 +544,9 @@ Each set is a vector of the form: | |||
| 544 | (defvar isearch-just-started nil) | 544 | (defvar isearch-just-started nil) |
| 545 | (defvar isearch-start-hscroll 0) ; hscroll when starting the search. | 545 | (defvar isearch-start-hscroll 0) ; hscroll when starting the search. |
| 546 | 546 | ||
| 547 | ; case-fold-search while searching. | 547 | ;; case-fold-search while searching. |
| 548 | ; either nil, t, or 'yes. 'yes means the same as t except that mixed | 548 | ;; either nil, t, or 'yes. 'yes means the same as t except that mixed |
| 549 | ; case in the search string is ignored. | 549 | ;; case in the search string is ignored. |
| 550 | (defvar isearch-case-fold-search nil) | 550 | (defvar isearch-case-fold-search nil) |
| 551 | 551 | ||
| 552 | (defvar isearch-last-case-fold-search nil) | 552 | (defvar isearch-last-case-fold-search nil) |
| @@ -1523,8 +1523,7 @@ or it might return the position of the end of the line." | |||
| 1523 | (interactive "p") | 1523 | (interactive "p") |
| 1524 | (if (eobp) | 1524 | (if (eobp) |
| 1525 | (insert | 1525 | (insert |
| 1526 | (save-excursion | 1526 | (with-current-buffer (cadr (buffer-list)) |
| 1527 | (set-buffer (cadr (buffer-list))) | ||
| 1528 | (buffer-substring-no-properties | 1527 | (buffer-substring-no-properties |
| 1529 | (point) (progn (forward-char arg) (point))))) | 1528 | (point) (progn (forward-char arg) (point))))) |
| 1530 | (forward-char arg))) | 1529 | (forward-char arg))) |
| @@ -1949,8 +1948,7 @@ Isearch mode." | |||
| 1949 | (windowp window) | 1948 | (windowp window) |
| 1950 | (or (> (minibuffer-depth) 0) | 1949 | (or (> (minibuffer-depth) 0) |
| 1951 | (not (window-minibuffer-p window)))) | 1950 | (not (window-minibuffer-p window)))) |
| 1952 | (save-excursion | 1951 | (with-current-buffer (window-buffer window) |
| 1953 | (set-buffer (window-buffer window)) | ||
| 1954 | (isearch-done) | 1952 | (isearch-done) |
| 1955 | (isearch-clean-overlays)) | 1953 | (isearch-clean-overlays)) |
| 1956 | (isearch-done) | 1954 | (isearch-done) |