unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#71259: 29.1; Tramp connection property "direct-async-process" causes job control not to work in M-x shell buffers
@ 2024-05-29 13:55 Alex Hutcheson via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-05-30 17:00 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 4+ messages in thread
From: Alex Hutcheson via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-05-29 13:55 UTC (permalink / raw)
  To: 71259

To reproduce:

1. Start emacs with emacs -Q

2. Eval the following:

(require 'tramp)
;; Enable direct-async-process for all SSH connections
(add-to-list 'tramp-connection-properties
              (list "/ssh:.*" "direct-async-process" t))

3. Start a Tramp SSH connection: C-x C-f /ssh:some.host.com:

4. Start a shell buffer with M-x shell. Choose sh or bash as remote
shell (haven't tested with others)

Expected behavior:

Shell buffer shows a shell on the remote host. Job control (C-c C-z),
fg, bg, etc. all work.

Actual behavior:

Shell buffer starts a shell, but shows errors at the top of the buffer:

sh: cannot set terminal process group (128765): Inappropriate ioctl for  
device
sh: no job control in this shell

Shell mostly works, but job control features don't work.
C-c C-z does nothing
C-c C-c kills the shell, rather than the currently running job
fg and bg give errors like:
sh: fg: no job control

In GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo
  version 1.18.0, Xaw3d scroll bars) of 2024-01-22, modified by Debian
  built on kokoro-ubuntu
System Description: Debian GNU/Linux rodete


Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM HARFBUZZ JPEG JSON LCMS2
LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XAW3D XDBE XIM XINPUT2 XPM
LUCID ZLIB

Important settings:
   value of $LANG: en_US.UTF-8
   locale-coding-system: utf-8-unix








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

* bug#71259: 29.1; Tramp connection property "direct-async-process" causes job control not to work in M-x shell buffers
  2024-05-29 13:55 bug#71259: 29.1; Tramp connection property "direct-async-process" causes job control not to work in M-x shell buffers Alex Hutcheson via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-05-30 17:00 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-05-30 17:02   ` Alex Hutcheson via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-06-30  7:38   ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 2 replies; 4+ messages in thread
From: Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-05-30 17:00 UTC (permalink / raw)
  To: 71259; +Cc: alexhutcheson

Alex Hutcheson via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs@gnu.org> writes:

Hi Alex,

> Actual behavior:
>
> Shell buffer starts a shell, but shows errors at the top of the buffer:
>
> sh: cannot set terminal process group (128765): Inappropriate ioctl
> for device
> sh: no job control in this shell
>
> Shell mostly works, but job control features don't work.
> C-c C-z does nothing
> C-c C-c kills the shell, rather than the currently running job
> fg and bg give errors like:
> sh: fg: no job control

I could reproduce & fix it in recent Tramp sources. Pushed to the
repositories.

Unfortunately, the fix cannot be backported to Emacs 29 trivially. So
you might try either Emacs 30 or Tramp 2.7 from the respective git
repositories. Or you wait a little bit, until Tramp 2.7.1 appears on GNU
ELPA. Planned for end of June.

Best regards, Michael.





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

* bug#71259: 29.1; Tramp connection property "direct-async-process" causes job control not to work in M-x shell buffers
  2024-05-30 17:00 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-05-30 17:02   ` Alex Hutcheson via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-06-30  7:38   ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 0 replies; 4+ messages in thread
From: Alex Hutcheson via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-05-30 17:02 UTC (permalink / raw)
  To: Michael Albinus; +Cc: 71259

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

Great, thanks for the quick fix!

On Thu, May 30, 2024 at 1:00 PM Michael Albinus <michael.albinus@gmx.de>
wrote:

> Alex Hutcheson via "Bug reports for GNU Emacs, the Swiss army knife of
> text editors" <bug-gnu-emacs@gnu.org> writes:
>
> Hi Alex,
>
> > Actual behavior:
> >
> > Shell buffer starts a shell, but shows errors at the top of the buffer:
> >
> > sh: cannot set terminal process group (128765): Inappropriate ioctl
> > for device
> > sh: no job control in this shell
> >
> > Shell mostly works, but job control features don't work.
> > C-c C-z does nothing
> > C-c C-c kills the shell, rather than the currently running job
> > fg and bg give errors like:
> > sh: fg: no job control
>
> I could reproduce & fix it in recent Tramp sources. Pushed to the
> repositories.
>
> Unfortunately, the fix cannot be backported to Emacs 29 trivially. So
> you might try either Emacs 30 or Tramp 2.7 from the respective git
> repositories. Or you wait a little bit, until Tramp 2.7.1 appears on GNU
> ELPA. Planned for end of June.
>
> Best regards, Michael.
>

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

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

* bug#71259: 29.1; Tramp connection property "direct-async-process" causes job control not to work in M-x shell buffers
  2024-05-30 17:00 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-05-30 17:02   ` Alex Hutcheson via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-06-30  7:38   ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-06-30  7:38 UTC (permalink / raw)
  To: 71259-done; +Cc: alexhutcheson

Version: 30.1

Michael Albinus <michael.albinus@gmx.de> writes:

> I could reproduce & fix it in recent Tramp sources. Pushed to the
> repositories.
>
> Unfortunately, the fix cannot be backported to Emacs 29 trivially. So
> you might try either Emacs 30 or Tramp 2.7 from the respective git
> repositories. Or you wait a little bit, until Tramp 2.7.1 appears on GNU
> ELPA. Planned for end of June.

Tramp 2.7.1 has appeared on GNU ELPA. I'm closing this bug therefore.

Best regards, Michael.





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

end of thread, other threads:[~2024-06-30  7:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-29 13:55 bug#71259: 29.1; Tramp connection property "direct-async-process" causes job control not to work in M-x shell buffers Alex Hutcheson via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-30 17:00 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-30 17:02   ` Alex Hutcheson via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-30  7:38   ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors

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