1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-15 09:47:20 +00:00
Commit Graph

55 Commits

Author SHA1 Message Date
Nick Roberts
034babe1e1 Update copyright for release of 22.1 for progmodes directory. 2005-08-01 08:43:45 +00:00
Lute Kamstra
3a35cf56e7 Update FSF's address. 2005-07-04 17:55:18 +00:00
Thien-Thi Nguyen
01d2bd0234 Update `Maintainer-Version' header comment; nfc. 2005-01-04 05:19:16 +00:00
Thien-Thi Nguyen
d4bb773510 No longer require cl'; dolist' is standard. 2005-01-04 05:15:32 +00:00
Thien-Thi Nguyen
dfdc1af2c6 (hs-set-up-overlay): New user var.
(hs-make-overlay): New function.
(hs-isearch-show-temporary): Handle `display' overlay prop specially.
(hs-flag-region): Delete function.
(hs-hide-comment-region): No longer use `hs-flag-region'.
Instead, use `hs-discard-overlays' and `hs-make-overlay'.
(hs-hide-block-at-point): Likewise.
(hs-hide-level-recursive): Use `hs-discard-overlays'.
(hs-hide-all, hs-show-all): Likewise.
(hs-show-block): Likewise.
Also, use overlay prop `hs-b-offset', not `hs-ofs'.
2004-12-26 19:48:10 +00:00
Thien-Thi Nguyen
70d16390a0 Require `cl' when compiling.
Remove XEmacs and Emacs 19 compatibility.
Use `dolist' and `add-to-list' for load-time actions.
(hs-discard-overlays): Use `dolist'.
(hs-show-block): Likewise.
2004-12-24 02:08:14 +00:00
Thien-Thi Nguyen
53c403031f Untabify, reindent; nfc. 2004-12-24 01:57:47 +00:00
Thien-Thi Nguyen
aa7d670003 (hs-inside-comment-p): Fix omission bug:
When extending backwards, move outside the current comment first.
2004-12-23 18:22:05 +00:00
Thien-Thi Nguyen
c327c4058f Rewrite one-armed `if'
constructs using either `when' or `unless'.
(hs-grok-mode-type): Elide superfluous `progn'; nfc.
2003-10-18 01:05:54 +00:00
Thien-Thi Nguyen
6e8fcd2193 Thank Michael Ernst; nfc. 2003-09-29 13:24:30 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Thien-Thi Nguyen
90d606ce3e (hs-special-modes-alist): Clarify MDATA-SELECTOR doc; nfc. 2003-07-22 19:59:35 +00:00
Juanma Barranquero
e7bdfdcf2a (hs-adjust-block-beginning): Fix typo. 2002-05-16 12:01:17 +00:00
Stefan Monnier
c98cd8bb84 Typo. 2002-04-08 22:47:17 +00:00
Thien-Thi Nguyen
26d654ec0d Update first-line description.
Sync comments w/ maintainer version 5.31.

(hs-isearch-open): Default value now `code'.
Fix docstring to use "code blocks" vs "comment blocks",
as opposed to "block" vs "comment".
(hs-flag-region): Accept `hs-isearch-open' value
of `block' as synonymous w/ `code'.
(hs-hide-block-at-point): For code blocks, pass `code'
to `hs-flag-region' instead of `block'.
2001-08-27 22:23:09 +00:00
Stefan Monnier
3f3960a544 (hs-minor-mode): Use make-local-variable. 2001-07-16 01:55:37 +00:00
Richard M. Stallman
722da89bf4 (hs-minor-mode-map): Use mouse-2, not button-2, when binding
hs-mouse-toggle-hiding.
2001-06-26 11:50:16 +00:00
Stefan Monnier
74e87f23e4 Docstring typo. 2001-05-25 20:35:00 +00:00
Thien-Thi Nguyen
82dab959b1 (hs-minor-mode-hook): Include `:version' in defcustom form. 2001-03-14 00:04:50 +00:00
Thien-Thi Nguyen
60470e6567 Update copyright.
(hs-minor-mode-map): Change bindings to use `C-c @' prefix.
2001-03-13 23:34:21 +00:00
Thien-Thi Nguyen
9b4a780043 Update author email address.
Generally, sync w/ maintainer version 5.22.

(hs-hide-all-non-comment-function): New var.
(hs-hide-hook, hs-show-hook, hs-minor-mode): Update docstrings.
(hs-hide-all): Use `hs-hide-all-non-comment-function'.
(hs-show-region): Delete this command.
(hs-minor-mode-map): Change bindings to leave "C-c LETTER" alone.
2000-09-23 02:37:50 +00:00
Gerd Moellmann
35a11dcb21 Update copyright notice. 2000-07-24 18:36:43 +00:00
Thien-Thi Nguyen
a23c5037e7 (hs-flag-region): No longer use `intangible' overlay property.
(hs-toggle-hiding): New command.
(hs-mouse-toggle-hiding): Use `hs-toggle-hiding'.

(hs-minor-mode): Move call to `hs-grok-mode-type' early on.
Fix omission bug: Run `hs-minor-mode-hook' for both activation
and deactivation.
2000-02-18 23:35:24 +00:00
Thien-Thi Nguyen
7ddafb955f Fix buglet in local variables initialization. 2000-01-05 12:34:51 +00:00
Thien-Thi Nguyen
a40efb3bb9 (hs-discard-overlays, hs-flag-region, hs-show-block):
Don't use `mapcar' when not accumulating.
2000-01-05 12:22:21 +00:00
Thien-Thi Nguyen
1a8e83dc40 (hs-minor-mode-menu): Fix omission bug; was used but not declared.
(hs-discard-overlays, hs-isearch-show, hs-isearch-show-temporary,
hs-find-block-beginning): Add or modify docstrings.

