Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Crashes, as in actually exits without you triggering it? That's definitely very unusual; most lisp shouldn't be able to do that. Is there anything particularly unusual about your config? Are you maybe using a loadable module? If you do investigate it, you might find a reportable bug.


It's been years since emacs has crashed on me, very rare.


Emacs crashes on me once a month or so. I'll just be typing something and suddenly it will disappear. I have two theories,

1. Possibly it is something to do with rust-analyzer. I work on a pretty large rust project and that does lock things up sometimes.

2. I actually hit C-x C-c by mistake. It's very possible, my fingers often do things by themselves when I'm not concentrating.


Yeah, I do 2 from time to time, because I use emacs as my long-running editor but also jmacs as a quick-one-off emacs-keybindings terminal editor, and so I tend to autotype C-x C-s C-x C-c for save-and-exit. My fix was to add this to my .emacs:

(put 'save-buffers-kill-emacs 'disabled "You probably didn't want to do that...\n")

which makes emacs prompt you for whether you really meant to ask it to exit. (I'm sure there are a ton of other ways to do this; this is just the first one I hit on a decade or more ago :-))


Set confirm-kill-emacs to (quote yes-or-no-p) through customize-variable. See http://gnu.ist.utl.pt/software/emacs/manual/html_node/Exitin....


Poor wording, locks up and becomes entirely unresponsive.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: