* lisp/progmodes/xref.el (xref--display-position):
Set `other-window-scroll-buffer'.
(xref-goto-xref): Use `user-error'.
+2015-01-19 Dmitry Gutov <dgutov@yandex.ru>
+
+ * progmodes/xref.el (xref--display-position):
+ Set `other-window-scroll-buffer'.
+ (xref-goto-xref): Use `user-error'.
+
2015-01-19 Dmitry Gutov <dgutov@yandex.ru>
* progmodes/xref.el (xref--display-history): New variable.
(let ((buf (current-buffer))
(win (selected-window)))
(with-current-buffer xref-buf
+ (setq-local other-window-scroll-buffer buf)
(xref--save-to-history buf win)))))
(defun xref--show-location (location)
(interactive)
(back-to-indentation)
(let ((loc (or (xref--location-at-point)
- (error "No reference at point")))
+ (user-error "No reference at point")))
(window xref--window))
(xref--quit)
(xref--pop-to-location loc window)))