aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier <[email protected]>2009-02-12 05:38:25 +0000
committerStefan Monnier <[email protected]>2009-02-12 05:38:25 +0000
commit00c4240510a32dad1a170381d30d4303272af8ed (patch)
tree990e14503e94717fa674e9fdf824b5d3d87bfdde /lisp
parent7664ec4458446c2782265f18fa0d80cb560b33a0 (diff)
(isearch-yank-char-in-minibuffer)
(isearch-other-meta-char): Use with-current-buffer.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/isearch.el12
2 files changed, 8 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index cc997431b4..f3af325ee8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
2009-02-12 Stefan Monnier <[email protected]>
+ * isearch.el (isearch-yank-char-in-minibuffer)
+ (isearch-other-meta-char): Use with-current-buffer.
+
* progmodes/verilog-mode.el (verilog-mode): Avoid circular use of
syntax-ppss.
diff --git a/lisp/isearch.el b/lisp/isearch.el
index 9199039ec8..c08c114f7d 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -544,9 +544,9 @@ Each set is a vector of the form:
(defvar isearch-just-started nil)
(defvar isearch-start-hscroll 0) ; hscroll when starting the search.
-; case-fold-search while searching.
-; either nil, t, or 'yes. 'yes means the same as t except that mixed
-; case in the search string is ignored.
+;; case-fold-search while searching.
+;; either nil, t, or 'yes. 'yes means the same as t except that mixed
+;; case in the search string is ignored.
(defvar isearch-case-fold-search nil)
(defvar isearch-last-case-fold-search nil)
@@ -1523,8 +1523,7 @@ or it might return the position of the end of the line."
(interactive "p")
(if (eobp)
(insert
- (save-excursion
- (set-buffer (cadr (buffer-list)))
+ (with-current-buffer (cadr (buffer-list))
(buffer-substring-no-properties
(point) (progn (forward-char arg) (point)))))
(forward-char arg)))
@@ -1949,8 +1948,7 @@ Isearch mode."
(windowp window)
(or (> (minibuffer-depth) 0)
(not (window-minibuffer-p window))))
- (save-excursion
- (set-buffer (window-buffer window))
+ (with-current-buffer (window-buffer window)
(isearch-done)
(isearch-clean-overlays))
(isearch-done)