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
24b96659
Commit
24b96659
authored
Jun 24, 1997
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(outline-discard-overlays): Don't use let inside a cycle.
parent
f86b32b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
14 deletions
+17
-14
lisp/textmodes/outline.el
lisp/textmodes/outline.el
+17
-14
No files found.
lisp/textmodes/outline.el
View file @
24b96659
...
@@ -415,22 +415,25 @@ If FLAG is nil then text is shown, while if FLAG is t the text is hidden."
...
@@ -415,22 +415,25 @@ If FLAG is nil then text is shown, while if FLAG is t the text is hidden."
(
if
(
<
end
beg
)
(
if
(
<
end
beg
)
(
setq
beg
(
prog1
end
(
setq
end
beg
))))
(
setq
beg
(
prog1
end
(
setq
end
beg
))))
(
save-excursion
(
save-excursion
(
let
((
overlays
(
overlays-in
beg
end
)))
(
let
((
overlays
(
overlays-in
beg
end
))
o
o1
)
(
while
overlays
(
while
overlays
(
let
((
o
(
car
overlays
)))
(
setq
o
(
car
overlays
))
(
if
(
overlay-get
o
prop
)
(
if
(
overlay-get
o
prop
)
;; Either push this overlay outside beg...end
;; Either push this overlay outside beg...end
;; or split it to exclude beg...end
;; or split it to exclude beg...end
;; or delete it entirely (if it is contained in beg...end).
;; or delete it entirely (if it is contained in beg...end).
(
if
(
<
(
overlay-start
o
)
beg
)
(
if
(
<
(
overlay-start
o
)
beg
)
(
if
(
>
(
overlay-end
o
)
end
)
(
let
((
o1
(
outline-copy-overlay
o
)))
(
move-overlay
o1
(
overlay-start
o1
)
beg
)
(
move-overlay
o
end
(
overlay-end
o
)))
(
move-overlay
o
(
overlay-start
o
)
beg
))
(
if
(
>
(
overlay-end
o
)
end
)
(
if
(
>
(
overlay-end
o
)
end
)
(
move-overlay
o
end
(
overlay-end
o
))
(
progn
(
delete-overlay
o
)))))
(
setq
o1
(
outline-copy-overlay
o
))
(
move-overlay
o1
(
overlay-start
o1
)
beg
)
(
move-overlay
o
end
(
overlay-end
o
)))
(
move-overlay
o
(
overlay-start
o
)
beg
))
(
if
(
>
(
overlay-end
o
)
end
)
(
move-overlay
o
end
(
overlay-end
o
))
(
delete-overlay
o
))))
(
setq
overlays
(
cdr
overlays
))))))
(
setq
overlays
(
cdr
overlays
))))))
;; Make a copy of overlay O, with the same beginning, end and properties.
;; Make a copy of overlay O, with the same beginning, end and properties.
...
...
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