diff options
| author | Richard M. Stallman | 1998-04-27 01:41:22 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-04-27 01:41:22 +0000 |
| commit | 41bee2813de0c3d7f3d2a3bbe2b803270da1148b (patch) | |
| tree | f24b1f77c10ed4f612545e44eb74154de9613c58 | |
| parent | fed9da131cfdb6ff93ceac042e639150eae8d3ee (diff) | |
| download | emacs-41bee2813de0c3d7f3d2a3bbe2b803270da1148b.tar.gz emacs-41bee2813de0c3d7f3d2a3bbe2b803270da1148b.zip | |
(outline-discard-overlays):
Interpret PROP as a value for `invisible', not as property name.
| -rw-r--r-- | lisp/textmodes/outline.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/textmodes/outline.el b/lisp/textmodes/outline.el index 8e596a0efe2..aba8644676f 100644 --- a/lisp/textmodes/outline.el +++ b/lisp/textmodes/outline.el | |||
| @@ -433,10 +433,10 @@ If FLAG is nil then text is shown, while if FLAG is t the text is hidden." | |||
| 433 | 433 | ||
| 434 | 434 | ||
| 435 | ;; Exclude from the region BEG ... END all overlays | 435 | ;; Exclude from the region BEG ... END all overlays |
| 436 | ;; with a non-nil PROP property. | 436 | ;; which have PROP as the value of the `invisible' property. |
| 437 | ;; Exclude them by shrinking them to exclude BEG ... END, | 437 | ;; Exclude them by shrinking them to exclude BEG ... END, |
| 438 | ;; or even by splitting them if necessary. | 438 | ;; or even by splitting them if necessary. |
| 439 | ;; Overlays without a non-nil PROP property are not touched. | 439 | ;; Overlays without such an `invisible' property are not touched. |
| 440 | (defun outline-discard-overlays (beg end prop) | 440 | (defun outline-discard-overlays (beg end prop) |
| 441 | (if (< end beg) | 441 | (if (< end beg) |
| 442 | (setq beg (prog1 end (setq end beg)))) | 442 | (setq beg (prog1 end (setq end beg)))) |
| @@ -446,7 +446,7 @@ If FLAG is nil then text is shown, while if FLAG is t the text is hidden." | |||
| 446 | o1) | 446 | o1) |
| 447 | (while overlays | 447 | (while overlays |
| 448 | (setq o (car overlays)) | 448 | (setq o (car overlays)) |
| 449 | (if (overlay-get o prop) | 449 | (if (eq (overlay-get o 'invisible) prop) |
| 450 | ;; Either push this overlay outside beg...end | 450 | ;; Either push this overlay outside beg...end |
| 451 | ;; or split it to exclude beg...end | 451 | ;; or split it to exclude beg...end |
| 452 | ;; or delete it entirely (if it is contained in beg...end). | 452 | ;; or delete it entirely (if it is contained in beg...end). |