info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Configuring the ellipses of hidden threads


From: Alexander Baier
Subject: Re: Configuring the ellipses of hidden threads
Date: Thu, 15 Oct 2015 17:28:20 +0200
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (gnu/linux)

On 2015-10-15 12:40 Teemu Likonen wrote:
> Alexander Baier [2015-10-15 10:59:42+02] wrote:
>
>> With threading turned on, the summary buffer indicates children in a
>> hidden thread by appending "..." to the end of the summary line. Is
>> there a way to change this string? I would like to use an utf-8
>> ellipsis "…" instead.
>
> You can do that with display tables. Current buffer's display table is
> in variable "buffer-display-table". It has a slot that controls how
> invisible text is displayed. Perhaps this is does what you want:
>
>     (add-hook 'gnus-summary-mode 'my-gnus-summary-mode-hook)
>
>     (defun my-gnus-summary-mode-hook ()
>       (set-display-table-slot buffer-display-table 'selective-display [?…]))
>
> You see, there is a vector [?…] which sets the character(s). Three Ascii
> dots would be [?. ?. ?.]. See info node "(elisp) Display Tables".

This works like a charm, thank you!  For future reference, it should be

  (add-hook 'gnus-summary-mode-hook 'my-gnus-summary-mode-hook)
                              ^^^^^
I believe.                              

Regards,
-- 
Alexander Baier



reply via email to

[Prev in Thread] Current Thread [Next in Thread]