all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#14140: 24.3.50; auto-revert-mode does not revert upon invocation
@ 2013-04-04 18:08 Óscar Fuentes
  2013-04-04 18:45 ` Michael Albinus
  2013-04-04 18:45 ` Eli Zaretskii
  0 siblings, 2 replies; 8+ messages in thread
From: Óscar Fuentes @ 2013-04-04 18:08 UTC (permalink / raw
  To: 14140


In a shell:
$ echo hello > foo
$ emacs -Q foo &
$ echo bye > foo

In Emacs:
M-x auto-revert-mode

<the buffer keeps showing "hello">

In the past, after executing auto-revert-mode the buffer was reverted to
the file's current contents. Nowadays, the buffer keeps showing the
file's old contents until the file is modified again.

This is obviously a bug because an unmodified buffer with
auto-revert-mode enabled is supposed to show the current contents of its
associated buffer.


In GNU Emacs 24.3.50.3 (x86_64-unknown-linux-gnu, X toolkit)
 of 2013-03-23 on qcore
Windowing system distributor `The X.Org Foundation', version 11.0.11300000
System Description:	Ubuntu 12.10

Configured using:
 `configure --with-x-toolkit=lucid --without-toolkit-scroll-bars'

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  auto-revert-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x a u t o SPC r e v e r t SPC m o <tab> <return> 
<f10> <menu-bar> <help-menu> <send-emacs-bug-repor
t>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Auto-Revert mode enabled

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils autorevert time-date tooltip ediff-hook
vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment lisp-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process inotify dynamic-setting
font-render-setting x-toolkit x multi-tty emacs)





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

* bug#14140: 24.3.50; auto-revert-mode does not revert upon invocation
  2013-04-04 18:08 bug#14140: 24.3.50; auto-revert-mode does not revert upon invocation Óscar Fuentes
@ 2013-04-04 18:45 ` Michael Albinus
  2013-04-04 18:45 ` Eli Zaretskii
  1 sibling, 0 replies; 8+ messages in thread
