unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#13255: 24.2.50; output in nonvisible shell buffer changes prompt
@ 2012-12-22 22:45 Richard Stallman
  2012-12-23  3:33 ` Glenn Morris
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Stallman @ 2012-12-22 22:45 UTC (permalink / raw)
  To: 13255

I have a shell buffer with a program sending lots of output.
That buffer is not currently displayed.  I type C-h, and it prompts.
So far, so good.

The bug is that the prompt changes repeatedly.  A space gets added at
the beginning and the hyphen disappears at the end.  Then the space
disappears and the hyphen reappears.  This oscillation continues
indefinitely at the rate of 3 or 4 changes per second.



In GNU Emacs 24.2.50.1 (mips64el-unknown-linux-gnu, GTK+ Version 2.12.12)
 of 2012-10-20 on chiefs-gnewsense
Bzr revision: 110610 rgm@gnu.org-20121021013546-97l6862aw3mmsbd4
System Description:	gNewSense mipsel-l

Configured using:
 `configure 'CFLAGS=-O0 -g' '--with-gif=no' '--with-tiff=no''

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: RMAIL

Minor modes in effect:
  diff-auto-refine-mode: t
  shell-dirtrack-mode: t
  gpm-mouse-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Recent input:
o g r a m s SPC s u c h SPC a s SPC s i c DEL DEL o 
c i a l SPC s e c u r i t y , SPC c u t s SPC t h a 
t ESC d ESC q C-p C-p C-p C-p ESC ^ ESC b ESC b ESC 
b ESC b i m a g i n a r y SPC ESC f ESC f C-f C-b C-k 
C-n C-n C-a C-n C-n i s SPC ESC q C-n C-e SPC SPC O 
b a m a SPC i s SPC a SPC c e n t e r - r i g h t RET 
p o l i t i c i a n SPC t h a t SPC f a v o r s SPC 
ESC DEL ESC DEL a n d SPC f a v o r s SPC s u c h SPC 
c u t s ; SPC i f SPC h e SPC d i d n ' t , SPC h e 
SPC w o u l d SPC n o t SPC g o SPC a l o n g RET w 
i t h SPC t h e SPC p r e t e n s e . C-c C-c C-d x 
C-d C-d x C-d x C-x C-s C-x b * s c TAB DEL ESC DEL 
s h TAB RET C-x b RET SPC SPC ESC v SPC SPC C-d C-d 
C-d C-d x C-x C-s n SPC C-d C-d C-d SPC SPC C-d C-d 
x C-x C-s C-x b RET C-x b RET C-h C-h ESC x r e p o 
r t SPC e m a c s SPC b u g RET

Recent messages:
Saving file /home/rms/RMAIL...
Wrote /home/rms/RMAIL [2 times]
Expunging deleted messages...done
Saving file /home/rms/RMAIL...
Wrote /home/rms/RMAIL [2 times]
No following nondeleted message
Expunging deleted messages...done
Saving file /home/rms/RMAIL...
Wrote /home/rms/RMAIL [2 times]
Quit
Quit

Load-path shadows:
None found.

