From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: Re: Console-window Emacs stops responding when pasting clipboard Date: Fri, 27 Feb 2004 02:54:54 +0200 Organization: JURTA Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87ishtuysk.fsf@mail.jurta.org> References: <26338.1077733858@cs.ubc.ca> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1077843721 5811 80.91.224.253 (27 Feb 2004 01:02:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 Feb 2004 01:02:01 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 27 02:01:55 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AwWO2-00070R-00 for ; Fri, 27 Feb 2004 02:01:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AwWNv-0006Dh-Gb for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Feb 2004 20:01:47 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1AwWLt-0005WD-PP for bug-gnu-emacs@gnu.org; Thu, 26 Feb 2004 19:59:41 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1AwWLJ-0005I9-K3 for bug-gnu-emacs@gnu.org; Thu, 26 Feb 2004 19:59:37 -0500 Original-Received: from [66.33.219.4] (helo=spork.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AwWLJ-0005Hs-99 for bug-gnu-emacs@gnu.org; Thu, 26 Feb 2004 19:59:05 -0500 Original-Received: from mail.jurta.org (80-235-41-73-dsl.mus.estpak.ee [80.235.41.73]) by spork.dreamhost.com (Postfix) with ESMTP id 8FC9311DC3A; Thu, 26 Feb 2004 16:58:58 -0800 (PST) Original-To: Davor Cubranic In-Reply-To: <26338.1077733858@cs.ubc.ca> (Davor Cubranic's message of "Wed, 25 Feb 2004 10:30:58 -0800") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:7109 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:7109 Davor Cubranic 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/