aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-02-26 12:08:29 +0000
committerGerd Moellmann2001-02-26 12:08:29 +0000
commit124350021fff0fe5d3dce97da2024cf9d26dcf6e (patch)
treeea244114d90c088f0e599a3b7c30a6eec6ce26c1
parentc2a642c0671e4acb64cfa654774e7145f4320f84 (diff)
downloademacs-124350021fff0fe5d3dce97da2024cf9d26dcf6e.tar.gz
emacs-124350021fff0fe5d3dce97da2024cf9d26dcf6e.zip
(outline-flag-region): Move macro in front of first
use to avoid a run-time error.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/allout.el32
2 files changed, 22 insertions, 15 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6641cc49a8d..3ee842eb1d2 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12001-02-26 Gerd Moellmann <gerd@gnu.org>
2
3 * allout.el (outline-flag-region): Move macro in front of first
4 use to avoid a run-time error.
5
12001-02-24 Andrew Innes <andrewi@gnu.org> 62001-02-24 Andrew Innes <andrewi@gnu.org>
2 7
3 * makefile.w32-in: Fix copyright notice. 8 * makefile.w32-in: Fix copyright notice.
diff --git a/lisp/allout.el b/lisp/allout.el
index 40a6b76bb1a..4280258d780 100644
--- a/lisp/allout.el
+++ b/lisp/allout.el
@@ -1,11 +1,11 @@
1;;;_* allout.el --- Extensive outline mode for use alone and with other modes. 1;;;_* allout.el --- Extensive outline mode for use alone and with other modes.
2 2
3;; Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. 3;; Copyright (C) 1992, 1993, 1994, 2001 Free Software Foundation, Inc.
4 4
5;; Author: Ken Manheimer <klm@python.org> 5;; Author: Ken Manheimer <klm@python.org>
6;; Maintainer: Ken Manheimer <klm@python.org> 6;; Maintainer: Ken Manheimer <klm@python.org>
7;; Created: Dec 1991 - first release to usenet 7;; Created: Dec 1991 - first release to usenet
8;; Version: $Id: allout.el,v 4.35 2000/02/01 15:58:14 klm Exp klm $|| 8;; Version: $Id: allout.el,v 1.26 2001/02/26 12:01:50 gerd Exp $||
9;; Keywords: outline mode wp languages 9;; Keywords: outline mode wp languages
10 10
11;; This file is part of GNU Emacs. 11;; This file is part of GNU Emacs.
@@ -507,7 +507,7 @@ behavior."
507;;;_ : Version 507;;;_ : Version
508;;;_ = outline-version 508;;;_ = outline-version
509(defvar outline-version 509(defvar outline-version
510 (let ((rcs-rev "$Revision: 4.35 $")) 510 (let ((rcs-rev "$Revision: 1.26 $"))
511 (condition-case err 511 (condition-case err
512 (save-match-data 512 (save-match-data
513 (string-match "Revision: \\([0-9]+\\.[0-9]+\\)" rcs-rev) 513 (string-match "Revision: \\([0-9]+\\.[0-9]+\\)" rcs-rev)
@@ -2405,6 +2405,20 @@ Called as part of outline-post-command-business."
2405;;;_ = outline-isearch-was-font-lock 2405;;;_ = outline-isearch-was-font-lock
2406(defvar outline-isearch-was-font-lock 2406(defvar outline-isearch-was-font-lock
2407 (and (boundp 'font-lock-mode) font-lock-mode)) 2407 (and (boundp 'font-lock-mode) font-lock-mode))
2408
2409;;;_ > outline-flag-region (from to flag)
2410(defmacro outline-flag-region (from to flag)
2411 "Hide or show lines from FROM to TO, via emacs selective-display FLAG char.
2412Ie, text following flag C-m \(carriage-return) is hidden until the
2413next C-j (newline) char.
2414
2415Returns the endpoint of the region."
2416 `(let ((buffer-read-only nil)
2417 (outline-override-protect t))
2418 (subst-char-in-region ,from ,to
2419 (if (= ,flag ?\n) ?\r ?\n)
2420 ,flag t)))
2421
2408;;;_ > outline-isearch-expose (mode) 2422;;;_ > outline-isearch-expose (mode)
2409(defun outline-isearch-expose (mode) 2423(defun outline-isearch-expose (mode)
2410 "Mode is either 'clear, 'start, 'continue, or 'final." 2424 "Mode is either 'clear, 'start, 'continue, or 'final."
@@ -3526,18 +3540,6 @@ by pops to non-distinctive yanks. Bug..."
3526;;;_ #6 Exposure Control 3540;;;_ #6 Exposure Control
3527 3541
3528;;;_ - Fundamental 3542;;;_ - Fundamental
3529;;;_ > outline-flag-region (from to flag)
3530(defmacro outline-flag-region (from to flag)
3531 "Hide or show lines from FROM to TO, via emacs selective-display FLAG char.
3532Ie, text following flag C-m \(carriage-return) is hidden until the
3533next C-j (newline) char.
3534
3535Returns the endpoint of the region."
3536 `(let ((buffer-read-only nil)
3537 (outline-override-protect t))
3538 (subst-char-in-region ,from ,to
3539 (if (= ,flag ?\n) ?\r ?\n)
3540 ,flag t)))
3541;;;_ > outline-flag-current-subtree (flag) 3543;;;_ > outline-flag-current-subtree (flag)
3542(defun outline-flag-current-subtree (flag) 3544(defun outline-flag-current-subtree (flag)
3543 "Hide or show subtree of currently-visible topic. 3545 "Hide or show subtree of currently-visible topic.