[Top][All Lists]

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

Re: address@hidden: mixed faces of invisibility ellipses]

From: Kim F. Storm
Subject: Re: address@hidden: mixed faces of invisibility ellipses]
Date: Tue, 19 Apr 2005 12:20:37 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Richard Stallman <address@hidden> writes:

> Would you please look at this and DTRT?

I'm not sure there is a "right thing" that covers all cases.

I have installed changes so that the ellipsis are now shown in the
same face as the preceding text, as that will probably be TRT for most

An alternative was to use the face of the first character of the
invisible text, but that looked really ugly for the things I tried.

A third alternative was to simply use the default face, but that 
looked strange in a block of text using a smaller font or a different
background color.

Perhaps it would make sense to have an "ellipsis-face" property that
could be placed on the invisible text to override the face used
for the ellipsis.  That would be a fairly trivial change.

> From: martin rudalics <address@hidden>
> Subject: mixed faces of invisibility ellipses
> To: address@hidden
> Date: Mon, 11 Apr 2005 19:24:45 +0200
> Consider the following function:
> (defun my-make-line-invisibile ()
>    (interactive)
>    (let ((overlay
>           (make-overlay (line-beginning-position) (line-end-position))))
>      (overlay-put overlay 'invisible 'my-invisible)
>      (add-to-invisibility-spec '(my-invisible . t))))
> Moving point to the beginning of a line whose _first_ character has some
> non-default face attribute like background or bold set and invoking
> `my-make-line-invisibile' makes the first dot of the ellipsis appear in
> the default face and the remaining two dots in the face of the invisible
> character.  Second lines of Elisp doc-strings are good candidates for
> this experiment.  The first dot gets the default face, the other two
> `font-lock-doc-face'.
> If coloring ellipses is considered a feature at all it would be less
> distracting to give all dots of one and the same ellipsis the same
> color.
> With GNU Emacs (i386-mingw-windows98.3000) of 2005-04-11.
> Emacs 21.3 did not exhibit this behavior.
> ----------

Kim F. Storm <address@hidden> http://www.cua.dk

reply via email to

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