unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#8743: Strange '1; 2600; 0' symbols appear when starting from console
@ 2011-05-27 16:37 HighCat
  2011-05-27 17:10 ` Glenn Morris
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: HighCat @ 2011-05-27 16:37 UTC (permalink / raw)
  To: 8743

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

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

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

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

* bug#8743: Strange '1; 2600; 0' symbols appear when starting from console
  2011-05-27 16:37 bug#8743: Strange '1; 2600; 0' symbols appear when starting from console HighCat
@ 2011-05-27 17:10 ` Glenn Morris
  2011-05-28 16:03   ` HighCat
  2011-08-16 10:15 ` bug#8743: rxvt-unicode HighCat
  2019-10-11  1:21 ` bug#8743: Strange '1; 2600; 0' symbols appear when starting from console Stefan Kangas
  2 siblings, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2011-05-27 17:10 UTC (permalink / raw)
  To: HighCat; +Cc: 8743

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





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

* bug#8743: Strange '1; 2600; 0' symbols appear when starting from console
  2011-05-27 17:10 ` Glenn Morris
@ 2011-05-28 16:03   ` HighCat
  0 siblings, 0 replies; 8+ messages in thread
From: HighCat @ 2011-05-28 16:03 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 8743

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






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

* bug#8743: rxvt-unicode
  2011-05-27 16:37 bug#8743: Strange '1; 2600; 0' symbols appear when starting from console HighCat
  2011-05-27 17:10 ` Glenn Morris
@ 2011-08-16 10:15 ` HighCat
  2019-10-11  1:21 ` bug#8743: Strange '1; 2600; 0' symbols appear when starting from console Stefan Kangas
  2 siblings, 0 replies; 8+ messages in thread
From: HighCat @ 2011-08-16 10:15 UTC (permalink / raw)
  To: 8743

Just found that the problem exists while using Gnome Terminal,
but with rxvt-unicode all is pretty fine.





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

* bug#8743: Strange '1; 2600; 0' symbols appear when starting from console
  2011-05-27 16:37 bug#8743: Strange '1; 2600; 0' symbols appear when starting from console HighCat
  2011-05-27 17:10 ` Glenn Morris
  2011-08-16 10:15 ` bug#8743: rxvt-unicode HighCat
@ 2019-10-11  1:21 ` Stefan Kangas
  2022-01-27 18:03   ` bug#8743: Strange '1; 2600; 0' symbols appear when running in gnome-terminal Lars Ingebrigtsen
  2 siblings, 1 reply; 8+ messages in thread
From: Stefan Kangas @ 2019-10-11  1:21 UTC (permalink / raw)
  To: HighCat; +Cc: 8743

found 8743 27.0.50
quit

HighCat <highcatland@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





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

* bug#8743: Strange '1; 2600; 0' symbols appear when running in gnome-terminal
  2019-10-11  1:21 ` bug#8743: Strange '1; 2600; 0' symbols appear when starting from console Stefan Kangas
@ 2022-01-27 18:03   ` Lars Ingebrigtsen
  2022-01-27 18:29     ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Lars Ingebrigtsen @ 2022-01-27 18:03 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: HighCat, 8743

Stefan Kangas <stefan@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





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

* bug#8743: Strange '1; 2600; 0' symbols appear when running in gnome-terminal
  2022-01-27 18:03   ` bug#8743: Strange '1; 2600; 0' symbols appear when running in gnome-terminal Lars Ingebrigtsen
@ 2022-01-27 18:29     ` Eli Zaretskii
  2022-01-27 19:02       ` Lars Ingebrigtsen
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2022-01-27 18:29 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: stefan, highcatland, 8743

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Thu, 27 Jan 2022 19:03:48 +0100
> Cc: HighCat <highcatland@gmail.com>, 8743@debbugs.gnu.org
> 
> Stefan Kangas <stefan@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.





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

* bug#8743: Strange '1; 2600; 0' symbols appear when running in gnome-terminal
  2022-01-27 18:29     ` Eli Zaretskii
@ 2022-01-27 19:02       ` Lars Ingebrigtsen
  0 siblings, 0 replies; 8+ messages in thread
From: Lars Ingebrigtsen @ 2022-01-27 19:02 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: stefan, highcatland, 8743

Eli Zaretskii <eliz@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





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

end of thread, other threads:[~2022-01-27 19:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-27 16:37 bug#8743: Strange '1; 2600; 0' symbols appear when starting from console HighCat
2011-05-27 17:10 ` Glenn Morris
2011-05-28 16:03   ` HighCat
2011-08-16 10:15 ` bug#8743: rxvt-unicode HighCat
2019-10-11  1:21 ` bug#8743: Strange '1; 2600; 0' symbols appear when starting from console Stefan Kangas
2022-01-27 18:03   ` bug#8743: Strange '1; 2600; 0' symbols appear when running in gnome-terminal Lars Ingebrigtsen
2022-01-27 18:29     ` Eli Zaretskii
2022-01-27 19:02       ` Lars Ingebrigtsen

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