all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org, mkupfer@alum.berkeley.edu
Subject: Re: misbehavior in shell window with ksh
Date: Thu, 04 May 2017 09:54:23 +0200	[thread overview]
Message-ID: <87k25xawgg.fsf@rosalinde> (raw)
In-Reply-To: <83fuglhlqk.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 03 May 2017 20:51:47 +0300")

On Wed, 03 May 2017 20:51:47 +0300 Eli Zaretskii <eliz@gnu.org> wrote:

>> From: Stephen Berman <stephen.berman@gmx.net>
>> Cc: mkupfer@alum.berkeley.edu,  emacs-devel@gnu.org
>> Date: Tue, 02 May 2017 18:55:01 +0200
>> 
>> #52 0x0000000000553443 in internal_condition_case_1
>> (bfun=bfun@entry=0x589286 <read_process_output_call>, arg=50273987,
>> handlers=handlers@entry=19968, hfun=hfun@entry=0x589218
>> <read_process_output_error_handler>)
>>     at /home/steve/git/emacs-master/src/eval.c:1348
>> #53 0x0000000000588e2f in read_and_dispose_of_process_output
>> (p=p@entry=0x1365d60, chars=chars@entry=0x7ffcbb816460 "> ",
>> nbytes=nbytes@entry=2, coding=coding@entry=0x105c330) at
>> /home/steve/git/emacs-master/src/process.c:5979
>> #54 0x0000000000589095 in read_process_output (proc=proc@entry=20340069,
>> channel=channel@entry=18) at /home/steve/git/emacs-master/src/process.c:5890
>> #55 0x0000000000590a0a in wait_reading_process_output
>> (time_limit=time_limit@entry=30, nsecs=nsecs@entry=0, read_kbd=<optimized
>> out>, do_display=do_display@entry=true, wait_for_cell=wait_for_cell@entry=0,
>> wait_proc=wait_proc@entry=0x0, just_wait_proc=just---Type <return> to
>> continue, or q <return> to quit---
>> _wait_proc@entry=0) at /home/steve/git/emacs-master/src/process.c:5589
>> #56 0x0000000000421953 in sit_for (timeout=timeout@entry=122,
>> reading=reading@entry=true, display_option=display_option@entry=1)
>>     at /home/steve/git/emacs-master/src/dispnew.c:5763
>> #57 0x00000000004f313e in read_char (commandflag=1, map=map@entry=13473155,
>> prev_event=0, used_mouse_menu=used_mouse_menu@entry=0x7ffcbb817b2b,
>> end_time=end_time@entry=0x0) at
>> /home/steve/git/emacs-master/src/keyboard.c:2722
>
> The above is the interesting part: it shows that the "> " string was
> received from the shell subprocess.  And that rings a bell: we have
> this window-adjust-process-window-size-function feature, which is new
> in Emacs 25.  It sends a TIOCSWINSZ or TIOCSSIZE ioctl to the shell's
> pty; perhaps that causes the shell to respond with PS2?  Can you play
> with the value of this variable, like set it to a function that
> returns nil, so that set-process-window-size is not called, and see if
> that helps to avoid the issue?

Bingo!  That variable is a user option and when I change its value with
M-x customize-option to "Do not adjust process window sizes" (i.e. the
function `ignore') and then execute the recipe, "> " is not inserted.
When I return to the customization buffer and change the value back to
the default "Minimum area of any window" (i.e. the function
`window-adjust-process-window-size-smallest') and then switch back to
the *shell* buffer, "> " I see that has now been inserted.

Steve Berman



  reply	other threads:[~2017-05-04  7:54 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-30 23:12 misbehavior in shell window with ksh Mike Kupfer
2017-05-01  6:49 ` Eli Zaretskii
2017-05-01 10:59   ` Stephen Berman
2017-05-01 11:31     ` Eli Zaretskii
2017-05-01 14:41       ` Stephen Berman
2017-05-01 15:09         ` Eli Zaretskii
2017-05-01 15:52           ` Stephen Berman
2017-05-02  9:03             ` Eli Zaretskii
2017-05-02 12:35               ` Stephen Berman
2017-05-02 16:32                 ` Eli Zaretskii
2017-05-02 16:55                   ` Stephen Berman
2017-05-03 17:51                     ` Eli Zaretskii
2017-05-04  7:54                       ` Stephen Berman [this message]
2017-05-04 14:42                         ` Eli Zaretskii
2017-05-05  3:04                           ` Mike Kupfer
2017-05-05  6:13                             ` Eli Zaretskii
2017-05-06 18:41                               ` Mike Kupfer
2017-05-09 16:36                                 ` Eli Zaretskii
2017-05-01 15:29         ` Mike Kupfer
2017-05-02 13:03           ` Tino Calancha
2017-05-01  7:38 ` Tino Calancha

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k25xawgg.fsf@rosalinde \
    --to=stephen.berman@gmx.net \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=mkupfer@alum.berkeley.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.