mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-05 23:21:22 -08:00
(vc-dir-children-marked-p): Fix child check.
This commit is contained in:
parent
77003b236b
commit
64137cbc07
2 changed files with 4 additions and 3 deletions
|
|
@ -1,5 +1,7 @@
|
|||
2008-06-08 Andreas Schwab <schwab@suse.de>
|
||||
|
||||
* vc-dispatcher.el (vc-dir-children-marked-p): Fix child check.
|
||||
|
||||
* vc-cvs.el (vc-cvs-dir-status): Pass -f to cvs.
|
||||
|
||||
* vc-dispatcher.el (vc-dir-move-to-goal-column): Don't move in an
|
||||
|
|
|
|||
|
|
@ -1057,15 +1057,14 @@ If a prefix argument is given, move by that many lines."
|
|||
|
||||
(defun vc-dir-children-marked-p (arg)
|
||||
;; Return nil if none of the children of arg is marked.
|
||||
(let* ((argdir (vc-dir-node-directory arg))
|
||||
(arglen (length argdir))
|
||||
(let* ((argdir-re (concat "\\`" (regexp-quote (vc-dir-node-directory arg))))
|
||||
(is-child t)
|
||||
(crt arg)
|
||||
data dir)
|
||||
(while (and is-child (setq crt (ewoc-next vc-ewoc crt)))
|
||||
(setq data (ewoc-data crt))
|
||||
(setq dir (vc-dir-node-directory crt))
|
||||
(if (string-equal argdir (substring dir 0 arglen))
|
||||
(if (string-match argdir-re dir)
|
||||
(when (vc-dir-fileinfo->marked data)
|
||||
(error "Cannot mark `%s', child `%s' marked"
|
||||
(vc-dir-fileinfo->name (ewoc-data arg))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue