Mercurial > emacs
comparison lisp/obsolete/ooutline.el @ 88155:d7ddb3e565de
sync with trunk
author | Henrik Enberg <henrik.enberg@telia.com> |
---|---|
date | Mon, 16 Jan 2006 00:03:54 +0000 |
parents | 0d8b17d428b5 |
children |
comparison
equal
deleted
inserted
replaced
88154:8ce476d3ba36 | 88155:d7ddb3e565de |
---|---|
1 ;;; ooutline.el --- outline mode commands for Emacs | 1 ;;; ooutline.el --- outline mode commands for Emacs |
2 | 2 |
3 ;; Copyright (C) 1986, 1993, 1994, 1997 Free Software Foundation, Inc. | 3 ;; Copyright (C) 1986, 1993, 1994, 1997, 2002, 2003, 2004, |
4 ;; 2005 Free Software Foundation, Inc. | |
4 | 5 |
5 ;; Maintainer: FSF | 6 ;; Maintainer: FSF |
6 ;; Keywords: outlines | 7 ;; Keywords: outlines |
7 | 8 |
8 ;; This file is part of GNU Emacs. | 9 ;; This file is part of GNU Emacs. |
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
18 ;; GNU General Public License for more details. | 19 ;; GNU General Public License for more details. |
19 | 20 |
20 ;; You should have received a copy of the GNU General Public License | 21 ;; You should have received a copy of the GNU General Public License |
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the | 22 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 23 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
23 ;; Boston, MA 02111-1307, USA. | 24 ;; Boston, MA 02110-1301, USA. |
24 | 25 |
25 ;;; Commentary: | 26 ;;; Commentary: |
26 | 27 |
27 ;; This package is a major mode for editing outline-format documents. | 28 ;; This package is a major mode for editing outline-format documents. |
28 ;; An outline can be `abstracted' to show headers at any given level, | 29 ;; An outline can be `abstracted' to show headers at any given level, |
31 ;;; Code: | 32 ;;; Code: |
32 | 33 |
33 ;; Jan '86, Some new features added by Peter Desnoyers and rewritten by RMS. | 34 ;; Jan '86, Some new features added by Peter Desnoyers and rewritten by RMS. |
34 | 35 |
35 (defgroup outlines nil | 36 (defgroup outlines nil |
36 "Support for hierarchical outlining" | 37 "Support for hierarchical outlining." |
37 :prefix "outline-" | 38 :prefix "outline-" |
38 :group 'editing) | 39 :group 'editing) |
39 | 40 |
40 | 41 |
41 (defcustom outline-regexp nil | 42 (defcustom outline-regexp nil |
222 outline-regexp "\\)")) | 223 outline-regexp "\\)")) |
223 (make-local-variable 'font-lock-defaults) | 224 (make-local-variable 'font-lock-defaults) |
224 (setq font-lock-defaults '(outline-font-lock-keywords t)) | 225 (setq font-lock-defaults '(outline-font-lock-keywords t)) |
225 (make-local-variable 'change-major-mode-hook) | 226 (make-local-variable 'change-major-mode-hook) |
226 (add-hook 'change-major-mode-hook 'show-all) | 227 (add-hook 'change-major-mode-hook 'show-all) |
227 (run-hooks 'text-mode-hook 'outline-mode-hook)) | 228 (run-mode-hooks 'text-mode-hook 'outline-mode-hook)) |
228 | 229 |
229 (defcustom outline-minor-mode-prefix "\C-c@" | 230 (defcustom outline-minor-mode-prefix "\C-c@" |
230 "*Prefix key to use for Outline commands in Outline minor mode. | 231 "*Prefix key to use for Outline commands in Outline minor mode. |
231 The value of this variable is checked as part of loading Outline mode. | 232 The value of this variable is checked as part of loading Outline mode. |
232 After that, changing the prefix key requires manipulating keymaps." | 233 After that, changing the prefix key requires manipulating keymaps." |
580 nil | 581 nil |
581 (point)))) | 582 (point)))) |
582 | 583 |
583 (provide 'outline) | 584 (provide 'outline) |
584 | 585 |
586 ;;; arch-tag: 14ed00e1-bd40-4db8-86e5-3b82ce326e45 | |
585 ;;; ooutline.el ends here | 587 ;;; ooutline.el ends here |