From: martin rudalics <rudalics@gmx.at>
To: Levi <wacossusca34@gmail.com>, 28862@debbugs.gnu.org
Subject: bug#28862: Emacs 25.3.1 segmentation fault on killing *Colors* buffer
Date: Mon, 16 Oct 2017 10:16:58 +0200 [thread overview]
Message-ID: <59E46AFA.8060502@gmx.at> (raw)
In-Reply-To: <CAM1nYoG5v0t766Z2LTNrHVWp-LGsNTK=Ci7_AACUbSUxtt6pbA@mail.gmail.com>
> (add-hook 'delete-frame-functions
> (lambda (frame)
> (dolist (elem (window-list frame))
> (kill-buffer (window-buffer elem)))))
‘delete-frame-functions’ must be used with great care. For example, I
can crash Emacs 25 by evaluating the following forms in row:
(defvar old-frame (selected-frame))
(defvar new-frame (make-frame))
(add-hook 'delete-frame-functions
(lambda (f) (delete-frame new-frame)))
(delete-frame old-frame)
Now if killing a buffer in ‘delete-frame-functions’ may delete a frame
because, for example, the buffer is shown in a dedicated window which is
the only window on that frame, you may run exactly in the scenario
described above. I hopefully fixed that for Emacs 26 so if you could
try the release version ...
martin
next prev parent reply other threads:[~2017-10-16 8:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-16 2:49 bug#28862: Emacs 25.3.1 segmentation fault on killing *Colors* buffer Levi
2017-10-16 8:16 ` martin rudalics [this message]
2017-10-16 15:10 ` Eli Zaretskii
2017-10-17 2:30 ` Levi
2017-10-17 8:59 ` martin rudalics
2017-10-17 23:14 ` Levi
2017-10-18 8:12 ` martin rudalics
2017-11-01 23:08 ` Noam Postavsky
2019-06-30 4:48 ` Stefan Kangas
2019-08-23 6:27 ` Stefan Kangas
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=59E46AFA.8060502@gmx.at \
--to=rudalics@gmx.at \
--cc=28862@debbugs.gnu.org \
--cc=wacossusca34@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.