From: Drew Adams <drew.adams@oracle.com>
To: Paul Eggert <eggert@cs.ucla.edu>, Glenn Morris <rgm@gnu.org>
Cc: Richard Munitz <rmunitz1@bloomberg.net>, 20247@debbugs.gnu.org
Subject: bug#20247: 24.4; Emacs hangs at startup in desktop mode
Date: Fri, 20 May 2016 08:24:04 -0700 (PDT) [thread overview]
Message-ID: <09b74092-e4db-4ee0-8508-a71cc29e0205@default> (raw)
In-Reply-To: <a91e3c98-f3c1-0ff9-c7f7-d453c30b1de4@cs.ucla.edu>
> I'm looking into Bug#20247 <http://bugs.gnu.org#20247>, currently listed
> as a blocker for Emacs 25. From the bug report, it appears that the
> attached patch would have prevented the bug. This patch is a change to
> Emacs behavior so I'll propose it here now, and give a heads-up on the
> Emacs-devel mailing list before installing it. Comments welcome. I don't
> care myself about the behavior one way or another (I don't use desktop
> mode) and am mainly just trying to clear out the bug backlog.
This doesn't sound right, to me. (To be clear, it does not affect my
own use of Emacs.)
Can we not leave the default to respecting the saved display value,
but also use a `condition-case' or similar to DTRT if that display
does not exist or trying to use it raises an error in some other way?
The proposed cure sounds like killing the patient. IIUC, the problem
reported is that the recorded display value cannot be used in this
case. Fine. That's not a sufficient reason for defaulting to not
using the recorded display value.
And it doesn't solve the underlying problem for a user who decides
to customize the value to use the recorded display value.
A better fix, I think, would be to do something like this:
1. Leave the default as is (not specifically important to this bug,
however, as I mentioned: changing the default does NOT solve the
problem, AFAICT).
2. If the current value says to use the recorded display then try
to do that. If an error is raised then do not use it.
I don't have the code for #2. No doubt Someone (TM) would need to
_actually try to debug this_, to find out just what happens when a
bad display value is tried.
The OP reported that Emacs hangs. Debugging would need to find
out just what goes on, and trap that problem as an error - raise
an error instead of hang. Then the code to DTRT in this case,
which is to fall back to ignoring the display value that led to
the error, should be pretty simple.
The first task is for Someone (TM) to actually try to find out
what the problem is - what happens - when the display value is
inappropriate.
next prev parent reply other threads:[~2016-05-20 15:24 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-02 15:22 bug#20247: 24.4; Emacs hangs at startup in desktop mode Richard Munitz (BLOOMBERG/ 731 LEX)
2015-04-15 18:03 ` Glenn Morris
2015-04-16 13:46 ` Richard Munitz (BLOOMBERG/ 731 LEX)
2016-05-20 15:08 ` Paul Eggert
2016-05-20 15:24 ` Drew Adams [this message]
2016-05-20 15:34 ` Paul Eggert
2016-05-20 15:54 ` Drew Adams
2016-05-20 16:10 ` Eli Zaretskii
2016-05-20 16:31 ` Paul Eggert
2016-05-20 16:09 ` Eli Zaretskii
2016-05-20 16:06 ` Eli Zaretskii
[not found] ` <<83d1og90iw.fsf@gnu.org>
2016-05-20 17:15 ` Drew Adams
2016-05-20 17:44 ` Eli Zaretskii
[not found] ` <<<83d1og90iw.fsf@gnu.org>
[not found] ` <<4eebea73-4fcb-4dc7-b149-cef7a34a3c16@default>
[not found] ` <<837feo8w0u.fsf@gnu.org>
2016-05-20 17:54 ` Drew Adams
2016-05-23 16:53 ` Paul Eggert
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=09b74092-e4db-4ee0-8508-a71cc29e0205@default \
--to=drew.adams@oracle.com \
--cc=20247@debbugs.gnu.org \
--cc=eggert@cs.ucla.edu \
--cc=rgm@gnu.org \
--cc=rmunitz1@bloomberg.net \
/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).