From: Paul Rubin <phr-2003@nightsong.com>
Subject: cut and paste hazard
Date: 5 Mar 2004 22:19:59 -0000 [thread overview]
Message-ID: <20040305221959.21034.qmail@brouhaha.com> (raw)
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).
next reply other threads:[~2004-03-05 22:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-05 22:19 Paul Rubin [this message]
2004-03-10 9:21 ` cut and paste hazard Andreas Schwab
2004-03-11 20:19 ` Richard Stallman
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040305221959.21034.qmail@brouhaha.com \
--to=phr-2003@nightsong.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.