[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unwanted highlighting after cross-buffer paste
From: |
Barry Margolin |
Subject: |
Re: Unwanted highlighting after cross-buffer paste |
Date: |
Thu, 25 Dec 2008 13:03:45 -0500 |
User-agent: |
MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) |
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 ***