From: Barry Margolin <barmar@alum.mit.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: Unwanted highlighting after cross-buffer paste
Date: Thu, 25 Dec 2008 13:03:45 -0500 [thread overview]
Message-ID: <barmar-0ED9C7.13034525122008@mara100-84.onlink.net> (raw)
In-Reply-To: ur63xrlgo.fsf@terrapin.northbound-train.com
In article <ur63xrlgo.fsf@terrapin.northbound-train.com>,
"Joe Casadonte" <jcasadonte@northbound-train.com> wrote:
> On 24 Dec 2008, kj wrote:
>
> > Is there a simpler way of getting rid of this unwanted highlighting
>
> `font-lock-fontify-buffer' should re-fontify the whole buffer,
> stripping out the unneeded bits.
>
> > (or of avoiding it in the first place)?
>
> Take a look at what it is that's killing the text in the first place;
> if it's `copy-region-as-kill', you may want to re-write it to use
> buffer-string-no-properties instead of buffer-string (or use some
> around advice that temporarily fsets buffer-string to be
> buffer-string-no-properties, but I'm not sure how to un-fset it).
It sounded like he's just using C-w or M-w, not a command of his own.
I also find it annoying. I frequently like to cut and paste from
*Occurs* or *grep* buffers, and the attributes are out of place in the
new buffer.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
next prev parent reply other threads:[~2008-12-25 18:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-24 17:46 Unwanted highlighting after cross-buffer paste kj
2008-12-25 3:18 ` Joe Casadonte
2008-12-25 4:24 ` Samuel Wales
2008-12-25 18:03 ` Barry Margolin [this message]
2008-12-25 4:13 ` Andreas Politz
2009-01-04 16:37 ` kj
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=barmar-0ED9C7.13034525122008@mara100-84.onlink.net \
--to=barmar@alum.mit.edu \
--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.