unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Glenn Morris <rgm@gnu.org>
Cc: 17148@debbugs.gnu.org
Subject: bug#17148: 23.1; Revert Buffer
Date: Tue, 01 Apr 2014 20:04:28 +0200	[thread overview]
Message-ID: <87lhvpncyb.fsf@gmx.de> (raw)
In-Reply-To: <gk38hx59lr.fsf@fencepost.gnu.org> (Glenn Morris's message of "Tue, 01 Apr 2014 11:54:08 -0400")

tags 17148 - notabug
fixed 17148 24.4
thanks

Glenn Morris <rgm@gnu.org> writes:

> Michael Albinus wrote:
>
>> Emacs is not notified, when a file changes its state outside Emacs. Only
>> prior to writing to a file Emacs checks, whether a file has changed on disk.
>
> Why can't the revert-buffer menu-item check the file mode bits match,
> the same way it verifies the modtime? IMO it should just call
> file-attributes once, and use that to check time and permissions.

Hmm, I wanted to implement something with file notifications.

However, surprisingly this problem is reproducible in Emacs 23, but it
is NOT reproducible with Emacs 24.3.50. This is because
`revert-buffer-function' is set to `revert-buffer--default' since last
year.

My analysis was wrong, but the result (not a bug) is somehow right for
Emacs 24.3. We shall changed that to "Fixed in 24.4", 'tho.

Best regards, Michael.





  reply	other threads:[~2014-04-01 18:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-31 13:33 bug#17148: 23.1; Revert Buffer Joe Camaioni
2014-04-01  7:06 ` Michael Albinus
2014-04-01 15:54   ` Glenn Morris
2014-04-01 18:04     ` Michael Albinus [this message]
2014-04-01 18:30       ` Glenn Morris
2014-04-01 18:40         ` Michael Albinus
2014-04-01 19:01           ` Glenn Morris
2014-04-02 13:03             ` Stefan Monnier
2014-04-01 20:14     ` Stefan Monnier
2014-04-02  6:45       ` Glenn Morris
2014-04-02 13:04         ` Stefan Monnier
2022-02-22 14:45 ` bug#17148: Revert buffer menu-item and file permission changes Lars Ingebrigtsen
2022-02-22 16:53   ` Eli Zaretskii
2022-02-22 17:56     ` Lars Ingebrigtsen

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=87lhvpncyb.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=17148@debbugs.gnu.org \
    --cc=rgm@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).