Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Configuring the ellipses of hidden threads
@ 2015-10-15  8:59 Alexander Baier
  2015-10-15  9:40 ` Teemu Likonen
  0 siblings, 1 reply; 5+ messages in thread
From: Alexander Baier @ 2015-10-15  8:59 UTC (permalink / raw)
  To: info-gnus-english

Hello!

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.

Regards,
-- 
Alexander Baier

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: Configuring the ellipses of hidden threads
  2015-10-15  8:59 Configuring the ellipses of hidden threads Alexander Baier
@ 2015-10-15  9:40 ` Teemu Likonen
  2015-10-15  9:52   ` Teemu Likonen
  2015-10-15 15:28   ` Alexander Baier
  0 siblings, 2 replies; 5+ messages in thread
From: Teemu Likonen @ 2015-10-15  9:40 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 829 bytes --]

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".

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]



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

* Re: Configuring the ellipses of hidden threads
  2015-10-15  9:40 ` Teemu Likonen
@ 2015-10-15  9:52   ` Teemu Likonen
  2015-10-15 15:28   ` Alexander Baier
  1 sibling, 0 replies; 5+ messages in thread
From: Teemu Likonen @ 2015-10-15  9:52 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 539 bytes --]

Teemu Likonen [2015-10-15 12:40:21+03] wrote:

> 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 [?…]))

And to turn it on/off everywhere (e.g. outline, org) refer to the
"standard-display-table" variable:

(set-display-table-slot standard-display-table 'selective-display [?…])

(set-display-table-slot standard-display-table 'selective-display nil)

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]



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

* Re: Configuring the ellipses of hidden threads
  2015-10-15  9:40 ` Teemu Likonen
  2015-10-15  9:52   ` Teemu Likonen
@ 2015-10-15 15:28   ` Alexander Baier
  2015-10-15 15:40     ` Teemu Likonen
  1 sibling, 1 reply; 5+ messages in thread
From: Alexander Baier @ 2015-10-15 15:28 UTC (permalink / raw)
  To: Teemu Likonen; +Cc: info-gnus-english

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

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: Configuring the ellipses of hidden threads
  2015-10-15 15:28   ` Alexander Baier
@ 2015-10-15 15:40     ` Teemu Likonen
  0 siblings, 0 replies; 5+ messages in thread
From: Teemu Likonen @ 2015-10-15 15:40 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 296 bytes --]

Alexander Baier [2015-10-15 17:28:20+02] wrote:

> For future reference, it should be
>
>   (add-hook 'gnus-summary-mode-hook 'my-gnus-summary-mode-hook)
>                               ^^^^^
> I believe.                              

Oh, it should, of course. Thanks for pointing out.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]



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

end of thread, other threads:[~2015-10-15 15:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-15  8:59 Configuring the ellipses of hidden threads Alexander Baier
2015-10-15  9:40 ` Teemu Likonen
2015-10-15  9:52   ` Teemu Likonen
2015-10-15 15:28   ` Alexander Baier
2015-10-15 15:40     ` Teemu Likonen

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).