GNU bug report logs - #58784
28.2; project-buffers incorrect under let-bound default-directory

Previous Next

Package: emacs;

Reported by: Sean Devlin <spd <at> toadstyle.org>

Date: Wed, 26 Oct 2022 00:14:01 UTC

Severity: normal

Found in version 28.2

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


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

From: Juri Linkov <juri <at> linkov.net>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: Sean Devlin <spd <at> toadstyle.org>, 58784 <at> debbugs.gnu.org
Subject: Re: bug#58784: 28.2; project-buffers incorrect under let-bound
 default-directory
Date: Mon, 21 Nov 2022 20:24:31 +0200
> So I just pushed that fix to master.

Unfortunately, this change broke 'C-x p p g':

  @@ -1667,9 +1667,10 @@ project-switch-project
  -    (let ((default-directory dir)
  -          (project-current-inhibit-prompt t))
  -      (call-interactively command))))
  +    (with-temp-buffer
  +      (let ((default-directory dir)
  +            (project-current-inhibit-prompt t))
  +        (call-interactively command)))))

Because 'C-x p p' switches to a temporary buffer, then
'g' calls 'project-find-regexp' and 'project--read-regexp'.
But (thing-at-point 'symbol t) can't get a symbol at point
in the empty temporary buffer.




This bug report was last modified 2 years and 178 days ago.

Previous Next


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