From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Brian Adkins Newsgroups: gmane.emacs.help Subject: Re: Can't paste from files with .arc extension Date: Fri, 7 Mar 2008 09:27:47 -0800 (PST) Organization: http://groups.google.com Message-ID: <8873058e-5dda-4421-aa69-2ba6b1412174@34g2000hsz.googlegroups.com> References: <397b3f92-b993-4ea0-9f01-582b96e269dd@34g2000hsz.googlegroups.com> <461c7cd6-a0d6-493c-b268-3faca25de0d8@2g2000hsn.googlegroups.com> <0fbce23f-6cf5-4dce-84ec-74597c239481@v3g2000hsc.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1204911664 29559 80.91.229.12 (7 Mar 2008 17:41:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Mar 2008 17:41:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 07 18:41:29 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 1JXgZF-0001VE-C8 for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Mar 2008 18:41:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXgYh-0006EV-EX for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Mar 2008 12:40:39 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!34g2000hsz.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 53 Original-NNTP-Posting-Host: 68.209.204.112 Original-X-Trace: posting.google.com 1204910868 26065 127.0.0.1 (7 Mar 2008 17:27:48 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 7 Mar 2008 17:27:48 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 34g2000hsz.googlegroups.com; posting-host=68.209.204.112; posting-account=Uust-woAAAAfaTc8iUxK0_NIe578kqTZ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080207 Ubuntu/7.10 (gutsy) Firefox/2.0.0.12, gzip(gfe), gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:156768 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:52138 Archived-At: On Mar 7, 12:02 pm, Peter Dyballa wrote: > Am 07.03.2008 um 17:18 schrieb Brian Adkins: > > > Given that I'm running without a .emacs file, I would think this would > > be easy to duplicate. Just load a text file with a .arc extension and > > try and select test in emacs and middle-button paste in a non-emacs > > window. When I do that, I get nothing. > > In that case you might run into an error: auto-mode-alist will have > > ("\\.\\(arc\\|zip\\|lzh\\|lha\\|zoo\\|[jew]ar\\|xpi\\|rar\\|ARC\\| > ZIP\\|LZH\\|LHA\\|ZOO\\|[JEW]AR\\|XPI\\|RAR\\)\\'" . archive-mode) I can set the file to whatever mode I want after loading and it exhibits the same "can't paste to non-emacs window" problem. > Copying a text file to name.arc and opening it in 'emacs -Q' gives me > a Fundamental View and no problems with copy and paste. Problems > start when the "ARC" file contains control characters or characters > that cannot be displayed in the buffer's encoding and therefore are > printed as \. > > Having set LC_CTYPE to _.UTF-8 I don't get > autocomposed characters ... As I mentioned before, I can rename any file to have a .arc extension and I get this problem, so it's not a character encoding issue. Just to confirm what you're saying about "no problems", are you: 1) running emacs in X windows as opposed to a terminal window 2) selecting text with the mouse AND 3) middle-button pasting into a *non-emacs* window such as a shell If so, I'm dumbfounded. When I explained what I was doing clearly, another person on the Arc forum was able to see the same results with emacs v23, so it's not unique to my particular environment. I can copy/paste from/to emacs windows without difficulty, it's only when selecting and middle-button pasting into a non-emacs window where the difficulty arises. Hmm.. I just tried renaming to temp.zip and had the same paste problem, so the auto-mode-alist does seem related. However, when I re- add the code I had originally to set the mode properly, I no longer get the error message, but I still have trouble with pasting outside of emacs, so it appears either there is something other than the auto- mode-alist causing the problem, or that adding a valid arc-mode isn't sufficient and I need to remove the existing entries from the auto- mode-alist variable. I would think that once a match is found, the other entries wouldn't be considered, but maybe that's a wrong assumption.