all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: outline.el, killing, yanking, and invisibility
Date: Thu, 15 Jul 2004 09:17:50 -0400	[thread overview]
Message-ID: <E1Bl67S-00030z-E3@fencepost.gnu.org> (raw)
In-Reply-To: <87brij6fcd.fsf@beth.swift.xxx> (message from Matt Swift on Tue,  13 Jul 2004 12:29:06 -0400)

    My more general solution transfers the 'invisible text property of
    overlays on the killed text to a new overlay on the yanked text.

That seems like the right approach for making outline mode DTRT.
However, I see two drawbacks in the specifics.

1. It is undesirable to put a yank-handler on the text in the buffer.
You could add it when killing.

2. We try to avoid any use of advice within Emacs itself.
It would be much cleaner to add a new hook for this.

3. If the text is yanked in some other mode, this should discard the
invisibility properties (as it normally does), not preserve them in
any way.

4. It would perhaps be better to add a hook for yank for this.  It
would be cleaner overall than using the yank-handler property in this
peculiar way.

  reply	other threads:[~2004-07-15 13:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-13 16:29 outline.el, killing, yanking, and invisibility Matt Swift
2004-07-15 13:17 ` Richard Stallman [this message]
2010-05-02  6:11 ` Stefan Monnier

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=E1Bl67S-00030z-E3@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@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.