diff options
| author | Dan Nicolaescu | 2008-02-28 03:35:22 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-02-28 03:35:22 +0000 |
| commit | 76cdeb7d292113ddc73ab22032864d2b02f8d3ab (patch) | |
| tree | e388690c11725e8c7df5da51cc7972d41f5c335d /lisp/progmodes | |
| parent | ec1c43540c86886be6a4c9280e89942d0db417a9 (diff) | |
| download | emacs-76cdeb7d292113ddc73ab22032864d2b02f8d3ab.tar.gz emacs-76cdeb7d292113ddc73ab22032864d2b02f8d3ab.zip | |
* progmodes/hideshow.el (hs-minor-mode-menu): Add some options to
the menu.
* vc.el (vc-deduce-fileset, vc-next-action, vc-start-entry)
(vc-finish-logentry): Check for vc-status-mode, not only for
vc-dired-mode.
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/hideshow.el | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/lisp/progmodes/hideshow.el b/lisp/progmodes/hideshow.el index 48a32761c27..2b8e2ec0089 100644 --- a/lisp/progmodes/hideshow.el +++ b/lisp/progmodes/hideshow.el | |||
| @@ -232,8 +232,6 @@ | |||
| 232 | 232 | ||
| 233 | ;;; Code: | 233 | ;;; Code: |
| 234 | 234 | ||
| 235 | (require 'easymenu) | ||
| 236 | |||
| 237 | ;;--------------------------------------------------------------------------- | 235 | ;;--------------------------------------------------------------------------- |
| 238 | ;; user-configurable variables | 236 | ;; user-configurable variables |
| 239 | 237 | ||
| @@ -368,11 +366,30 @@ Use the command `hs-minor-mode' to toggle or set this variable.") | |||
| 368 | ["Hide All" hs-hide-all | 366 | ["Hide All" hs-hide-all |
| 369 | :help "Hide all the blocks in the buffer"] | 367 | :help "Hide all the blocks in the buffer"] |
| 370 | ["Show All" hs-show-all | 368 | ["Show All" hs-show-all |
| 371 | :help "Show all the clocks in the buffer"] | 369 | :help "Show all the blocks in the buffer"] |
| 372 | ["Hide Level" hs-hide-level | 370 | ["Hide Level" hs-hide-level |
| 373 | :help "Hide all block at levels below the current block"] | 371 | :help "Hide all block at levels below the current block"] |
| 374 | ["Toggle Hiding" hs-toggle-hiding | 372 | ["Toggle Hiding" hs-toggle-hiding |
| 375 | :help "Toggle the hiding state of the current block"])) | 373 | :help "Toggle the hiding state of the current block"] |
| 374 | "----" | ||
| 375 | ["Hide comments when hiding all" | ||
| 376 | (setq hs-hide-comments-when-hiding-all | ||
| 377 | (not hs-hide-comments-when-hiding-all)) | ||
| 378 | :help "If t also hide comment blocks when doing `hs-hide-all'" | ||
| 379 | :style toggle :selected hs-hide-comments-when-hiding-all] | ||
| 380 | ("Reveal on isearch" | ||
| 381 | ["Code blocks" (setq hs-isearch-open 'code) | ||
| 382 | :help "Show hidden code blocks when isearch matches inside them" | ||
| 383 | :active t :style radio :selected (eq hs-isearch-open 'code)] | ||
| 384 | ["Comment blocks" (setq hs-isearch-open 'comment) | ||
| 385 | :help "Show hidden comment blocks when isearch matches inside them" | ||
| 386 | :active t :style radio :selected (eq hs-isearch-open 'comment)] | ||
| 387 | ["Code and Comment blocks" (setq hs-isearch-open t) | ||
| 388 | :help "Show both hidden code and comment blocks when isearch matches inside them" | ||
| 389 | :active t :style radio :selected (eq hs-isearch-open 'comment)] | ||
| 390 | ["None" (setq hs-isearch-open nil) | ||
| 391 | :help "Do not hidden code or comment blocks when isearch matches inside them" | ||
| 392 | :active t :style radio :selected (eq hs-isearch-open nil)]))) | ||
| 376 | 393 | ||
| 377 | (defvar hs-c-start-regexp nil | 394 | (defvar hs-c-start-regexp nil |
| 378 | "Regexp for beginning of comments. | 395 | "Regexp for beginning of comments. |