From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Removing faces when yanking to comint Date: Tue, 01 Feb 2011 07:54:20 +1100 Organization: Unlimited download news at news.astraweb.com Message-ID: <87vd14pzer.fsf@puma.rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1296511976 22554 80.91.229.12 (31 Jan 2011 22:12:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 31 Jan 2011 22:12:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 31 23:12:51 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pk1zM-0004KU-Ay for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Jan 2011 23:12:48 +0100 Original-Received: from localhost ([127.0.0.1]:54906 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pk1UG-0008JO-9z for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Jan 2011 16:40:40 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!news-xfer.nntp.sonic.net!news.astraweb.com!border6.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:TJYFzqyu09fvMH4ZT9ryIDeKcGE= Original-Lines: 40 Original-NNTP-Posting-Host: 563f872d.news.astraweb.com Original-X-Trace: DXC=ZaiR?9G5F`nK; GKPh8BJfdL?0kYOcDh@jN7:H2`MmAUc]OJTWN^F8Nf]G; 2>V^?kWc48NP]Hm4n:i6gL>aG1nH6kec; U979>:Na Original-Xref: usenet.stanford.edu gnu.emacs.help:184730 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78887 Archived-At: Earl Wagner 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