unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: zhang cc <ccsmile2008@outlook.com>
To: Radon Rosborough <radon.neon@gmail.com>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: about the manual of visited-file-modtime
Date: Tue, 13 Mar 2018 09:36:18 +0000	[thread overview]
Message-ID: <SG2PR0601MB1405CF8C21AF26823418DD1BA8D20@SG2PR0601MB1405.apcprd06.prod.outlook.com> (raw)
In-Reply-To: <CADB4rJF0n5y1gymbvzA_gEGnu_H_uBxGKCe2s0Y8wWQa8gMdSA@mail.gmail.com>

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

Maybe my copy of emacs 26 is too old.


  If the visited file doesn’t exist, return -1.

If the visited file is deleted by external program, then does it return -1?


On 13 Mar 2018, 1:25 PM +0800, Radon Rosborough <radon.neon@gmail.com>, wrote:
If the buffer is not visiting a file, this function returns -1.

In my copy of Emacs 26, it says

If the visited file doesn’t exist, return -1.

Which is exactly what it does. *scratch* and *Messages* do not visit
files, so they have no recorded modtime, hence 0. If you visit a new
file but don't save it, you get -1.

[-- Attachment #2: Type: text/html, Size: 1855 bytes --]

  reply	other threads:[~2018-03-13  9:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-12 23:51 about the manual of visited-file-modtime zhang cc
2018-03-13  5:24 ` Radon Rosborough
2018-03-13  9:36   ` zhang cc [this message]
2018-03-13 16:39     ` Radon Rosborough

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SG2PR0601MB1405CF8C21AF26823418DD1BA8D20@SG2PR0601MB1405.apcprd06.prod.outlook.com \
    --to=ccsmile2008@outlook.com \
    --cc=emacs-devel@gnu.org \
    --cc=radon.neon@gmail.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).