Commits

Anonymous committed e7805bd

2007-09-07 Mike Sperber <mike@xemacs.org>

* tapestry.el (tapestry-set-window-map): Use
`frame-reduce-to-one-window' instead of `delete-other-windows' to
keep the point from moving inadvertently.

Comments (0)

Files changed (2)

+2007-09-07  Mike Sperber  <mike@xemacs.org>
+
+	* tapestry.el (tapestry-set-window-map): Use
+	`frame-reduce-to-one-window' instead of `delete-other-windows' to
+	keep the point from moving inadvertently.
+
 2007-09-04  Norbert Koch  <viteno@xemacs.org>
 
 	* Makefile (VERSION): XEmacs package 7.23 released.
 	  root-window )
       (if (tapestry-windows-match-map map map-width map-height)
 	  (tapestry-first-window)
-	(delete-other-windows)
+	(if (fboundp 'frame-reduce-to-one-window)
+	    (frame-reduce-to-one-window (selected-frame))
+	  ;; `delete-other-windows' may cause the window point to move
+	  ;; as it tries to minimize redisplay
+	  (delete-other-windows))
 	(setq root-window (selected-window))
 	(tapestry-apply-window-map map map-width map-height root-window)
 	(setq tapestry-windows-changed t)