help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Ellipsis "..." from outline-mode: how to react to mouse-1 events?


From: Stefan Monnier
Subject: Re: Ellipsis "..." from outline-mode: how to react to mouse-1 events?
Date: Fri, 30 Nov 2007 12:04:16 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

> How would one go about creating an overlay for every "..." ellipsis
> displayed in lieu of invisible portions of text?

> I'd like to get outline-minor-mode to allow me to click on the ellipses to
> show/hide the entry (the key bindings used in outline- 
> minor-mode are way too awkward).
> One can change the ellipsis itself:

> (set-display-table-slot standard-display-table
>                          'selective-display
>                          (string-to-vector "more..."))

> but this way one cannot add properties or overlays, since the display table
> contains character vectors.

The outline overlay (which adds the `invisible' property) could simply
have a `keymap' property (as well as a mouse-face property).

I think this currently wouldn't do anything, so please request it as
a new feature via M-x report-emacs-bug.


        Stefan


reply via email to

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