From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.help Subject: Re: font faces across a copy and paste Date: Tue, 30 Jul 2013 19:06:27 +0530 Message-ID: <87iozstbj8.fsf@gmail.com> References: <003DA917-3AB4-4D0C-A183-807272816573@Web.DE> <878v0owajf.fsf@gmail.com> <77349EDE-6ADB-4C59-9787-09C471F29082@Web.DE> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1375191321 29282 80.91.229.3 (30 Jul 2013 13:35:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Jul 2013 13:35:21 +0000 (UTC) Cc: help-gnu-emacs , Luca Ferrari To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 30 15:35:14 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V4A52-00065c-Mm for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Jul 2013 15:35:12 +0200 Original-Received: from localhost ([::1]:38521 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4A52-0000Sc-99 for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Jul 2013 09:35:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4A4j-0000Pi-PV for help-gnu-emacs@gnu.org; Tue, 30 Jul 2013 09:35:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V4A4b-0005CS-7D for help-gnu-emacs@gnu.org; Tue, 30 Jul 2013 09:34:53 -0400 Original-Received: from mail-pb0-x22b.google.com ([2607:f8b0:400e:c01::22b]:57123) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4A4b-0005CK-0F for help-gnu-emacs@gnu.org; Tue, 30 Jul 2013 09:34:45 -0400 Original-Received: by mail-pb0-f43.google.com with SMTP id md4so279604pbc.30 for ; Tue, 30 Jul 2013 06:34:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=erUDRpyGxiOXCG/Fl4FPCL+l2oRbElSh6p9hWckqGyI=; b=MoNv/SX4hDm7EUtnsWMzmQnAqbceE6GST0Lp5bPNBUAAdAPQl7KfhSV2gn2FWKoLj+ 9ar5MD6xzFNqqs4M7sv2Tpw+TnCXR8zY8ro7/r6Cpl4y+m6SGsjELl82xW6wh4lqmDOv NPhwpetyrsbJMME7vrU2qIC5CZtaLtcqf+1cXxqME41NmTQHWfgIHZdjlteu8QsNPl+M a9/dQPnxPDjEt+YvQWfT7+fy5xFlNaNGdwmKnIP8/cgtcr4IR2szHvauzXegaTc4GrNy 4q0m0lWzbyuYsnhkfbUGIeXv0H68Y05ucs/CM/GNoOGA9eORonE4RpBiNqPoZR2BNhMf JM9Q== X-Received: by 10.68.2.69 with SMTP id 5mr74178051pbs.124.1375191284181; Tue, 30 Jul 2013 06:34:44 -0700 (PDT) Original-Received: from debian-6.05 ([115.242.197.65]) by mx.google.com with ESMTPSA id ai6sm27083716pad.15.2013.07.30.06.34.41 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Tue, 30 Jul 2013 06:34:43 -0700 (PDT) In-Reply-To: <77349EDE-6ADB-4C59-9787-09C471F29082@Web.DE> (Peter Dyballa's message of "Tue, 30 Jul 2013 14:44:12 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c01::22b X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:92550 Archived-At: Peter Dyballa writes: > When I try to "write" in *shell* buffer a command and re-use one and > have to insert some addition text I just copy&yank, then > > =E2=80=A2 C-a does not put the cursor to the beginning of the command, ju= st right of the prompt > =E2=80=A2 C-e does not put the cursor to the end of the command line > =E2=80=A2 C-k does not kill to the end of the command line > =E2=80=A2 and RET does not send the whole command but only the portion be= tween the prompt and the cursor. > > C-a, C-e, C-k stop working at boundaries of different text properties. A cursory look suggests that the following snippet will do the trick (setq inhibit-field-text-motion t) Consult (info "(elisp) Word Motion") Ofcourse, you could cook up a defadvice that let binds the above variable to t so that point movement happens in an "un-constrained" manner. ---------------------------------------------------------------- Notes to self: 1. M-x shell 2. M-h, C-w 3. C-x b *scratch*=20 4. M-x font-lock-mode (Disable font-lock-mode) 5. C-y 6. C-a 7. C-u C-x =3D The help buffer shows following text properties. There are text properties here: face font-lock-string-face front-sticky (field inhibit-line-move-field-capture) inhibit-line-move-field-capture t rear-nonsticky t 8. A simple source code search for `inhibit-line-move-field-capture' yields hits in - simple.el, ielm.el and comint.el - which in turn hint at C-h f constrain-to-field which makes mention of C-h v inhibit-field-text-motion