]> git.eshelyaron.com Git - emacs.git/commitdiff
(hide-ifdef-use-define-alist): Pass a list of
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 7 Jul 2005 04:31:17 +0000 (04:31 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 7 Jul 2005 04:31:17 +0000 (04:31 +0000)
strings rather than a list of symbols to the completion function.

lisp/progmodes/hideif.el

index 94dad8874e9641883c68827dffce8dc899715a07..35524b4a363264e287d117a7b88b28d71bdbc29c 100644 (file)
@@ -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