From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.bugs Subject: bug#764: 23.0.60; fontified prompt in *shell* extends to normal text upon yank Date: Sat, 15 Aug 2009 12:39:12 +0200 Message-ID: References: <8763cvaqzk.fsf@cyd.mit.edu> Reply-To: Peter Dyballa , 764@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1250333230 19226 80.91.229.12 (15 Aug 2009 10:47:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Aug 2009 10:47:10 +0000 (UTC) Cc: 764@emacsbugs.donarmstrong.com To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 15 12:47:03 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1McGms-0000zN-Bm for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Aug 2009 12:47:02 +0200 Original-Received: from localhost ([127.0.0.1]:46200 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1McGmr-0004Qz-N9 for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Aug 2009 06:47:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1McGmn-0004QF-FX for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2009 06:46:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1McGmi-0004K4-M6 for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2009 06:46:57 -0400 Original-Received: from [199.232.76.173] (port=38833 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1McGmi-0004Jr-HU for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2009 06:46:52 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:54487) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1McGmh-0005Nk-Th for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2009 06:46:52 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7FAknlg000567; Sat, 15 Aug 2009 03:46:49 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7FAj8qC032758; Sat, 15 Aug 2009 03:45:08 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Peter Dyballa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 15 Aug 2009 10:45:08 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 764 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 764-submit@emacsbugs.donarmstrong.com id=B764.125033276131811 (code B ref 764); Sat, 15 Aug 2009 10:45:08 +0000 Original-Received: (at 764) by emacsbugs.donarmstrong.com; 15 Aug 2009 10:39:21 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mout0.freenet.de (mout0.freenet.de [195.4.92.90]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7FAdJmr031806 for <764@emacsbugs.donarmstrong.com>; Sat, 15 Aug 2009 03:39:21 -0700 Original-Received: from [195.4.92.27] (helo=17.mx.freenet.de) by mout0.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (port 25) (Exim 4.69 #92) id 1McGfN-0007qE-M2; Sat, 15 Aug 2009 12:39:17 +0200 Original-Received: from p5b23fb0a.dip.t-dialin.net ([91.35.251.10]:54831 helo=[192.168.1.2]) by 17.mx.freenet.de with esmtpsa (ID peter_dyballa@freenet.de) (TLSv1:AES128-SHA:128) (port 587) (Exim 4.69 #94) id 1McGfN-00046y-DL; Sat, 15 Aug 2009 12:39:17 +0200 In-Reply-To: <8763cvaqzk.fsf@cyd.mit.edu> X-Mailer: Apple Mail (2.753.1) X-purgate-ID: 149285::1250332757-00005F40-BBC265CC/0-0/0-0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sat, 15 Aug 2009 06:46:57 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:30197 Archived-At: Am 11.08.2009 um 06:55 schrieb Chong Yidong: >> My customisation has >> >> '(comint-prompt-regexp "^[a-z]+ [0-9]+ /\\\\ " t) >> '(shell-prompt-pattern "^[a-z]+ [0-9]+ /\\\\ ") >> '(comint-highlight-prompt ((t (:background >> "FloralWhite" :foreground "DarkViolet" :weight bold)))) >> >> Sometimes I locate items and sort them by killing and yanking the >> lines they're on. When I yank such a line just above the prompt, >> i.e., the cursor is in column 0 at the prompt's beginning, the >> prompt's fontification is extended over the yanked line > > I haven't been able to reproduce this; please provide an exact recipe, > starting from `emacs -Q'. It works easily when kill-whole-line is not t, i.e., the default is on. When in such a situation I kill a line with C-k and insert it at the end, i.e., before the prompt on the prompt's line, with C-y then the prompt's properties are extended to this yanked line. And these properties are not removed when I insert a C-j to separate the line from the prompt. Even when I try to create new space or an empty line by inserting C-j in the left-most column on the prompt's line, i.e., at the prompt's beginning, the new lines are all propertised like the prompt. I made my tests by creating a little init file that applies the customisation described by launching GNU Emacs as: emacs-23.0.60 -Q -l .emacs-init.el & The same is true for GNU Emacs 23.1.50. What works is to type C-j at the end of the last line before the prompt. Then not (obviously) propertised space is created. What I also can see, when doing an ls in a filled-up directory or when grep'ing in many files or having too much matches and (most probably when) doing this with some load (compilation of GCC or GNU Emacs), then I can see that *some* of the (found matching) lines at the bottom of the *shell* buffer get propertised like the prompt, but this is then removed. So the easy recipe is: copy or kill some text, go to the *shell* buffer's end, go back to the prompt's beginning, and insert now the text. The prompt's properties now extend to the text's beginning where formerly the prompt started. -- Greetings Pete Never be led astray onto the path of virtue