summaryrefslogtreecommitdiff
path: root/lisp/icomplete.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2008-01-18 03:19:07 +0000
committerRichard M. Stallman <rms@gnu.org>2008-01-18 03:19:07 +0000
commit4afd234b27f785b58c120f007fdb981c196a78b5 (patch)
tree8e3102469a35d52bbf956067ca082331f6100417 /lisp/icomplete.el
parentd616968003b11307a17d0995f9d6bfbe12b6c51c (diff)
downloademacs-4afd234b27f785b58c120f007fdb981c196a78b5.tar.gz
(icomplete-get-keys): Look up KEYS using all maps in proper buffer.
Diffstat (limited to 'lisp/icomplete.el')
-rw-r--r--lisp/icomplete.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/icomplete.el b/lisp/icomplete.el
index b1e8fa5ebb5..3eb4b4babf2 100644
--- a/lisp/icomplete.el
+++ b/lisp/icomplete.el
@@ -147,8 +147,7 @@ is minibuffer."
(save-excursion
(let* ((sym (intern func-name))
(buf (other-buffer nil t))
- (map (save-excursion (set-buffer buf) (current-local-map)))
- (keys (where-is-internal sym map)))
+ (keys (with-current-buffer buf (where-is-internal sym))))
(if keys
(concat "<"
(mapconcat 'key-description