unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: Console-window Emacs stops responding when pasting clipboard
Date: Fri, 27 Feb 2004 02:54:54 +0200	[thread overview]
Message-ID: <87ishtuysk.fsf@mail.jurta.org> (raw)
In-Reply-To: <26338.1077733858@cs.ubc.ca> (Davor Cubranic's message of "Wed, 25 Feb 2004 10:30:58 -0800")

Davor Cubranic <cubranic@cs.ubc.ca> writes:
> I run Emacs in a Putty terminal window (xterm emulation), and when I
> paste the contents of certain web pages I copied from Mozilla, Emacs
> stops responding. For an example, select the entire 11th paragraph in
> the body of the article at
> http://www.guardian.co.uk/elsewhere/journalist/story/0,7792,1152570,00.html
> (starting with "It all ran a bit out of control"). Paste it into Emacs
> (shift-insert in putty). Emacs stops responding until I press C-g. It
> looks like the dashes ("...were coming to see me -- everyone knows
> everyone in this town -- and saying...") are the cause of the problem,

I don't use Windows, but on GNU/Linux I can observe a similar anomaly,
and I think that it could explain this behavior too.

When a single 0xAD character is pasted into Emacs invoked with a -nw
inside an xterm, then after 1 sec Emacs displays "M---" in the echo area.
This means it interprets 0xAD as a meta character with the highest bit
set in the - (0x2D) character.

This explains why the text " - everyone knows everyone in this town - "
is pasted as " everyone knows everyone in this town " into GNU/Linux xterm.
It eats dashes with the following space because it interprets "-" as
a negative integer argument and insert the next character with -1 argument,
i.e. inserts nothing.  And it may also explain its behavior in a Windows
terminal window with Emacs in xterm, where perhaps it stops waiting
for a negative numeric prefix argument.

(BTW, since the phrase "everyone knows everyone in this town" from the
article was mentioned several times on this thread, I can confirm,
just for your information, how true this statement is!  It is even
often named as "glass city" where "everyone sees everyone", all this
due to the specific population distribution.)

-- 
http://www.jurta.org/emacs/

      parent reply	other threads:[~2004-02-27  0:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-25 18:30 Console-window Emacs stops responding when pasting clipboard Davor Cubranic
2004-02-26  5:56 ` Eli Zaretskii
2004-02-26  6:54   ` era
2004-02-26 18:03   ` Davor Cubranic
2004-03-10 17:36   ` Davor Cubranic
2004-03-12 10:10     ` Andreas Schwab
2004-02-27  0:54 ` Juri Linkov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ishtuysk.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).