+2014-02-11 Juanma Barranquero <lekktu@gmail.com>
+
+ * frameset.el (frameset--jump-to-register): Select the required
+ window and buffer before restoring position (bug#16696).
+
2014-02-11 Lars Ingebrigtsen <larsi@gnus.org>
* dired.el (dired-get-marked-files): Clarify doc (bug#11534).
Frame parameters not on this alist are passed intact, as if they were
defined with ACTION = nil.")
-
(defvar frameset--target-display nil
;; Either (minibuffer . VALUE) or nil.
;; This refers to the current frame config being processed inside
(let ((frame (frameset-frame-with-id (aref data 1))))
(when frame
(select-frame-set-input-focus frame)
- (goto-char (aref data 2))))))
+ (let* ((position (aref data 2))
+ (buffer (marker-buffer position))
+ (window (get-buffer-window buffer frame)))
+ (when (and window (window-live-p window))
+ (set-frame-selected-window frame window)
+ (with-current-buffer buffer (goto-char position))))))))
;;;###autoload
(defun frameset-to-register (register)