From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#44617: 26.3; diff-mode ignores diff-switches Date: Sun, 06 Dec 2020 14:51:08 +0100 Message-ID: <87im9fcab7.fsf@gnus.org> References: <87361bzz0y.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3314"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 44617@debbugs.gnu.org To: Francesco =?UTF-8?Q?Potort=C3=AC?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 06 14:52:10 2020 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 1kluSQ-0000j4-Ae for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Dec 2020 14:52:10 +0100 Original-Received: from localhost ([::1]:46834 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kluSP-00067a-56 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Dec 2020 08:52:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kluSI-000676-5m for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 08:52:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37663) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kluSH-0001rn-VC for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 08:52:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kluSH-0001qL-Tz for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 08:52:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Dec 2020 13:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44617 X-GNU-PR-Package: emacs Original-Received: via spool by 44617-submit@debbugs.gnu.org id=B44617.16072626877028 (code B ref 44617); Sun, 06 Dec 2020 13:52:01 +0000 Original-Received: (at 44617) by debbugs.gnu.org; 6 Dec 2020 13:51:27 +0000 Original-Received: from localhost ([127.0.0.1]:49206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kluRj-0001pI-JD for submit@debbugs.gnu.org; Sun, 06 Dec 2020 08:51:27 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:52894) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kluRh-0001p2-MA for 44617@debbugs.gnu.org; Sun, 06 Dec 2020 08:51:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=LC7E3Ek16gBznOb6864pjHINZbGPqN0LOTcX0/AdB4s=; b=Gl/goqvh5uRbCrAxgNGY7xT6NI IZ7j125L5rdsqEDEkQR5o/0mvfnogTGhdAnhksMdy0sM25eMv9e8BMFn5bw8Y9WPKfl48lR6k56vQ SE98G1M/31DBIpe8/YuiP4d7QCmTz7eHBKqGYl0S5170h6zbM4/xh9QMpWvF2zys0XYQ=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kluRR-0004kg-7T; Sun, 06 Dec 2020 14:51:19 +0100 X-Now-Playing: Joan as Police Woman's _Cover Two_: "On the Beach" In-Reply-To: ("Francesco =?UTF-8?Q?Potort=C3=AC?="'s message of "Sat, 05 Dec 2020 22:05:19 +0100") 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:195097 Archived-At: Francesco Potort=C3=AC writes: >>What's the use case you have for diff-switches where you'd want this >>command to heed diff-switches? > > I have two use cases. > > 1) When using dired-diff (hit =3D in a dired buffer) diff-switches is not= used. > > 2) Same is when using vc-diff (C-x v =3D) in a VC buffer. > > Apparently case 2) is a bug, because the docs of vc-diff-switches says > that diff-switches should be used. Case 1) could simply be unexpected > behaviour. I 1), diff-switches is always used, so I can't reproduce that problem at all -- changing diff-switches and using the `=3D' command reflects the changed switches. Do you have that command rebound, by any chance? As for 2), `diff-switches' is indeed used, but only when `vc-diff-switches' is nil, as the doc string says: -- When running diff under a given BACKEND, VC uses the first non-nil value of =E2=80=98vc-BACKEND-diff-switches=E2=80=99, =E2=80=98vc-di= ff-switches=E2=80=99, and =E2=80=98diff-switches=E2=80=99, in that order.=20 -- --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no