Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Face and X-Face display in terminal emacs frames
@ 2009-01-07 21:08 Tassilo Horn
  2009-01-08  7:10 ` Reiner Steib
  0 siblings, 1 reply; 6+ messages in thread
From: Tassilo Horn @ 2009-01-07 21:08 UTC (permalink / raw)
  To: info-gnus-english

Hi,

when I use gnus in an emacs frame running in a terminal emulator Face
and X-Face images are displayed via imagemagick's `display' program.
This is quite annoying, cause its window steals the input focus from the
emacs frame/terminal.

I'd prefer if no images were shown in that case.  How do I get that?

Bye,
Tassilo
-- 
Richard Stallman's brain can triple-boot.

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

* Re: Face and X-Face display in terminal emacs frames
  2009-01-07 21:08 Face and X-Face display in terminal emacs frames Tassilo Horn
@ 2009-01-08  7:10 ` Reiner Steib
  2009-01-08  9:24   ` Tassilo Horn
  0 siblings, 1 reply; 6+ messages in thread
From: Reiner Steib @ 2009-01-08  7:10 UTC (permalink / raw)
  To: info-gnus-english

On Wed, Jan 07 2009, Tassilo Horn wrote:

> when I use gnus in an emacs frame running in a terminal emulator Face
> and X-Face images are displayed via imagemagick's `display' program.
> This is quite annoying, cause its window steals the input focus from the
> emacs frame/terminal.
>
> I'd prefer if no images were shown in that case.  How do I get that?

Erase your customization for `gnus-treat-display-x-face'.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

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

* Re: Face and X-Face display in terminal emacs frames
  2009-01-08  7:10 ` Reiner Steib
@ 2009-01-08  9:24   ` Tassilo Horn
  2009-01-08 19:39     ` Reiner Steib
  0 siblings, 1 reply; 6+ messages in thread
From: Tassilo Horn @ 2009-01-08  9:24 UTC (permalink / raw)
  To: info-gnus-english

Reiner Steib <reinersteib+gmane@imap.cc> writes:

Hi Reiner,

>> when I use gnus in an emacs frame running in a terminal emulator Face
>> and X-Face images are displayed via imagemagick's `display' program.
>> This is quite annoying, cause its window steals the input focus from
>> the emacs frame/terminal.
>>
>> I'd prefer if no images were shown in that case.  How do I get that?
>
> Erase your customization for `gnus-treat-display-x-face'.

That works, but how?  I've customized it to be 'head and got that
annoying behavior.  Without customization it's 'head anyway, although,
but now the images are only displayed in X11 frames.  What's the black
magic involved here?  Is there something like "if variable was set
explicitly do this, else do that"?

Bye,
Tassilo
-- 
      "DRM manages rights in the same way a jail manages freedom"

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

* Re: Face and X-Face display in terminal emacs frames
  2009-01-08  9:24   ` Tassilo Horn
@ 2009-01-08 19:39     ` Reiner Steib
  2009-01-08 21:19       ` Tassilo Horn
  0 siblings, 1 reply; 6+ messages in thread
From: Reiner Steib @ 2009-01-08 19:39 UTC (permalink / raw)
  To: info-gnus-english

On Thu, Jan 08 2009, Tassilo Horn wrote:

> Reiner Steib <reinersteib+gmane@imap.cc> writes:
>> Erase your customization for `gnus-treat-display-x-face'.
>
> That works, but how?  I've customized it to be 'head and got that
> annoying behavior.  Without customization it's 'head anyway, although,

I guess you checked this when using Emacs with X11, not on a tty.

> but now the images are only displayed in X11 frames.  What's the black
> magic involved here?  

The default of `gnus-treat-display-x-face' is nil on tty.
(I don't write "X11 frames" or "tty frames" because I doubt that Gnus
does The Right Thing with frames on tty/X11 in a single multi-tty
Emacs session.)

