GNU bug report logs - #4880
point moves in other dired windows

Previous Next

Package: emacs;

Reported by: Per Starbäck <per <at> starback.se>

Date: Fri, 6 Nov 2009 15:45:04 UTC

Severity: normal

Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 4880 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Juri Linkov <juri <at> jurta.org>
Cc: Per Starbäck <per <at> starback.se>,
        4880 <at> debbugs.gnu.org
Subject: Re: bug#4880: point moves in other dired windows
Date: Sat, 05 Dec 2009 00:00:47 -0500
> !   (list
> !    (mapcar (lambda (buffer)
> ! 	     (cons buffer
> ! 		   (with-current-buffer buffer
> ! 		     (list
> ! 		      (dired-get-filename nil t)
> ! 		      (point)))))
> ! 	   (dired-buffers-for-dir
> ! 	    (if (consp dired-directory) (car dired-directory) dired-directory)))
> !    (mapcar (lambda (w)
> ! 	     (list w
> ! 		   (with-selected-window w
> ! 		     (dired-get-filename nil t))
> ! 		   (window-point w)))
> ! 	   (get-buffer-window-list nil 0 t))))

I do not understand, why we save the point of all
"dired-buffers-for-dir" but only the point of the windows showing the
current buffer.
I'd prefer to resolve this discrepancy by only saving the current
buffer's point (after all, the other buffer's won't be affected by the
revert, right)?


        Stefan



This bug report was last modified 15 years and 145 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.