GNU bug report logs - #764
23.0.60; fontified prompt in *shell* extends to normal text upon yank

Previous Next

Package: emacs;

Reported by: Peter Dyballa <Peter_Dyballa <at> Freenet.DE>

Date: Sat, 23 Aug 2008 09:05:06 UTC

Severity: normal

Done: Bastien Guerry <bzg <at> altern.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 764 in the body.
You can then email your comments to 764 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#764; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Peter Dyballa <Peter_Dyballa <at> Freenet.DE>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Peter Dyballa <Peter_Dyballa <at> Freenet.DE>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.0.60; fontified prompt in *shell* extends to normal text upon yank
Date: Sat, 23 Aug 2008 10:59:25 +0200
[Message part 1 (text/plain, inline)]
Hello!

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 as this  
screenshot shows:

[pastedGraphic.tiff (image/tiff, inline)]
[Message part 3 (text/plain, inline)]

It works with keyboard as well as with mouse.


In GNU Emacs 23.0.60.1 (powerpc-apple-darwin8.11.0, X toolkit, Xaw3d  
scroll bars)
 of 2008-08-23 on localhost
Windowing system distributor `The XFree86 Project, Inc', version  
11.0.40400000
configured using `configure  '--without-sound' '--without-pop' '-- 
with-dbus' '--with-x-toolkit=athena' '--enable-locallisppath=/Library/ 
Application Support/Emacs/calendar23:/Library/Application Support/ 
Emacs/caml:/Library/Application Support/Emacs:/sw/share/emacs21/site- 
lisp/elib' 'PKG_CONFIG_PATH=/sw/lib/fontconfig2/lib/pkgconfig:/sw/lib/ 
freetype219/lib/pkgconfig:/sw/lib/pango-ft219/lib/pkgconfig:/sw/lib/ 
qt4-x11/lib/pkgconfig:/sw/lib/system-openssl/lib/pkgconfig:/sw/lib/ 
pkgconfig:/sw/share/pkgconfig:/usr/X11R6/lib/pkgconfig:/usr/local/lib/ 
pkgconfig:/usr/lib/pkgconfig' 'CFLAGS=-Wno-pointer-sign -bind_at_load  
-H -pipe -fPIC -mcpu=7450 -mtune=7450 -fast -mpim-altivec -ftree- 
vectorize -foptimize-register-move -freorder-blocks -freorder-blocks- 
and-partition -fthread-jumps -fpeephole -fno-crossjumping' 'CPPFLAGS=- 
no-cpp-precomp' 'LDFLAGS=-bind_at_load -dead_strip -multiply_defined  
suppress -L/sw/lib/ncurses''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: de_DE.UTF-8
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: de_DE.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Shell

Minor modes in effect:
  shell-dirtrack-mode: t
  diff-auto-refine-mode: t
  show-paren-mode: t
  display-time-mode: t
  desktop-save-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t



--
Greetings

  Pete

By filing this bug report you have challenged the honor of my family.  
Prepare to die!


Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#764; Package emacs. (Tue, 11 Aug 2009 05:00:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Chong Yidong <cyd <at> stupidchicken.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 11 Aug 2009 05:00:04 GMT) Full text and rfc822 format available.

Message #10 received at 764 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Peter Dyballa <Peter_Dyballa <at> Freenet.DE>
Cc: 764 <at> debbugs.gnu.org
Subject: Re: 23.0.60; fontified prompt in *shell* extends to normal text upon yank
Date: Tue, 11 Aug 2009 00:55:59 -0400
> 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'.



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#764; Package emacs. (Sat, 15 Aug 2009 10:45:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to Peter Dyballa <Peter_Dyballa <at> Freenet.DE>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sat, 15 Aug 2009 10:45:08 GMT) Full text and rfc822 format available.

Message #15 received at 764 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Peter Dyballa <Peter_Dyballa <at> Freenet.DE>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: 764 <at> debbugs.gnu.org
Subject: Re: 23.0.60; fontified prompt in *shell* extends to normal text upon yank
Date: Sat, 15 Aug 2009 12:39:12 +0200
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






Reply sent to Bastien Guerry <bzg <at> altern.org>:
You have taken responsibility. (Tue, 07 Jan 2014 12:07:10 GMT) Full text and rfc822 format available.

Notification sent to Peter Dyballa <Peter_Dyballa <at> Freenet.DE>:
bug acknowledged by developer. (Tue, 07 Jan 2014 12:07:11 GMT) Full text and rfc822 format available.

Message #20 received at 764-done <at> debbugs.gnu.org (full text, mbox):

From: Bastien Guerry <bzg <at> altern.org>
To: Peter Dyballa <Peter_Dyballa <at> Freenet.DE>
Cc: 764-done <at> debbugs.gnu.org, Chong Yidong <cyd <at> stupidchicken.com>
Subject: Re: bug#764: 23.0.60;
 fontified prompt in *shell* extends to normal text upon yank
Date: Tue, 07 Jan 2014 11:38:35 +0100
Peter Dyballa <Peter_Dyballa <at> Freenet.DE> writes:

> 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.

I can't reproduce this either.  Closing this bug---Peter, feel free to
reopen it and to provide a new recipe if you still encounter this bug.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 04 Feb 2014 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 194 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.