GNU bug report logs - #39608
defun occur does not use a coherent value for default-directory (fix included)

Previous Next

Package: emacs;

Reported by: Stéphane Boucher <Stephane.Boucher <at> acceo.com>

Date: Fri, 14 Feb 2020 20:06:01 UTC

Severity: minor

Tags: fixed, patch

Fixed in version 28.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


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

From: Stéphane Boucher <Stephane.Boucher <at> acceo.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: "39608 <at> debbugs.gnu.org" <39608 <at> debbugs.gnu.org>
Subject: RE: bug#39608: defun occur does not use a coherent value for
 default-directory (fix included)
Date: Tue, 3 Mar 2020 17:03:49 +0000
Defun occur only works with the current buffer.  I even provided a patch on how to fix it.

-----Original Message-----
From: Juri Linkov [mailto:juri <at> linkov.net] 
Sent: March 2, 2020 5:16 PM
To: Stéphane Boucher <Stephane.Boucher <at> acceo.com>
Cc: 39608 <at> debbugs.gnu.org
Subject: Re: bug#39608: defun occur does not use a coherent value for default-directory (fix included)

> When occur creates an *Occur* buffer, the default-directory variable 
> is implicitly set to the default-directory of the buffer the 
> occurences came from.
>
> When occur REUSES an existing *Occur* buffer, it does not update the 
> default-directory variable.

What default-directory do you expect in case of multi-occur that displays occurrences from multiple buffers that might be located in multiple directories?




This bug report was last modified 5 years and 79 days ago.

Previous Next


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