all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* global-auto-revert mode doesn't revert fully
@ 2002-05-13 17:16 Luke Blanshard
  2002-05-13 23:58 ` Stefan Monnier
  2002-05-15  5:13 ` Karl Chen
  0 siblings, 2 replies; 3+ messages in thread
From: Luke Blanshard @ 2002-05-13 17:16 UTC (permalink / raw)


This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.2.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2002-05-07 on scratchy.west.quiq.com
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

1. Turn on global-auto-revert-mode.
2. Open a CVS-controlled file in Emacs.
3. Do a CVS update outside of Emacs that brings out a newer version of
   the file.
4. Emacs will revert the contents of the buffer, but not the version
   number (as displayed in the mode line).  If you do any VC
   operations from within Emacs against that file, the VC commands
   will use the original version of the file as if it was current.


Recent input:
+ + _ - + - + l l j a <return> C-x k C-g C-x C-f ? 
C-g j A <return> - - - - - - - s C-x C-b n SPC C-x 
k <return> <C-M-next> <C-M-prior> <switch-frame> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> C-h P C-s a u t o C-s C-s C-s 
C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s - r e v 
C-s C-a M-< C-s r e v e r t C-s C-a q <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <menu-bar> 
<help-menu> <report-emacs-bug>

Recent messages:
Wrote /export/home/luke/.todo-do
 [3 times]
Type C-x 1 to remove  *todo tmp* window.  M-C-v to scroll the help.
Wrote /export/home/luke/.todo-top
<<< Press Return to bury the buffer list >>>

Type C-h for help, h for commands, q to quit.
Mark saved where search started
Mark set
Mark saved where search started

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: global-auto-revert mode doesn't revert fully
  2002-05-13 17:16 global-auto-revert mode doesn't revert fully Luke Blanshard
@ 2002-05-13 23:58 ` Stefan Monnier
  2002-05-15  5:13 ` Karl Chen
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2002-05-13 23:58 UTC (permalink / raw)


>>>>> "Luke" == Luke Blanshard <luke@quiq.com> writes:
[...]

Thank you.  This will be fixed in the next non-bug-fix-only release.
I.e. probably 21.4.


        Stefan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: global-auto-revert mode doesn't revert fully
  2002-05-13 17:16 global-auto-revert mode doesn't revert fully Luke Blanshard
  2002-05-13 23:58 ` Stefan Monnier
@ 2002-05-15  5:13 ` Karl Chen
  1 sibling, 0 replies; 3+ messages in thread
From: Karl Chen @ 2002-05-15  5:13 UTC (permalink / raw)


I agree that that's an annoying bug. Here's a fix.

Add this to your .emacs:

(defun vc-reload-version-info ()
  "Re-read a file's version information after an external edit.

Meant to be added as to `after-revert-hook'."
  (when (vc-backend buffer-file-name)
    (vc-file-setprop buffer-file-name 'vc-workfile-version
                     (vc-call workfile-version buffer-file-name))
    (vc-mode-line buffer-file-name)
    (force-mode-line-update)
    )
  t)

(add-hook 'after-revert-hook 'vc-reload-version-info)

--
Karl Chen


"Luke Blanshard" <luke@quiq.com> wrote in message
news:GW27ZR00.G1Z@nsmail.west.quiq.com...
> 1. Turn on global-auto-revert-mode.
> 2. Open a CVS-controlled file in Emacs.
> 3. Do a CVS update outside of Emacs that brings out a newer version of
>    the file.
> 4. Emacs will revert the contents of the buffer, but not the version
>    number (as displayed in the mode line).  If you do any VC
>    operations from within Emacs against that file, the VC commands
>    will use the original version of the file as if it was current.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-05-15  5:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-13 17:16 global-auto-revert mode doesn't revert fully Luke Blanshard
2002-05-13 23:58 ` Stefan Monnier
2002-05-15  5:13 ` Karl Chen

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.