From unknown Sat Jun 21 03:23:45 2025
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.509 (Entity 5.509)
Content-Type: text/plain; charset=utf-8
From: bug#34949 <34949@debbugs.gnu.org>
To: bug#34949 <34949@debbugs.gnu.org>
Subject: Status: 27.0.50; Docstring of `vc-deduce-fileset' incomplete
Reply-To: bug#34949 <34949@debbugs.gnu.org>
Date: Sat, 21 Jun 2025 10:23:45 +0000
retitle 34949 27.0.50; Docstring of `vc-deduce-fileset' incomplete
reassign 34949 emacs
submitter 34949 Philipp Stephani
severity 34949 minor
tag 34949 confirmed fixed
thanks
From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 22 14:03:02 2019
Received: (at submit) by debbugs.gnu.org; 22 Mar 2019 18:03:02 +0000
Received: from localhost ([127.0.0.1]:54669 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1h7OVR-0002Qm-LI
for submit@debbugs.gnu.org; Fri, 22 Mar 2019 14:03:02 -0400
Received: from eggs.gnu.org ([209.51.188.92]:48073)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1h7OVP-0002QR-NT
for submit@debbugs.gnu.org; Fri, 22 Mar 2019 14:03:00 -0400
Received: from lists.gnu.org ([209.51.188.17]:47018)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
(Exim 4.71) (envelope-from )
id 1h7OVK-0007w6-He
for submit@debbugs.gnu.org; Fri, 22 Mar 2019 14:02:54 -0400
Received: from eggs.gnu.org ([209.51.188.92]:33916)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1h7OVJ-0002bl-7t
for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2019 14:02:54 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: *
X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50,
FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,URIBL_BLOCKED autolearn=disabled
version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1h7OJl-00063a-4v
for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2019 13:50:58 -0400
Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:40353)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
(Exim 4.71) (envelope-from )
id 1h7OJk-000627-Nw
for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2019 13:50:57 -0400
Received: by mail-wm1-x333.google.com with SMTP id u10so3013863wmj.5
for ; Fri, 22 Mar 2019 10:50:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=from:to:subject:date:message-id:mime-version
:content-transfer-encoding;
bh=NkxN1TXh6pPebwX6Sy252IBXF5geDwgo6OHnYkVaYXg=;
b=OupdY0z/1fxV/lZbQ3DDDRFvnev96LwQwYYeFb4wKhs/tTMTnYSLj8CmnbFCiwUbob
7m+nA1oJAQdyhANgd2QHI2OOXNXHZa8HpKp5pHLmollnlQ0jZ0922YClAk+to4Lur8b4
NF+lUpX+/cA/sa2v/RJLOXiRPiiyBHcgNfnLet/v6XbkVe2yK99Q5ZCOVqZhOYm92hcG
AYV8MesjJ5ndkblCBWB65l5bRG+OJ6CRIzrhWgea2mwfoPivZvAfc14Yz3OYOAg7rL8C
nxdEHbkJZza2BFiEHxDp6h2j5bTyw5CT6Ks70MgtnADqHHRhH9+qhWo19s53C2hoSlNE
GMoQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:to:subject:date:message-id:mime-version
:content-transfer-encoding;
bh=NkxN1TXh6pPebwX6Sy252IBXF5geDwgo6OHnYkVaYXg=;
b=hOWCkpUOdetb75e7xsGn2R1U3YlH0R3d/X7jJIEtD4gn/Ol7VcsxA1zeJlaxO3BAkf
m+3eCd/zQZhxgD61K4rpsO+rc6iA3daQo7v6lH6S4CdXNzAjcC5M4OYuNjOrfpZ48yI3
F22hS+52dnbCHbmV48nscEV5jVIK5hoYN57YiJw4fqOzTRP1Ese/vZ+1O80VB7xmcQ22
1Um+znewf3iwnL/gS4iNEKJMUAM6XOP2KV6gBjJOT3c9V7FX5Fve4xYGO/G9zTAsl6Qg
WhPUMfqIGlBcxbfJtiKzF206HTj9Jn5GnW9g2ZeidLVMYW9bpTIUUd0o8SRX7vJOKoAG
XMPg==
X-Gm-Message-State: APjAAAVCtX8iMrmSoz2OwtcHDK8RyEoNjeIN95YnTj5vPpA74zDpBaOU
cEGuXa9GyBCfJ0rmrRKktJGuimQp
X-Google-Smtp-Source: APXvYqzC+txRItHwMY+Zdzc9DZXxXpiAwCMN0wNoknIbk21CCTdBIy/bbmFgC6+H1WI/l3YbZOBPQQ==
X-Received: by 2002:a1c:d106:: with SMTP id i6mr2496034wmg.134.1553277054704;
Fri, 22 Mar 2019 10:50:54 -0700 (PDT)
Received: from phst-desktop.muc.corp.google.com
([2a00:79e0:15:10:da73:c08c:d5e2:512d])
by smtp.gmail.com with ESMTPSA id t187sm5658120wma.1.2019.03.22.10.50.53
for
(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
Fri, 22 Mar 2019 10:50:53 -0700 (PDT)
From: Philipp Stephani
To: bug-gnu-emacs@gnu.org
Subject: 27.0.50; Docstring of `vc-deduce-fileset' incomplete
Date: Fri, 22 Mar 2019 18:50:52 +0100
Message-ID:
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
recognized.
X-Received-From: 2a00:1450:4864:20::333
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: The docstring of `vc-deduce-fileset' doesn't describe the
OBSERVER parameter. It also doesn't explain the meaning of the return values
FILESET-ONLY-FILES, STATE, and CHECKOUT-MODEL. In GNU Emacs 27.0.50 (build
57, x86_64-pc-linux-gnu,
GTK+ Version 3.24.2) of 2019-03-22 Repository revision:
3375d08299bbc1e224d19a871012cdbbf5d787ee Repository branch: master Windowing
system distrib [...]
Content analysis details: (1.2 points, 10.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was
blocked. See
http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
for more information. [URIs: x.org]
1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail)
0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
in digit (p.stephani2[at]gmail.com)
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
provider (p.stephani2[at]gmail.com)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: 0.2 (/)
The docstring of `vc-deduce-fileset' doesn't describe the OBSERVER
parameter. It also doesn't explain the meaning of the return values
FILESET-ONLY-FILES, STATE, and CHECKOUT-MODEL.
In GNU Emacs 27.0.50 (build 57, x86_64-pc-linux-gnu, GTK+ Version 3.24.2)
of 2019-03-22
Repository revision: 3375d08299bbc1e224d19a871012cdbbf5d787ee
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.11906000
System Description: Debian GNU/Linux buster/sid
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Configured using:
'configure --enable-gcc-warnings=3Dwarn-only
--enable-gtk-deprecation-warnings --without-pop --with-mailutils
--enable-checking --enable-check-lisp-object-type --with-modules
'CFLAGS=3D-O0 -ggdb3''
Configured features:
XPM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY GNUTLS
FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS
LIBSYSTEMD JSON PDUMPER GMP
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message rmc dired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec epa epg epg-config gnus-util
rmail rmail-loaddefs time-date mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils phst skeleton derived edmacro
kmacro pcase ffap thingatpt url-parse auth-source cl-seq eieio
eieio-core cl-macs eieio-loaddefs password-cache json map url-vars
subr-x rx gnutls puny seq byte-opt gv bytecomp byte-compile cconv dbus
xml cl-loaddefs cl-lib elec-pair mule-util tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads dbusbind inotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)
Memory information:
((conses 16 59133 6985)
(symbols 48 7776 1)
(strings 32 19985 2242)
(string-bytes 1 656578)
(vectors 16 11266)
(vector-slots 8 146584 7268)
(floats 8 23 16)
(intervals 56 211 0)
(buffers 992 12))
--=20
Google Germany GmbH
Erika-Mann-Stra=C3=9Fe 33
80636 M=C3=BCnchen
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Gesch=C3=A4ftsf=C3=BChrer: Paul Manicle, Halimah DeLaine Prado
If you received this communication by mistake, please don=E2=80=99t forward=
it to
anyone else (it may contain confidential or privileged information), please
erase all copies of it, including all attachments, and please let the sender
know it went to the wrong person. Thanks.
From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 05 13:28:40 2019
Received: (at control) by debbugs.gnu.org; 5 Apr 2019 17:28:40 +0000
Received: from localhost ([127.0.0.1]:46249 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1hCSdr-0007KW-Uw
for submit@debbugs.gnu.org; Fri, 05 Apr 2019 13:28:40 -0400
Received: from mail-pg1-f182.google.com ([209.85.215.182]:44920)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1hCSdp-0007KG-Mj
for control@debbugs.gnu.org; Fri, 05 Apr 2019 13:28:38 -0400
Received: by mail-pg1-f182.google.com with SMTP id i2so3414047pgj.11
for ; Fri, 05 Apr 2019 10:28:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=to:from:subject:openpgp:autocrypt:message-id:date:user-agent
:mime-version:content-language:content-transfer-encoding;
bh=MJqJorpADgCejIgMcSY+JpKbAf+ng1E5JyHScl4c7Ok=;
b=cbPU4KoR8IGLCiNkM7JBh97Ke+spuvONRON4uiwyDJ62yhgmCwtqNbInTXGy5mOsWP
qGTCGmiRy/Q8GB/Y/pwV6SeT+mwBIp3Iy9im/VqJ4LfPT2CLPu6uwpZQdnNvdSvAZCGL
cVR7Sqf9ImgC4E7nGUuCXLNvcoGkOqxwsmP9ay3+Vf81SUwLMq95BkwtBZwNtz7eNBc3
HZwCpoJHW4iYtXV0fwL4YlNT3r4PF9qgV3wAf1WsGDK84xlHhQkxJXaDeL3CMDZAGIyn
5f4KWHo08RDKJFtpp8ukZnOT9gH9hitRA9IIFOwyTTgVF1QykGWjq02tAtMRVJrTRN9e
qjlg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:to:from:subject:openpgp:autocrypt:message-id
:date:user-agent:mime-version:content-language
:content-transfer-encoding;
bh=MJqJorpADgCejIgMcSY+JpKbAf+ng1E5JyHScl4c7Ok=;
b=KdakCXe0X6rlp2sHHUfhwzhcaC7dWatycRxyVCyv5CEanO0tV422PFqLSKHrSib2jf
CUSbF2a2+0n/SF7TM0z0qpKBPtN9spvfOK8e5rhV4YdBCCJXo9OYUHnQKf2l7HpxeqDk
SbQr5QdnZ9DmZo77dcqAdbc7IcTTlT0gwCzMtnai7rllMkDAKe4/jt1PqVIkyVDBS7+U
0hUq5zQZEgAtk/bSzZ78xiDxuWQfVOVXMxVEYZonQpMd5+bqt7igWoFDCfVqeFeyDjwh
cZfftVw365vZiVps0nkmbkhTlnpf46+oyU40iYSe2n+WKuZG45RZE2mfhu7cQaor4YQO
cpvw==
X-Gm-Message-State: APjAAAXr1GMnpYGrgivvmR3TBImimht1MzJkI/q4dlDsPv1cKR1tzLzd
/DzXGDVPLBPVjmBpihGuagUcfKfk
X-Google-Smtp-Source: APXvYqwcciWDyuVlyzFtuuoaonuoEFRDgenp+e68Ybf+W1VkNAiz0qIa223WvtZ+POUvJc3IoMYiEg==
X-Received: by 2002:a62:4815:: with SMTP id v21mr13652958pfa.167.1554485311218;
Fri, 05 Apr 2019 10:28:31 -0700 (PDT)
Received: from [192.168.1.4] ([123.201.54.128])
by smtp.gmail.com with ESMTPSA id x24sm30468943pfn.128.2019.04.05.10.28.29
for
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Fri, 05 Apr 2019 10:28:30 -0700 (PDT)
To: control@debbugs.gnu.org
From: Bhavin Gandhi
Subject: control message for #34949
Openpgp: preference=signencrypt
Autocrypt: addr=bhavin7392@gmail.com; keydata=
mQENBFlvYmcBCADMvY6vWW1mlrMaFjR/zfH8F+POSERMwwJbUIjYQZYdXS6Ka0MoGwscBvqX
K0ANEz98oiQF4YYOXVRjjXuEHa1McuFBhWytcz8CtK0R+z7NZ+1RCZRnycH699ytSFfhg3TW
393hHciwT4pqtJx/XpMpLa3SUtmwCb0nc6XPN/N54Ma/kQoHaAAmLxgIkJuimUyNeW5nfYeD
2oCuWMp3BrPQusSsnUqXRKeZYr0A/4hFG3Fvrz5JQTSunbnkJsEGcaLx5U8R01EagF2t9Weu
dzJEUkuqbgyd32Mvew63HxvzQJ/912i04pbNLJJZWQT7zc/Pq/S8eKTmxJkXuO/8P6D/ABEB
AAG0JEJoYXZpbiBHYW5kaGkgPGJoYXZpbjczOTJAZ21haWwuY29tPokBVAQTAQgAPhYhBFhJ
I56UHw6ygGNwvbRcxA4XNfShBQJZb2JnAhsDBQkDwmcABQsJCAcCBhUICQoLAgQWAgMBAh4B
AheAAAoJELRcxA4XNfShvekH/iJc6mt4UYg74+yJfvlQ1ZIXSgw2+A3meOR9akD0+hxSfJqH
2O+SQ1kJxe6zzkZWhSHrQpNs+EDjreqAJKMFAIbcijsRAQY1rLrz0F3v2jeQqmsFebIOEJyD
gVZkP4/PzbEHPjLCqIZZzF4txVIFen0DGa9oQCQ0HiZeU+5uNpT/lmxcYCy5rUNnDExrHMEN
ntPRq4n3txqa4XTVMvuMCxZ7OdMExQ/Ss9pa2TNS851sUWYPSFo/7E+9/c1Bhf0Mol5aNNPJ
kmafXck9hdlEnww2piA8qpAxadVzZ9EkalkCL9f+jLAwj7CiCWOQntJYOM4Uw16ZBL+enqBi
wxl5H1K5AQ0EWW9iZwEIALwi+JkFmwdA3xzPfknVIVdTOUn30JZSrU0svMPA7+RgW1h/6upq
3919VCn9E+IZLJtt2AoSMLFcMasif1+sd2A1Fh+0cXT7A0deBJCuNUBJQQpTVy3iQCR02cRW
fC3x2/f7DDZyZJI46pTxSY5fYiYcGf9yVrtLAdGCTNZiVKMpSD73aPUSv9Emt9Aytj6aMHRM
I/R2AVaWaXeP5YW5sgmh6ANfXXLDH8epbLBEqg2Ewtt2oqZz8I4AGq+hTvd/hcw2UR/D3SmF
QuZWy+A+F77updlz7K+5cUcu5Su/Ad+LZRi86/7mhVMZz+WQKvJlKEkmwgfqCtkgHNpIdHdG
BP0AEQEAAYkBPAQYAQgAJhYhBFhJI56UHw6ygGNwvbRcxA4XNfShBQJZb2JnAhsMBQkDwmcA
AAoJELRcxA4XNfShZ2IH/RSlP61KkIVLhEnHJkQorh8a/zn+qO9mWcJN67Wze8b5dTZnoUkr
cYvtVe4n51nnCNy3qMZYGjZIJuLuB/GFec+9EPhAxaKYlpLKlBMJwXhZ6XCgMNIMTMw23JiR
QxIr5rfi/0Y8hybM9Ycu4KNMowW0TbwR78UB8eRQ7dCLFv+b8PjjkJ1dXmE64KYozzxmluor
nosxNaL3KGSrxF2FPY8WVizERQ/cju3yDGg4O95wLc4j4B4HurMlOzsOR+jEcWtNBF16T9cf
fKYLr5NrS03ffPHgVMasNIYfzniIiPgPpWkgUMasUDIul4XMKPXLMt6Mz9e9WHmIN44DuRYu V24=
Message-ID: <517a9621-0152-45e9-4ae4-9484dae2ad92@gmail.com>
Date: Fri, 5 Apr 2019 22:58:28 +0530
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
Thunderbird/60.5.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -0.8 (/)
tags 34949 confirmed
From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 09 18:41:01 2019
Received: (at 34949) by debbugs.gnu.org; 9 Oct 2019 22:41:02 +0000
Received: from localhost ([127.0.0.1]:54398 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1iIKdh-0000JF-LC
for submit@debbugs.gnu.org; Wed, 09 Oct 2019 18:41:01 -0400
Received: from quimby.gnus.org ([80.91.231.51]:46150)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1iIKdg-0000J6-77
for 34949@debbugs.gnu.org; Wed, 09 Oct 2019 18:41:00 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.89) (envelope-from )
id 1iIKdc-0005aS-Kj; Thu, 10 Oct 2019 00:40:59 +0200
From: Lars Ingebrigtsen
To: Philipp Stephani
Subject: Re: bug#34949: 27.0.50; Docstring of `vc-deduce-fileset' incomplete
References:
Date: Thu, 10 Oct 2019 00:40:56 +0200
In-Reply-To: (Philipp
Stephani's message of "Fri, 22 Mar 2019 18:50:52 +0100")
Message-ID: <877e5dzgnb.fsf@gnus.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
@@CONTACT_ADDRESS@@ for details.
Content preview: Philipp Stephani writes: > The
docstring
of `vc-deduce-fileset' doesn't describe the OBSERVER > parameter. It also
doesn't explain the meaning of the return values > FILESET-ONLY-FILES, STATE,
and CHECKOUT-MODEL.
Content analysis details: (-2.9 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 34949
Cc: 34949@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
Philipp Stephani writes:
> The docstring of `vc-deduce-fileset' doesn't describe the OBSERVER
> parameter. It also doesn't explain the meaning of the return values
> FILESET-ONLY-FILES, STATE, and CHECKOUT-MODEL.
The OBSERVER thing is a long-standing issue, and people have added
comments about that parameter for decades. It now states (incorrectly):
;; FIXME: OBSERVER is unused. The name is not intuitive and is not
;; documented. It's set to t when called from diff and print-log.
(let (backend)
(cond
((derived-mode-p 'vc-dir-mode)
(vc-dir-deduce-fileset state-model-only-files))
((derived-mode-p 'dired-mode)
(if observer
(vc-dired-deduce-fileset)
(error "State changing VC operations not supported in `dired-mode'")))
But we see that it's used, and used for one thing only: If we call this
function in a dired buffer, the function will signal an error if
OBSERVER is nil. So all the callers of this function pass in t if it's
a non-state-changing operation.
Or am I reading the code wrong?
So the parameter does make some sense: OBSERVER non-nil means that it's
a non-destructive operation we're doing to do (but we only care in dired
buffers).
Having that check in this function may be a bit odd, but...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 24 14:53:57 2019
Received: (at 34949) by debbugs.gnu.org; 24 Dec 2019 19:53:57 +0000
Received: from localhost ([127.0.0.1]:53087 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1ijqFh-00011u-Hj
for submit@debbugs.gnu.org; Tue, 24 Dec 2019 14:53:57 -0500
Received: from mail-wr1-f51.google.com ([209.85.221.51]:46796)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1ijqFf-00011h-6T
for 34949@debbugs.gnu.org; Tue, 24 Dec 2019 14:53:56 -0500
Received: by mail-wr1-f51.google.com with SMTP id z7so20490838wrl.13
for <34949@debbugs.gnu.org>; Tue, 24 Dec 2019 11:53:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=sender:subject:to:cc:references:from:message-id:date:user-agent
:mime-version:in-reply-to:content-language:content-transfer-encoding;
bh=fmVo+WrtFJXmeWlJdvSVPqlLoByxJvGa6D8iEfapyJs=;
b=K1lyjMI++h5mAprLOMnt5EUOZpjSpcqh1fW6Q6M5cj7GWQz1hg8aI9ygyqnyModcdY
pz7aPJHXBh1MLlFqtQ3+YC1cmDSGzj6m4gFsnJRKkPsVmBH6PYI42FNK6P9OY3RDUdDx
ClFHp0XWsou9a9KoNwS7qW7sFA9JH03MV+/9lhghnbtFY5F1GakIYt+iO8UWOci6SH2C
o2t2QWLxcongfEaMv70y7yBHtHoUhZNKFVBisLq8nIRCSJ/ZPSjbP4/NFbIFYG9ml3VU
ytW3QHJYJNidZgo8aLWqLZ0x7hqMQBVVtX6F7iZ2uvJSmNApmbjiavLJ5rSEe41JFPds
gz3A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:sender:subject:to:cc:references:from:message-id
:date:user-agent:mime-version:in-reply-to:content-language
:content-transfer-encoding;
bh=fmVo+WrtFJXmeWlJdvSVPqlLoByxJvGa6D8iEfapyJs=;
b=T2mhW1c4zDedjZFe00UiLfcyKcMSdhtTlgy0fOylYr5teHf1mdiL6i5+/Ws10ZFaBS
wl3fYhkQ/l+uPSJGXtWGOmZeAU6GNypuuhaA8gQD4vFiHTw1/FrWBoz13uTGirjG4i1J
tzRL+3vy8EFe/2AlCRx3eA5xhvuJMSMoMNN3QPhrJjI6TlhGUj/o74sRQsgjauucWiSg
Rwa2TgPkMc0z88EeTeWwgVHDJ0bDtJ0xc3MxPJ5aDzTLgAfMIRellDx9Ol4bANwj1MNt
E2kdlmaXYfll8fGG6ZTGENZfqAJComfJdByIbaOoGmSG4ygQghfnJZN0kAi+Gjl/Ckvc
coOg==
X-Gm-Message-State: APjAAAUyoD8xShd6OY6RX9cO9/cTq+AVJaAFwnIJX2FassZ9M7ziyxXm
XoPK0TEAEvgtzE+yAhYaYrc=
X-Google-Smtp-Source: APXvYqwHELx4P+Xc0oDpIV4xR56PL3vz/C8Wggaw0KXRLOdssKpFcAIf599MH2cmITyCBUIhhE1Xjg==
X-Received: by 2002:adf:e5cf:: with SMTP id a15mr19838794wrn.140.1577217229261;
Tue, 24 Dec 2019 11:53:49 -0800 (PST)
Received: from [192.168.0.2] ([212.50.117.215])
by smtp.googlemail.com with ESMTPSA id z187sm3535894wme.16.2019.12.24.11.53.47
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Tue, 24 Dec 2019 11:53:48 -0800 (PST)
Subject: Re: bug#34949: 27.0.50; Docstring of `vc-deduce-fileset' incomplete
To: Lars Ingebrigtsen ,
Philipp Stephani
References:
<877e5dzgnb.fsf@gnus.org>
From: Dmitry Gutov
Message-ID: <932cfe15-5e8b-1bf4-5b81-9d0f2a513dea@yandex.ru>
Date: Tue, 24 Dec 2019 21:53:46 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <877e5dzgnb.fsf@gnus.org>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 34949
Cc: Dan Nicolaescu , 34949@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -0.5 (/)
Hi Lars,
On 10.10.2019 1:40, Lars Ingebrigtsen wrote:
> But we see that it's used, and used for one thing only: If we call this
> function in a dired buffer, the function will signal an error if
> OBSERVER is nil. So all the callers of this function pass in t if it's
> a non-state-changing operation.
This is my impression as well.
> So the parameter does make some sense: OBSERVER non-nil means that it's
> a non-destructive operation we're doing to do (but we only care in dired
> buffers).
Exactly. So step 1 is probably to document is with 1-2 lines in a
docstring. Maybe a rename as well? E.g. to READONLY-OPERATION.
> Having that check in this function may be a bit odd, but...
I think it's fine to have it there, since most VC commands end up
calling this function.
What I don't fully understand, however, is why prohibit state-changing
operations in Dired buffers. Is it just because there's no VC-Dir buffer
easily at hand, to update the visible file statuses?
Or maybe it's for the user not to circumvent the "similar VC states"
logic in VC-Dir.
From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 24 21:14:29 2019
Received: (at 34949) by debbugs.gnu.org; 25 Dec 2019 02:14:29 +0000
Received: from localhost ([127.0.0.1]:53191 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1ijwBx-0005ni-Ig
for submit@debbugs.gnu.org; Tue, 24 Dec 2019 21:14:29 -0500
Received: from brown.elm.relay.mailchannels.net ([23.83.212.23]:38369)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1ijwBu-0005nY-HV
for 34949@debbugs.gnu.org; Tue, 24 Dec 2019 21:14:27 -0500
X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org
Received: from relay.mailchannels.net (localhost [127.0.0.1])
by relay.mailchannels.net (Postfix) with ESMTP id 09B905A0771;
Wed, 25 Dec 2019 02:14:25 +0000 (UTC)
Received: from pdx1-sub0-mail-a50.g.dreamhost.com
(100-96-206-10.trex.outbound.svc.cluster.local [100.96.206.10])
(Authenticated sender: dreamhost)
by relay.mailchannels.net (Postfix) with ESMTPA id 82F165A0710;
Wed, 25 Dec 2019 02:14:24 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org
Received: from pdx1-sub0-mail-a50.g.dreamhost.com ([TEMPUNAVAIL].
[64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384)
by 0.0.0.0:2500 (trex/5.18.5); Wed, 25 Dec 2019 02:14:24 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org
X-MailChannels-Auth-Id: dreamhost
X-Relation-Squirrel: 56661cf84d263686_1577240064787_601736018
X-MC-Loop-Signature: 1577240064786:35824154
X-MC-Ingress-Time: 1577240064786
Received: from pdx1-sub0-mail-a50.g.dreamhost.com (localhost [127.0.0.1])
by pdx1-sub0-mail-a50.g.dreamhost.com (Postfix) with ESMTP id 483E17F07C;
Tue, 24 Dec 2019 18:14:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc
:subject:references:date:in-reply-to:message-id:mime-version
:content-type; s=linkov.net; bh=qzWRcijXuKH39y2p8Aqss1InAzQ=; b=
KwlgzD4mCpjkpdCRLTt/eTg4mxKxPeFphoIT6gpAg41jOEMW4NyCDbybUhxRo/e9
WbMgV7h85DSN1lCRmRp8n2Q04DkXjO2F/fe6+rS48AK7ZDWbB3E8za6n7n3r93Ug
G/cUsjGOjy7DZzh3bnPox/0FzSit95YXfQApniWNCmc=
Received: from mail.jurta.org (m91-129-107-186.cust.tele2.ee [91.129.107.186])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256
bits)) (No client certificate requested)
(Authenticated sender: jurta@jurta.org)
by pdx1-sub0-mail-a50.g.dreamhost.com (Postfix) with ESMTPSA id CAE487F077;
Tue, 24 Dec 2019 18:14:15 -0800 (PST)
X-DH-BACKEND: pdx1-sub0-mail-a50
From: Juri Linkov
To: Dmitry Gutov
Subject: Re: bug#34949: 27.0.50; Docstring of `vc-deduce-fileset' incomplete
Organization: LINKOV.NET
References:
<877e5dzgnb.fsf@gnus.org>
<932cfe15-5e8b-1bf4-5b81-9d0f2a513dea@yandex.ru>
Date: Wed, 25 Dec 2019 01:28:01 +0200
In-Reply-To: <932cfe15-5e8b-1bf4-5b81-9d0f2a513dea@yandex.ru> (Dmitry Gutov's
message of "Tue, 24 Dec 2019 21:53:46 +0200")
Message-ID: <87a77hqp6m.fsf@mail.linkov.net>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-VR-OUT-STATUS: OK
X-VR-OUT-SCORE: -100
X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrvddvvddgudeglecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtjedrudekieenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdejrddukeeipdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepughguhhtohhvseihrghnuggvgidrrhhunecuvehluhhsthgvrhfuihiivgeptd
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 34949
Cc: Lars Ingebrigtsen , Dan Nicolaescu ,
34949@debbugs.gnu.org, Philipp Stephani
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
> What I don't fully understand, however, is why prohibit state-changing
> operations in Dired buffers. Is it just because there's no VC-Dir buffer
> easily at hand, to update the visible file statuses?
Exactly the same question I ask myself every time I forget about this limitation
and type 'C-x v v' in Dired.
From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 25 16:45:40 2019
Received: (at 34949) by debbugs.gnu.org; 25 Dec 2019 21:45:41 +0000
Received: from localhost ([127.0.0.1]:54724 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1ikETM-0003QN-Lc
for submit@debbugs.gnu.org; Wed, 25 Dec 2019 16:45:40 -0500
Received: from quimby.gnus.org ([95.216.78.240]:33042)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1ikETL-0003Q3-9D
for 34949@debbugs.gnu.org; Wed, 25 Dec 2019 16:45:39 -0500
Received: from 77.16.52.139.tmi.telenormobil.no ([77.16.52.139] helo=sandy)
by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.92) (envelope-from )
id 1ikETB-0002j1-Pg; Wed, 25 Dec 2019 22:45:32 +0100
From: Lars Ingebrigtsen
To: Dmitry Gutov
Subject: Re: bug#34949: 27.0.50; Docstring of `vc-deduce-fileset' incomplete
References:
<877e5dzgnb.fsf@gnus.org>
<932cfe15-5e8b-1bf4-5b81-9d0f2a513dea@yandex.ru>
Date: Wed, 25 Dec 2019 22:45:28 +0100
In-Reply-To: <932cfe15-5e8b-1bf4-5b81-9d0f2a513dea@yandex.ru> (Dmitry Gutov's
message of "Tue, 24 Dec 2019 21:53:46 +0200")
Message-ID: <87v9q42i6f.fsf@gnus.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.60 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
@@CONTACT_ADDRESS@@ for details.
Content preview: Dmitry Gutov writes: > What I don't fully
understand, however, is why prohibit state-changing > operations in Dired
buffers. Is it just because there's no VC-Dir > buffer easily at hand, to
update the visible file statuse [...]
Content analysis details: (-2.9 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was
blocked. See
http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
for more information. [URIs: ingebrigtsen.no]
-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
0.0 TVD_RCVD_IP Message was received from an IP address
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 34949
Cc: Philipp Stephani , Dan Nicolaescu ,
34949@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
Dmitry Gutov writes:
> What I don't fully understand, however, is why prohibit state-changing
> operations in Dired buffers. Is it just because there's no VC-Dir
> buffer easily at hand, to update the visible file statuses?
Yeah, that is rather odd...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 17 19:15:05 2020
Received: (at 34949) by debbugs.gnu.org; 18 Feb 2020 00:15:05 +0000
Received: from localhost ([127.0.0.1]:39380 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1j3qXY-0000rK-QI
for submit@debbugs.gnu.org; Mon, 17 Feb 2020 19:15:05 -0500
Received: from brown.birch.relay.mailchannels.net ([23.83.209.23]:62133)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1j3qXW-0000q0-AD
for 34949@debbugs.gnu.org; Mon, 17 Feb 2020 19:15:02 -0500
X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org
Received: from relay.mailchannels.net (localhost [127.0.0.1])
by relay.mailchannels.net (Postfix) with ESMTP id 4BB8B22B75;
Tue, 18 Feb 2020 00:15:01 +0000 (UTC)
Received: from pdx1-sub0-mail-a38.g.dreamhost.com
(100-96-217-4.trex.outbound.svc.cluster.local [100.96.217.4])
(Authenticated sender: dreamhost)
by relay.mailchannels.net (Postfix) with ESMTPA id D27FA22C09;
Tue, 18 Feb 2020 00:15:00 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org
Received: from pdx1-sub0-mail-a38.g.dreamhost.com ([TEMPUNAVAIL].
[64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384)
by 0.0.0.0:2500 (trex/5.18.5); Tue, 18 Feb 2020 00:15:01 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org
X-MailChannels-Auth-Id: dreamhost
X-Descriptive-Fearful: 0a0d1085636ba595_1581984901099_2413300860
X-MC-Loop-Signature: 1581984901099:328043626
X-MC-Ingress-Time: 1581984901099
Received: from pdx1-sub0-mail-a38.g.dreamhost.com (localhost [127.0.0.1])
by pdx1-sub0-mail-a38.g.dreamhost.com (Postfix) with ESMTP id 06AF0B2700;
Mon, 17 Feb 2020 16:14:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc
:subject:references:date:in-reply-to:message-id:mime-version
:content-type; s=linkov.net; bh=TzTNronUZgOerkZcxQj2ZXxeb8U=; b=
3LJQt1vrnwHxcNSRcCjVSluGpG8o0/lQGtlbw9jc5Bq8p/GAUOKm6R+5ZzMCmKAf
TtcBv7Hw7vL9QMOgfqKt9zNF2eS/nLd4H14m2hcrDHb1RBXydvABQHk83rPM3zW/
M08MmmmqA9Skwh2KAYLWJbltfKldwPp7Joga5SDffjw=
Received: from localhost.linkov.net (m91-129-103-27.cust.tele2.ee
[91.129.103.27])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
(Authenticated sender: jurta@jurta.org)
by pdx1-sub0-mail-a38.g.dreamhost.com (Postfix) with ESMTPSA id 42D8BB279A;
Mon, 17 Feb 2020 16:14:53 -0800 (PST)
X-DH-BACKEND: pdx1-sub0-mail-a38
From: Juri Linkov
To: Dmitry Gutov
Subject: Re: bug#34949: 27.0.50; Docstring of `vc-deduce-fileset' incomplete
References:
<877e5dzgnb.fsf@gnus.org>
<932cfe15-5e8b-1bf4-5b81-9d0f2a513dea@yandex.ru>
<87a77hqp6m.fsf@mail.linkov.net>
Date: Tue, 18 Feb 2020 01:42:13 +0200
In-Reply-To: <87a77hqp6m.fsf@mail.linkov.net> (Juri Linkov's message of "Wed,
25 Dec 2019 01:28:01 +0200")
Message-ID: <87zhdghjca.fsf@mail.linkov.net>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-VR-OUT-STATUS: OK
X-VR-OUT-SCORE: -100
X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrjeejgddulecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufhffjgfkfgggtgesmhdtreertdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdefrddvjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehlohgtrghlhhhoshhtrdhlihhnkhhovhdrnhgvthdpihhnvghtpeeluddruddvledruddtfedrvdejpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepughguhhtohhvseihrghnuggvgidrrhhu
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 34949
Cc: Lars Ingebrigtsen , 34949@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
--=-=-=
Content-Type: text/plain
>> What I don't fully understand, however, is why prohibit state-changing
>> operations in Dired buffers. Is it just because there's no VC-Dir buffer
>> easily at hand, to update the visible file statuses?
>
> Exactly the same question I ask myself every time I forget about this limitation
> and type 'C-x v v' in Dired.
I see now why it's difficult to support state changing VC operations in dired.
The difficultly comes from the need to get a VC state from every marked file
and to confirm that all marked files are in the same state.
So I implemented this in vc-dired-deduce-fileset whose basic
algorithm was taken from vc-dir-deduce-fileset.
Now with this patch state changing VC operations are supported on marked
_files_ in dired.
However, the need for the OBSERVER arg still remains because this patch
doesn't support state changing VC operations on marked _directories_ in dired.
It raises the error in this case:
State changing VC operations on directories not supported in `dired-mode'
State changing VC operations could be supported on directories as well,
but there are several possibilities to choose from, and I can't decide:
1. On a marked directory get a state from all its files
(probably this variant makes no sense)
2. On a marked directory get only files with a "modified" state
(i.e. edited/added/removed)
But the latter is not easy to implement because the needed functionality
is missing in VC, because the only VC method that is suitable for this is
'dir-status-files' to get VC files from a directory but it's too tightly
integrated with vc-dir and can't be easily separated, i.e. there is
no easy way to do something like:
(with-temp-buffer
(vc-call-backend
(vc-responsible-backend default-directory) 'dir-status-files default-directory nil
(lambda (entries &optional more-to-come)
(message "! %S" entries))))
Once we decide how to support marked directories in dired, the arg OBSERVER
can be deprecated.
--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline; filename=vc-dired-deduce-fileset.patch
diff --git a/lisp/vc/vc-dispatcher.el b/lisp/vc/vc-dispatcher.el
index 5ae300bf09..4a04c9365a 100644
--- a/lisp/vc/vc-dispatcher.el
+++ b/lisp/vc/vc-dispatcher.el
@@ -746,7 +746,8 @@ vc-finish-logentry
(defun vc-dispatcher-browsing ()
"Are we in a directory browser buffer?"
- (derived-mode-p 'vc-dir-mode))
+ (or (derived-mode-p 'vc-dir-mode)
+ (derived-mode-p 'dired-mode)))
;; These are unused.
;; (defun vc-dispatcher-in-fileset-p (fileset)
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index ec252b74d4..bba1fb5919 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -1032,9 +1032,7 @@ vc-deduce-fileset
((derived-mode-p 'vc-dir-mode)
(vc-dir-deduce-fileset state-model-only-files))
((derived-mode-p 'dired-mode)
- (if observer
- (vc-dired-deduce-fileset)
- (error "State changing VC operations not supported in `dired-mode'")))
+ (vc-dired-deduce-fileset state-model-only-files observer))
((setq backend (vc-backend buffer-file-name))
(if state-model-only-files
(list backend (list buffer-file-name)
@@ -1046,7 +1044,8 @@ vc-deduce-fileset
;; FIXME: Why this test? --Stef
(or (buffer-file-name vc-parent-buffer)
(with-current-buffer vc-parent-buffer
- (derived-mode-p 'vc-dir-mode))))
+ (or (derived-mode-p 'vc-dir-mode)
+ (derived-mode-p 'dired-mode)))))
(progn ;FIXME: Why not `with-current-buffer'? --Stef.
(set-buffer vc-parent-buffer)
(vc-deduce-fileset observer allow-unregistered state-model-only-files)))
@@ -1066,9 +1065,31 @@ vc-deduce-fileset
(list buffer-file-name))))
(t (error "File is not under version control")))))
-(defun vc-dired-deduce-fileset ()
- (list (vc-responsible-backend default-directory)
- (dired-map-over-marks (dired-get-filename nil t) nil)))
+(declare-function dired-get-marked-files "dired"
+ (&optional localp arg filter distinguish-one-marked error))
+
+(defun vc-dired-deduce-fileset (&optional state-model-only-files observer)
+ (let ((backend (vc-responsible-backend default-directory))
+ (files (dired-get-marked-files nil nil nil nil t))
+ only-files-list
+ state
+ model)
+ (when (and (not observer) (cl-some #'file-directory-p files))
+ (error "State changing VC operations on directories not supported in `dired-mode'"))
+
+ (when state-model-only-files
+ (setq only-files-list (mapcar (lambda (file) (cons file (vc-state file))) files))
+ (setq state (cdar only-files-list))
+ ;; Check that all files are in a consistent state, since we use that
+ ;; state to decide which operation to perform.
+ (dolist (crt (cdr only-files-list))
+ (unless (vc-compatible-state (cdr crt) state)
+ (error "When applying VC operations to multiple files, the files are required\nto be in similar VC states.\n%s in state %s clashes with %s in state %s"
+ (car crt) (cdr crt) (caar only-files-list) state)))
+ (setq only-files-list (mapcar 'car only-files-list))
+ (when (and state (not (eq state 'unregistered)))
+ (setq model (vc-checkout-model backend only-files-list))))
+ (list backend files only-files-list state model)))
(defun vc-ensure-vc-buffer ()
"Make sure that the current buffer visits a version-controlled file."
--=-=-=--
From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 18 17:27:23 2020
Received: (at 34949) by debbugs.gnu.org; 18 Feb 2020 22:27:23 +0000
Received: from localhost ([127.0.0.1]:41420 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1j4BKs-0006Vm-Qg
for submit@debbugs.gnu.org; Tue, 18 Feb 2020 17:27:23 -0500
Received: from mail-wm1-f50.google.com ([209.85.128.50]:51708)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1j4BKq-0006VZ-Sl
for 34949@debbugs.gnu.org; Tue, 18 Feb 2020 17:27:21 -0500
Received: by mail-wm1-f50.google.com with SMTP id t23so4407381wmi.1
for <34949@debbugs.gnu.org>; Tue, 18 Feb 2020 14:27:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=sender:subject:to:cc:references:from:message-id:date:user-agent
:mime-version:in-reply-to:content-language:content-transfer-encoding;
bh=KexrUPX377keLo4VkbGbLcW/ve00+udrDIrTcIiF60k=;
b=G1FFc93N7k54CNjYkLy7Z6UJ8hM9nNIn1pyYqk3bmpUYQzcCvDFAiRavpwZGVcxZ22
N5RoA4f0hEIuh/7bZFnCdo9Dbl7ymPyWlwgsJU+SBr4aWJmtGRJOcsOYN0ewRtrQIyiS
jqdybOUHXLRe7SEDXOFLHDLBr+CEq+wNDfzJ9xS6MDBU1t7Uw1wSQEsYvx5CJ4AmANeP
lNcqsRUOXqWrIZvOlDSkV3PimvDaIJhI3zVIpRYpkPfGkpOFfKkt4Z112rY4J6GNC6ej
AaUqbEN7MSkH2SAIb29XEIt79ljyMEY/ojzQlIGHjo7YIW674wdA7wTTuYAe9M73x4M4
BpUw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:sender:subject:to:cc:references:from:message-id
:date:user-agent:mime-version:in-reply-to:content-language
:content-transfer-encoding;
bh=KexrUPX377keLo4VkbGbLcW/ve00+udrDIrTcIiF60k=;
b=gz6LoxZ0OlQwSv1/X+vQ4CSWE4ZHU2s/uzTuuGbUrDSXfMs8ThWDc6fhCc9Rq8qodm
ZEbUB62BjALyEFuKK+Z4g2DlJJDwj3AVynkx5pbXu+NTvSYuwPi8PznpcJy46qTeSyMn
gHzZtwQ3+lBdO963HhwN6PArZ8vvChcHpCEGYrIc1A2qQd0X3ZzLr0d1PfJ4iq8AeEUu
CaY3xB6SXaZtz7cJOgLDN8OHGxpzYOaVJTsaC+0JVKZf/kPA9l4rNS0/Nvn/zXNAT59h
cR2JTXdO7sIp2tmW3nsDIcNnTIGY0oplm11buRj4Qt79YgG2xi5twqonXndUqx17DFSc
2grA==
X-Gm-Message-State: APjAAAW2Xr3Vx/PyGRJNgSqtEsPs7Va2Fz7esWlaGoONKm5rLN2QBeHB
n6eAdn2nVzE4X3euz4/znwWyQCf+
X-Google-Smtp-Source: APXvYqx+y9isSor1yJS+t12YBMc+yF3wglFw8f7MbLA4HWkErYUyL+YgZsnhwvXRUf+giYl+owdceQ==
X-Received: by 2002:a1c:791a:: with SMTP id l26mr5508810wme.58.1582064834598;
Tue, 18 Feb 2020 14:27:14 -0800 (PST)
Received: from [192.168.0.3] ([66.205.73.129])
by smtp.googlemail.com with ESMTPSA id z21sm285697wml.5.2020.02.18.14.27.12
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Tue, 18 Feb 2020 14:27:13 -0800 (PST)
Subject: Re: bug#34949: 27.0.50; Docstring of `vc-deduce-fileset' incomplete
To: Juri Linkov
References:
<877e5dzgnb.fsf@gnus.org> <932cfe15-5e8b-1bf4-5b81-9d0f2a513dea@yandex.ru>
<87a77hqp6m.fsf@mail.linkov.net> <87zhdghjca.fsf@mail.linkov.net>
From: Dmitry Gutov
Message-ID: <5d2163b9-4bf4-e072-ef9e-0fc1550a2108@yandex.ru>
Date: Wed, 19 Feb 2020 00:27:12 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <87zhdghjca.fsf@mail.linkov.net>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 34949
Cc: Lars Ingebrigtsen , 34949@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -0.5 (/)
On 18.02.2020 1:42, Juri Linkov wrote:
> The difficultly comes from the need to get a VC state from every marked file
> and to confirm that all marked files are in the same state.
Makes sense, that was my second guess.
> So I implemented this in vc-dired-deduce-fileset whose basic
> algorithm was taken from vc-dir-deduce-fileset.
>
> Now with this patch state changing VC operations are supported on marked
> _files_ in dired.
TBH, I'm not sure this is a win (we have VC-Dir for a reason), but if
you really want to be able to do that in Dired, why not. Please feel
free to install this.
> However, the need for the OBSERVER arg still remains because this patch
> doesn't support state changing VC operations on marked _directories_ in dired.
> It raises the error in this case:
>
> State changing VC operations on directories not supported in `dired-mode'
>
> State changing VC operations could be supported on directories as well,
> but there are several possibilities to choose from, and I can't decide:
>
> 1. On a marked directory get a state from all its files
> (probably this variant makes no sense)
>
> 2. On a marked directory get only files with a "modified" state
> (i.e. edited/added/removed)
You can check out what diff-hl-dired does in this regard (and it does
use the dir-status-files command), though you would need to do something
else than its merging logic.
That still leaves the downside (compared to VC-Dir) of being unable to
select individual files in subdirectories, but that's not fixable, I guess.
> But the latter is not easy to implement because the needed functionality
> is missing in VC, because the only VC method that is suitable for this is
> 'dir-status-files' to get VC files from a directory but it's too tightly
> integrated with vc-dir and can't be easily separated, i.e. there is
> no easy way to do something like:
>
> (with-temp-buffer
> (vc-call-backend
> (vc-responsible-backend default-directory) 'dir-status-files default-directory nil
> (lambda (entries &optional more-to-come)
> (message "! %S" entries))))
I think the only possible problem here is that lambda is invoked
asynchronously. But we can sleep while waiting for it.
From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 18 18:37:29 2020
Received: (at 34949) by debbugs.gnu.org; 18 Feb 2020 23:37:29 +0000
Received: from localhost ([127.0.0.1]:41470 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1j4CQj-0008E7-FT
for submit@debbugs.gnu.org; Tue, 18 Feb 2020 18:37:29 -0500
Received: from caracal.birch.relay.mailchannels.net ([23.83.209.30]:30606)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1j4CQh-0008Dy-ID
for 34949@debbugs.gnu.org; Tue, 18 Feb 2020 18:37:28 -0500
X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org
Received: from relay.mailchannels.net (localhost [127.0.0.1])
by relay.mailchannels.net (Postfix) with ESMTP id 25FCF3421DD;
Tue, 18 Feb 2020 23:37:26 +0000 (UTC)
Received: from pdx1-sub0-mail-a86.g.dreamhost.com
(100-96-38-98.trex.outbound.svc.cluster.local [100.96.38.98])
(Authenticated sender: dreamhost)
by relay.mailchannels.net (Postfix) with ESMTPA id AD8523421C6;
Tue, 18 Feb 2020 23:37:25 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org
Received: from pdx1-sub0-mail-a86.g.dreamhost.com ([TEMPUNAVAIL].
[64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384)
by 0.0.0.0:2500 (trex/5.18.5); Tue, 18 Feb 2020 23:37:26 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org
X-MailChannels-Auth-Id: dreamhost
X-Continue-Celery: 1cb8519901caa0f3_1582069045950_2566544044
X-MC-Loop-Signature: 1582069045950:1918878449
X-MC-Ingress-Time: 1582069045950
Received: from pdx1-sub0-mail-a86.g.dreamhost.com (localhost [127.0.0.1])
by pdx1-sub0-mail-a86.g.dreamhost.com (Postfix) with ESMTP id 2D4717EF8A;
Tue, 18 Feb 2020 15:37:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc
:subject:references:date:in-reply-to:message-id:mime-version
:content-type:content-transfer-encoding; s=linkov.net; bh=XAMOLB
KTkKr0JURe+6IEGWhD8Nw=; b=m3yColhIjjS4jODsmfpgWQJugzuU3zh9I6v721
RHkLeZQxOJLMpb6GEfXd11x4BEiGFJeLwPmB3t57cR/dxIMkb6vWAzQtjJMDvh2C
ZcoRBwVQnzTmwFe5lqbhNbtcbcerJiwY8w+vPnkPyI+PBSjjl6eUOhaZaQGpEcQs
4c1bI=
Received: from localhost.linkov.net (m91-129-103-27.cust.tele2.ee
[91.129.103.27])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
(Authenticated sender: jurta@jurta.org)
by pdx1-sub0-mail-a86.g.dreamhost.com (Postfix) with ESMTPSA id 651E87EF6E;
Tue, 18 Feb 2020 15:37:16 -0800 (PST)
X-DH-BACKEND: pdx1-sub0-mail-a86
From: Juri Linkov
To: Dmitry Gutov
Subject: Re: bug#34949: 27.0.50; Docstring of `vc-deduce-fileset' incomplete
Organization: LINKOV.NET
References:
<877e5dzgnb.fsf@gnus.org>
<932cfe15-5e8b-1bf4-5b81-9d0f2a513dea@yandex.ru>
<87a77hqp6m.fsf@mail.linkov.net> <87zhdghjca.fsf@mail.linkov.net>
<5d2163b9-4bf4-e072-ef9e-0fc1550a2108@yandex.ru>
Date: Wed, 19 Feb 2020 01:36:49 +0200
In-Reply-To: <5d2163b9-4bf4-e072-ef9e-0fc1550a2108@yandex.ru> (Dmitry Gutov's
message of "Wed, 19 Feb 2020 00:27:12 +0200")
Message-ID: <87imk35uy6.fsf@mail.linkov.net>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
X-VR-OUT-STATUS: OK
X-VR-OUT-SCORE: -100
X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrjeelgddutdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtgfesthekredttderjeenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdefrddvjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehlohgtrghlhhhoshhtrdhlihhnkhhovhdrnhgvthdpihhnvghtpeeluddruddvledruddtfedrvdejpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepughguhhtohhvseihrghnuggvgidrrhhu
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 34949
Cc: Lars Ingebrigtsen , 34949@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
>> So I implemented this in vc-dired-deduce-fileset whose basic
>> algorithm was taken from vc-dir-deduce-fileset.
>> Now with this patch state changing VC operations are supported on mark=
ed
>> _files_ in dired.
>
> TBH, I'm not sure this is a win (we have VC-Dir for a reason),
Often I need to quickly commit one or a few marked files in the same
Dired directory without needlessly starting VC-Dir - this is when such
feature comes handy. Even it's possible to mark files in several
subdirectories inserted in the same Dired buffer.
> but if you really want to be able to do that in Dired, why not. Please
> feel free to install this.
Installed to master.
>> However, the need for the OBSERVER arg still remains because this patc=
h
>> doesn't support state changing VC operations on marked _directories_ i=
n dired.
>> It raises the error in this case:
>> State changing VC operations on directories not supported in
>> `dired-mode'
>> State changing VC operations could be supported on directories as well=
,
>> but there are several possibilities to choose from, and I can't decide=
:
>> 1. On a marked directory get a state from all its files
>> (probably this variant makes no sense)
>> 2. On a marked directory get only files with a "modified" state
>> (i.e. edited/added/removed)
>
> You can check out what diff-hl-dired does in this regard (and it does u=
se
> the dir-status-files command), though you would need to do something el=
se
> than its merging logic.
Thanks, I use diff-hl-dired, but not realized it relies on dir-status-fil=
es.
Maybe dir-status-files could be simplified, so that it wouldn't require
a special buffer to be current, and could be called in any buffer,
but this simplification is not much needed.
> That still leaves the downside (compared to VC-Dir) of being unable to
> select individual files in subdirectories, but that's not fixable, I gu=
ess.
When calling the already supported =E2=80=98C-x v =3D=E2=80=99 (vc-diff) =
on a subdirectory
in Dired, it operates on all modified files, so it makes sense to commit
exactly the same files whose diffs are displayed in the *vc-diff* buffer.
The same way we could add a new command to commit all modified files
in the repository. When =E2=80=98C-x v D=E2=80=99 (vc-root-diff) display=
s the
*vc-diff* buffer with all modifications, a new command like =E2=80=98C-x =
v V=E2=80=99
could commit all of them.
>> But the latter is not easy to implement because the needed functionali=
ty
>> is missing in VC, because the only VC method that is suitable for this=
is
>> 'dir-status-files' to get VC files from a directory but it's too tight=
ly
>> integrated with vc-dir and can't be easily separated, i.e. there is
>> no easy way to do something like:
>> (with-temp-buffer
>> (vc-call-backend
>> (vc-responsible-backend default-directory) 'dir-status-files def=
ault-directory nil
>> (lambda (entries &optional more-to-come)
>> (message "! %S" entries))))
>
> I think the only possible problem here is that lambda is invoked
> asynchronously. But we can sleep while waiting for it.
Would it be possible to call dir-status-files synchronously?
From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 20 19:10:27 2020
Received: (at 34949) by debbugs.gnu.org; 21 Feb 2020 00:10:27 +0000
Received: from localhost ([127.0.0.1]:46116 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1j4vti-0005Ak-PE
for submit@debbugs.gnu.org; Thu, 20 Feb 2020 19:10:27 -0500
Received: from aye.elm.relay.mailchannels.net ([23.83.212.6]:15107)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1j4vtf-0005Aa-RS
for 34949@debbugs.gnu.org; Thu, 20 Feb 2020 19:10:24 -0500
X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org
Received: from relay.mailchannels.net (localhost [127.0.0.1])
by relay.mailchannels.net (Postfix) with ESMTP id A354A540861;
Fri, 21 Feb 2020 00:10:22 +0000 (UTC)
Received: from pdx1-sub0-mail-a86.g.dreamhost.com
(100-96-13-15.trex.outbound.svc.cluster.local [100.96.13.15])
(Authenticated sender: dreamhost)
by relay.mailchannels.net (Postfix) with ESMTPA id 2E809540A4A;
Fri, 21 Feb 2020 00:10:22 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org
Received: from pdx1-sub0-mail-a86.g.dreamhost.com ([TEMPUNAVAIL].
[64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384)
by 0.0.0.0:2500 (trex/5.18.5); Fri, 21 Feb 2020 00:10:22 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org
X-MailChannels-Auth-Id: dreamhost
X-Abaft-Abaft: 183ae9090f2af5ec_1582243822423_4140162099
X-MC-Loop-Signature: 1582243822423:3528702544
X-MC-Ingress-Time: 1582243822423
Received: from pdx1-sub0-mail-a86.g.dreamhost.com (localhost [127.0.0.1])
by pdx1-sub0-mail-a86.g.dreamhost.com (Postfix) with ESMTP id D5E297F015;
Thu, 20 Feb 2020 16:10:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc
:subject:references:date:in-reply-to:message-id:mime-version
:content-type; s=linkov.net; bh=J1m2wg5yN1oD5Xvabt6NGBUyQ1M=; b=
cgPS6dUpiWRgzFoaZCCLe8Eu+T0zsGCnBV4U+PIZWVWtx5BQ2t+eW7XrdmtaHMBI
8hP1ZZz5bFhDoEX0ufXqFR+6Br1JimBSD+kN3hxCNPP2mAGtZRzBk8b3HiYKZq0Y
YpnUeen747T/uIfmM+6nQUfWLtd5Y74wQzQcZsqoFYU=
Received: from localhost.linkov.net (m91-129-103-27.cust.tele2.ee
[91.129.103.27])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
(Authenticated sender: jurta@jurta.org)
by pdx1-sub0-mail-a86.g.dreamhost.com (Postfix) with ESMTPSA id D65357EFDF;
Thu, 20 Feb 2020 16:10:14 -0800 (PST)
X-DH-BACKEND: pdx1-sub0-mail-a86
From: Juri Linkov
To: Dmitry Gutov
Subject: Re: bug#34949: 27.0.50; Docstring of `vc-deduce-fileset' incomplete
Organization: LINKOV.NET
References:
<877e5dzgnb.fsf@gnus.org>
<932cfe15-5e8b-1bf4-5b81-9d0f2a513dea@yandex.ru>
<87a77hqp6m.fsf@mail.linkov.net> <87zhdghjca.fsf@mail.linkov.net>
<5d2163b9-4bf4-e072-ef9e-0fc1550a2108@yandex.ru>
<87imk35uy6.fsf@mail.linkov.net>
Date: Fri, 21 Feb 2020 01:14:20 +0200
In-Reply-To: <87imk35uy6.fsf@mail.linkov.net> (Juri Linkov's message of "Wed,
19 Feb 2020 01:36:49 +0200")
Message-ID: <87v9o0kg1f.fsf@mail.linkov.net>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-VR-OUT-STATUS: OK
X-VR-OUT-SCORE: -100
X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrkeefgddulecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehmtderredtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtfedrvdejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghloheplhhotggrlhhhohhsthdrlhhinhhkohhvrdhnvghtpdhinhgvthepledurdduvdelrddutdefrddvjedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegughhuthhovheshigrnhguvgigrdhruh
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 34949
Cc: Lars Ingebrigtsen , 34949@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
--=-=-=
Content-Type: text/plain
>> I think the only possible problem here is that lambda is invoked
>> asynchronously. But we can sleep while waiting for it.
>
> Would it be possible to call dir-status-files synchronously?
If asynchronousness is inevitable, we could rely on callbacks.
Indeed this path leads to callback hell, but what are other options?
This unfinished patch shows a possible development direction:
vc-next-action executed in Dired will call vc-dired-deduce-fileset
with a callback to continue with a prepared vc-fileset.
vc-dired-deduce-fileset will call a more general
vc-directory-deduce-fileset that will call a currently
unimplemented function vc-dir-status-files whose implementation
will be like in your diff-hl-dired-update.
Also a new command vc-next-action-on-root will commit all modified files,
ignoring any unregistered files. I miss such a command in VC-Dir:
typing 'v' (vc-next-action) at the beginning of *vc-dir* buffer signals
the error: "When applying VC operations to multiple files, the files
are required to be in similar VC states. File in state 'edited' clashes
with state 'unregistered'". Often I have a lot of unregistered files
lying around for a long time, and it takes too much time manually marking
only edited files for every commit, skipping each unregistered file.
Also some parts of the previous patch should be reverted
because I discovered that state changing VC operations in Dired
even on marked files (as opposed to directories) is unreliable:
when a file is modified, using vc-state doesn't return its real state
when updated outside of Emacs. This part should be replaced
with asynchronous dir-status-files that returns the most accurate state.
--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline; filename=callback-hell.patch
diff --git a/lisp/vc/vc-hooks.el b/lisp/vc/vc-hooks.el
index 345a28d3f1..80c580e5ec 100644
--- a/lisp/vc/vc-hooks.el
+++ b/lisp/vc/vc-hooks.el
@@ -897,6 +897,7 @@ vc-prefix-map
(define-key map "s" 'vc-create-tag)
(define-key map "u" 'vc-revert)
(define-key map "v" 'vc-next-action)
+ (define-key map "V" 'vc-next-action-on-root)
(define-key map "+" 'vc-update)
;; I'd prefer some kind of symmetry with vc-update:
(define-key map "P" 'vc-push)
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index f7d651fac6..13d60b6fcf 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -1065,19 +1067,27 @@ vc-deduce-fileset
(list buffer-file-name))))
(t (error "File is not under version control")))))
+(defun vc-root-deduce-fileset (callback)
+ (let* ((backend (vc-responsible-backend default-directory))
+ (rootdir (vc-call-backend backend 'root default-directory)))
+ (vc-directory-deduce-fileset rootdir callback)))
+
+(defun vc-directory-deduce-fileset (dir callback)
+ ;; TODO: use vc-dir-status-files
+ )
+
(declare-function dired-get-marked-files "dired"
(&optional localp arg filter distinguish-one-marked error))
-(defun vc-dired-deduce-fileset (&optional state-model-only-files observer)
+(defun vc-dired-deduce-fileset (&optional callback)
(let ((backend (vc-responsible-backend default-directory))
(files (dired-get-marked-files nil nil nil nil t))
only-files-list
state
model)
- (when (and (not observer) (cl-some #'file-directory-p files))
- (error "State changing VC operations on directories not supported in `dired-mode'"))
- (when state-model-only-files
+ (when callback
+ ;; TODO: use vc-directory-deduce-fileset
(setq only-files-list (mapcar (lambda (file) (cons file (vc-state file))) files))
(setq state (cdar only-files-list))
;; Check that all files are in a consistent state, since we use that
@@ -1132,6 +1142,11 @@ vc-read-backend
(completing-read prompt (mapcar #'symbol-name vc-handled-backends)
nil 'require-match)))
+(defun vc-next-action-on-root (verbose)
+ (interactive "P")
+ (vc-root-deduce-fileset
+ (lambda (vc-fileset) (vc-next-action-on-fileset vc-fileset verbose))))
+
;; Here's the major entry point.
;;;###autoload
@@ -1158,8 +1173,16 @@ vc-next-action
If every file is locked by you and unchanged, unlock them.
If every file is locked by someone else, offer to steal the lock."
(interactive "P")
- (let* ((vc-fileset (vc-deduce-fileset nil t 'state-model-only-files))
- (backend (car vc-fileset))
+ (cond
+ ((derived-mode-p 'dired-mode)
+ ;; Async operation
+ (vc-dired-deduce-fileset
+ (lambda (vc-fileset) (vc-next-action-on-fileset vc-fileset verbose))))
+ (t (vc-next-action-on-fileset
+ (vc-deduce-fileset nil t 'state-model-only-files) verbose))))
+
+(defun vc-next-action-on-fileset (vc-fileset verbose)
+ (let* ((backend (car vc-fileset))
(files (nth 1 vc-fileset))
;; (fileset-only-files (nth 2 vc-fileset))
;; FIXME: We used to call `vc-recompute-state' here.
@@ -3138,6 +3171,10 @@ vc-default-dir-status-files
(funcall update-function
(mapcar (lambda (file) (list file 'up-to-date)) files)))
+(defun vc-dir-status-files (backend dir files update-function)
+ (funcall update-function
+ (mapcar (lambda (file) (list file 'up-to-date)) files)))
+
(defun vc-check-headers ()
"Check if the current file has any headers in it."
(interactive)
--=-=-=--
From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 20 19:16:39 2020
Received: (at 34949) by debbugs.gnu.org; 21 Feb 2020 00:16:39 +0000
Received: from localhost ([127.0.0.1]:46142 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1j4vzi-0005Lq-UF
for submit@debbugs.gnu.org; Thu, 20 Feb 2020 19:16:39 -0500
Received: from mail-wr1-f48.google.com ([209.85.221.48]:34962)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1j4vzg-0005Lc-E7
for 34949@debbugs.gnu.org; Thu, 20 Feb 2020 19:16:36 -0500
Received: by mail-wr1-f48.google.com with SMTP id w12so69889wrt.2
for <34949@debbugs.gnu.org>; Thu, 20 Feb 2020 16:16:36 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=sender:subject:to:cc:references:from:message-id:date:user-agent
:mime-version:in-reply-to:content-language:content-transfer-encoding;
bh=4JcryE2ASavgxolbcFAIcJdLXEYEO+ZVDabgQFepO2o=;
b=UbSn5ot/DFqc05k7ijtUZuXhhG2Bo9rMFvjYu7HpGAEAyyqCkjjM4lGQi3GQTABip/
9/2Ki3lHOBf5kY+5C7nP4rxe8XIAo76Pdu7z1GSlZuHZu9kj07fysVOhhh1A2xfvrY1p
bSwEi6TnQ7z0bNo1JF0zdFyBe95I47qVByWE53lFZY14S+5OTwyp8qfc+xrTwG+hKr9h
7UJ3nGqssthR/MIkMNGL2d74Mz+coxgk3ifwFqfSplUYZPLDZHz26LF2gvmS6VaOSyic
4nn7sUM+8Ig2nQr9yx3Xg0qUob9JA6uQGD2EQtXYOTH5/rBYOBDpIG0yJocdjBfFXciZ
S1Hg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:sender:subject:to:cc:references:from:message-id
:date:user-agent:mime-version:in-reply-to:content-language
:content-transfer-encoding;
bh=4JcryE2ASavgxolbcFAIcJdLXEYEO+ZVDabgQFepO2o=;
b=Rtdbh7/aqfadHfb53e6w7jzyRdOacW4257ZH+XsGR+iSyZd1pGoDRvagP0SDdH+z/o
BNVJx65q7daJOdyt0+pprpyN+8PoZgwu0CZOyIpsZOyA80Ngfaggz4FwVjWY9qB13qDh
jVx3z99guoV71j7vNuCUrO8ZdBhI38YuhT3pAQMg0N64fFpr2eb3wilRi7rB1j77x8lO
qxvYsVgDQO2d/xvuPw/aBkWTv3SELT7CBh3rpq9Q6OLZJ9uAdSdSWo/rND2wsCH1tWxl
lqx6A8lYr6PFxeXemfRLfOgiY2Pvhwzs5SDesumgskMCNGFnUCrp69fNKDo/EgveYJ8q
fDXA==
X-Gm-Message-State: APjAAAXixWMiHwmeUTbHi2vV/KfXy87itYmp1JMXNcDire5VyFoZD4/G
blMv3BBVZ4m2DIyB3tFuRP6mdzsm
X-Google-Smtp-Source: APXvYqwjMAvSlWg+DkAMrs/rlrakEFTkj2q6F/URDMmxWlyKKdfPCf+SKU+xWSN87RY3kLO4ACDa+g==
X-Received: by 2002:a5d:448c:: with SMTP id j12mr43971454wrq.125.1582244190194;
Thu, 20 Feb 2020 16:16:30 -0800 (PST)
Received: from [192.168.0.3] ([66.205.73.129])
by smtp.googlemail.com with ESMTPSA id k10sm1512323wrd.68.2020.02.20.16.16.28
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Thu, 20 Feb 2020 16:16:29 -0800 (PST)
Subject: Re: bug#34949: 27.0.50; Docstring of `vc-deduce-fileset' incomplete
To: Juri Linkov
References:
<877e5dzgnb.fsf@gnus.org> <932cfe15-5e8b-1bf4-5b81-9d0f2a513dea@yandex.ru>
<87a77hqp6m.fsf@mail.linkov.net> <87zhdghjca.fsf@mail.linkov.net>
<5d2163b9-4bf4-e072-ef9e-0fc1550a2108@yandex.ru>
<87imk35uy6.fsf@mail.linkov.net>
From: Dmitry Gutov
Message-ID: <115a6be6-3b64-7409-c405-19cfabf1a98d@yandex.ru>
Date: Fri, 21 Feb 2020 02:16:28 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <87imk35uy6.fsf@mail.linkov.net>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 34949
Cc: Lars Ingebrigtsen , 34949@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -0.5 (/)
On 19.02.2020 1:36, Juri Linkov wrote:
>> You can check out what diff-hl-dired does in this regard (and it does use
>> the dir-status-files command), though you would need to do something else
>> than its merging logic.
>
> Thanks, I use diff-hl-dired, but not realized it relies on dir-status-files.
> Maybe dir-status-files could be simplified, so that it wouldn't require
> a special buffer to be current, and could be called in any buffer,
> but this simplification is not much needed.
I'd rather not change the calling convention of existing, old backend
actions without solid necessity.
>> That still leaves the downside (compared to VC-Dir) of being unable to
>> select individual files in subdirectories, but that's not fixable, I guess.
>
> When calling the already supported ‘C-x v =’ (vc-diff) on a subdirectory
> in Dired, it operates on all modified files, so it makes sense to commit
> exactly the same files whose diffs are displayed in the *vc-diff* buffer.
Not exactly my style, but okay.
>> I think the only possible problem here is that lambda is invoked
>> asynchronously. But we can sleep while waiting for it.
>
> Would it be possible to call dir-status-files synchronously?
I think when we discussed this once, the "ideal" change would be for
such actions to return "process" objects, which could be then consumed
either synchronously or synchronously by the caller. But that's far off.
Until then, calling sleep-for in a loop should get us close enough.
From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 20 19:22:42 2020
Received: (at 34949) by debbugs.gnu.org; 21 Feb 2020 00:22:42 +0000
Received: from localhost ([127.0.0.1]:46146 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1j4w5a-0005Uf-JW
for submit@debbugs.gnu.org; Thu, 20 Feb 2020 19:22:42 -0500
Received: from mail-wr1-f49.google.com ([209.85.221.49]:39461)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1j4w5Y-0005US-Ob
for 34949@debbugs.gnu.org; Thu, 20 Feb 2020 19:22:41 -0500
Received: by mail-wr1-f49.google.com with SMTP id y11so65343wrt.6
for <34949@debbugs.gnu.org>; Thu, 20 Feb 2020 16:22:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=sender:subject:to:cc:references:from:message-id:date:user-agent
:mime-version:in-reply-to:content-language:content-transfer-encoding;
bh=MUgSZWI1Dhf3HtLgCqhlS0Tyg3l7ci+ihpKaZSETOYs=;
b=Eh8gvfpCN6ndBp75C1Cy5iozS2GDb6ewFUZYOUUafvQD9Mr4h9dS8wjH87cagMLQSi
T/+V75BD6AgfXfh/Pe5CTcwAy+yro+I2nwnqlcMELQF/cdFuuiZeFl3iTBqmiskBJf0v
xeZnjQ4YOEID5pz85ZqVTGP/+63tnzrNA8fot3LlvxC9eQKTAEe6yf0cUpJHlQaTcng8
+zAwh810udIuGIWgQv0O14srZrzvW3gBu3JKcy5bBtGH4CfFU77og4vfUl2VlXDQb/uI
i5e9vJFzNGv5U5ngcIacny9P4IxG3kF0WAHcPm6xLp2FNMw6mfnknH7JhtCJtcPgjoKi
0tmA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:sender:subject:to:cc:references:from:message-id
:date:user-agent:mime-version:in-reply-to:content-language
:content-transfer-encoding;
bh=MUgSZWI1Dhf3HtLgCqhlS0Tyg3l7ci+ihpKaZSETOYs=;
b=oWma9fpZLbIEgBZHdd4gO6B/C8MoxfQABYOpC+LbRbcQV4TRIN6BL8Pdp/XQrlX+WO
vN84d4lcheqYLVSoQUQZzODh/ZPrbqgztlO4JqSSAG+HMZFg/k0zSr7v/2C5TDKMzvbw
SZtub2ie3g3i9BZtXViNzsZSJzoPLKx7xYMN0V+b1ipMTkokVEPNWp+5GSod+ho1gnks
eS45bVWNhXqMKNUpYsExtbM7VYbUJ50b6lCeYmmzbZmlFEEOvmaaDhxr2jXmFvAzOnTG
Wb8HM6Ql6yMVRJrTCxsQ9ARPIoOb/cBonnJtywGwacEcAO+6DB0Nsw/ACIM+FNnu+GS4
k7eA==
X-Gm-Message-State: APjAAAWwlB2EbKDKecsKq05Xr6wtCkOqJprI5uYldmts2CzcuC++Eaz3
2Mh/hvRV47lw4S2t1r7fVYZGx8LN
X-Google-Smtp-Source: APXvYqwHj+DFh3AOzeHjxCxRArDbsWz+otKWYJJNJpyxCXmF+h3KVWx5eDroIWTEO5nCQffcPmA+NA==
X-Received: by 2002:a5d:6a88:: with SMTP id s8mr44612856wru.173.1582244554545;
Thu, 20 Feb 2020 16:22:34 -0800 (PST)
Received: from [192.168.0.3] ([66.205.73.129])
by smtp.googlemail.com with ESMTPSA id y7sm1492694wrr.56.2020.02.20.16.22.33
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Thu, 20 Feb 2020 16:22:33 -0800 (PST)
Subject: Re: bug#34949: 27.0.50; Docstring of `vc-deduce-fileset' incomplete
To: Juri Linkov
References:
<877e5dzgnb.fsf@gnus.org> <932cfe15-5e8b-1bf4-5b81-9d0f2a513dea@yandex.ru>
<87a77hqp6m.fsf@mail.linkov.net> <87zhdghjca.fsf@mail.linkov.net>
<5d2163b9-4bf4-e072-ef9e-0fc1550a2108@yandex.ru>
<87imk35uy6.fsf@mail.linkov.net> <87v9o0kg1f.fsf@mail.linkov.net>
From: Dmitry Gutov
Message-ID: <32b1f22f-1ac9-7fd2-0377-4c2d7ae43afd@yandex.ru>
Date: Fri, 21 Feb 2020 02:22:32 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <87v9o0kg1f.fsf@mail.linkov.net>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 34949
Cc: Lars Ingebrigtsen , 34949@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -0.5 (/)
On 21.02.2020 1:14, Juri Linkov wrote:
> Also some parts of the previous patch should be reverted
> because I discovered that state changing VC operations in Dired
> even on marked files (as opposed to directories) is unreliable:
> when a file is modified, using vc-state doesn't return its real state
> when updated outside of Emacs.
Right. More so than in VC-Dir buffers, which use dir-status-files already.
> +(defun vc-directory-deduce-fileset (dir callback)
> + ;; TODO: use vc-dir-status-files
> + )
I should note that if could be, by any chance, satisfied with only using
vc-next-action-on-root in VC-Dir buffers, there would be no need to call
dir-status-files here.
> +(defun vc-dir-status-files (backend dir files update-function)
> + (funcall update-function
> + (mapcar (lambda (file) (list file 'up-to-date)) files)))
This is a... test function?
From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 22 19:44:36 2020
Received: (at 34949) by debbugs.gnu.org; 23 Feb 2020 00:44:36 +0000
Received: from localhost ([127.0.0.1]:50255 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1j5fNr-00007j-Rn
for submit@debbugs.gnu.org; Sat, 22 Feb 2020 19:44:36 -0500
Received: from bonobo.birch.relay.mailchannels.net ([23.83.209.22]:59509)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1j5fNq-00007b-H1
for 34949@debbugs.gnu.org; Sat, 22 Feb 2020 19:44:35 -0500
X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org
Received: from relay.mailchannels.net (localhost [127.0.0.1])
by relay.mailchannels.net (Postfix) with ESMTP id 4DA345A08D4;
Sun, 23 Feb 2020 00:44:33 +0000 (UTC)
Received: from pdx1-sub0-mail-a92.g.dreamhost.com
(100-96-38-98.trex.outbound.svc.cluster.local [100.96.38.98])
(Authenticated sender: dreamhost)
by relay.mailchannels.net (Postfix) with ESMTPA id C783C5A07EA;
Sun, 23 Feb 2020 00:44:32 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org
Received: from pdx1-sub0-mail-a92.g.dreamhost.com ([TEMPUNAVAIL].
[64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384)
by 0.0.0.0:2500 (trex/5.18.5); Sun, 23 Feb 2020 00:44:33 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org
X-MailChannels-Auth-Id: dreamhost
X-Abiding-Arch: 0a2354ec5b26d1da_1582418673052_825276738
X-MC-Loop-Signature: 1582418673052:3534810148
X-MC-Ingress-Time: 1582418673052
Received: from pdx1-sub0-mail-a92.g.dreamhost.com (localhost [127.0.0.1])
by pdx1-sub0-mail-a92.g.dreamhost.com (Postfix) with ESMTP id 6F59A7F1C5;
Sat, 22 Feb 2020 16:44:27 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc
:subject:references:date:in-reply-to:message-id:mime-version
:content-type; s=linkov.net; bh=CfqQT/udyg+KtdWR2gf5VT05CLw=; b=
vZo1JX3r7BZXGohhff729C8cnRmznwshHsehYdi4vGZ7YfQlbp1PtG1sZnkfpTW8
eEMZsH0cNZdCgpEcI1UDiu/tuVtcdwKeqBfj8uKwAFzQaGYtwuyd9bGeaJdN6d+Y
0uJmX+StHvAyWcwU689DXvIt6/GoYo4MRLjNEuJv98s=
Received: from localhost.linkov.net (m91-129-103-27.cust.tele2.ee
[91.129.103.27])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
(Authenticated sender: jurta@jurta.org)
by pdx1-sub0-mail-a92.g.dreamhost.com (Postfix) with ESMTPSA id 4726A7F188;
Sat, 22 Feb 2020 16:44:24 -0800 (PST)
X-DH-BACKEND: pdx1-sub0-mail-a92
From: Juri Linkov
To: Dmitry Gutov
Subject: Re: bug#34949: 27.0.50; Docstring of `vc-deduce-fileset' incomplete
Organization: LINKOV.NET
References:
<877e5dzgnb.fsf@gnus.org>
<932cfe15-5e8b-1bf4-5b81-9d0f2a513dea@yandex.ru>
<87a77hqp6m.fsf@mail.linkov.net> <87zhdghjca.fsf@mail.linkov.net>
<5d2163b9-4bf4-e072-ef9e-0fc1550a2108@yandex.ru>
<87imk35uy6.fsf@mail.linkov.net> <87v9o0kg1f.fsf@mail.linkov.net>
<32b1f22f-1ac9-7fd2-0377-4c2d7ae43afd@yandex.ru>
Date: Sun, 23 Feb 2020 02:04:11 +0200
In-Reply-To: <32b1f22f-1ac9-7fd2-0377-4c2d7ae43afd@yandex.ru> (Dmitry Gutov's
message of "Fri, 21 Feb 2020 02:22:32 +0200")
Message-ID: <87sgj2np8k.fsf@mail.linkov.net>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-VR-OUT-STATUS: OK
X-VR-OUT-SCORE: -100
X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrkeejgddvudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtfedrvdejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghloheplhhotggrlhhhohhsthdrlhhinhhkohhvrdhnvghtpdhinhgvthepledurdduvdelrddutdefrddvjedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegughhuthhovheshigrnhguvgigrdhruh
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 34949
Cc: Lars Ingebrigtsen , 34949@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
>> +(defun vc-directory-deduce-fileset (dir callback)
>> + ;; TODO: use vc-dir-status-files
>> + )
>
> I should note that if could be, by any chance, satisfied with only using
> vc-next-action-on-root in VC-Dir buffers, there would be no need to call
> dir-status-files here.
Do you propose 'C-x v v' when typed in Dired to open VC-Dir and mark
files marked in Dired, i.e. to sync marks between Dired and VC-Dir?
And a new keybinding 'C-x v V' (vc-next-action-on-root) typed
in any file/dired should open VC-Dir and mark all edited files?
>> +(defun vc-dir-status-files (backend dir files update-function)
>> + (funcall update-function
>> + (mapcar (lambda (file) (list file 'up-to-date)) files)))
>
> This is a... test function?
Unfinished implementation...
From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 23 04:01:41 2020
Received: (at 34949) by debbugs.gnu.org; 23 Feb 2020 09:01:41 +0000
Received: from localhost ([127.0.0.1]:50341 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1j5n8u-0006rs-TV
for submit@debbugs.gnu.org; Sun, 23 Feb 2020 04:01:41 -0500
Received: from mail-wr1-f50.google.com ([209.85.221.50]:34810)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1j5n8s-0006re-RO
for 34949@debbugs.gnu.org; Sun, 23 Feb 2020 04:01:39 -0500
Received: by mail-wr1-f50.google.com with SMTP id n10so6830511wrm.1
for <34949@debbugs.gnu.org>; Sun, 23 Feb 2020 01:01:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=sender:subject:to:cc:references:from:message-id:date:user-agent
:mime-version:in-reply-to:content-language:content-transfer-encoding;
bh=tFDuOfS7v96EnC4lkKQNm+9bRNBWhfckUu+HhvuHUdg=;
b=ZdSEvEuXFggshDzstg/h1qoGe0syr1U74L81rPbvKgUCgkbMMzwY9euXC5RpACKDO5
p8N/fN/+vsYf6Ex7P0hl92+dGmFBJS/CFE/2bdZt+EE78jWPyG6n1GLmZQBIHnBm0q9m
gDr4C+bYq9oURfU7jJTcC+THmvqm/aPpL5PCZLMJttFv5ceIbEMZXTC6Ov08WBNNqEqD
DG59PGGDXTz2ESNTN6ORHrmJvV+C92l0CR116+g51zuyl61s8G0k5NFjpkjIwZ9vrDs+
Wx8rgsqvNjC6h1xZwzXQWHOLv9f89Jx9NVYfrUpxIuFR9ZNHU5g8MdDeKzzZ33Yq1eMN
57hw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:sender:subject:to:cc:references:from:message-id
:date:user-agent:mime-version:in-reply-to:content-language
:content-transfer-encoding;
bh=tFDuOfS7v96EnC4lkKQNm+9bRNBWhfckUu+HhvuHUdg=;
b=Xm2uvwbjN4FKPO0Gay5q19t9kRyqZnYwWiSTsI0U4g9NUUFecdwvCexMBpztC/2csV
lGW6WMn/nY+ikgPO72yOYrRG+T/sMf63FKEtIy7MCUEy8t1nZe0GBag15rcFUbt252ME
QdNxpzblfC/NFZa4BDEWiZAo+O/JZVT+ARZRaBt+ypzG6IU+60oaSXTryQgp9bDH2tMB
N08rIKTvCJvW103fn5IKSIGhEyLOWlq2uz/8xY+K9/gy6jo8XYohNDQYBtRchhSfe7cl
0p/lExz1+PstMOZh+F3oMQW1rNfCa9lQwX3Fz7l3wpqb7hgaHdldSiz6VaGJUJK98E3M
zkSg==
X-Gm-Message-State: APjAAAUvxP70vJXqzGu5Yqc3l2D/6UxvxYdlDtUwZ6QJspIgflMSHJOm
ccafEWOEJx3mbKayRl5GBTPDA96g
X-Google-Smtp-Source: APXvYqy/UBvmpV6tS4BpHbwNpgEqU1iIhm9nptydQTLGXZV5RLmA2/2CBBjLnWbxUXoR+WJ+UhfwcA==
X-Received: by 2002:a5d:5381:: with SMTP id d1mr58662427wrv.259.1582448492947;
Sun, 23 Feb 2020 01:01:32 -0800 (PST)
Received: from [192.168.0.3] ([66.205.73.129])
by smtp.googlemail.com with ESMTPSA id d4sm12495904wra.14.2020.02.23.01.01.31
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Sun, 23 Feb 2020 01:01:32 -0800 (PST)
Subject: Re: bug#34949: 27.0.50; Docstring of `vc-deduce-fileset' incomplete
To: Juri Linkov
References:
<877e5dzgnb.fsf@gnus.org> <932cfe15-5e8b-1bf4-5b81-9d0f2a513dea@yandex.ru>
<87a77hqp6m.fsf@mail.linkov.net> <87zhdghjca.fsf@mail.linkov.net>
<5d2163b9-4bf4-e072-ef9e-0fc1550a2108@yandex.ru>
<87imk35uy6.fsf@mail.linkov.net> <87v9o0kg1f.fsf@mail.linkov.net>
<32b1f22f-1ac9-7fd2-0377-4c2d7ae43afd@yandex.ru>
<87sgj2np8k.fsf@mail.linkov.net>
From: Dmitry Gutov
Message-ID:
Date: Sun, 23 Feb 2020 11:01:30 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <87sgj2np8k.fsf@mail.linkov.net>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 34949
Cc: Lars Ingebrigtsen , 34949@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -0.5 (/)
On 23.02.2020 2:04, Juri Linkov wrote:
> Do you propose 'C-x v v' when typed in Dired to open VC-Dir and mark
> files marked in Dired, i.e. to sync marks between Dired and VC-Dir?
>
> And a new keybinding 'C-x v V' (vc-next-action-on-root) typed
> in any file/dired should open VC-Dir and mark all edited files?
Um, not really. Just only adding the 'V' binding to VC-Dir buffers,
where it would use the existing known fileset. But no 'C-x v V' binding.
If that would both satisfy you and simplify the implementation, of course.
From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 23 18:51:58 2020
Received: (at 34949) by debbugs.gnu.org; 23 Feb 2020 23:51:58 +0000
Received: from localhost ([127.0.0.1]:51725 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1j612U-00055Z-5D
for submit@debbugs.gnu.org; Sun, 23 Feb 2020 18:51:58 -0500
Received: from antelope.elm.relay.mailchannels.net ([23.83.212.4]:30906)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1j612S-00055R-G8
for 34949@debbugs.gnu.org; Sun, 23 Feb 2020 18:51:57 -0500
X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org
Received: from relay.mailchannels.net (localhost [127.0.0.1])
by relay.mailchannels.net (Postfix) with ESMTP id 5E7375A0F59;
Sun, 23 Feb 2020 23:51:55 +0000 (UTC)
Received: from pdx1-sub0-mail-a7.g.dreamhost.com
(100-96-38-98.trex.outbound.svc.cluster.local [100.96.38.98])
(Authenticated sender: dreamhost)
by relay.mailchannels.net (Postfix) with ESMTPA id CE20B5A0FAC;
Sun, 23 Feb 2020 23:51:54 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org
Received: from pdx1-sub0-mail-a7.g.dreamhost.com ([TEMPUNAVAIL].
[64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384)
by 0.0.0.0:2500 (trex/5.18.5); Sun, 23 Feb 2020 23:51:55 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org
X-MailChannels-Auth-Id: dreamhost
X-Hook-Befitting: 34d8659e1723baac_1582501915082_2199359502
X-MC-Loop-Signature: 1582501915082:1038129672
X-MC-Ingress-Time: 1582501915082
Received: from pdx1-sub0-mail-a7.g.dreamhost.com (localhost [127.0.0.1])
by pdx1-sub0-mail-a7.g.dreamhost.com (Postfix) with ESMTP id 97BC3B1948;
Sun, 23 Feb 2020 15:51:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc
:subject:references:date:in-reply-to:message-id:mime-version
:content-type; s=linkov.net; bh=Y9mdnOV6fHx7oTsp9/qlvIWb5As=; b=
At7ToMtepy+4IPXdsi2tlEdbKi7c2s+9QFKrKHXl6BDknp0WH37ojU73snMiiMRD
GO8gP8V0Je9qg/u+W5JfWmpeTneFiGXhponpNMegl7Zn7kOsz1eA9P60m+jiFhaj
414RV/LID1YzlUjCT5V6IM4u+eYdHhnwF40651y6z3A=
Received: from localhost.linkov.net (m91-129-103-27.cust.tele2.ee
[91.129.103.27])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
(Authenticated sender: jurta@jurta.org)
by pdx1-sub0-mail-a7.g.dreamhost.com (Postfix) with ESMTPSA id 4353BB1960;
Sun, 23 Feb 2020 15:51:46 -0800 (PST)
X-DH-BACKEND: pdx1-sub0-mail-a7
From: Juri Linkov
To: Dmitry Gutov
Subject: Re: bug#34949: 27.0.50; Docstring of `vc-deduce-fileset' incomplete
Organization: LINKOV.NET
References:
<877e5dzgnb.fsf@gnus.org>
<932cfe15-5e8b-1bf4-5b81-9d0f2a513dea@yandex.ru>
<87a77hqp6m.fsf@mail.linkov.net> <87zhdghjca.fsf@mail.linkov.net>
<5d2163b9-4bf4-e072-ef9e-0fc1550a2108@yandex.ru>
<87imk35uy6.fsf@mail.linkov.net> <87v9o0kg1f.fsf@mail.linkov.net>
<32b1f22f-1ac9-7fd2-0377-4c2d7ae43afd@yandex.ru>
<87sgj2np8k.fsf@mail.linkov.net>
Date: Mon, 24 Feb 2020 01:25:59 +0200
In-Reply-To: (Dmitry Gutov's
message of "Sun, 23 Feb 2020 11:01:30 +0200")
Message-ID: <8736b06f60.fsf@mail.linkov.net>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-VR-OUT-STATUS: OK
X-VR-OUT-SCORE: -100
X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrkeelgdduiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtfedrvdejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghloheplhhotggrlhhhohhsthdrlhhinhhkohhvrdhnvghtpdhinhgvthepledurdduvdelrddutdefrddvjedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegughhuthhovheshigrnhguvgigrdhruh
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 34949
Cc: Lars Ingebrigtsen , 34949@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
>> Do you propose 'C-x v v' when typed in Dired to open VC-Dir and mark
>> files marked in Dired, i.e. to sync marks between Dired and VC-Dir?
>> And a new keybinding 'C-x v V' (vc-next-action-on-root) typed
>> in any file/dired should open VC-Dir and mark all edited files?
>
> Um, not really. Just only adding the 'V' binding to VC-Dir buffers, where
> it would use the existing known fileset. But no 'C-x v V' binding.
Should then 'V' typed in VC-Dir operate on edited files only,
or try to use all files including unregistered?
> If that would both satisfy you and simplify the implementation, of course.
What about invoking state-changing VC-operations from Dired?
Should typing 'v' in Dired open the VC-Dir buffer? Wouldn't this be
the same as just typing 'C-x v d RET'?
BTW, why 'C-x v d RET' requires a confirmation?
This additional 'RET' is too annoying.
Maybe like a proposal in bug#39704 to use a prefix arg for
'C-u M-x vc-print-branch-log' to ask for a directory, then
'C-u C-x v d' could do the same and ask for a root directory,
otherwise without prefix arg 'C-x v d' could use the default root
without using a prompt.
From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 23 19:18:04 2020
Received: (at 34949) by debbugs.gnu.org; 24 Feb 2020 00:18:04 +0000
Received: from localhost ([127.0.0.1]:51732 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1j61Rk-0005l6-A4
for submit@debbugs.gnu.org; Sun, 23 Feb 2020 19:18:04 -0500
Received: from mail-wr1-f49.google.com ([209.85.221.49]:46127)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1j61Rh-0005kZ-RE
for 34949@debbugs.gnu.org; Sun, 23 Feb 2020 19:18:02 -0500
Received: by mail-wr1-f49.google.com with SMTP id g4so1964501wro.13
for <34949@debbugs.gnu.org>; Sun, 23 Feb 2020 16:18:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=sender:subject:to:cc:references:from:message-id:date:user-agent
:mime-version:in-reply-to:content-language:content-transfer-encoding;
bh=ozG0Dyq4qqtHxbnCk+koDEzXEYpU0kMymvhy13Zfw4I=;
b=XpNN8wirFQVopYdEtgszSA5+S2ImG9bYwpNAL9Retp8nV585FCj4DkiCBhOrLmHKDU
vE0XyHn8aKSdQpLByhlv5fLXAsE0FvShzMwt7HoflsqLbVMirjyAeLoKkZgQVQBB2Glh
ZWwEcaaEhd7t7aK5TgXV7OnxdtMRq8Z12JyVKC3UaqdcxgGjKr7CQnrrcXCgf+Vx7k13
w6ACKYTS/jQoO8jwi+3non3SKX1fCjMUugMJtWVjB5gTy37tynm6au58U6xXoZ1qCT4C
XFTUab5PWw5OI+aEul5+QM+xcaOhCp/H3sIYpW40uB9IPLWw46JnNknHHdzk7ts7IVBh
zozQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:sender:subject:to:cc:references:from:message-id
:date:user-agent:mime-version:in-reply-to:content-language
:content-transfer-encoding;
bh=ozG0Dyq4qqtHxbnCk+koDEzXEYpU0kMymvhy13Zfw4I=;
b=BNGZLWOKVDtexhN9hCrFJmFiXXC3ZCrRZL68tw7NHcGyuYwzG3s/ECgJOmD30fpZGx
LaVcyj2ykZK/Nl9zLJ2P0HsDGp2NkJWFFOTk2E0z+u6X1g0QItA0wnNMlH9kNCl9aN9j
dU12JZKO5elh57Q/9zux1Gm05sbyf4lgETYQtbMLbNc0totWF0xiU6IEwDvxO1pwSTTB
0xW2AKq3KAYGqAXS8vjDuI0+7TyA6F91hIod2waYjyEu3ZKMdbwAjKA3+ZMpJ9w7LplS
liYSZUiu9wjLKAVaQ4DRKMHqqaAp4uB7N/7/RuYgK9ROISM6w+maFdlYXGwDj51NFBz2
VpDQ==
X-Gm-Message-State: APjAAAUsLqq7PGlR7GWTZ86R6sTdg9mvvF334iWr+m7RToQmWO3KhhFA
lX+tKTE+O4eIFMD+KbD7skCPKYfw
X-Google-Smtp-Source: APXvYqz2D6qWpwHPTD0Yr80X2iqC5N+CJxO1gv9i0nx/1xNaO0qxLPJZSJ0UJtusTfL5eepbx12ytw==
X-Received: by 2002:adf:f091:: with SMTP id n17mr60675639wro.387.1582503475780;
Sun, 23 Feb 2020 16:17:55 -0800 (PST)
Received: from [192.168.0.3] ([66.205.73.129])
by smtp.googlemail.com with ESMTPSA id g29sm10071325wrb.59.2020.02.23.16.17.54
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Sun, 23 Feb 2020 16:17:54 -0800 (PST)
Subject: Re: bug#34949: 27.0.50; Docstring of `vc-deduce-fileset' incomplete
To: Juri Linkov
References:
<877e5dzgnb.fsf@gnus.org> <932cfe15-5e8b-1bf4-5b81-9d0f2a513dea@yandex.ru>
<87a77hqp6m.fsf@mail.linkov.net> <87zhdghjca.fsf@mail.linkov.net>
<5d2163b9-4bf4-e072-ef9e-0fc1550a2108@yandex.ru>
<87imk35uy6.fsf@mail.linkov.net> <87v9o0kg1f.fsf@mail.linkov.net>
<32b1f22f-1ac9-7fd2-0377-4c2d7ae43afd@yandex.ru>
<87sgj2np8k.fsf@mail.linkov.net>
<8736b06f60.fsf@mail.linkov.net>
From: Dmitry Gutov
Message-ID:
Date: Mon, 24 Feb 2020 02:17:53 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <8736b06f60.fsf@mail.linkov.net>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 34949
Cc: Lars Ingebrigtsen , 34949@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -0.7 (/)
On 24.02.2020 1:25, Juri Linkov wrote:
>> Um, not really. Just only adding the 'V' binding to VC-Dir buffers, where
>> it would use the existing known fileset. But no 'C-x v V' binding.
>
> Should then 'V' typed in VC-Dir operate on edited files only,
> or try to use all files including unregistered?
Which option would you choose?
Do you know why we generally try to only operate on the files in the
same status?
>> If that would both satisfy you and simplify the implementation, of course.
>
> What about invoking state-changing VC-operations from Dired?
> Should typing 'v' in Dired open the VC-Dir buffer?
No, I just wouldn't do that.
> BTW, why 'C-x v d RET' requires a confirmation?
> This additional 'RET' is too annoying.
You participated in this discussion:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=12492
Since then, we've had at least another one on the same subject. The
consensus was the current behavior. If you can find that discussion,
please go ahead and revive it if you like. Not in this bug report, though.
> Maybe like a proposal in bug#39704 to use a prefix arg for
> 'C-u M-x vc-print-branch-log' to ask for a directory, then
> 'C-u C-x v d' could do the same and ask for a root directory,
> otherwise without prefix arg 'C-x v d' could use the default root
> without using a prompt.
I would like that, personally. But see above.
From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 24 19:41:44 2020
Received: (at 34949) by debbugs.gnu.org; 25 Feb 2020 00:41:44 +0000
Received: from localhost ([127.0.0.1]:54272 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1j6OIC-00042u-Dq
for submit@debbugs.gnu.org; Mon, 24 Feb 2020 19:41:44 -0500
Received: from aye.elm.relay.mailchannels.net ([23.83.212.6]:25617)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1j6OIA-00042l-Cw
for 34949@debbugs.gnu.org; Mon, 24 Feb 2020 19:41:42 -0500
X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org
Received: from relay.mailchannels.net (localhost [127.0.0.1])
by relay.mailchannels.net (Postfix) with ESMTP id C08D45A0E53;
Tue, 25 Feb 2020 00:41:40 +0000 (UTC)
Received: from pdx1-sub0-mail-a13.g.dreamhost.com
(100-96-215-18.trex.outbound.svc.cluster.local [100.96.215.18])
(Authenticated sender: dreamhost)
by relay.mailchannels.net (Postfix) with ESMTPA id 093505A1587;
Tue, 25 Feb 2020 00:41:40 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org
Received: from pdx1-sub0-mail-a13.g.dreamhost.com ([TEMPUNAVAIL].
[64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384)
by 0.0.0.0:2500 (trex/5.18.5); Tue, 25 Feb 2020 00:41:40 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org
X-MailChannels-Auth-Id: dreamhost
X-Bored-Relation: 3ee5945e561e316c_1582591300516_699248369
X-MC-Loop-Signature: 1582591300516:2107366177
X-MC-Ingress-Time: 1582591300515
Received: from pdx1-sub0-mail-a13.g.dreamhost.com (localhost [127.0.0.1])
by pdx1-sub0-mail-a13.g.dreamhost.com (Postfix) with ESMTP id 410608E2A1;
Mon, 24 Feb 2020 16:41:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc
:subject:references:date:in-reply-to:message-id:mime-version
:content-type; s=linkov.net; bh=eEf/Fjx7M4u5CpgSechtTuQJjts=; b=
vfwsj/3rkURrtgXGmJPeI7Y3ElzlO4CxVVJ5m1amyNLQ0WyuhwknoX4ByO1dj6wo
cn4/MLTNLxp1PfOsqk5A45KOQodiasOICezZAjAUzMWkgSxCvYLAsbgOjhWvMNDe
nGh6iegYu6S7lp4PcH7Q3j3xWt8TUFiplELBmXIVGgI=
Received: from localhost.linkov.net (m91-129-103-27.cust.tele2.ee
[91.129.103.27])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
(Authenticated sender: jurta@jurta.org)
by pdx1-sub0-mail-a13.g.dreamhost.com (Postfix) with ESMTPSA id CB4388CF3F;
Mon, 24 Feb 2020 16:41:34 -0800 (PST)
X-DH-BACKEND: pdx1-sub0-mail-a13
From: Juri Linkov
To: Dmitry Gutov
Subject: Re: bug#34949: 27.0.50; Docstring of `vc-deduce-fileset' incomplete
Organization: LINKOV.NET
References:
<877e5dzgnb.fsf@gnus.org>
<932cfe15-5e8b-1bf4-5b81-9d0f2a513dea@yandex.ru>
<87a77hqp6m.fsf@mail.linkov.net> <87zhdghjca.fsf@mail.linkov.net>
<5d2163b9-4bf4-e072-ef9e-0fc1550a2108@yandex.ru>
<87imk35uy6.fsf@mail.linkov.net> <87v9o0kg1f.fsf@mail.linkov.net>
<32b1f22f-1ac9-7fd2-0377-4c2d7ae43afd@yandex.ru>
<87sgj2np8k.fsf@mail.linkov.net>
<8736b06f60.fsf@mail.linkov.net>
Date: Tue, 25 Feb 2020 02:12:37 +0200
In-Reply-To: (Dmitry Gutov's
message of "Mon, 24 Feb 2020 02:17:53 +0200")
Message-ID: <87sgizy16y.fsf@mail.linkov.net>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-VR-OUT-STATUS: OK
X-VR-OUT-SCORE: -100
X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrledugddvhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecuffhomhgrihhnpehgnhhurdhorhhgnecukfhppeeluddruddvledruddtfedrvdejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghloheplhhotggrlhhhohhsthdrlhhinhhkohhvrdhnvghtpdhinhgvthepledurdduvdelrddutdefrddvjedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegughhuthhovheshigrnhguvgigrdhruh
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 34949
Cc: Lars Ingebrigtsen , 34949@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: