unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: bug-gnu-emacs@gnu.org
Subject: bug#5314: Acknowledgement (23.1; Inconsistent treatment of auto-save files)
Date: Tue, 05 Jan 2010 23:29:30 -0700	[thread overview]
Message-ID: <hi1aka$tbr$1@ger.gmane.org> (raw)
In-Reply-To: <19267.19658.406000.307675@gargle.gargle.HOWL>

Uday S Reddy wrote:
> I did some more testing of the functions after my initial report.  The
> situation seems a lot more complex than I had imagined.
> 
> With an old auto-save file on the disk, the following sequence done on
> a buffer seems to always return nil:
> 
>   (progn (insert "x") (recent-auto-save-p))

That could be explained by the dependencies on auto-save-interval and
auto-save-timeout.  There is no guarantee that Emacs will auto-save
after the insert, regardless whether an old auto-save file exists.

> Killing the buffer in this case does not affect the old auto-save
> file.
> 
> The following sequence seems to always return t
> 
>   (progn (set-buffer-modified-p t) (recent-auto-save-p))

Hmmm, that should also depend on auto-save-interval and auto-save-timeout.

> Killing the buffer in this case deletes the old auto-save file.
> 
> So, it appears that recent-auto-save-p and kill-buffer are consistent
> with each other.  But their behaviour is paradoxical with regard to
> set-buffer-modified-p.

-- 
Kevin Rodgers
Denver, Colorado, USA








  reply	other threads:[~2010-01-06  6:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-04 15:47 bug#5314: 23.1; Inconsistent treatment of auto-save files Uday S Reddy
     [not found] ` <handler.5314.B.126270052714260.ack@debbugs.gnu.org>
2010-01-05 14:29   ` bug#5314: Acknowledgement (23.1; Inconsistent treatment of auto-save files) Uday S Reddy
2010-01-06  6:29     ` Kevin Rodgers [this message]
2010-01-06 16:08     ` Stefan Monnier
2010-01-06 16:33       ` Uday S Reddy
2016-07-17  4:29         ` Andrew Hyatt
2010-01-05 19:28 ` bug#5314: 23.1; Inconsistent treatment of auto-save files Stefan Monnier
2010-01-06  2:14   ` Uday S Reddy

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='hi1aka$tbr$1@ger.gmane.org' \
    --to=kevin.d.rodgers@gmail.com \
    --cc=5314@debbugs.gnu.org \
    --cc=bug-gnu-emacs@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 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).