Commit 285f1858 authored by Juanma Barranquero's avatar Juanma Barranquero
Browse files

frameset.el (frameset--jump-to-register): Check that buffer is live (bug#16749).

parent 5d645ea4
2014-02-15 Juanma Barranquero <>
* frameset.el (frameset--jump-to-register): Check that buffer is live
2014-02-15 Glenn Morris <>
* info.el (info-initialize): Revert 2014-01-10 change.
......@@ -1213,15 +1213,14 @@ Called from `jump-to-register'. Internal use only."
:filters frameset-session-filter-alist
:reuse-frames (if delete t :keep))
(mapc #'iconify-frame iconify-list)
(let ((frame (frameset-frame-with-id (aref data 1))))
(let ((frame (frameset-frame-with-id (aref data 1)))
buffer window)
(when frame
(select-frame-set-input-focus frame)
(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))))))))
(when (and (buffer-live-p (setq buffer (marker-buffer (aref data 2))))
(window-live-p (setq window (get-buffer-window buffer frame))))
(set-frame-selected-window frame window)
(with-current-buffer buffer (goto-char (aref data 2))))))))
(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