GNU bug report logs - #42136
26.1.90; rgrep uses a directory that was not actually given

Previous Next

Package: emacs;

Reported by: Benjamin Riefenstahl <Riefenstahl <at> mecom.de>

Date: Tue, 30 Jun 2020 11:08:02 UTC

Severity: normal

Found in version 26.1.90

Full log


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

From: Juri Linkov <juri <at> linkov.net>
To: Benjamin Riefenstahl <Riefenstahl <at> mecom.de>
Cc: 42136 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> IRO.UMontreal.CA>,
 Dmitry Gutov <dgutov <at> yandex.ru>
Subject: Re: bug#42136: 26.1.90; rgrep uses a directory that was not
 actually given
Date: Thu, 02 Jul 2020 00:46:06 +0300
> Also I wanted to hear if anybody has a tip about some customization that
> I was missing.

Maybe some advice might help you:

(advice-add 'read-directory-name :around
            (lambda (orig-fun prompt &optional dir default-dirname
			      mustmatch initial)
              (cond
	       ((equal prompt "Base directory: ")
		(funcall orig-fun prompt dir default-dirname
			 nil initial))
               (t
		(funcall orig-fun prompt dir default-dirname
			 mustmatch initial))))
            '((name . read-directory-name-no-mustmatch)))

It overrides the MUSTMATCH argument of read-directory-name in rgrep.




This bug report was last modified 4 years and 349 days ago.

Previous Next


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