all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
Cc: emacs-devel@gnu.org
Subject: Re: (tramp-handleverify-visited-file-modtime
Date: Sun, 25 Jul 2004 13:00:10 +0200	[thread overview]
Message-ID: <87wu0sfj2d.fsf@gmx.de> (raw)
In-Reply-To: <200407250211.i6P2B1j28553@raven.dms.auburn.edu> (Luc Teirlinck's message of "Sat, 24 Jul 2004 21:11:01 -0500 (CDT)")

Luc Teirlinck <teirllm@dms.auburn.edu> writes:

> Actually, I recommend the following patch to the present Tramp CVS
> version (not the Emacs CVS version) of tramp.el.  The reason is that
> we want to return t for a file that does not exist according to
> `file-attributes' _and_ for which (visited-file-modtime) returns -1,
> but nil if `file-attributes' returns nil and `visited-file-modtime'
> returns a "real" modtime (neither 0 nor -1), meaning the file _did_
> exist the last time we checked, but has been deleted in the meantime.

Sounds OK to me. I've committed the patch to Tramp CVS. Please note
that it is visible in the branch "branch-2-0-stable" only, because
I'll commit later a bigger update to the trunk which is not intended for
Emacs 21.4 (but your patch will be included there, too).

> To be completely consistent with `verify-visited-file-modtime' we
> should also return nil if the file system could not handle the file
> name because it was too long (never happens on the GNU system) or
> because there were too many symbolic links to follow.  I do not know
> whether this case is important enough to worry about.  (The patch
> below does not.)  How were we even able to visit the file in the first
> place in such a situation?

Maybe we can ignore this situation for the time being. Tramp is based
on external programs, which should report an error these cases. Tramp
won't distinguish the reason of such errors.

Best regards, Michael.

      reply	other threads:[~2004-07-25 11:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-11 16:34 (tramp-handleverify-visited-file-modtime Luc Teirlinck
2004-07-11 16:42 ` (tramp-handleverify-visited-file-modtime Luc Teirlinck
2004-07-11 17:06 ` (tramp-handleverify-visited-file-modtime Luc Teirlinck
2004-07-11 17:35   ` (tramp-handleverify-visited-file-modtime Luc Teirlinck
2004-07-24 18:46 ` (tramp-handleverify-visited-file-modtime Michael Albinus
2004-07-25  2:11   ` (tramp-handleverify-visited-file-modtime Luc Teirlinck
2004-07-25 11:00     ` Michael Albinus [this message]

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=87wu0sfj2d.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=emacs-devel@gnu.org \
    /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.