Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
f71d927d
Commit
f71d927d
authored
Nov 30, 2001
by
Stefan Monnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(hide-ifdef-mode): Only modify
`change-major-mode-hook' locally. Reset invisibility spec.
parent
00f2404d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lisp/progmodes/hideif.el
lisp/progmodes/hideif.el
+3
-1
No files found.
lisp/progmodes/hideif.el
View file @
f71d927d
...
...
@@ -207,7 +207,8 @@ how the hiding is done:
(
default-value
'hide-ifdef-hiding
))
(
set
(
make-local-variable
'hif-outside-read-only
)
buffer-read-only
)
(
set
(
make-local-variable
'line-move-ignore-invisible
)
t
)
(
add-hook
'change-major-mode-hook
(
lambda
()
(
hide-ifdef-mode
-1
)))
(
add-hook
'change-major-mode-hook
(
lambda
()
(
hide-ifdef-mode
-1
))
nil
t
)
(
add-to-invisibility-spec
'
(
hide-ifdef
.
t
))
...
...
@@ -216,6 +217,7 @@ how the hiding is done:
(
show-ifdefs
)))
;; else end hide-ifdef-mode
(
kill-local-variable
'line-move-ignore-invisible
)
(
remove-from-invisibility-spec
'
(
hide-ifdef
.
t
))
(
if
hide-ifdef-hiding
(
show-ifdefs
))))
...
...
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