all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Wolfgang Scherer <Wolfgang.Scherer@gmx.de>
To: 37182@debbugs.gnu.org
Subject: bug#37182: Acknowledgement (24.5; 24.5.1: C-u vc-dir-mark-all-files should not mark directories)
Date: Tue, 27 Aug 2019 01:06:36 +0200	[thread overview]
Message-ID: <b86b81f0-5d0b-30f7-595f-e055cecb1d3e@gmx.de> (raw)
In-Reply-To: <handler.37182.B.156675851429203.ack@debbugs.gnu.org>

[-- Attachment #1: Type: text/plain, Size: 36 bytes --]

Patch with commit message attached.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Do-not-mark-directories-in-vc-dir-mark-all-files.patch --]
[-- Type: text/x-patch; name="0001-Do-not-mark-directories-in-vc-dir-mark-all-files.patch", Size: 885 bytes --]

From c1a53afb0c3f8101a0bdb50490c304f0d2996696 Mon Sep 17 00:00:00 2001
From: Wolfgang Scherer <wolfgang.scherer@gmx.de>
Date: Tue, 27 Aug 2019 01:03:59 +0200
Subject: [PATCH] Do not mark directories in vc-dir-mark-all-files

* lisp/vc/vc-dir.el: (vc-dir-mark-all-files) Do not mark directories
when marking all files (Bug#37182).
---
 lisp/vc/vc-dir.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/vc/vc-dir.el b/lisp/vc/vc-dir.el
index 9a6f6bb..567da65 100644
--- a/lisp/vc/vc-dir.el
+++ b/lisp/vc/vc-dir.el
@@ -667,7 +667,8 @@ share the same state."
 	 vc-ewoc)
 	(ewoc-map
 	 (lambda (filearg)
-	   (unless (vc-dir-fileinfo->marked filearg)
+	   (unless (or (vc-dir-fileinfo->directory filearg)
+		       (vc-dir-fileinfo->marked filearg))
 	     (setf (vc-dir-fileinfo->marked filearg) t)
 	     t))
 	 vc-ewoc))
--
2.7.4


  parent reply	other threads:[~2019-08-26 23:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-25 17:54 bug#37182: 24.5; 24.5.1: C-u vc-dir-mark-all-files should not mark directories Wolfgang Scherer
     [not found] ` <handler.37182.B.156675851429203.ack@debbugs.gnu.org>
2019-08-26 23:06   ` Wolfgang Scherer [this message]
2020-02-05  0:28     ` bug#37182: Acknowledgement (24.5; 24.5.1: C-u vc-dir-mark-all-files should not mark directories) Dmitry Gutov
2020-02-05 14:24       ` Eli Zaretskii
2020-02-11 22:31         ` Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b86b81f0-5d0b-30f7-595f-e055cecb1d3e@gmx.de \
    --to=wolfgang.scherer@gmx.de \
    --cc=37182@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.