unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#764: 23.0.60; fontified prompt in *shell* extends to normal text upon yank
@ 2008-08-23  8:59 Peter Dyballa
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2008-08-23  8:59 UTC (permalink / raw)
  To: emacs-pretest-bug

[-- Attachment #1: Type: text/plain, Size: 521 bytes --]

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:


[-- Attachment #2: pastedGraphic.tiff --]
[-- Type: image/tiff, Size: 30758 bytes --]

[-- Attachment #3: Type: text/plain, Size: 2188 bytes --]



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!


^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#764: 23.0.60; fontified prompt in *shell* extends to normal text upon yank
@ 2009-08-11  4:55 Chong Yidong
  2009-08-15 10:39 ` Peter Dyballa
  0 siblings, 1 reply; 4+ messages in thread
From: Chong Yidong @ 2009-08-11  4:55 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: 764

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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#764: 23.0.60; fontified prompt in *shell* extends to normal text upon yank
  2009-08-11  4:55 bug#764: 23.0.60; fontified prompt in *shell* extends to normal text upon yank Chong Yidong
@ 2009-08-15 10:39 ` Peter Dyballa
  2014-01-07 10:38   ` Bastien Guerry
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Dyballa @ 2009-08-15 10:39 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 764


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








^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#764: 23.0.60; fontified prompt in *shell* extends to normal text upon yank
  2009-08-15 10:39 ` Peter Dyballa
@ 2014-01-07 10:38   ` Bastien Guerry
  0 siblings, 0 replies; 4+ messages in thread
From: Bastien Guerry @ 2014-01-07 10:38 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: 764-done, Chong Yidong

Peter Dyballa <Peter_Dyballa@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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-01-07 10:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-11  4:55 bug#764: 23.0.60; fontified prompt in *shell* extends to normal text upon yank Chong Yidong
2009-08-15 10:39 ` Peter Dyballa
2014-01-07 10:38   ` Bastien Guerry
  -- strict thread matches above, loose matches on Subject: below --
2008-08-23  8:59 Peter Dyballa

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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