Subject: bug#28800: 25.3.50; Emacs -nw breaks urxvt

From: Eli Zaretskii <[email-masked]>
Date: Mon, 23 Oct 2017 16:50:52 +0300

[Please keep the bug address on the CC list.]

> From: Aric81 <[email-masked]>
> Date: Sun, 22 Oct 2017 20:28:48 -0700
> 
> On 2017-10-12 01:45 PM, Eli Zaretskii wrote:
> 
>  In GNU Emacs 25.3.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) 
> of 2017-09-15 built on lgw01-amd64-022 
> Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 
> System Description: Ubuntu 16.04.3 LTS 
> 
> 
> What is "Emacs 25.3.50"?  Which source code base was it built from?
> Can you try the pretest of Emacs 26 (on alpha.gnu.org) or build the
> emacs-26 branch of the Emacs Git repository?
> 
> I have been able to reproduce this consistently, it is due to my TERM settings:
> 
> export TERM=rxvt-unicode-256color
> emacsclient -a emacs -nw
> - exit emacs -
> 
> After that any mouse click in the terminal will produce garbage.
> 
> If I then export TERM=xterm-256color and do the same, no garbage is produced anymore.
> 
> It seems a regression, this was not happening in emacs 24 (emacs24 package in Ubuntu).

Do you have the corresponding terminfo installed for this terminal?

Please also try the pretest of Emacs 26, it's available from
alpha.gnu.org.