bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#58784: 28.2; project-buffers incorrect under let-bound default-direc


From: Juri Linkov
Subject: bug#58784: 28.2; project-buffers incorrect under let-bound default-directory
Date: Mon, 21 Nov 2022 20:24:31 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)

> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]