GNU bug report logs -
#5717
23.1; auto-revert-mode loses point in dired buffers
Previous Next
Reported by: flat0103 <at> gmail.com
Date: Sun, 14 Mar 2010 07:36:02 UTC
Severity: normal
Tags: moreinfo
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5717 in the body.
You can then email your comments to 5717 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5717
; Package
emacs
.
(Sun, 14 Mar 2010 07:36:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
flat0103 <at> gmail.com
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 14 Mar 2010 07:36:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
In dired buffers, auto-revert-mode will cause the location of point to change to point-min whenever a change occurs. It seems much better to keep current point; this may not always be the same cursor location, but will be correct much more often.
Patch follows:
diff --git a/lisp/autorevert.el b/lisp/autorevert.el
index 81d9fbf..697507f 100644
--- a/lisp/autorevert.el
+++ b/lisp/autorevert.el
@@ -478,6 +478,8 @@ This is an internal function used by Auto-Revert Mode."
(when eob (goto-char (point-max)))
(dolist (window eoblist)
(set-window-point window (point-max)))))
+ (unless eoblist
+ (goto-char (point)))
;; `preserve-modes' avoids changing the (minor) modes. But we
;; do want to reset the mode for VC, so we do it manually.
(when (or revert auto-revert-check-vc-info)
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5717
; Package
emacs
.
(Sun, 14 Mar 2010 22:06:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 5717 <at> debbugs.gnu.org (full text, mbox):
> In dired buffers, auto-revert-mode will cause the location of point to
> change to point-min whenever a change occurs. It seems much better to
> keep current point; this may not always be the same cursor location,
> but will be correct much more often.
Recently we fixed `dired-revert' to keep window points.
And now I can't reproduce your bug report with the latest code.
`auto-revert-mode' keeps point in dired buffers.
Could you provide more information: Emacs version number
and step-by-step recipe with the latest code.
--
Juri Linkov
http://www.jurta.org/emacs/
Added tag(s) moreinfo.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Fri, 19 Mar 2010 03:00:04 GMT)
Full text and
rfc822 format available.
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Mon, 11 Jul 2011 21:38:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
flat0103 <at> gmail.com
:
bug acknowledged by developer.
(Mon, 11 Jul 2011 21:38:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 5717-done <at> debbugs.gnu.org (full text, mbox):
This bug is being closed because it could not be reproduced and there
was no response to a request for more information.
If you still see the problem with the latest Emacs release, 23.3,
please reply with the requested information and it can be reopened if needed.
You can view the whole report at http://debbugs.gnu.org/BUGNUMBER
Juri Linkov wrote:
> Recently we fixed `dired-revert' to keep window points.
> And now I can't reproduce your bug report with the latest code.
> `auto-revert-mode' keeps point in dired buffers.
>
> Could you provide more information: Emacs version number
> and step-by-step recipe with the latest code.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 09 Aug 2011 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 14 years and 11 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.