From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: emacsuser@invalid.org Newsgroups: gmane.emacs.help Subject: Re: emacs in text mode terminal paste problem (SecureCRT / xterm ) Date: Sun, 23 Nov 2008 14:59:08 -0600 Organization: Foo Message-ID: <84r652cg6b@e6g2000prf.googlegroups.com> References: <84tz9zbbf4@e6g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1227481311 24732 80.91.229.12 (23 Nov 2008 23:01:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Nov 2008 23:01:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 24 00:02:45 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L4NyU-00016W-2A for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Nov 2008 00:02:42 +0100 Original-Received: from localhost ([127.0.0.1]:37942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4NxK-0003yG-O8 for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Nov 2008 18:01:30 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2!gail.ripco.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 52 Original-NNTP-Posting-Host: shell3.ripco.com Original-X-Trace: e250.ripco.com 1227473876 29852 209.100.225.244 (23 Nov 2008 20:57:56 GMT) Original-X-Complaints-To: usenet@ripco.com Original-NNTP-Posting-Date: Sun, 23 Nov 2008 20:57:56 +0000 (UTC) Cancel-Lock: sha1:iaXGModuyqXimPCJpWsf56CC8T8= Original-Xref: news.stanford.edu gnu.emacs.help:164708 X-Mailman-Approved-At: Sun, 23 Nov 2008 18:01:14 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:60039 Archived-At: Peter Dyballa writes: > Am 23.11.2008 um 00:14 schrieb emacsuser@invalid.org: > >> An apostrophe that get pasted appears to invoke "Regexp I-search >> backward" somehow. >> The search of course usually fails, because it can't find all of the >> text that follows. > > > The so-called apostrophes from MS Word could be single quote > characters from the area UTF+201x. Maybe it works to C-q in some > (*scratch*) buffer and then paste just that "apostrophe." You might > see the bytes that would be actually inserted. The three bytes of > UTF-8 representation (E2 80 99 for ., RIGHT SINGLE QUOTATION MARK) > can be interpreted as this: E2 is in 7-bit idiom C-r (single 8th bit > set + remainder r), the other two bytes can be any 7-bit rubbish. > > GNU Emacs offers some "translations" for X selections . lookup > info! X11 also has some configuration options. A better option is to > upgrade to GNU Emacs 22.3. Thanks for the tips Peter (and all!). Peter, I think you've got it. I was just able to figure out where isearch-regexp-backards is normally bound. This apostrophe is somehow getting sent as Ctrl-Meta-r C-q followed by pasting that apostrophe from Word results in a proper, simple pasting of a ' But pasting just the apostrophe _without_ the C-q before it brings up: Regexp I-search backward: And after some digging, I finally found where in the help that binding is mentioned. Apparently, it's Ctrl-Meta-r. Yes, I imagine and emacs upgrade is in order. Pesky backports for debian. I'm not using X though in this situation -- SecureCRT into a command prompt, and emacs -nw within that ssh terminal. Thanks again for the character set foo I was seeking to point me in the direction of a Ctrl-r derivative. I'll followup if/when I tame what's going on but I've at least isolated what it's getting translated to!