Features:
(pcmpl-unix two-column debug unrmail diff ispell mail-extr shadow
emacsbug cc-langs cl cl-lib cc-mode cc-fonts cc-guess cc-menus cc-cmds
cc-styles cc-align cc-engine cc-vars cc-defs bug-reference apropos
time-stamp vc-arch vc-mtn vc-hg vc-git vc-sccs vc-svn vc-rcs utf-7
ind-util vc-bzr texinfo etags rmailsum jka-compr diff-mode log-edit
easy-mmode pcvs-util add-log vc vc-dispatcher parse-time vc-cvs
sgml-mode epa-mail epa derived epg epg-config shell pcomplete grep
compile comint ansi-color ring dired-aux novice quail help-mode
rmailout dabbrev misearch multi-isearch mule-util cal-move cal-menu
calendar cal-loaddefs qp mailalias rmailmm message sendmail
format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode
mailabbrev gmm-utils mailheader mail-parse rfc2231 dired t-mouse
time-date rmailedit rmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils paren cus-start cus-load advice help-fns
advice-preload tooltip ediff-hook vc-hooks lisp-float-type mwheel
x-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow
timer select scroll-bar mouse jit-lock font-lock syntax facemenu
font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan
thai tai-viet lao korean japanese hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
make-network-process dbusbind dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

-- 
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org  www.gnu.org
Skype: No way! That's nonfree (freedom-denying) software.
  Use Ekiga or an ordinary phone call






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

* bug#13255: 24.2.50; output in nonvisible shell buffer changes prompt
  2012-12-22 22:45 bug#13255: 24.2.50; output in nonvisible shell buffer changes prompt Richard Stallman
@ 2012-12-23  3:33 ` Glenn Morris
  2012-12-23 12:54   ` Stephen Berman
  2021-12-04  4:15   ` Lars Ingebrigtsen
  0 siblings, 2 replies; 6+ messages in thread
From: Glenn Morris @ 2012-12-23  3:33 UTC (permalink / raw)
  To: rms; +Cc: 13255

Richard Stallman wrote:

> I have a shell buffer with a program sending lots of output.
> That buffer is not currently displayed.  I type C-h, and it prompts.
> So far, so good.
>
> The bug is that the prompt changes repeatedly.  A space gets added at
> the beginning and the hyphen disappears at the end.  Then the space
> disappears and the hyphen reappears.  This oscillation continues
> indefinitely at the rate of 3 or 4 changes per second.

I don't see this. What I see (24.2.91) is:

emacs -Q -f shell

;; run this in shell buffer
while : ; do
 sleep 0.5
 echo hi
done

C-x b *scratch* RET
C-h

So long as the shell is looping, I get no C-h prompt at all.
If I interrupt the loop, I get the intended:

C-h (Type ? for further options)-





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

* bug#13255: 24.2.50; output in nonvisible shell buffer changes prompt
  2012-12-23  3:33 ` Glenn Morris
@ 2012-12-23 12:54   ` Stephen Berman
  2013-01-06  2:38     ` Chong Yidong
  2021-12-04  4:15   ` Lars Ingebrigtsen
  1 sibling, 1 reply; 6+ messages in thread
From: Stephen Berman @ 2012-12-23 12:54 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 13255, rms

On Sat, 22 Dec 2012 22:33:29 -0500 Glenn Morris <rgm@gnu.org> wrote:

> Richard Stallman wrote:
>
>> I have a shell buffer with a program sending lots of output.
>> That buffer is not currently displayed.  I type C-h, and it prompts.
>> So far, so good.
>>
>> The bug is that the prompt changes repeatedly.  A space gets added at
>> the beginning and the hyphen disappears at the end.  Then the space
>> disappears and the hyphen reappears.  This oscillation continues
>> indefinitely at the rate of 3 or 4 changes per second.
>
> I don't see this. What I see (24.2.91) is:
>
> emacs -Q -f shell
>
> ;; run this in shell buffer
> while : ; do
>  sleep 0.5
>  echo hi
> done
>
> C-x b *scratch* RET
> C-h
>
> So long as the shell is looping, I get no C-h prompt at all.
> If I interrupt the loop, I get the intended:
>
> C-h (Type ? for further options)-


When I repeat Glenn's recipe in GNU Emacs 24.3.50.2
(x86_64-suse-linux-gnu, GTK+ Version 3.4.4) of 2012-12-23 on rosalinde,
revision 111308 jan.h.d@swipnet.se-20121223123537-gfe4g8dbhcckdj6e, I
also get no prompt on typing `C-h'; but if I uncheck "Blink Cursor" in
the Options menu and again type `C-h', then I see exactly what rms
reported.

Steve Berman





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

* bug#13255: 24.2.50; output in nonvisible shell buffer changes prompt
  2012-12-23 12:54   ` Stephen Berman
@ 2013-01-06  2:38     ` Chong Yidong
  2013-01-06 19:49       ` Stephen Berman
  0 siblings, 1 reply; 6+ messages in thread
From: Chong Yidong @ 2013-01-06  2:38 UTC (permalink / raw)
  To: Stephen Berman; +Cc: 13255, rms

Stephen Berman <stephen.berman@gmx.net> writes:

>> emacs -Q -f shell
>>
>> ;; run this in shell buffer
>> while : ; do
>>  sleep 0.5
>>  echo hi
>> done
>>
>> C-x b *scratch* RET
>> C-h
>
> I also get no prompt on typing `C-h'; but if I uncheck "Blink Cursor"
> in the Options menu and again type `C-h', then I see exactly what rms
> reported.

I've made a commit to trunk which should fix this.






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

* bug#13255: 24.2.50; output in nonvisible shell buffer changes prompt
  2013-01-06  2:38     ` Chong Yidong
@ 2013-01-06 19:49       ` Stephen Berman
  0 siblings, 0 replies; 6+ messages in thread
From: Stephen Berman @ 2013-01-06 19:49 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 13255, rms

On Sun, 06 Jan 2013 10:38:20 +0800 Chong Yidong <cyd@gnu.org> wrote:

> Stephen Berman <stephen.berman@gmx.net> writes:
>
>>> emacs -Q -f shell
>>>
>>> ;; run this in shell buffer
>>> while : ; do
>>>  sleep 0.5
>>>  echo hi
>>> done
>>>
>>> C-x b *scratch* RET
>>> C-h
>>
>> I also get no prompt on typing `C-h'; but if I uncheck "Blink Cursor"
>> in the Options menu and again type `C-h', then I see exactly what rms
>> reported.
>
> I've made a commit to trunk which should fix this.

I updated to trunk revno 111429 and confirm the oscillating dash/space
problem in the OP, which occurs when the blinking cursor is disabled, is
now fixed; thanks.  However, when the blinking cursor is enabled and the
above recipe is repeated, `C-h' is still not echoed (nor is any prefix
key).

Steve Berman





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

* bug#13255: 24.2.50; output in nonvisible shell buffer changes prompt
  2012-12-23  3:33 ` Glenn Morris
  2012-12-23 12:54   ` Stephen Berman
@ 2021-12-04  4:15   ` Lars Ingebrigtsen
  1 sibling, 0 replies; 6+ messages in thread
From: Lars Ingebrigtsen @ 2021-12-04  4:15 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 13255, rms

Glenn Morris <rgm@gnu.org> writes:

> emacs -Q -f shell
>
> ;; run this in shell buffer
> while : ; do
>  sleep 0.5
>  echo hi
> done
>
> C-x b *scratch* RET
> C-h
>
> So long as the shell is looping, I get no C-h prompt at all.
> If I interrupt the loop, I get the intended:
>
> C-h (Type ? for further options)-

This problem is still present in Emacs 29 (whether blink-cursor-mode is
enabled or not (it was reported that switching it off would mitigate the
problem)).

So I guess process output makes the thing that displays `C-x -' (or `C-h
-') short-circuits a timeout somewhere?  Hm...  this sounds familiar; I
feel I've seen a discussion of this somewhere semi-recently.  Anybody
remember?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2021-12-04  4:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-22 22:45 bug#13255: 24.2.50; output in nonvisible shell buffer changes prompt Richard Stallman
2012-12-23  3:33 ` Glenn Morris
2012-12-23 12:54   ` Stephen Berman
2013-01-06  2:38     ` Chong Yidong
2013-01-06 19:49       ` Stephen Berman
2021-12-04  4:15   ` Lars Ingebrigtsen

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