Package: emacs23-nox Version: 23.2+1-4 Severity: minor Tags: fixed-upstream patch
When a console-mode Emacs initializes its terminal, it sends the escape sequence to switch to the alternate screen twice. This causes problems when running under screen (and maybe other terminal programs as well): exiting or suspending Emacs completely clears the screen. I have attached a patch that fixes this, which has been accepted upstream (http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7002; revision 100029 on the emacs-23 bzr branch). -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages emacs23-nox depends on: ii emacs23-bin-common 23.2+1-4jcb1 The GNU Emacs editor's shared, arc ii libasound2 1.0.23-2 shared library for ALSA applicatio ii libc6 2.11.2-6 Embedded GNU C Library: Shared lib ii libdbus-1-3 1.2.24-3 simple interprocess messaging syst ii libgpm2 1.20.4-3.3 General Purpose Mouse - shared lib ii libncurses5 5.7+20100313-4 shared libraries for terminal hand emacs23-nox recommends no packages. Versions of packages emacs23-nox suggests: pn emacs23-common-non-dfsg <none> (no description available) -- no debconf information
diff --git a/src/term.c b/src/term.c index fda06d6..fc013be 100644 --- a/src/term.c +++ b/src/term.c @@ -250,7 +250,6 @@ tty_set_terminal_modes (struct terminal *terminal) cmputc ('\n'); } - OUTPUT_IF (tty, tty->TS_termcap_modes); OUTPUT_IF (tty, visible_cursor ? tty->TS_cursor_visible : tty->TS_cursor_normal); OUTPUT_IF (tty, tty->TS_keypad_mode); losecursor (tty);