]> git.eshelyaron.com Git - emacs.git/commit
Fix implementation of the --terminal command-line switch
authorEli Zaretskii <eliz@gnu.org>
Sat, 4 May 2024 10:12:21 +0000 (13:12 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 6 May 2024 16:38:35 +0000 (18:38 +0200)
commita2bd806fe4f02ede629e2579beef7e04b157b987
tree1c8154c876ca9f38e355fecdd97a07bdfdc72731
parentcd5d4ed3f9fbd082dce2d583b4f4f091449acc94
Fix implementation of the --terminal command-line switch

It sounds like this has been broken ever since multi-tty was
added to Emacs.
* src/keyboard.c (dev_tty): New global variable.
* src/keyboard.h: Declare 'dev_tty'.
* src/emacs.c (main): Initialize 'dev_tty'.
* src/term.c (Fcontrolling_tty_p, Fresume_tty, init_tty):
* src/process.c (dissociate_controlling_tty):
* src/keyboard.c (handle_interrupt_signal, handle_interrupt)
(Fset_quit_char): Use 'dev_tty' instead of 'DEV_TTY'.  (Bug#70519)

(cherry picked from commit fa0f65aa342e181e0e98f55cbf5d9a9be5ed3be6)
src/emacs.c
src/keyboard.c
src/keyboard.h
src/process.c
src/term.c