aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/progmodes/hideshow.el25
-rw-r--r--lisp/vc.el15
3 files changed, 39 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b8adc68d0eb..6985c85107b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,12 @@
12008-02-28 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * progmodes/hideshow.el (hs-minor-mode-menu): Add some options to
4 the menu.
5
6 * vc.el (vc-deduce-fileset, vc-next-action, vc-start-entry)
7 (vc-finish-logentry): Check for vc-status-mode, not only for
8 vc-dired-mode.
9
12008-02-28 Kenichi Handa <handa@ni.aist.go.jp> 102008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
2 11
3 * isearch.el (isearch-printing-char): Don't check 12 * isearch.el (isearch-printing-char): Don't check
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.
diff --git a/lisp/vc.el b/lisp/vc.el
index c0ceff58449..8e4ace739c3 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -595,7 +595,10 @@
595;; adjustments. 595;; adjustments.
596;; 596;;
597;; - when changing a file whose directory is shown in the vc-status 597;; - when changing a file whose directory is shown in the vc-status
598;; buffer, it should be added there are "modified". (PCL-CVS does this). 598;; buffer, it should be added there as "modified". (PCL-CVS does this).
599;;
600;; - Update the vc-status buffers after vc operations, implement the
601;; equivalent of vc-dired-resynch-file.
599;; 602;;
600;; - vc-status needs a toolbar. 603;; - vc-status needs a toolbar.
601;; 604;;
@@ -1407,7 +1410,7 @@ Otherwise, throw an error."
1407 (list buffer-file-name)) 1410 (list buffer-file-name))
1408 ((and vc-parent-buffer (or (buffer-file-name vc-parent-buffer) 1411 ((and vc-parent-buffer (or (buffer-file-name vc-parent-buffer)
1409 (with-current-buffer vc-parent-buffer 1412 (with-current-buffer vc-parent-buffer
1410 vc-dired-mode))) 1413 (or vc-dired-mode (eq major-mode 'vc-status-mode)))))
1411 (progn 1414 (progn
1412 (set-buffer vc-parent-buffer) 1415 (set-buffer vc-parent-buffer)
1413 (vc-deduce-fileset))) 1416 (vc-deduce-fileset)))
@@ -1541,7 +1544,7 @@ merge in the changes into your working copy."
1541 (dolist (file files) 1544 (dolist (file files)
1542 (let ((visited (get-file-buffer file))) 1545 (let ((visited (get-file-buffer file)))
1543 (when visited 1546 (when visited
1544 (if vc-dired-mode 1547 (if (or vc-dired-mode (eq major-mode 'vc-status-mode))
1545 (switch-to-buffer-other-window visited) 1548 (switch-to-buffer-other-window visited)
1546 (set-buffer visited)) 1549 (set-buffer visited))
1547 ;; Check relation of buffer and file, and make sure 1550 ;; Check relation of buffer and file, and make sure
@@ -1811,7 +1814,7 @@ empty comment. Remember the file's buffer in `vc-parent-buffer'
1811\(current one if no file). AFTER-HOOK specifies the local value 1814\(current one if no file). AFTER-HOOK specifies the local value
1812for `vc-log-after-operation-hook'." 1815for `vc-log-after-operation-hook'."
1813 (let ((parent 1816 (let ((parent
1814 (if (eq major-mode 'vc-dired-mode) 1817 (if (or (eq major-mode 'vc-dired-mode) (eq major-mode 'vc-status-mode))
1815 ;; If we are called from VC dired, the parent buffer is 1818 ;; If we are called from VC dired, the parent buffer is
1816 ;; the current buffer. 1819 ;; the current buffer.
1817 (current-buffer) 1820 (current-buffer)
@@ -1951,7 +1954,7 @@ the buffer contents as a comment."
1951 ;; Sync parent buffer in case the user modified it while editing the comment. 1954 ;; Sync parent buffer in case the user modified it while editing the comment.
1952 ;; But not if it is a vc-dired buffer. 1955 ;; But not if it is a vc-dired buffer.
1953 (with-current-buffer vc-parent-buffer 1956 (with-current-buffer vc-parent-buffer
1954 (or vc-dired-mode (vc-buffer-sync))) 1957 (or vc-dired-mode (eq major-mode 'vc-status-mode) (vc-buffer-sync)))
1955 (if (not vc-log-operation) 1958 (if (not vc-log-operation)
1956 (error "No log operation is pending")) 1959 (error "No log operation is pending"))
1957 ;; save the parameters held in buffer-local variables 1960 ;; save the parameters held in buffer-local variables
@@ -1983,7 +1986,7 @@ the buffer contents as a comment."
1983 (mapc 1986 (mapc
1984 (lambda (file) (vc-resynch-buffer file vc-keep-workfiles t)) 1987 (lambda (file) (vc-resynch-buffer file vc-keep-workfiles t))
1985 log-fileset)) 1988 log-fileset))
1986 (if vc-dired-mode 1989 (if (or vc-dired-mode (eq major-mode 'vc-status-mode))
1987 (dired-move-to-filename)) 1990 (dired-move-to-filename))
1988 (run-hooks after-hook 'vc-finish-logentry-hook))) 1991 (run-hooks after-hook 'vc-finish-logentry-hook)))
1989 1992