emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] autorevert.el -- revert fix for Windows platform


From: Jason Rumney
Subject: Re: [PATCH] autorevert.el -- revert fix for Windows platform
Date: Sat, 24 Mar 2007 11:11:51 +0000
User-agent: Thunderbird 1.5.0.10 (Windows/20070221)

martin rudalics wrote:

Doesn't this

(defun auto-revert-tail-handler ()
  (let ((size (nth 7 (file-attributes buffer-file-name)))
    ...
    (when (> size auto-revert-tail-pos)
          ...
      (insert-file-contents file nil auto-revert-tail-pos size)))
      (undo-boundary)
      (setq auto-revert-tail-pos size)
      ...

suffer from the buffer-size file-size dichotomy as well?  Or are we on
the safe side here?

No. buffer-size is not used, both auto-revert-tail-pos and size are measuring bytes in the file, not characters in the buffer.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]