Commit 26c5ecd9 authored by Juanma Barranquero's avatar Juanma Barranquero
Browse files

lisp/frameset.el (frameset--jump-to-register): Fix bug#16696.

Select the required window and buffer before restoring position.
parent 20c7a2b4
2014-02-11 Juanma Barranquero <>
* frameset.el (frameset--jump-to-register): Select the required
window and buffer before restoring position (bug#16696).
2014-02-11 Lars Ingebrigtsen <>
* dired.el (dired-get-marked-files): Clarify doc (bug#11534).
......@@ -522,7 +522,6 @@ It must return:
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
......@@ -1217,7 +1216,12 @@ Called from `jump-to-register'. Internal use only."
(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))))))))
(defun frameset-to-register (register)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment