summaryrefslogtreecommitdiff
path: root/lisp/hippie-exp.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/hippie-exp.el')
-rw-r--r--lisp/hippie-exp.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/hippie-exp.el b/lisp/hippie-exp.el
index fdce4f8510..e52fe07f8a 100644
--- a/lisp/hippie-exp.el
+++ b/lisp/hippie-exp.el
@@ -1000,8 +1000,7 @@ string). It returns t if a new expansion is found, nil otherwise."
(while (and (not (equal he-search-string ""))
(marker-position he-search-loc)
(not expansion))
- (save-excursion
- (set-buffer (marker-buffer he-search-loc))
+ (with-current-buffer (marker-buffer he-search-loc)
(goto-char he-search-loc)
(setq expansion (he-dabbrev-search he-search-string ()
(window-end he-search-window)))