From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Removing faces when yanking to comint
Date: Mon, 31 Jan 2011 15:18:10 -0700 [thread overview]
Message-ID: <ii7cec$nfh$1@dough.gmane.org> (raw)
In-Reply-To: <b31eec2d-e214-486b-b7a1-937e3ce941a9@f18g2000yqd.googlegroups.com>
On 1/30/11 2:40 PM, Earl Wagner wrote:
> 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)?
How about:
(add-hook 'shell-mode-hook
(lambda () (set (make-local-variable 'yank-excluded-properties) t)))
--
Kevin Rodgers
Denver, Colorado, USA
next prev parent reply other threads:[~2011-01-31 22:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-30 21:40 Removing faces when yanking to comint Earl Wagner
2011-01-31 20:54 ` Tim X
2011-01-31 22:18 ` Kevin Rodgers [this message]
[not found] ` <mailman.4.1296512287.9907.help-gnu-emacs@gnu.org>
2011-02-01 1:13 ` Earl Wagner
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='ii7cec$nfh$1@dough.gmane.org' \
--to=kevin.d.rodgers@gmail.com \
--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.
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).