unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Vangelis Evangelou <evangelou@gmail.com>, 46042-done@debbugs.gnu.org
Subject: bug#46042: 27.1; xref-revert-buffer will delete buffer contents
Date: Sat, 23 Jan 2021 02:59:39 +0200	[thread overview]
Message-ID: <4fed5006-8c77-9489-2030-f5eb7af308ac@yandex.ru> (raw)
In-Reply-To: <da7f97fc-ed6f-7b25-3ccb-b433cc9fd79d@gmail.com>

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





  reply	other threads:[~2021-01-23  0:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-22 19:12 bug#46042: 27.1; xref-revert-buffer will delete buffer contents Vangelis Evangelou
2021-01-23  0:59 ` Dmitry Gutov [this message]
2021-01-23  8:03   ` Eli Zaretskii
2021-01-24  1:31     ` Dmitry Gutov
2021-01-29 13:54       ` Dmitry Gutov
2021-01-29 14:01         ` Eli Zaretskii
2021-01-29 14:07           ` Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4fed5006-8c77-9489-2030-f5eb7af308ac@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=46042-done@debbugs.gnu.org \
    --cc=evangelou@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).