GNU bug report logs - #8743
Strange '1; 2600; 0' symbols appear when running in gnome-terminal

Previous Next

Package: emacs;

Reported by: HighCat <highcatland <at> gmail.com>

Date: Fri, 27 May 2011 17:00:03 UTC

Severity: normal

Tags: confirmed

Merged with 6685

Found in versions 23.2, 27.0.50

To reply to this bug, email your comments to 8743 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8743; Package emacs. (Fri, 27 May 2011 17:00:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to HighCat <highcatland <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 27 May 2011 17:00:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: HighCat <highcatland <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Strange '1;2600;0' symbols appear when starting from console
Date: Fri, 27 May 2011 20:37:56 +0400
[Message part 1 (text/plain, inline)]
When open file from console, there are some strange symbols pasted on the
cursor position:  "1;2600;0".
This happens accidentally if you type something while emacs still starting.

Easily reproduced when you run Emacs from ssh session on remote server.
Somewhat harder to do this on local machine — but I managed to reproduce it
1-2 times.

I use:
Emacs 23.3.1, self-compiled, and also reproduced on older versions (from
Ubuntu 10.04 and 10.10 packages).
GNOME Terminal 2.32.0
Remote server, when ssh'ing — Ubuntu 10.04.2

There's some duscussion of the problem here:
http://groups.google.com/group/gnu.emacs.help/browse_thread/thread/dca1b7286458aaf5

I consider it a bug, as it's embarrassing for me (as end-user of Emacs),
when I edit some script on server,
and later it crashes, because some strange "1;2600;0" in the beginning of
file, which I missed.
Seems like I have a habit to type "C-n" or "C-v" instantly when opening some
files, so I got the issue from time to time.


(sorry for my English — mistakes are possible)

--
HighCat/Alexander
[Message part 2 (text/html, inline)]

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8743; Package emacs. (Fri, 27 May 2011 17:11:01 GMT) Full text and rfc822 format available.

Message #8 received at 8743 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: HighCat <highcatland <at> gmail.com>
Cc: 8743 <at> debbugs.gnu.org
Subject: Re: bug#8743: Strange '1; 2600;
	0' symbols appear when starting from console
Date: Fri, 27 May 2011 13:10:38 -0400
HighCat wrote:

> When open file from console, there are some strange symbols pasted on the
> cursor position:  "1;2600;0".

Sounds like

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=1495       (and 1494)

which was supposedly fixed (?) in 23.1.

> Emacs 23.3.1, self-compiled, and also reproduced on older versions (from
> Ubuntu 10.04 and 10.10 packages).




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8743; Package emacs. (Sat, 28 May 2011 16:04:01 GMT) Full text and rfc822 format available.

Message #11 received at 8743 <at> debbugs.gnu.org (full text, mbox):

From: HighCat <highcatland <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 8743 <at> debbugs.gnu.org
Subject: Re: bug#8743: Strange '1; 2600; 0' symbols appear when starting from
	console
Date: Sat, 28 May 2011 20:03:29 +0400
Yes, exactly the same issue,
but I'm able to reproduce it with 23.1.1 and 23.3.1

On 05/27/2011 09:10 PM, Glenn Morris wrote:
> HighCat wrote:
>
>> When open file from console, there are some strange symbols pasted on the
>> cursor position:  "1;2600;0".
> Sounds like
>
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=1495       (and 1494)
>
> which was supposedly fixed (?) in 23.1.
>
>> Emacs 23.3.1, self-compiled, and also reproduced on older versions (from
>> Ubuntu 10.04 and 10.10 packages).





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8743; Package emacs. (Tue, 16 Aug 2011 10:18:02 GMT) Full text and rfc822 format available.

Message #14 received at 8743 <at> debbugs.gnu.org (full text, mbox):

From: HighCat <highcatland <at> gmail.com>
To: 8743 <at> debbugs.gnu.org
Subject: rxvt-unicode
Date: Tue, 16 Aug 2011 14:15:22 +0400
Just found that the problem exists while using Gnome Terminal,
but with rxvt-unicode all is pretty fine.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#8743; Package emacs. (Fri, 11 Oct 2019 01:22:01 GMT) Full text and rfc822 format available.

Message #17 received at 8743 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: HighCat <highcatland <at> gmail.com>
Cc: 8743 <at> debbugs.gnu.org
Subject: Re: bug#8743: Strange '1; 2600;
 0' symbols appear when starting from console
Date: Fri, 11 Oct 2019 03:21:25 +0200
found 8743 27.0.50
quit

HighCat <highcatland <at> gmail.com> writes:

> When open file from console, there are some strange symbols pasted on the cursor position:  "1;2600;0".
>
> This happens accidentally if you type something while emacs still starting.
>
> Easily reproduced when you run Emacs from ssh session on remote server.
> Somewhat harder to do this on local machine — but I managed to reproduce it 1-2 times.
>
> I use:
> Emacs 23.3.1, self-compiled, and also reproduced on older versions (from Ubuntu 10.04 and 10.10 packages).
> GNOME Terminal 2.32.0
> Remote server, when ssh'ing — Ubuntu 10.04.2
>
> There's some duscussion of the problem here: http://groups.google.com/group/gnu.emacs.help/browse_thread/thread/dca1b7286458aaf5
>
> I consider it a bug, as it's embarrassing for me (as end-user of Emacs), when I edit some script on server,
> and later it crashes, because some strange "1;2600;0" in the beginning of file, which I missed.
> Seems like I have a habit to type "C-n" or "C-v" instantly when opening some files, so I got the issue from time to time.

I'm able to reproduce this using gnome-terminal on current master.

To reproduce, start gnome-terminal, emacs -Q -nw, hit return, and hit
any key before it starts.  I see the characters "e65;5402;1c" inserted
in *scratch*.

It's easy to reproduce without running a remote connection, but you
need to be fast on the keys and hit some other key immediately after
return.

I don't see this when running rxvt.

Best regards,
Stefan Kangas




bug Marked as found in versions 27.0.50. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Fri, 11 Oct 2019 01:22:04 GMT) Full text and rfc822 format available.

