all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: Ellipsis "..." from outline-mode: how to react to mouse-1 events?
Date: Fri, 30 Nov 2007 12:04:16 -0500	[thread overview]
Message-ID: <jwvsl2nzmwx.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: mailman.4239.1196258357.18990.help-gnu-emacs@gnu.org

> 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	other threads:[~2007-11-30 17:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.4239.1196258357.18990.help-gnu-emacs@gnu.org>
2007-11-30 17:04 ` Stefan Monnier [this message]
2007-12-01  1:18   ` Ellipsis "..." from outline-mode: how to react to mouse-1 events? Johan Bockgård
2007-12-01  4:19     ` Stefan Monnier
2007-12-01 12:29       ` Johan Bockgård
2007-11-28 13:59 David Reitter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvsl2nzmwx.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.