aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorStefan Monnier <[email protected]>2005-07-07 04:31:17 +0000
committerStefan Monnier <[email protected]>2005-07-07 04:31:17 +0000
commit521b27480a1b197c24be63e23d8d236aa80237d1 (patch)
tree9f70f9c3b1c4577eb94eb4184283532f0ca65bea /lisp/progmodes
parented6773fa23b9c8e858cbe91642db7251dbe60947 (diff)
(hide-ifdef-use-define-alist): Pass a list of
strings rather than a list of symbols to the completion function.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/hideif.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/progmodes/hideif.el b/lisp/progmodes/hideif.el
index 94dad8874e..35524b4a36 100644
--- a/lisp/progmodes/hideif.el
+++ b/lisp/progmodes/hideif.el
@@ -960,7 +960,9 @@ Return as (TOP . BOTTOM) the extent of ifdef block."
"Set `hide-ifdef-env' to the define list specified by NAME."
(interactive
(list (completing-read "Use define list: "
- hide-ifdef-define-alist nil t)))
+ (mapcar (lambda (x) (symbol-name (car x)))
+ hide-ifdef-define-alist)
+ nil t)))
(if (stringp name) (setq name (intern name)))
(let ((define-list (assoc name hide-ifdef-define-alist)))
(if define-list
@@ -972,5 +974,5 @@ Return as (TOP . BOTTOM) the extent of ifdef block."
(provide 'hideif)
-;;; arch-tag: c6381d17-a59a-483a-b945-658f22277981
+;; arch-tag: c6381d17-a59a-483a-b945-658f22277981
;;; hideif.el ends here