GNU bug report logs - #46042
27.1; xref-revert-buffer will delete buffer contents

Previous Next

Package: emacs;

Reported by: Vangelis Evangelou <evangelou <at> gmail.com>

Date: Fri, 22 Jan 2021 19:24:01 UTC

Severity: normal

Found in version 27.1

Fixed in version 28.1

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

Bug is archived. No further changes may be made.

Full log


Message #10 received at 46042-done <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Vangelis Evangelou <evangelou <at> gmail.com>, 46042-done <at> debbugs.gnu.org
Subject: Re: bug#46042: 27.1; xref-revert-buffer will delete buffer contents
Date: Sat, 23 Jan 2021 02:59:39 +0200
Version: 28.1

Hi!

On 22.01.2021 21:12, Vangelis Evangelou wrote:
> 
> Hello. In a scratch buffer containing some text, run the function
> xref-revert-buffer. The buffer content will be deleted and it is not
> possible to undo. The function should check that it is applied in a
> suitable buffer before modifying the buffer.

Thanks for the report. Indeed, it sounds unfortunate, if you just called 
the command accidentally.

I've pushed a fix (which will make it complain with (void-function nil) 
instead of erasing the buffer) to master. Sometime later, we'll tag a 
new release of the xref package, and you'll be able to update to the new 
version through 'M-x list-packages'.




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

Previous Next


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