From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: How to paste (yank) "raw text"
Date: Mon, 23 May 2005 11:07:46 -0600 [thread overview]
Message-ID: <d6t2hv$68a$1@sea.gmane.org> (raw)
In-Reply-To: <20050521204842.64170.qmail@web26508.mail.ukl.yahoo.com>
Moritz Kerbel wrote:
> My problem: If I cut and paste for example an info heading into an
> other buffer the layout information (font size, font weight etc.) plus
> invisible text (if you cut it from the beginning to the very end) is
> pasted into the buffer if you type C-y;
>
> Does there exist a raw yank version that only pastes the raw text
> (or maybe a raw copy version). Mabe an "intelligent" yank would be
> great: If you yank into a buffer with the same (major) mode as the
> original buffer yank the text, if you yank into a buffer with another
> mode only yank the raw text (string) ... on the other hand there are
> situations where a major mode is only valid for a region of a buffer
> (multiple major modes) ... just pondering the possiblities. Thanks
> for you help Moritz
How about something like:
(defadvice yank (after remove-text-properties activate)
"Remove all text properties from the inserted text."
(set-text-properties (region-beginning) (region-end) '()))
--
Kevin Rodgers
prev parent reply other threads:[~2005-05-23 17:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-21 20:48 How to paste (yank) "raw text" Moritz Kerbel
2005-05-22 3:19 ` Eli Zaretskii
2005-05-23 17:07 ` Kevin Rodgers [this message]
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='d6t2hv$68a$1@sea.gmane.org' \
--to=ihs_4664@yahoo.com \
/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.