diff options
| author | Andreas Schwab | 2008-06-08 15:31:08 +0000 |
|---|---|---|
| committer | Andreas Schwab | 2008-06-08 15:31:08 +0000 |
| commit | 64137cbc075a5471394de6fc97f8c452559aea2d (patch) | |
| tree | ec4b87d259d894811ef9e42b79eb1375d8cdff45 | |
| parent | 77003b236b92a337fd9403764f5e56f7fa743fed (diff) | |
| download | emacs-64137cbc075a5471394de6fc97f8c452559aea2d.tar.gz emacs-64137cbc075a5471394de6fc97f8c452559aea2d.zip | |
(vc-dir-children-marked-p): Fix child check.
Diffstat (limited to '')
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/vc-dispatcher.el | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c5241a74839..e7f53385ccd 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2008-06-08 Andreas Schwab <schwab@suse.de> | 1 | 2008-06-08 Andreas Schwab <schwab@suse.de> |
| 2 | 2 | ||
| 3 | * vc-dispatcher.el (vc-dir-children-marked-p): Fix child check. | ||
| 4 | |||
| 3 | * vc-cvs.el (vc-cvs-dir-status): Pass -f to cvs. | 5 | * vc-cvs.el (vc-cvs-dir-status): Pass -f to cvs. |
| 4 | 6 | ||
| 5 | * vc-dispatcher.el (vc-dir-move-to-goal-column): Don't move in an | 7 | * vc-dispatcher.el (vc-dir-move-to-goal-column): Don't move in an |
diff --git a/lisp/vc-dispatcher.el b/lisp/vc-dispatcher.el index 7179d77e8f4..6bd43cb2644 100644 --- a/lisp/vc-dispatcher.el +++ b/lisp/vc-dispatcher.el | |||
| @@ -1057,15 +1057,14 @@ If a prefix argument is given, move by that many lines." | |||
| 1057 | 1057 | ||
| 1058 | (defun vc-dir-children-marked-p (arg) | 1058 | (defun vc-dir-children-marked-p (arg) |
| 1059 | ;; Return nil if none of the children of arg is marked. | 1059 | ;; Return nil if none of the children of arg is marked. |
| 1060 | (let* ((argdir (vc-dir-node-directory arg)) | 1060 | (let* ((argdir-re (concat "\\`" (regexp-quote (vc-dir-node-directory arg)))) |
| 1061 | (arglen (length argdir)) | ||
| 1062 | (is-child t) | 1061 | (is-child t) |
| 1063 | (crt arg) | 1062 | (crt arg) |
| 1064 | data dir) | 1063 | data dir) |
| 1065 | (while (and is-child (setq crt (ewoc-next vc-ewoc crt))) | 1064 | (while (and is-child (setq crt (ewoc-next vc-ewoc crt))) |
| 1066 | (setq data (ewoc-data crt)) | 1065 | (setq data (ewoc-data crt)) |
| 1067 | (setq dir (vc-dir-node-directory crt)) | 1066 | (setq dir (vc-dir-node-directory crt)) |
| 1068 | (if (string-equal argdir (substring dir 0 arglen)) | 1067 | (if (string-match argdir-re dir) |
| 1069 | (when (vc-dir-fileinfo->marked data) | 1068 | (when (vc-dir-fileinfo->marked data) |
| 1070 | (error "Cannot mark `%s', child `%s' marked" | 1069 | (error "Cannot mark `%s', child `%s' marked" |
| 1071 | (vc-dir-fileinfo->name (ewoc-data arg)) | 1070 | (vc-dir-fileinfo->name (ewoc-data arg)) |