all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How is display of images prevented on text-only frames?
@ 2015-01-30 15:32 joakim
  2015-01-30 15:47 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: joakim @ 2015-01-30 15:32 UTC (permalink / raw)
  To: emacs-devel

I cant seem to figure it out.

My concrete problem is that I wind up here, term.c 1563:

void
produce_glyphs (struct it *it)
{
  /* If a hook is installed, let it do the work.  */

  /* Nothing but characters are supported on terminal frames.  */
  eassert (it->what == IT_CHARACTER
	   || it->what == IT_COMPOSITION
	   || it->what == IT_STRETCH
	   || it->what == IT_GLYPHLESS);

... with a xwidget, and then the assert gets upset.

Images doesnt seem to wind up here though.

-- 
Joakim Verona



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How is display of images prevented on text-only frames?
  2015-01-30 15:32 How is display of images prevented on text-only frames? joakim
@ 2015-01-30 15:47 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2015-01-30 15:47 UTC (permalink / raw)
  To: joakim; +Cc: emacs-devel

> From: joakim@verona.se
> Date: Fri, 30 Jan 2015 16:32:47 +0100
> 
> I cant seem to figure it out.

They are ignored in handle_single_display_spec, if the frame is not a
GUI frame.  See the code around line 5125 in xdisp.c (on master).

> void
> produce_glyphs (struct it *it)
> {
>   /* If a hook is installed, let it do the work.  */
> 
>   /* Nothing but characters are supported on terminal frames.  */
>   eassert (it->what == IT_CHARACTER
> 	   || it->what == IT_COMPOSITION
> 	   || it->what == IT_STRETCH
> 	   || it->what == IT_GLYPHLESS);
> 
> ... with a xwidget, and then the assert gets upset.
> 
> Images doesnt seem to wind up here though.

Indeed, since they are no produced at all in that case.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-30 15:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-30 15:32 How is display of images prevented on text-only frames? joakim
2015-01-30 15:47 ` Eli Zaretskii

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.