unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Reuben Thomas <rrt@sc3d.org>
Cc: 4422@debbugs.gnu.org
Subject: bug#4422: diff-switches is a bad idea
Date: Tue, 01 Oct 2019 15:18:29 +0200	[thread overview]
Message-ID: <87d0fg7gey.fsf@gnus.org> (raw)
In-Reply-To: <f92540e30909130518u387622bbmeb558cde13644514@mail.gmail.com> (Reuben Thomas's message of "Sun, 13 Sep 2009 13:18:03 +0100")

Reuben Thomas <rrt@sc3d.org> writes:

> I'm using Emacs 23, and I have just been puzzling over why vc-diff
> stopped working in CVS checkouts. I eventually traced it to
> diff-switches: I have mine set to "-Nur", quite reasonably, I think,
> but of course "-r" means something quite different to CVS, and I ended
> up with a hard-to-understand error message about tags.
>
> I suggest not using diff-switches (this would also remove some
> special-case code, as no other vc command respects a non-vc option
> like this.) Yes, some users will have to configure the same thing in
> two places, but others will be saved the confusion I had. For the
> switches to be commoned up sensibly, a more structured approach to
> setting them is needed that takes semantics into account, and that way
> lies madness.

(I'm going through old bug reports that unfortunately didn't get any
response at the time.)

I'm not extremely familiar with the vc code, but looking at it in Emacs
27, at least, the switches for diff in CVS comes from
vc-cvs-diff-switches, if I read the `vc-switches' function correctly.

So has this problem gone away in the years since this was reported?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2019-10-01 13:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-13 12:18 bug#4422: diff-switches is a bad idea Reuben Thomas
2019-10-01 13:18 ` Lars Ingebrigtsen [this message]
2019-10-01 13:29   ` Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2019-10-01 13:42   ` Eli Zaretskii
2019-10-02 11:47     ` Lars Ingebrigtsen
2019-10-02 15:16       ` Eli Zaretskii
2019-10-03 14:33         ` Lars Ingebrigtsen

Reply instructions:

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

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

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87d0fg7gey.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=4422@debbugs.gnu.org \
    --cc=rrt@sc3d.org \
    /path/to/YOUR_REPLY

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

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

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).