From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mike Woolley Newsgroups: gmane.emacs.bugs Subject: bug#57777: 28.2; `vc-dir' picks incorrect backend. Date: Tue, 13 Sep 2022 17:30:28 +0100 Message-ID: <29088AD9-36ED-4D7D-A0A0-6D17C79F065F@bulsara.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_F772FA39-2746-44E6-9224-1824FB46FFE6" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12343"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen To: 57777@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 13 18:34:57 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oY8sD-0002xd-8p for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Sep 2022 18:34:57 +0200 Original-Received: from localhost ([::1]:34162 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oY8sA-0006ky-Bd for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Sep 2022 12:34:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49986) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oY8oS-0005lT-D4 for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2022 12:31:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35851) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oY8oQ-0006dI-QU for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2022 12:31:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oY8oQ-0001ss-MA for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2022 12:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mike Woolley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Sep 2022 16:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57777 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16630866437214 (code B ref -1); Tue, 13 Sep 2022 16:31:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Sep 2022 16:30:43 +0000 Original-Received: from localhost ([127.0.0.1]:52783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oY8o6-0001sH-GY for submit@debbugs.gnu.org; Tue, 13 Sep 2022 12:30:43 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:40908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oY8o4-0001s9-1c for submit@debbugs.gnu.org; Tue, 13 Sep 2022 12:30:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oY8o3-00058e-QS for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2022 12:30:39 -0400 Original-Received: from mailout.easymail.ca ([64.68.200.34]:34430) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oY8o0-0006Uu-Eq for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2022 12:30:39 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id AF14CE45FF; Tue, 13 Sep 2022 16:30:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo08-pco.easydns.vpn Original-Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo08-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wCDKSWGGHPFV; Tue, 13 Sep 2022 16:30:32 +0000 (UTC) Original-Received: from smtpclient.apple (97e60a2a.skybroadband.com [151.230.10.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id DD9CAE45B4; Tue, 13 Sep 2022 16:30:31 +0000 (UTC) X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: none client-ip=64.68.200.34; envelope-from=mike@bulsara.com; helo=mailout.easymail.ca X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:242400 Archived-At: --Apple-Mail=_F772FA39-2746-44E6-9224-1824FB46FFE6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Steps to repro: Start with a directory having both .Git and CVS sub-directories. Emacs -Q (setq vc-handled-backends '(Git CVS)) (vc-dir) Observe `vc-dir=E2=80=99 incorrectly uses the CVS backend rather than = Git. Open one of the vc-managed files and the Git backend is (correctly) = chosen. This used to work fine in emacs < 28. This issue was masked in 28.1 by bug#54935 forcing me to choose the = backend manually. Thanks, Mike In GNU Emacs 28.2 (build 1, aarch64-apple-darwin21.1.0, NS = appkit-2113.00 Version 12.0.1 (Build 21A559)) of 2022-09-12 built on armbob.lan Windowing system distributor 'Apple', version 10.3.2113 System Description: macOS 12.6 Configured using: 'configure --with-ns '--enable-locallisppath=3D/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: ACL GMP GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER THREADS TOOLKIT_SCROLL_BARS ZLIB Important settings: value of $LANG: en_GB.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 show-paren-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 indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (cl-print help-fns radix-tree help-mode pp shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils vc-mtn vc-hg vc-git diff-mode easy-mmode vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs vc-dir seq byte-opt gv bytecomp byte-compile cconv ewoc vc cl-loaddefs cl-lib vc-dispatcher iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer 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 emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 71262 11169) (symbols 48 8211 8) (strings 32 25210 2287) (string-bytes 1 793971) (vectors 16 17356) (vector-slots 8 226555 21748) (floats 8 30 67) (intervals 56 839 0) (buffers 992 17)) --Apple-Mail=_F772FA39-2746-44E6-9224-1824FB46FFE6 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Steps= to repro:

  1. Start with a directory having both = .Git and CVS sub-directories.
  2. Emacs -Q
  3. (setq vc-handled-backends '(Git CVS))
  4. (vc-dir)
  5. Observe `vc-dir=E2=80=99 = incorrectly uses the CVS backend rather than Git.
  6. Open = one of the vc-managed files and the Git backend is (correctly) = chosen.
  7. This used to work fine in emacs < = 28.
  8. This issue was masked in 28.1 by bug#54935 = forcing me to choose the backend manually.

Thanks,
Mike

In GNU Emacs 28.2 (build = 1, aarch64-apple-darwin21.1.0, NS appkit-2113.00 Version 12.0.1 (Build = 21A559))
 of 2022-09-12 built on = armbob.lan
Windowing system distributor 'Apple', = version 10.3.2113
System Description:  macOS = 12.6

Configured = using:
 'configure --with-ns = '--enable-locallisppath=3D/Library/Application
 Support/Emacs/${version}/site-lisp:/Library/Application
 Support/Emacs/site-lisp' = --with-modules'

Configured features:
ACL GMP GNUTLS JSON = LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER THREADS
TOOLKIT_SCROLL_BARS ZLIB

Important settings:
  value of $LANG: en_GB.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
  show-paren-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
  indent-tabs-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(cl-print help-fns radix-tree = help-mode pp shadow sort mail-extr
emacsbug message = rmc puny dired dired-loaddefs rfc822 mml mml-sec epa
derived epg rfc6068 epg-config gnus-util rmail = rmail-loaddefs
auth-source cl-seq eieio eieio-core = cl-macs eieio-loaddefs
password-cache json map = text-property-search time-date subr-x mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils = mailheader
sendmail rfc2047 rfc2045 ietf-drums = mm-util mail-prsvr mail-utils vc-mtn
vc-hg vc-git = diff-mode easy-mmode vc-bzr vc-src vc-sccs vc-svn vc-cvs
vc-rcs vc-dir seq byte-opt gv bytecomp byte-compile cconv = ewoc vc
cl-loaddefs cl-lib vc-dispatcher iso-transl = tooltip eldoc paren electric
uniquify ediff-hook = vc-hooks lisp-float-type elisp-mode mwheel
term/ns-win ns-win ucs-normalize mule-util term/common-win = tool-bar dnd
fontset image regexp-opt fringe = tabulated-list replace newcomment
text-mode = lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow
isearch easymenu timer select scroll-bar mouse jit-lock = font-lock syntax
font-core term/tty-colors frame = minibuffer 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 = emoji-zwj charscript charprop
case-table epa-hook = jka-cmpr-hook help simple abbrev obarray
cl-preloaded= nadvice button loaddefs faces cus-face macroexp files
window text-properties overlay sha1 md5 base64 format env = code-pages
mule custom widget = hashtable-print-readable backquote threads kqueue
cocoa ns multi-tty make-network-process emacs)

Memory = information:
((conses 16 71262 11169)
 (symbols 48 8211 8)
 (strings = 32 25210 2287)
 (string-bytes 1 = 793971)
 (vectors 16 17356)
 (vector-slots 8 226555 21748)
 (floats 8 30 67)
 (intervals = 56 839 0)
 (buffers 992 = 17))

= --Apple-Mail=_F772FA39-2746-44E6-9224-1824FB46FFE6--