Severity set to 'minor' from 'normal' Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Fri, 17 Jan 2020 23:51:02 GMT) Full text and rfc822 format available.

Changed bug title to 'Strange '1; 2600; 0' symbols appear when running in gnome-terminal' from 'Strange '1;2600;0' symbols appear when starting from console' Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Sat, 18 Jan 2020 10:05:02 GMT) Full text and rfc822 format available.

Added tag(s) confirmed. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Mon, 27 Dec 2021 02:10:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#8743; Package emacs. (Thu, 27 Jan 2022 18:05:02 GMT) Full text and rfc822 format available.

Message #28 received at 8743 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: HighCat <highcatland <at> gmail.com>, 8743 <at> debbugs.gnu.org
Subject: Re: bug#8743: Strange '1; 2600; 0' symbols appear when running in
 gnome-terminal
Date: Thu, 27 Jan 2022 19:03:48 +0100
Stefan Kangas <stefan <at> marxist.se> writes:

> To reproduce, start gnome-terminal, emacs -Q -nw, hit return, and hit
> any key before it starts.  I see the characters "e65;5402;1c" inserted
> in *scratch*.

And I can confirm that this bug is still present in Emacs 29.

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#8743; Package emacs. (Thu, 27 Jan 2022 18:30:02 GMT) Full text and rfc822 format available.

Message #31 received at 8743 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: stefan <at> marxist.se, highcatland <at> gmail.com, 8743 <at> debbugs.gnu.org
Subject: Re: bug#8743: Strange '1; 2600;
 0' symbols appear when running in gnome-terminal
Date: Thu, 27 Jan 2022 20:29:03 +0200
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Thu, 27 Jan 2022 19:03:48 +0100
> Cc: HighCat <highcatland <at> gmail.com>, 8743 <at> debbugs.gnu.org
> 
> Stefan Kangas <stefan <at> marxist.se> writes:
> 
> > To reproduce, start gnome-terminal, emacs -Q -nw, hit return, and hit
> > any key before it starts.  I see the characters "e65;5402;1c" inserted
> > in *scratch*.
> 
> And I can confirm that this bug is still present in Emacs 29.

See xterm--version-handler, I think this comes from there.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#8743; Package emacs. (Thu, 27 Jan 2022 19:03:02 GMT) Full text and rfc822 format available.

Message #34 received at 8743 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: stefan <at> marxist.se, highcatland <at> gmail.com, 8743 <at> debbugs.gnu.org
Subject: Re: bug#8743: Strange '1; 2600; 0' symbols appear when running in
 gnome-terminal
Date: Thu, 27 Jan 2022 20:02:08 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

> See xterm--version-handler, I think this comes from there.

Yes, or possibly something else doing queries; I'm not quite sure.  But
poking at the stuff, if we disable all the queries, the problem goes
away.  

(defun xterm--query (query handlers &optional no-async)
[...]
      ;; Pending input can be mistakenly returned by the calls to
      ;; read-event below: discard it.
      (discard-input)
      (send-string-to-terminal query)

And it seems like it's trying to do the right thing by getting rid of
any input before doing the queries, but the `discard-input' here seems
to have no effect.

(I haven't debugged further.)

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




Forcibly Merged 6685 8743. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 10 Feb 2022 12:09:02 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 123 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.