all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Reitter <david.reitter@gmail.com>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: tramp+recentf: persistent errors due to expand-file-name
Date: Tue, 12 Aug 2008 09:01:42 +0200	[thread overview]
Message-ID: <B47EC05E-C614-4701-8095-A3FA7C3C36F3@gmail.com> (raw)
In-Reply-To: <87hc9rqs1k.fsf@gmx.de>

[-- Attachment #1: Type: text/plain, Size: 1255 bytes --]

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

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2193 bytes --]

  reply	other threads:[~2008-08-12  7:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-10 17:08 tramp+recentf: persistent errors due to expand-file-name David Reitter
2008-08-11 19:18 ` Michael Albinus
2008-08-12  7:01   ` David Reitter [this message]
2008-08-12 12:57     ` Michael Albinus
2008-08-12 13:04       ` Lennart Borgman
2008-08-12 14:41         ` David Reitter
2008-08-12 15:06           ` Lennart Borgman (gmail)
2008-08-12 19:27             ` Stefan Monnier
2008-08-14 18:35               ` Lennart Borgman (gmail)

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=B47EC05E-C614-4701-8095-A3FA7C3C36F3@gmail.com \
    --to=david.reitter@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=michael.albinus@gmx.de \
    /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.