(hs-isearch-show): Rewrite.
1999-12-29 09:00:35 +00:00
Thien-Thi Nguyen
26a0b3991e Generally, synch w/ maintainer version 5.9.
(hs-show-hidden-short-form): Delete var; hard-code uses as `t'.

(hs-minor-mode-hook): Don't initialize.

(hs-special-modes-alist): Rewrite value and docstring.

(hs-minor-mode-prefix): Delete unused var.

(hs-block-start-mdata-select): New var, buffer local.

(hs-headline): New var.

(hs-match-data, hs-forward-sexp): New funcs.

(hs-hide-comment-region): New func.

(hs-discard-overlays, hs-flag-region, hs-hide-block-at-point,
hs-safety-is-job-n, hs-hide-initial-comment-block, hs-inside-comment-p,
hs-grok-mode-type, hs-find-block-beginning, hs-hide-level-recursive,
hs-life-goes-on, hs-already-hidden-p, hs-c-like-adjust-block-beginning,
hs-hide-all, hs-show-all, hs-hide-block, hs-show-block, hs-show-region,
hs-hide-level, hs-mouse-toggle-hiding, hs-minor-mode): Rewrite.

(hs-isearch-show): Renamed from `hs-isearch-open-invisible'.
(hs-isearch-show-temporary): New funcs.

(hs-show-block-at-point, java-hs-forward-sexp): Delete funcs.

(hs-hide-all, hs-mouse-toggle-hiding): Don't autoload.

When constructing menu, use `[(shift button2)]' notation.
1999-12-26 11:03:32 +00:00
Dan Nicolaescu
f467e98486 *** empty log message *** 1998-10-02 18:11:14 +00:00
Thien-Thi Nguyen
115db33eb5 *** empty log message *** 1998-09-18 09:41:31 +00:00
Thien-Thi Nguyen
b51900451a (hs-grok-mode-type) Handle nil comment-start' and comment-end'. 1998-09-13 21:55:51 +00:00
Thien-Thi Nguyen
28f0c4f275 (hs-minor-mode): Use make-local-variable' not make-variable-buffer-local'. 1998-06-12 05:53:52 +00:00
Thien-Thi Nguyen
aaa114d058 Require `easymenu'. Rework to use easymenu. Remove eol ws.
(hs-hide-level-recursive, hs-hide-level): Add.

(hs-unbalance-handler-method): Delete.
(hs-show-block-at-point): Always use `top-level' unbalanced-handler case.
1998-06-12 05:32:48 +00:00
Dan Nicolaescu
12ab6a7d3a (hs-life-goes-on): Use Emacs' native backquote support. 1998-05-17 01:55:17 +00:00
Dan Nicolaescu
b6a386ad60 (hs-special-modes-alist): Improved the regexp for java. 1998-02-02 07:29:59 +00:00
Richard M. Stallman
7ee906030a (hs-special-modes-alist): Improved the regexp for java. 1998-02-02 00:17:19 +00:00
Karl Heuer
91f676a030 (hs-special-modes-alist): Correct alist
for java-mode.
1997-10-15 22:54:24 +00:00
Richard M. Stallman
39f2ec46d3 (hs-minor-mode-hook): Fix customize type. 1997-09-09 02:58:23 +00:00
Richard M. Stallman
23d93b6a88 Correct the autoload cookies. 1997-08-09 02:11:29 +00:00
Richard M. Stallman
5e336d3ea6 (hs-special-modes-alist): Use a regexp generated by regexp-opt.
(hs-life-goes-on): Nullify inhibit-point-motion-hooks as we have
to move inside intangible overlays. Enable edebug.
1997-07-19 05:34:45 +00:00
Richard M. Stallman
e863e26439 (hs-discard-overlays): Use overlays-in to
get all the overlays in a range.  Don't use let inside a cycle.
1997-06-24 02:26:57 +00:00
Richard M. Stallman
12e36cdba6 (hideshow): Added a :prefix.
(hs-isearch-open): New variable.
(hs-flag-region): Use that variable.
Changed the semantics of the FLAG parameter and updated the docs.
(hs-isearch-open-invisible): New function to be set as a
`isearch-pent-invisible' property for hidden overlays, so that
isearch can use it.
(hs-hide-block-at-point): Tell if we are hiding a comment or a block.
1997-06-13 21:31:25 +00:00
Richard M. Stallman
d06970e54c (hs-show-hidden-short-form): Updated doc string.
(hs-adjust-block-beginning): Likewise.
(hs-special-modes-alist): C and C++ should also use
hs-c-like-adjust-block-beginning.
(hs-find-block-beginning): If hs-adjust-block-beginning is t and
we apply hs-adjust-block-beginning and we reach the point means
that we found the block beginning.
(hs-c-like-adjust-block-beginning):
Renamed from java-hs-adjust-block-beginning.
1997-06-01 23:09:03 +00:00
Richard M. Stallman
b7c09257ad (hs-hide-comments-when-hiding-all)
(hs-show-hidden-short-form, hs-minor-mode-hook): Move definitions up.
Use defcustom.
(hs-find-block-beginning): Bind buffer-size, don't call it in a cycle.
(hs-hide-all): Likewise.
1997-05-31 07:13:34 +00:00
Richard M. Stallman
88039caa2b (hs-special-modes-alist): Include also the
comment regexp in the alist. This is needed for modes like c++
where the comment beginning regexp is not easy to determine
from the syntax table.
Include ADJUST-BLOCK-BEGINNING in the alist.
(hs-hide-comments-when-hiding-all): Add autoload cookie.
(hs-show-hidden-short-form):
(hs-adjust-block-beginning): New variables.

