* How Do I Remove Text Properties?
@ 2010-09-27 17:29 Noah Lavine
2010-09-28 3:26 ` Daniel Pittman
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Noah Lavine @ 2010-09-27 17:29 UTC (permalink / raw)
To: help-gnu-emacs
Hello,
I recently yanked some text from the scratch buffer, which colored all
quoted text purple, to a text buffer, which does not do that. As a
result, when I began typing immediately after the quoted text (which
was still purple), the text I inserted was also purple. My question
is, how do I remove the text color?
I tried using remove-text-property or set-text-property, but M-x
didn't recognize them, and I don't know how to run Elisp functions on
buffers without using M-x.
Thanks
Noah Lavine
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How Do I Remove Text Properties?
2010-09-27 17:29 How Do I Remove Text Properties? Noah Lavine
@ 2010-09-28 3:26 ` Daniel Pittman
2010-09-28 5:51 ` Eli Zaretskii
[not found] ` <mailman.1.1285647507.18948.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 7+ messages in thread
From: Daniel Pittman @ 2010-09-28 3:26 UTC (permalink / raw)
To: help-gnu-emacs
Noah Lavine <noah.b.lavine@gmail.com> writes:
> I recently yanked some text from the scratch buffer, which colored all
> quoted text purple, to a text buffer, which does not do that. As a result,
> when I began typing immediately after the quoted text (which was still
> purple), the text I inserted was also purple. My question is, how do I
> remove the text color?
Select the region, and use M-x facemenu-remove-all RET to strip them.
I suspect there is a key binding, but I so seldom use the facility that
I don't know where it is.
Regards,
Daniel
--
✣ Daniel Pittman ✉ daniel@rimspace.net ☎ +61 401 155 707
♽ made with 100 percent post-consumer electrons
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How Do I Remove Text Properties?
[not found] <mailman.5.1285640481.16785.help-gnu-emacs@gnu.org>
@ 2010-09-28 3:31 ` Ilya Zakharevich
0 siblings, 0 replies; 7+ messages in thread
From: Ilya Zakharevich @ 2010-09-28 3:31 UTC (permalink / raw)
To: help-gnu-emacs
On 2010-09-27, Noah Lavine <noah.b.lavine@gmail.com> wrote:
> Hello,
>
> I recently yanked some text from the scratch buffer, which colored all
> quoted text purple, to a text buffer, which does not do that. As a
> result, when I began typing immediately after the quoted text (which
> was still purple), the text I inserted was also purple. My question
> is, how do I remove the text color?
>
> I tried using remove-text-property or set-text-property, but M-x
> didn't recognize them, and I don't know how to run Elisp functions on
> buffers without using M-x.
M-x normal-mode
would do this and many other fixups. Or IIRC you can use the menu...
Hope this helps,
Ilya
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How Do I Remove Text Properties?
2010-09-27 17:29 How Do I Remove Text Properties? Noah Lavine
2010-09-28 3:26 ` Daniel Pittman
@ 2010-09-28 5:51 ` Eli Zaretskii
[not found] ` <mailman.1.1285647507.18948.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2010-09-28 5:51 UTC (permalink / raw)
To: help-gnu-emacs
> Date: Mon, 27 Sep 2010 13:29:06 -0400
> From: Noah Lavine <noah.b.lavine@gmail.com>
>
> I recently yanked some text from the scratch buffer, which colored all
> quoted text purple, to a text buffer, which does not do that. As a
> result, when I began typing immediately after the quoted text (which
> was still purple), the text I inserted was also purple. My question
> is, how do I remove the text color?
With the cursor inside the colored text, type "M-o M-o".
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How Do I Remove Text Properties?
[not found] ` <mailman.1.1285647507.18948.help-gnu-emacs@gnu.org>
@ 2010-09-28 6:50 ` Alan Mackenzie
2010-09-28 9:06 ` Richard Riley
0 siblings, 1 reply; 7+ messages in thread
From: Alan Mackenzie @ 2010-09-28 6:50 UTC (permalink / raw)
To: help-gnu-emacs
Daniel Pittman <daniel@rimspace.net> wrote:
> Noah Lavine <noah.b.lavine@gmail.com> writes:
>> I recently yanked some text from the scratch buffer, which colored all
>> quoted text purple, to a text buffer, which does not do that. As a result,
>> when I began typing immediately after the quoted text (which was still
>> purple), the text I inserted was also purple. My question is, how do I
>> remove the text color?
> Select the region, and use M-x facemenu-remove-all RET to strip them.
Just as a matter of terminology, there is only one region, hence nothing
to select. You surely mean _mark_ the region. If you use "select" when
you really mean "mark", you're going to lose the ability to say "select a
buffer" (meaning C-x b) since this would be mixed up with "mark a buffer"
(meaning C-x h).
> I suspect there is a key binding, but I so seldom use the facility that
> I don't know where it is.
Me neither!
> Regards,
> Daniel
--
Alan Mackenzie (Nuremberg, Germany).
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How Do I Remove Text Properties?
[not found] <AANLkTi=yq8PnBHRVWR6MCiX@mail.gmail.com>
@ 2010-09-28 7:49 ` Aidan Gauland
0 siblings, 0 replies; 7+ messages in thread
From: Aidan Gauland @ 2010-09-28 7:49 UTC (permalink / raw)
To: help-gnu-emacs
Noah Lavine <noah.b.lavine <at> gmail.com> writes:
> I recently yanked some text from the scratch buffer, which colored all
> quoted text purple, to a text buffer, which does not do that. As a
> result, when I began typing immediately after the quoted text (which
> was still purple), the text I inserted was also purple. My question
> is, how do I remove the text color?
The command facemenu-remove-all will "remove all text properties from
the region." (I assume you are familiar with the region.)
Hope this helps,
Aidan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How Do I Remove Text Properties?
2010-09-28 6:50 ` Alan Mackenzie
@ 2010-09-28 9:06 ` Richard Riley
0 siblings, 0 replies; 7+ messages in thread
From: Richard Riley @ 2010-09-28 9:06 UTC (permalink / raw)
To: help-gnu-emacs
Alan Mackenzie <acm@muc.de> writes:
> Daniel Pittman <daniel@rimspace.net> wrote:
>> Noah Lavine <noah.b.lavine@gmail.com> writes:
>
>>> I recently yanked some text from the scratch buffer, which colored all
>>> quoted text purple, to a text buffer, which does not do that. As a result,
>>> when I began typing immediately after the quoted text (which was still
>>> purple), the text I inserted was also purple. My question is, how do I
>>> remove the text color?
>
>> Select the region, and use M-x facemenu-remove-all RET to strip them.
>
> Just as a matter of terminology, there is only one region, hence nothing
> to select. You surely mean _mark_ the region. If you use "select" when
> you really mean "mark", you're going to lose the ability to say "select a
> buffer" (meaning C-x b) since this would be mixed up with "mark a buffer"
> (meaning C-x h).
Context is our friend ;) I must admit to still talk about "selecting a
region". Especially for mouse users "select a region with the mouse".
>
>> I suspect there is a key binding, but I so seldom use the facility that
>> I don't know where it is.
C-h f funcname
gives you the key binding for a function "funcname".
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-09-28 9:06 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-27 17:29 How Do I Remove Text Properties? Noah Lavine
2010-09-28 3:26 ` Daniel Pittman
2010-09-28 5:51 ` Eli Zaretskii
[not found] ` <mailman.1.1285647507.18948.help-gnu-emacs@gnu.org>
2010-09-28 6:50 ` Alan Mackenzie
2010-09-28 9:06 ` Richard Riley
[not found] <mailman.5.1285640481.16785.help-gnu-emacs@gnu.org>
2010-09-28 3:31 ` Ilya Zakharevich
[not found] <AANLkTi=yq8PnBHRVWR6MCiX@mail.gmail.com>
2010-09-28 7:49 ` Aidan Gauland
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).