help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removing faces when yanking to comint


From: Tim X
Subject: Re: Removing faces when yanking to comint
Date: Tue, 01 Feb 2011 07:54:20 +1100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Earl Wagner <dont.spam.earl@gmail.com> writes:

> Hi all,
>
> I often copy and yank lines from other buffers into the shell (running
> in shell-mode, extended from comint-mode I think). These lines often
> have face attributes such as specific colors for comments, strings,
> etc. The problem is that they preserve these colors when run as
> commands. Then, every time I retrieve and re-run the comint-input
> command, it retains its original face.
>
> Is there anyway to strip the face attributes from text yanked in the
> shell (comint-mode)?
>

Maybe have a look at the variable yank-excluded-properties 

,----[ C-h v yank-excluded-properties RET ]
| yank-excluded-properties is a variable defined in `simple.el'.
| Its value is
| (read-only invisible intangible field mouse-face help-echo local-map keymap 
yank-handler follow-link fontified)
| 
| 
| Documentation:
| Text properties to discard when yanking.
| The value should be a list of text properties to discard or t,
| which means to discard all text properties.
| 
| You can customize this variable.
| 
| This variable was introduced, or its default value was changed, in
| version 22.1 of Emacs.
| 
| [back]
`----

Tim

-- 
tcross (at) rapttech dot com dot au


reply via email to

[Prev in Thread] Current Thread [Next in Thread]