From: Michael Albinus @ 2013-04-04 18:45 UTC (permalink / raw
  To: Óscar Fuentes; +Cc: 14140

Óscar Fuentes <oscarfv@telefonica.net> writes:

Hi Óscar,

> In a shell:
> $ echo hello > foo
> $ emacs -Q foo &
> $ echo bye > foo
>
> In Emacs:
> M-x auto-revert-mode
>
> <the buffer keeps showing "hello">
>
> In the past, after executing auto-revert-mode the buffer was reverted to
> the file's current contents. Nowadays, the buffer keeps showing the
> file's old contents until the file is modified again.
>
> This is obviously a bug because an unmodified buffer with
> auto-revert-mode enabled is supposed to show the current contents of its
> associated buffer.

auto-revert-mode uses file notifications now. In your scenario, no
notification reaches Emacs.

Likely, when *enabling* auto-revert-mode, it shall be checked whether
something has to be reverted initially. Will see (but not tonight,
rather tomorrow or over the weekend).

Best regards, Michael.





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

* bug#14140: 24.3.50; auto-revert-mode does not revert upon invocation
  2013-04-04 18:08 bug#14140: 24.3.50; auto-revert-mode does not revert upon invocation Óscar Fuentes
  2013-04-04 18:45 ` Michael Albinus
@ 2013-04-04 18:45 ` Eli Zaretskii
  2013-04-04 19:10   ` Óscar Fuentes
  1 sibling, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2013-04-04 18:45 UTC (permalink / raw
  To: Óscar Fuentes; +Cc: 14140

> From: Óscar Fuentes <oscarfv@telefonica.net>
> Date: Thu, 04 Apr 2013 20:08:00 +0200
> 
> In a shell:
> $ echo hello > foo
> $ emacs -Q foo &
> $ echo bye > foo
> 
> In Emacs:
> M-x auto-revert-mode
> 
> <the buffer keeps showing "hello">
> 
> In the past, after executing auto-revert-mode the buffer was reverted to
> the file's current contents. Nowadays, the buffer keeps showing the
> file's old contents until the file is modified again.

Set auto-revert-use-notify to a nil value before turning on
auto-revert-mode, and the problem goes away (at least for me it did).






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

* bug#14140: 24.3.50; auto-revert-mode does not revert upon invocation
  2013-04-04 18:45 ` Eli Zaretskii
@ 2013-04-04 19:10   ` Óscar Fuentes
  2013-04-04 19:22     ` Michael Albinus
  2013-04-05 10:22     ` Michael Albinus
  0 siblings, 2 replies; 8+ messages in thread
From: Óscar Fuentes @ 2013-04-04 19:10 UTC (permalink / raw
  To: Eli Zaretskii; +Cc: 14140

Eli Zaretskii <eliz@gnu.org> writes:

> Set auto-revert-use-notify to a nil value before turning on
> auto-revert-mode, and the problem goes away (at least for me it did).

Same here.

Michael, either the initial check in not executed or it is failing for
some reason. It is normal that no notification reaches Emacs because the
file is modified before auto-revert-mode is enabled.

Let me know if you are interested on running some experiment, obtaining
traces, etc.





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

* bug#14140: 24.3.50; auto-revert-mode does not revert upon invocation
  2013-04-04 19:10   ` Óscar Fuentes
@ 2013-04-04 19:22     ` Michael Albinus
  2013-04-05 10:22     ` Michael Albinus
  1 sibling, 0 replies; 8+ messages in thread
From: Michael Albinus @ 2013-04-04 19:22 UTC (permalink / raw
  To: Óscar Fuentes; +Cc: 14140

oscarfv@telefonica.net (Óscar Fuentes) writes:

> Let me know if you are interested on running some experiment, obtaining
> traces, etc.

Not yet, I shall be able to reproduce it myself :-) I'll keep you
informed about progress.

Best regards, Michael.





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

* bug#14140: 24.3.50; auto-revert-mode does not revert upon invocation
  2013-04-04 19:10   ` Óscar Fuentes
  2013-04-04 19:22     ` Michael Albinus
@ 2013-04-05 10:22     ` Michael Albinus
  2013-04-05 10:37       ` Óscar Fuentes
  1 sibling, 1 reply; 8+ messages in thread
From: Michael Albinus @ 2013-04-05 10:22 UTC (permalink / raw
  To: Óscar Fuentes; +Cc: 14140

oscarfv@telefonica.net (Óscar Fuentes) writes:

Hi Óscar,

> Let me know if you are interested on running some experiment, obtaining
> traces, etc.

I have committed a patch to the trunk, as #112226. Could you, please,
check?

Best regards, Michael.





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

* bug#14140: 24.3.50; auto-revert-mode does not revert upon invocation
  2013-04-05 10:22     ` Michael Albinus
@ 2013-04-05 10:37       ` Óscar Fuentes
  2013-04-05 10:48         ` Michael Albinus
  0 siblings, 1 reply; 8+ messages in thread
From: Óscar Fuentes @ 2013-04-05 10:37 UTC (permalink / raw
  To: Michael Albinus; +Cc: 14140

Michael Albinus <michael.albinus@gmx.de> writes:

> I have committed a patch to the trunk, as #112226. Could you, please,
> check?

It works.

Thanks Michael.





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

* bug#14140: 24.3.50; auto-revert-mode does not revert upon invocation
  2013-04-05 10:37       ` Óscar Fuentes
@ 2013-04-05 10:48         ` Michael Albinus
  0 siblings, 0 replies; 8+ messages in thread
From: Michael Albinus @ 2013-04-05 10:48 UTC (permalink / raw
  To: Óscar Fuentes; +Cc: 14140-done

oscarfv@telefonica.net (Óscar Fuentes) writes:

>> I have committed a patch to the trunk, as #112226. Could you, please,
>> check?
>
> It works.

Thanks for checking. I'm closing the bug.

> Thanks Michael.

Best regards, Michael.





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

end of thread, other threads:[~2013-04-05 10:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-04 18:08 bug#14140: 24.3.50; auto-revert-mode does not revert upon invocation Óscar Fuentes
2013-04-04 18:45 ` Michael Albinus
2013-04-04 18:45 ` Eli Zaretskii
2013-04-04 19:10   ` Óscar Fuentes
2013-04-04 19:22     ` Michael Albinus
2013-04-05 10:22     ` Michael Albinus
2013-04-05 10:37       ` Óscar Fuentes
2013-04-05 10:48         ` Michael Albinus

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.