Mercurial > emacs
comparison lisp/progmodes/hideshow.el @ 19233:520a7d40d75c
Correct the autoload cookies.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 09 Aug 1997 02:11:29 +0000 |
parents | b6e4c4c2a3ef |
children | fdcd167cb293 |
comparison
equal
deleted
inserted
replaced
19232:9b2a1f0c73dc | 19233:520a7d40d75c |
---|---|
1 ;;; hideshow.el --- minor mode cmds to selectively display blocks of code | 1 ;;; hideshow.el --- minor mode cmds to selectively display blocks of code |
2 | 2 |
3 ;; Copyright (C) 1994,1995,1996,1997 Free Software Foundation | 3 ;; Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation |
4 | 4 |
5 ;; Author: Thien-Thi Nguyen <ttn@netcom.com> | 5 ;; Author: Thien-Thi Nguyen <ttn@netcom.com> |
6 ;; Maintainer: Dan Nicolaescu <done@ece.arizona.edu> | 6 ;; Maintainer: Dan Nicolaescu <done@ece.arizona.edu> |
7 ;; Version: 4.0 | 7 ;; Version: 4.0 |
8 ;; Keywords: C C++ java lisp tools editing comments blocks hiding outlines | 8 ;; Keywords: C C++ java lisp tools editing comments blocks hiding outlines |
73 (defgroup hideshow nil | 73 (defgroup hideshow nil |
74 "Minor mode for hiding and showing program and comment blocks." | 74 "Minor mode for hiding and showing program and comment blocks." |
75 :prefix "hs-" | 75 :prefix "hs-" |
76 :group 'languages) | 76 :group 'languages) |
77 | 77 |
78 ;;;#autoload | 78 ;;;###autoload |
79 (defcustom hs-hide-comments-when-hiding-all t | 79 (defcustom hs-hide-comments-when-hiding-all t |
80 "Hide the comments too when you do an `hs-hide-all'." | 80 "Hide the comments too when you do an `hs-hide-all'." |
81 :type 'boolean | 81 :type 'boolean |
82 :group 'hideshow) | 82 :group 'hideshow) |
83 | 83 |
84 ;;;#autoload | 84 ;;;###autoload |
85 (defcustom hs-show-hidden-short-form t | 85 (defcustom hs-show-hidden-short-form t |
86 "Leave only the first line visible in a hidden block. | 86 "Leave only the first line visible in a hidden block. |
87 If t only the first line is visible when a block is in the hidden state, | 87 If t only the first line is visible when a block is in the hidden state, |
88 else both the first line and the last line are showed. Also if t and | 88 else both the first line and the last line are showed. Also if t and |
89 `hs-adjust-block-beginning' is set, it is used also. | 89 `hs-adjust-block-beginning' is set, it is used also. |
153 - `signal' -- Pass the error through, stopping execution. | 153 - `signal' -- Pass the error through, stopping execution. |
154 - `ignore' -- Ignore the error, continuing execution. | 154 - `ignore' -- Ignore the error, continuing execution. |
155 | 155 |
156 Values other than these four will be interpreted as `signal'.") | 156 Values other than these four will be interpreted as `signal'.") |
157 | 157 |
158 ;;;#autoload | 158 ;;;###autoload |
159 (defvar hs-special-modes-alist | 159 (defvar hs-special-modes-alist |
160 '((c-mode "{" "}" nil nil hs-c-like-adjust-block-beginning) | 160 '((c-mode "{" "}" nil nil hs-c-like-adjust-block-beginning) |
161 (c++-mode "{" "}" "/[*/]" nil hs-c-like-adjust-block-beginning) | 161 (c++-mode "{" "}" "/[*/]" nil hs-c-like-adjust-block-beginning) |
162 (java-mode "\\(\\(\\([ \t]*\\(\\(abstract\\|final\\|p\\(r\\(ivate\\|otected\\)\\|ublic\\)\\|static\\)[ \t\n]+\\)+\\(synchronized[ \t\n]*\\)?[a-zA-Z0-9_:]+[ \t\n]*\\(\\[[ \t\n]*\\][ \t\n]*\\)?\\([a-zA-Z0-9_:]+[ \t\n]*\\)([^)]*)\\([ \n\t]+throws[ \t\n][^{]+\\)?\\)\\|\\([ \t]*static[^{]*\\)\\)[ \t\n]*{\\)" java-hs-forward-sexp hs-c-like-adjust-block-beginning)) | 162 (java-mode "\\(\\(\\([ \t]*\\(\\(abstract\\|final\\|p\\(r\\(ivate\\|otected\\)\\|ublic\\)\\|static\\)[ \t\n]+\\)+\\(synchronized[ \t\n]*\\)?[a-zA-Z0-9_:]+[ \t\n]*\\(\\[[ \t\n]*\\][ \t\n]*\\)?\\([a-zA-Z0-9_:]+[ \t\n]*\\)([^)]*)\\([ \n\t]+throws[ \t\n][^{]+\\)?\\)\\|\\([ \t]*static[^{]*\\)\\)[ \t\n]*{\\)" java-hs-forward-sexp hs-c-like-adjust-block-beginning)) |
163 ; I tested the java regexp using the following: | 163 ; I tested the java regexp using the following: |