From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Paul Rubin Newsgroups: gmane.emacs.bugs Subject: cut and paste hazard Date: 5 Mar 2004 22:19:59 -0000 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20040305221959.21034.qmail@brouhaha.com> Reply-To: Paul Rubin NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1078880131 23474 80.91.224.253 (10 Mar 2004 00:55:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 Mar 2004 00:55:31 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 10 01:55:24 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 1B0s0J-0001x0-00 for ; Wed, 10 Mar 2004 01:55:23 +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 1B0rzH-000381-2w for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Mar 2004 19:54:19 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1AzNgL-0001qO-G6 for bug-gnu-emacs@gnu.org; Fri, 05 Mar 2004 17:20:37 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1AzNfo-0001WX-Vr for bug-gnu-emacs@gnu.org; Fri, 05 Mar 2004 17:20:36 -0500 Original-Received: from [64.62.206.8] (helo=brouhaha.com) by monty-python.gnu.org with smtp (Exim 4.30) id 1AzNfo-0001Tm-GX for bug-gnu-emacs@gnu.org; Fri, 05 Mar 2004 17:20:04 -0500 Original-Received: (qmail 21035 invoked by uid 1010); 5 Mar 2004 22:19:59 -0000 Original-To: bug-gnu-emacs@gnu.org 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:7216 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:7216 I tried cutting and pasting some text from a web browser window into an Emacs buffer in a terminal window, and got some weird behavior (beeping and hard-to-fathon minibuffer error messages) from Emacs on the paste operation. It was just a sentence or two of plain text about a guy from Spain and I couldn't at first understand what was wrong. It turned out that because the Spanish guy's name contained an accented character, Emacs interpreted the 8-bit code for that character as an editing command with the Meta key set. This is kind of scary--that particular accented string luckily didn't screw up anything by accident. It's even a security risk, since I could imagine being able to maliciously engineer a block of text that did something nasty when pasted into Emacs. Unfortunately, at least with Emacs running in a terminal window and with the paste operation being done externally by the window manager, I don't see a workaround. If Emacs is running in an X window, it should accept 8-bit typein as normal text, and require actual meta key events to set off editing commands (I don't know if it does this).