X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/587e4b13796f78ed582f36ff8b2ea261c6902b6f..f019fb210628549b661bf7ebaa40e136df205af4:/lisp/outline.el diff --git a/lisp/outline.el b/lisp/outline.el index ed7d5f33a3..2f84e7d93e 100644 --- a/lisp/outline.el +++ b/lisp/outline.el @@ -1,7 +1,7 @@ ;;; outline.el --- outline mode commands for Emacs -;; Copyright (C) 1986, 1993, 1994, 1995, 1997, 2000, 2001, 2002, -;; 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. +;; Copyright (C) 1986, 1993-1995, 1997, 2000-2011 +;; Free Software Foundation, Inc. ;; Maintainer: FSF ;; Keywords: outlines @@ -50,9 +50,9 @@ Note that Outline mode only checks this regexp at the start of a line, so the regexp need not (and usually does not) start with `^'. The recommended way to set this is with a Local Variables: list in the file it applies to. See also `outline-heading-end-regexp'." - :type '(choice regexp (const nil)) + :type 'regexp :group 'outlines) -;;;###autoload(put 'outline-regexp 'safe-local-variable 'string-or-null-p) +;;;###autoload(put 'outline-regexp 'safe-local-variable 'stringp) (defcustom outline-heading-end-regexp "\n" "Regular expression to match the end of a heading line. @@ -62,6 +62,7 @@ The recommended way to set this is with a `Local Variables:' list in the file it applies to." :type 'regexp :group 'outlines) +;;;###autoload(put 'outline-heading-end-regexp 'safe-local-variable 'stringp) (defvar outline-mode-prefix-map (let ((map (make-sparse-keymap))) @@ -445,10 +446,6 @@ at the end of the buffer." "Non-nil if the character after point is invisible." (get-char-property (or pos (point)) 'invisible)) -(defun outline-visible () - (not (outline-invisible-p))) -(make-obsolete 'outline-visible 'outline-invisible-p "21.1") - (defun outline-back-to-heading (&optional invisible-ok) "Move to previous heading line, or beg of this line if it's a heading. Only visible heading lines are considered, unless INVISIBLE-OK is non-nil." @@ -803,7 +800,7 @@ If FLAG is nil then text is shown, while if FLAG is t the text is hidden." ;; Function to be set as an outline-isearch-open-invisible' property ;; to the overlay that makes the outline invisible (see ;; `outline-flag-region'). -(defun outline-isearch-open-invisible (overlay) +(defun outline-isearch-open-invisible (_overlay) ;; We rely on the fact that isearch places point on the matched text. (show-entry)) @@ -1122,5 +1119,4 @@ convenient way to make a table of contents of the buffer." (provide 'outline) (provide 'noutline) -;; arch-tag: 1724410e-7d4d-4f46-b801-49e18171e874 ;;; outline.el ends here