From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: tramp+recentf: persistent errors due to expand-file-name Date: Tue, 12 Aug 2008 09:01:42 +0200 Message-ID: References: <9E807BB3-1944-44F8-A5F5-1DBED9C99927@gmail.com> <87hc9rqs1k.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v926) Content-Type: multipart/signed; boundary=Apple-Mail-2--300866153; micalg=sha1; protocol="application/pkcs7-signature" X-Trace: ger.gmane.org 1218543031 19329 80.91.229.12 (12 Aug 2008 12:10:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Aug 2008 12:10:31 +0000 (UTC) Cc: Emacs-Devel devel To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 12 14:11:23 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KSsif-0005A8-1o for ged-emacs-devel@m.gmane.org; Tue, 12 Aug 2008 14:11:21 +0200 Original-Received: from localhost ([127.0.0.1]:55759 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSshi-0003NX-RQ for ged-emacs-devel@m.gmane.org; Tue, 12 Aug 2008 08:10:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KSscm-00071M-1i for emacs-devel@gnu.org; Tue, 12 Aug 2008 08:05:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KSscj-0006yV-Pn for emacs-devel@gnu.org; Tue, 12 Aug 2008 08:05:15 -0400 Original-Received: from [199.232.76.173] (port=47856 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSscj-0006yC-LZ for emacs-devel@gnu.org; Tue, 12 Aug 2008 08:05:13 -0400 Original-Received: from rv-out-0708.google.com ([209.85.198.245]:15949) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KSscj-0004nr-3R for emacs-devel@gnu.org; Tue, 12 Aug 2008 08:05:13 -0400 Original-Received: by rv-out-0708.google.com with SMTP id k29so2676498rvb.6 for ; Tue, 12 Aug 2008 05:05:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:mime-version:subject:date:references :x-mailer; bh=sClENbIfIFQfSR6hXnrFvwaKSm6Uo+lYrkybNF24Zqs=; b=YULddRgpKRwRUw2MErUbJW8rX3lBql2eZkF2maMHiHkqGzUfx0+hzDv70P9DH9OfSJ PrLSifQLeI36PKw6NFP4AiIjIhdFvcYjAbyed16VSiZJHoU+SqwZTeQBeGsApf7P2NJi nPMtUWf9fIiS+X6R+lBrX3Vy7/mV0CDJ+7/SM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type:mime-version:subject :date:references:x-mailer; b=LcvjWRES1ZSzCMPTe9drF+KuX6Bx4AnQ3E5G5DSQkCIpY1dmpwb0Qi/LqomI/hO3hm 5QVleFN+K7rOxmjIuNMJs4lubGZRgiTZljhQBIZk1400/oqOYn1XYf/dZqRfF82BxWSk 025t2UfyWCj5mwzQ5yHDx8ubP67/rCbElterM= Original-Received: by 10.141.137.8 with SMTP id p8mr4269168rvn.163.1218542710618; Tue, 12 Aug 2008 05:05:10 -0700 (PDT) Original-Received: from ?10.0.0.101? ( [62.31.8.254]) by mx.google.com with ESMTPS id b8sm10993259rvf.8.2008.08.12.05.05.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 12 Aug 2008 05:05:09 -0700 (PDT) In-Reply-To: <87hc9rqs1k.fsf@gmx.de> X-Mailer: Apple Mail (2.926) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:102320 Archived-At: --Apple-Mail-2--300866153 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On 11 Aug 2008, at 21:18, Michael Albinus wrote: > > I cannot reproduce it here: Me neither, not with an Emacs -Q (22 or 23) and such a minimal example. Sorry! > > This leaves `name' in an unexpanded state, which might be not > desirable. Better than throwing a signal that is not handled, preventing the user from saving a file. > I would prefer to find the reason, why Tramp returns it the > way you have shown (and I cannot reproduce). Me to. I looked into this some more and I now think that there is something more complex going on that leads to the malformed URL ending up in the recentf-list. This could be because I have code that synchronizes `file-name-history' and `recentf-list', and in my Emacs 22, `file-name- history' contains malformed tramp locations, while this doesn't seem to be the case in 23. Also, it appears that the // is handled correctly in 23 (but wasn't in 22). So, the problem might not occur in 23 anyways. The particular chain of events may not be worth our time. Generally, I do think it is prudent to guard against errors being signaled when running code from hooks so that users don't end up in a (to them) non-recoverable situation. You'll know best where the right place is... - D --Apple-Mail-2--300866153 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIFxDCCAn0w ggHmoAMCAQICEEfSZyInpN9bVdFPsdICbiIwDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UEBhMCWkEx JTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQ ZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA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