GNU bug report logs - #36911
26.1; Impossible to customise vc-ignore-dir-regexp

Previous Next

Package: emacs;

Reported by: Juliusz Chroboczek <jch <at> irif.fr>

Date: Sat, 3 Aug 2019 18:45:02 UTC

Severity: wishlist

Tags: moreinfo, wontfix

Found in version 26.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 36911 in the body.
You can then email your comments to 36911 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#36911; Package emacs. (Sat, 03 Aug 2019 18:45:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Juliusz Chroboczek <jch <at> irif.fr>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 03 Aug 2019 18:45:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Juliusz Chroboczek <jch <at> irif.fr>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.1; Impossible to customise vc-ignore-dir-regexp
Date: Sat, 03 Aug 2019 20:44:09 +0200
I'm trying to disable vc in a directory (an sshfs mount).  The obvious
candidate is vc-ignore-dir-regexp:

> vc-ignore-dir-regexp is a variable defined in ‘vc-hooks.el’.
> Its value is
> "\\`\\(?:[\\/][\\/][^\\/]+[\\/]\\|/\\(?:net\\|afs\\|\\.\\.\\.\\)/\\)\\'"

It is essentially impossible for a normal user to customise this variable
without disabling the existing functionality.  So for now, it's

  (setq vc-handled-backends nil)

Regards,

-- Juliusz




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36911; Package emacs. (Fri, 23 Aug 2019 04:59:02 GMT) Full text and rfc822 format available.

Message #8 received at 36911 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Juliusz Chroboczek <jch <at> irif.fr>
Cc: 36911 <at> debbugs.gnu.org
Subject: Re: bug#36911: 26.1; Impossible to customise vc-ignore-dir-regexp
Date: Fri, 23 Aug 2019 06:58:42 +0200
Juliusz Chroboczek <jch <at> irif.fr> writes:

> I'm trying to disable vc in a directory (an sshfs mount).  The obvious
> candidate is vc-ignore-dir-regexp:
>
>> vc-ignore-dir-regexp is a variable defined in ‘vc-hooks.el’.
>> Its value is
>> "\\`\\(?:[\\/][\\/][^\\/]+[\\/]\\|/\\(?:net\\|afs\\|\\.\\.\\.\\)/\\)\\'"
>
> It is essentially impossible for a normal user to customise this variable
> without disabling the existing functionality.  So for now, it's
>
>   (setq vc-handled-backends nil)

I'm not sure why it's impossible to customise that variable?  You can
just set it to "/my/ignored/directory" and that should work.

(You'd lose the original value, which is about AFS and SMB mounts, which
may be a sensible default, but which isn't relevant to most people
working in GNU/Linux.)

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




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 23 Aug 2019 04:59:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36911; Package emacs. (Fri, 23 Aug 2019 13:09:02 GMT) Full text and rfc822 format available.

Message #13 received at 36911 <at> debbugs.gnu.org (full text, mbox):

From: Juliusz Chroboczek <jch <at> irif.fr>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 36911 <at> debbugs.gnu.org
Subject: Re: bug#36911: 26.1; Impossible to customise vc-ignore-dir-regexp
Date: Fri, 23 Aug 2019 15:08:43 +0200
Hi Lars,

>>> vc-ignore-dir-regexp is a variable defined in ‘vc-hooks.el’.
>>> Its value is
>>> "\\`\\(?:[\\/][\\/][^\\/]+[\\/]\\|/\\(?:net\\|afs\\|\\.\\.\\.\\)/\\)\\'"

>> It is essentially impossible for a normal user to customise this variable
>> without disabling the existing functionality.  So for now, it's
>> 
>> (setq vc-handled-backends nil)

> I'm not sure why it's impossible to customise that variable?  You can
> just set it to "/my/ignored/directory" and that should work.

> (You'd lose the original value, which is about AFS and SMB mounts, which
> may be a sensible default, but which isn't relevant to most people
> working in GNU/Linux.)

How am I supposed to know that?  I'm sure I'm not the only person afraid
to touch it.

-- Juliuszp




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36911; Package emacs. (Sun, 25 Aug 2019 05:36:01 GMT) Full text and rfc822 format available.

Message #16 received at 36911 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Juliusz Chroboczek <jch <at> irif.fr>
Cc: 36911 <at> debbugs.gnu.org
Subject: Re: bug#36911: 26.1; Impossible to customise vc-ignore-dir-regexp
Date: Sun, 25 Aug 2019 07:35:22 +0200
Juliusz Chroboczek <jch <at> irif.fr> writes:

>>>> vc-ignore-dir-regexp is a variable defined in ‘vc-hooks.el’.
>>>> Its value is
>>>> "\\`\\(?:[\\/][\\/][^\\/]+[\\/]\\|/\\(?:net\\|afs\\|\\.\\.\\.\\)/\\)\\'"

[...]

>> I'm not sure why it's impossible to customise that variable?  You can
>> just set it to "/my/ignored/directory" and that should work.
>
>> (You'd lose the original value, which is about AFS and SMB mounts, which
>> may be a sensible default, but which isn't relevant to most people
>> working in GNU/Linux.)
>
> How am I supposed to know that?  I'm sure I'm not the only person afraid
> to touch it.

It does look pretty daunting as it is, but it's just a regexp to ignore
files and you can put whatever you want in it.  And I don't think that's
unclear from the doc string, so I don't think there's anything to fix here.

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




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 25 Aug 2019 05:36:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 36911 <at> debbugs.gnu.org and Juliusz Chroboczek <jch <at> irif.fr> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 25 Aug 2019 05:36:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 22 Sep 2019 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 330 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.