Comment out `hs-menu-bar' as XEmacs support was removed.
(hs-c-end-regexp): Remove variable, obsoleted by the rewrite of
`hs-inside-comment-p'.

(hs-discard-overlays): No need to test if we are inside the
overlay, we surely are since we got the overlay using `overlays-at'.
(hs-hide-block-at-point): Rewritten to use the new variables.
Use only one parameter to specify the comment.
(hs-show-block-at-point): No need for the COMMENT-REG parameter.
(hs-safety-is-job-n): Correct typo.
(hs-hide-initial-comment-block): Add ^L to the chars to skip.
Take into account `hs-show-hidden-short-form' when testing.
(hs-inside-single-line-comment-p): Function deleted, obsoleted by
the rewrite of `hs-inside-comment-p'.
(hs-inside-comment-p): Rewritten from scratch. Semantics changed
when returning non-nil. We can be inside a comment, but that
comment might not be hidable (the car of the return value should
be non-nil to be hidable).
(hs-grok-mode-type): Rewrite to be more understandable.
`hs-c-end-regexp' does not exist any more.
Initialize `hs-c-start-regexp' from the alist if specified there.
Initialize `hs-adjust-block-beginning'.
(hs-find-block-beginning): Rewritten to be able to deal with the
situation when a block beginning spans multiple lines and the
point is on one of those lines.
(hs-already-hidden-p): Look first if we are inside a comment or a
block, go to their end and look there for the overlays.
(java-hs-adjust-block-beginning): New function.
(hs-hide-all): Hide a comment block only if `hs-inside-comment-p'
says is hidable.
(hs-hide-block): Simplify.
Handle properly the result of `hs-inside-comment-p'.
(hs-show-block): Likewise.
(hs-minor-mode): Doc string fixes.
Make `hs-adjust-block-beginning' buffer local.
Delete making `hs-c-end-regexp' buffer local as it was deleted.
1997-05-29 05:23:39 +00:00
Karl Heuer
0992c4d488 (hs-hide-block-at-point): Doc fix. 1997-03-31 22:46:25 +00:00
Richard M. Stallman
9479d258c9 (hs-show-all, hs-safety-is-job-n): Fix messages.
Changed to use overlays for hiding instead of selective display.
Commented out the support for XEmacs because it doesn't support overlays.
(hs-special-modes-alist): Added support for java-mode.
(hs-minor-mode-hook): New variable.
(hs-c-start-regexp, hs-c-end-regexp, hs-forward-sexp-func)
(hs-block-start-regexp, hs-block-end-regexp)
(hs-find-block-beginning): Doc string fixes.
(hs-hide-comments-when-hiding-all): New variable.
(hs-safety-is-job-n, hs-minor-mode, hs-flag-region):
Use overlays for hiding.
(hs-inside-single-line-comment-p, hs-discard-overlays)
(hs-already-hidden-p): New internal functions.
(hs-hide-block-at-point, hs-hide-initial-comment-block)
(java-hs-forward-sexp, hs-mouse-toggle-hiding): New functions.
(hs-inside-comment-p, hs-hide-block)
(hs-show-block): Added support for single line comments.
(hs-hide-all): Added support for hiding comments.
1997-03-29 08:51:22 +00:00
Richard M. Stallman
dd7bd4df5a (hs-emacs-type): Doc fix. 1996-12-29 18:08:04 +00:00
Richard M. Stallman
9596811a3d Comment change. 1996-03-02 06:37:35 +00:00
Erik Naggum
b578f267af Update FSF's address. 1996-01-14 07:34:30 +00:00
Richard M. Stallman
d877f24756 Many doc fixes.
(hs-hide-hook): Renamed from hs-hide-hooks.
(hs-show-hook): Renamed from hs-show-hooks.
1996-01-12 05:28:46 +00:00