syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.71k stars 4.9k forks source link

A modified fileless buffer gets deleted without confirmation #7487

Closed duianto closed 4 years ago

duianto commented 8 years ago

Description :octocat:

Any text that has been written in a new buffer, that hasn't been saved to a file yet, will be lost right away if one deletes that buffer, because there's no confirmation before it gets deleted.

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart:

The buffer gets deleted instantly without asking for confirmation first.

Expected behaviour: :heart: :smile:

It should probably ask for confirmation first.

Possible prompt message (or something better):

slightly shorter:

The shorter messages would be similar to the current message that appears when one tries to delete a buffer containing a modified file:

Buffer filename.txt modified; kill anyway? (y or n)

System Info :computer:

  • OS: windows-nt
  • Emacs: 25.1.1
  • Spacemacs: 0.200.3
  • Spacemacs branch: develop (rev. b550945)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(auto-completion autohotkey emacs-lisp git helm)
fiveNinePlusR commented 7 years ago

There is a problem with this because emacs uses a lot of one-off special buffers. I would love to have this as a feature though but only for the buffers I create manually. (e.g. not a magit or helm buffer.)

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!