all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#36911: 26.1; Impossible to customise vc-ignore-dir-regexp
@ 2019-08-03 18:44 Juliusz Chroboczek
  2019-08-23  4:58 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Juliusz Chroboczek @ 2019-08-03 18:44 UTC (permalink / raw)
  To: 36911

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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#36911: 26.1; Impossible to customise vc-ignore-dir-regexp
  2019-08-03 18:44 bug#36911: 26.1; Impossible to customise vc-ignore-dir-regexp Juliusz Chroboczek
@ 2019-08-23  4:58 ` Lars Ingebrigtsen
  2019-08-23 13:08   ` Juliusz Chroboczek
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2019-08-23  4:58 UTC (permalink / raw)
  To: Juliusz Chroboczek; +Cc: 36911

Juliusz Chroboczek <jch@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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#36911: 26.1; Impossible to customise vc-ignore-dir-regexp
  2019-08-23  4:58 ` Lars Ingebrigtsen
@ 2019-08-23 13:08   ` Juliusz Chroboczek
  2019-08-25  5:35     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Juliusz Chroboczek @ 2019-08-23 13:08 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 36911

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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#36911: 26.1; Impossible to customise vc-ignore-dir-regexp
  2019-08-23 13:08   ` Juliusz Chroboczek
@ 2019-08-25  5:35     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2019-08-25  5:35 UTC (permalink / raw)
  To: Juliusz Chroboczek; +Cc: 36911

Juliusz Chroboczek <jch@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





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-08-25  5:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-03 18:44 bug#36911: 26.1; Impossible to customise vc-ignore-dir-regexp Juliusz Chroboczek
2019-08-23  4:58 ` Lars Ingebrigtsen
2019-08-23 13:08   ` Juliusz Chroboczek
2019-08-25  5:35     ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.