unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#18931: 24.4; delete-frame suspends tty when running emacs on virtual terminal
@ 2014-11-03  7:07 Daniel McClanahan
  2020-12-04 10:40 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel McClanahan @ 2014-11-03  7:07 UTC (permalink / raw)
  To: 18931

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

When delete-frame is called, emacs eventually runs the function
server-delete-client, defined in server.el. In server.el, there is an unless
clause stating in the comments "Delete the client's tty, except on
Windows". This assumes that if the user is using emacs with multiple frames,
those separate frames are running in separate ttys. However, when I
typically
use emacs in multiple frames, those multiple frames are simply in separate
virtual terminals within an X session. As a result, this behavior (deleting
the
tty) is vexing for me, since it makes closing a frame also crash emacs,
which is
running in the same tty (the tty is suspended and when unsuspended with fg,
emacs displays text entered literally (^X and the like are displayed, for
example), but does not respond to M-x or other keybindings).

Obviously, this does not occur (I've checked) if:
1) Emacs is running graphically.
2) Emacs is running in gdb.

To make this occur:
1) Run emacs -nw in a virtual terminal window and start server.
2) Run emacsclient -nw in another virtual terminal.
3) Run delete-frame on the client and observe the behavior in the original
emacs
terminal window.

When I commented out that unless clause and rebuilt emacs the behavior
disappears, so I'm confident I've correctly diagnosed the issue. I've
created a
defcustom in my local version of the development bzr branch of server.el to
allow the user to specify whether this behavior should occur, defaulting to
nil
which enables the current behavior. Would sending a patch of this be
acceptable,
or does the project wish to simply continue the current behavior of
server-delete-client?

[-- Attachment #2: Type: text/html, Size: 1776 bytes --]

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

* bug#18931: 24.4; delete-frame suspends tty when running emacs on virtual terminal
  2014-11-03  7:07 bug#18931: 24.4; delete-frame suspends tty when running emacs on virtual terminal Daniel McClanahan
@ 2020-12-04 10:40 ` Lars Ingebrigtsen
  2021-05-28  2:23   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2020-12-04 10:40 UTC (permalink / raw)
  To: Daniel McClanahan; +Cc: 18931

Daniel McClanahan <danieldmcclanahan@gmail.com> writes:

> To make this occur:
> 1) Run emacs -nw in a virtual terminal window and start server.
> 2) Run emacsclient -nw in another virtual terminal.
> 3) Run delete-frame on the client and observe the behavior in the original emacs
> terminal window.

(This bug report unfortunately got no response at the time.)

The term "virtual terminal" isn't anything I can recall having heard
before.  What is that?

> When I commented out that unless clause and rebuilt emacs the behavior
> disappears, so I'm confident I've correctly diagnosed the issue. I've
> created a defcustom in my local version of the development bzr branch
> of server.el to allow the user to specify whether this behavior should
> occur, defaulting to nil which enables the current behavior. Would
> sending a patch of this be acceptable, or does the project wish to
> simply continue the current behavior of server-delete-client?

A patch would be welcome.

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





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

* bug#18931: 24.4; delete-frame suspends tty when running emacs on virtual terminal
  2020-12-04 10:40 ` Lars Ingebrigtsen
@ 2021-05-28  2:23   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2021-05-28  2:23 UTC (permalink / raw)
  To: Daniel McClanahan; +Cc: 18931

Lars Ingebrigtsen <larsi@gnus.org> writes:

>> To make this occur:
>> 1) Run emacs -nw in a virtual terminal window and start server.
>> 2) Run emacsclient -nw in another virtual terminal.
>> 3) Run delete-frame on the client and observe the behavior in the
>> original emacs
>> terminal window.
>
> (This bug report unfortunately got no response at the time.)
>
> The term "virtual terminal" isn't anything I can recall having heard
> before.  What is that?

Oh, in a different window?  I've tried this recipe in Emacs 28, and I'm
unable to reproduce the problem -- the original Emacs frame isn't
affected by this, as far as I can see.  So I'm going to go ahead and
guess that this has been fixed in more recent Emacs versions.  If you're
still seeing this, please respond to the debbugs address and we'll
reopen.

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





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

end of thread, other threads:[~2021-05-28  2:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-03  7:07 bug#18931: 24.4; delete-frame suspends tty when running emacs on virtual terminal Daniel McClanahan
2020-12-04 10:40 ` Lars Ingebrigtsen
2021-05-28  2:23   ` 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).