From: Drew Adams <drew.adams@oracle.com>
To: 24692@debbugs.gnu.org
Subject: bug#24692: 25.1; simple, reproducible Emacs 25.1 crash on MS Windows
Date: Fri, 14 Oct 2016 09:39:29 -0700 (PDT) [thread overview]
Message-ID: <dd7af3f4-68e0-47d6-ace7-a9f086be7643@default> (raw)
[-- Attachment #1: Type: text/plain, Size: 1052 bytes --]
I hope this is responsible for the frequent crashes I get with Emacs 25,
or at least most of them.
I spent many hours narrowing this down. I'm hoping that that time won't
have been wasted. ;-)
Recipe:
1. Save the attached file, `e25-crash.el'.
2. runemacs.exe -Q --debug-init -l "/YOUR/PATH/TO/e25-crash.el
You will get two frames, one with buffer *scratch*, the other with the
minibuffer, buffer *Minibuf-0*.
3. Click the title bar of the frame having buffer *scratch*, to raise
and select it.
4. `C-h f prefix-command-preserve-state RET'.
5. Click `mouse-2' on the file name `simple.el' in buffer `*Help*'.
CRASH!
Note that using a different command for `C-h f', which is not in
`simple.el', might not crash Emacs. A guess is that the (now)
large size of `simple.el' contributes to the problem.
In GNU Emacs 25.1.1 (x86_64-w64-mingw32)
of 2016-09-17
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
`configure --without-dbus --without-compress-install CFLAGS=-static'
[-- Attachment #2: e25-crash.el --]
[-- Type: application/octet-stream, Size: 1662 bytes --]
;; 1. Save attached file `e25-crash.el'.
;; 2. runemacs.exe -Q --debug-init -l "/YOUR/PATH/TO/e25-crash.el
;; 3. `C-h f prefix-command-preserve-state'
;; 4. Click the file name `simple.el' in buffer `*Help*'
;;
;; CRASH!!!!!!!!!!
(defun fit-frame (frame)
""
(save-window-excursion
(select-frame frame)
(let ((win-cons
(fit-frame-max-window-size (selected-window))
))
(cons (car win-cons) (cdr win-cons)))))
(defun fit-frame-same-row-windows (wins window exclude)
""
(let ((ref-bottom (cadr (cddr (window-edges window))))
(row-wins ()))
(dolist (win wins)
(when (and (not (memq win exclude)) (< (cadr (window-edges win)) ref-bottom))
(push win row-wins)))
row-wins))
(defun fit-frame-same-column-windows (wins window exclude)
""
(let ((ref-right (car (cddr (window-edges window))))
(col-wins ()))
(dolist (win wins)
(when (and (not (memq win exclude)) (< (car (window-edges win)) ref-right))
(push win col-wins)))
col-wins))
(defun fit-frame-max-window-size (window)
""
(select-window window)
(let ((max-win-width 0)
(max-win-height 1))
(save-excursion
(set-buffer (window-buffer))
(goto-char (point-min))
(while (not (eobp))
(end-of-line)
(setq max-win-width (max (current-column) max-win-width))
(when (zerop (forward-line 1))
(setq max-win-height (1+ max-win-height)))))
(cons max-win-width max-win-height)))
(setq pop-up-frames t)
(let ((after-make-frame-functions ())) (make-frame '((minibuffer . only))))
(add-hook 'after-make-frame-functions 'fit-frame)
next reply other threads:[~2016-10-14 16:39 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-14 16:39 Drew Adams [this message]
2016-10-14 17:13 ` bug#24692: 25.1; simple, reproducible Emacs 25.1 crash on MS Windows martin rudalics
2016-10-14 17:26 ` Eli Zaretskii
2016-10-14 17:52 ` martin rudalics
2016-10-14 17:51 ` Drew Adams
2016-10-14 18:05 ` martin rudalics
2016-10-14 18:10 ` Drew Adams
2016-10-14 18:16 ` martin rudalics
2016-10-14 18:28 ` Drew Adams
2016-10-14 19:04 ` Eli Zaretskii
2016-10-14 18:24 ` Drew Adams
2016-10-14 18:51 ` Eli Zaretskii
2016-10-14 17:20 ` Eli Zaretskii
[not found] <<dd7af3f4-68e0-47d6-ace7-a9f086be7643@default>
[not found] ` <<83a8e64zkt.fsf@gnu.org>
2016-10-14 17:57 ` Drew Adams
2016-10-14 18:07 ` Drew Adams
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=dd7af3f4-68e0-47d6-ace7-a9f086be7643@default \
--to=drew.adams@oracle.com \
--cc=24692@debbugs.gnu.org \
/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).