Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
521b2748
Commit
521b2748
authored
Jul 07, 2005
by
Stefan Monnier
Browse files
(hide-ifdef-use-define-alist): Pass a list of
strings rather than a list of symbols to the completion function.
parent
ed6773fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
lisp/progmodes/hideif.el
lisp/progmodes/hideif.el
+4
-2
No files found.
lisp/progmodes/hideif.el
View file @
521b2748
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment