all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Eli Zaretskii <eliz@gnu.org>
Cc: ninestraycats@gmail.com, 11964@debbugs.gnu.org, cyd@gnu.org
Subject: bug#11964: describe-char causes a fatal error (abort trap: 6) in	non-windowed mode
Date: Sun, 25 Nov 2012 17:16:23 +0100	[thread overview]
Message-ID: <A159F792-A1A1-4EB6-B386-EC291CB29E72@swipnet.se> (raw)
In-Reply-To: <83ehjhznft.fsf@gnu.org>

Hello.

Your patch fixes the problem.

	Jan D.

25 nov 2012 kl. 16:56 skrev Eli Zaretskii <eliz@gnu.org>:

>> From: Jan Djärv <jan.h.d@swipnet.se>
>> Date: Sun, 25 Nov 2012 13:18:28 +0100
>> Cc: Eli Zaretskii <eliz@gnu.org>,
>> ninestraycats@gmail.com,
>> 11964@debbugs.gnu.org
>> 
>> Actually it is not quite fixed, and not NS-specific either.
>> On a X11-emacs, do this (tried with Gtk2, 3 and Lucid, no difference):
>> 
>> % emacs -Q --daemon
>> % emacsclient -c &
>> % emacsclient -c -t
>> 
>> In the second, non-GUI frame do (from this bug):
>> u C-x 8 <RET> 0303 <RET> C-b C-u C-x =
>> 
>> The emacs daemon crashes, the same way as the original bug does.
>> This is because the emacsclient -c creates fontsets, and emacsclient -c -t tries to use them.
>> 
>> So this is a more generic problem.  The fix I made was to initialize fontsets in ns-win.el the same way x-win.el does, but this just hides the problem for the daemon case.
> 
> It is wrong to call internal-char-font on a non-GUI frame; for
> starters, that function might not be compiled in, e.g. if Emacs was
> configured --without-x.  All the other callers of that function are
> careful not to do that.  Does the patch below fix the problem?
> 
> I also think internal-char-font should not blindly call the font
> driver without checking that it isn't NULL first.
> 
> === modified file 'lisp/descr-text.el'
> --- lisp/descr-text.el	2012-08-20 11:12:16 +0000
> +++ lisp/descr-text.el	2012-11-25 15:46:44 +0000
> @@ -354,7 +354,8 @@ This function is semi-obsolete.  Use `ge
> ;; Return a string of CH with composition for padding on both sides.
> ;; It is displayed without overlapping with the left/right columns.
> (defsubst describe-char-padded-string (ch)
> -  (if (internal-char-font nil ch)
> +  (if (and (display-multi-font-p)
> +	   (internal-char-font nil ch))
>       (compose-string (string ch) 0 1 (format "\t%c\t" ch))
>     (string ch)))
> 






  reply	other threads:[~2012-11-25 16:16 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-16 22:51 bug#11964: describe-char causes a fatal error (abort trap: 6) in non-windowed mode Dan Maftei
2012-11-05 14:23 ` Chong Yidong
2012-11-05 15:20   ` Jan Djärv
2012-11-23  6:26     ` Chong Yidong
2012-11-23  7:07       ` Jan Djärv
2012-11-23  9:28         ` Chong Yidong
2012-11-24 17:59         ` Jan Djärv
2012-11-24 18:19           ` Eli Zaretskii
2012-11-25  5:30             ` Chong Yidong
2012-11-25 12:18               ` Jan Djärv
2012-11-25 15:56                 ` Eli Zaretskii
2012-11-25 16:16                   ` Jan Djärv [this message]
2012-11-25 16:34                     ` Eli Zaretskii
2012-11-25 17:17                       ` Jan Djärv
2012-11-26  3:55                   ` Chong Yidong
2012-11-26 17:47                     ` Eli Zaretskii
2012-11-05 18:52   ` Dan Maftei

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=A159F792-A1A1-4EB6-B386-EC291CB29E72@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=11964@debbugs.gnu.org \
    --cc=cyd@gnu.org \
    --cc=eliz@gnu.org \
    --cc=ninestraycats@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.