GNU bug report logs - #78982
30.1; find-program value mismatch between runtime and ~grep.el~ definition

Previous Next

Package: emacs;

Reported by: Anush V <j <at> gnu.org>

Date: Wed, 9 Jul 2025 14:33:02 UTC

Severity: normal

Found in version 30.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Anush V <j <at> gnu.org>
Cc: 78982 <at> debbugs.gnu.org
Subject: bug#78982: 30.1; find-program value mismatch between runtime and ~grep.el~ definition
Date: Wed, 09 Jul 2025 19:01:26 +0300
> From: Anush V <j <at> gnu.org>
> Date: Wed, 09 Jul 2025 10:31:03 -0400
> 
> Hello Emacs maintainers,  emacs --no-init; 
>  
>   C-h v find-program 
>  
> Shows 
>  
>   find-program is a variable defined in ‘grep.el’. 
>  
>   Its value is 
>   "/gnu/store/6i0xi5kf38jk54sw64akd3iv8scw5g6x-findutils-4.9.0/bin/find" 
>  
> However, the definition of find-program in `grep.el` is 
>  
>   (defvar find-program (purecopy 
>   "/gnu/store/w4p913kmnga3xh80vx8vnkri42dcmqi3-findutils-4.9.0/bin/find") 
>     "The default find program. 
>   This is used by commands like `grep-find-command', `find-dired' 
>   and others.") 
>  
> The find-program value differs, despite no user configuration being
> loaded.  Could you confirm whether this is expected behavior or
> a potential bug?

The actual value of find-program set by grep.el is this:

  (defvar find-program (purecopy "find")
    "The default find program.
  This is used by commands like `grep-find-command', `find-dired'
  and others.")

So the value is just "find", and some code somewhere assigned a
different value to this variable, and you need to figure out which
code did that and why.

I don't see any Emacs bugs here.




This bug report was last modified 36 days ago.

Previous Next


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