From: Eli Zaretskii <eliz@gnu.org>
To: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: enquiries@vsm.in, 18573@debbugs.gnu.org
Subject: bug#18573: 24.3.93; set-face-attribute crashes Emacs when started with -nw
Date: Wed, 01 Oct 2014 20:49:28 +0300 [thread overview]
Message-ID: <838ukzk7dj.fsf@gnu.org> (raw)
In-Reply-To: <DAA564B7-9D0C-4FCC-8CE2-6B77D2BDEF31@swipnet.se>
> From: Jan Djärv <jan.h.d@swipnet.se>
> Date: Wed, 1 Oct 2014 19:43:11 +0200
> Cc: enquiries@vsm.in,
> 18573@debbugs.gnu.org
>
> > But if this doesn't work, then what are our alternatives? We could
> > loop over all the frames looking for a GUI frame, and use that. But
> > what if there's no such frame? Signal an error?
>
> There is a fundamental error here. Emacs allows specifying face attributes for future GUI frames when only non-GUI frames exists. But those attributes requires GUI frames to be realized.
> We are missing a "lazy" realization that only saves the text version of the attribute and realizes only when an apropriate frame is available.
>
> For now I comitted the "wont crash" solution (don't execute the code for tty frames) in the emacs 24 branch. No error is signalled and no looping is done to find a GUI frame. I'm not sure if we should do that.
If the frame argument is t, we could try looking for a GUI frame; that
way, we would signal an error in fewer cases. After all, using the
selected frame is arbitrary.
At the very least, I think we should have a FIXME comment there
describing the problem.
Thanks.
next prev parent reply other threads:[~2014-10-01 17:49 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-27 16:13 bug#18573: 24.3.93; set-face-attribute crashes Emacs on OS X 10.9.4 enquiries
2014-09-28 8:44 ` bug#18573: 24.3.93; set-face-attribute crashes Emacs when started with -nw Jan Djärv
2014-09-28 12:24 ` enquiries
2014-10-01 16:49 ` Glenn Morris
2014-10-01 17:55 ` Stefan Monnier
2014-09-29 17:18 ` Eli Zaretskii
2014-09-29 17:34 ` enquiries
2014-10-01 17:43 ` Jan Djärv
2014-10-01 17:49 ` Eli Zaretskii [this message]
2014-10-01 18:11 ` Jan Djärv
2014-10-01 18:16 ` Eli Zaretskii
2019-09-26 20:57 ` 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=838ukzk7dj.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=18573@debbugs.gnu.org \
--cc=enquiries@vsm.in \
--cc=jan.h.d@swipnet.se \
/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.