,----
| (defcustom gnus-treat-display-x-face
|   (and (not noninteractive)

Avoids X-Faces in batch mode.

|        (gnus-image-type-available-p 'xbm)

Should be nil when running on a tty.

|        (if (featurep 'xemacs)
| 	   (featurep 'xface)

XEmacs may have builtin X-Face support.

| 	 (and (string-match "^0x" (shell-command-to-string "uncompface"))
| 	      (executable-find "icontopbm")))

For Emacs, check if the external programs are available and working.

|        'head)
`----

> Is there something like "if variable was set explicitly do this,
> else do that"?

Nope.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

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

* Re: Face and X-Face display in terminal emacs frames
  2009-01-08 19:39     ` Reiner Steib
@ 2009-01-08 21:19       ` Tassilo Horn
  0 siblings, 0 replies; 6+ messages in thread
From: Tassilo Horn @ 2009-01-08 21:19 UTC (permalink / raw)
  To: info-gnus-english

Reiner Steib <reinersteib+gmane@imap.cc> writes:

Hi Reiner,

>> That works, but how?  I've customized it to be 'head and got that
>> annoying behavior.  Without customization it's 'head anyway,
>> although,
>
> I guess you checked this when using Emacs with X11, not on a tty.

Yes, but my emacs is started as system service with the --daemon option
on a tty.  But when starting gnus I'm usually in an X11 frame and thus
head is the treatment variables' value.

>> but now the images are only displayed in X11 frames.  What's the
>> black magic involved here?
>
> The default of `gnus-treat-display-x-face' is nil on tty.  (I don't
> write "X11 frames" or "tty frames" because I doubt that Gnus does The
> Right Thing with frames on tty/X11 in a single multi-tty Emacs
> session.)

Believe it or not, it does.  Currently the treatment variables are set
to head and when I select an article in a terminal emulator no (X-)Face
is shown and no `display' window appears, but when I do the same in an
X11 frame (of the same emacs instance) the images are shown inside
emacs.

The only thing I can think of is that I started gnus in a terminal frame
when I got the `display' windows with the treatment variables set to
head explicitly...

> ,----
> | (defcustom gnus-treat-display-x-face
> |   (and (not noninteractive)
>
> Avoids X-Faces in batch mode.
>
> |        (gnus-image-type-available-p 'xbm)
>
> Should be nil when running on a tty.
>
> |        (if (featurep 'xemacs)
> | 	   (featurep 'xface)
>
> XEmacs may have builtin X-Face support.
>
> | 	 (and (string-match "^0x" (shell-command-to-string "uncompface"))
> | 	      (executable-find "icontopbm")))
>
> For Emacs, check if the external programs are available and working.
>
> |        'head)
> `----

Yeah, I've seen that and couldn't think of why gnus just DTRT when using
to customizations. ;-)

Bye,
Tassilo

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

* Re: Face and X-Face display in terminal emacs frames
       [not found] <mailman.4293.1231362549.26697.info-gnus-english@gnu.org>
@ 2009-01-07 22:19 ` Katsumi Yamaoka
  0 siblings, 0 replies; 6+ messages in thread
From: Katsumi Yamaoka @ 2009-01-07 22:19 UTC (permalink / raw)
  To: info-gnus-english

>>>>> Tassilo Horn wrote:
> Hi,

> when I use gnus in an emacs frame running in a terminal emulator Face
> and X-Face images are displayed via imagemagick's `display' program.
> This is quite annoying, cause its window steals the input focus from the
> emacs frame/terminal.

> I'd prefer if no images were shown in that case.  How do I get that?

I have

(setq gnus-article-x-face-command 'gnus-display-x-face-in-from)

in ~/.gnus.el.  That's the default for the case where Emacs runs
in the window system and does nothing in a terminal emulator.  I
don't know what happens if a Gnus frame is launched by emacsclient
in a terminal or as an X window, though.

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

end of thread, other threads:[~2009-01-08 21:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-07 21:08 Face and X-Face display in terminal emacs frames Tassilo Horn
2009-01-08  7:10 ` Reiner Steib
2009-01-08  9:24   ` Tassilo Horn
2009-01-08 19:39     ` Reiner Steib
2009-01-08 21:19       ` Tassilo Horn
     [not found] <mailman.4293.1231362549.26697.info-gnus-english@gnu.org>
2009-01-07 22:19 ` Katsumi Yamaoka

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 NNTP newsgroup(s).