I would like to jump to a buffer using
rtags for eg.
(defun generic-lookup () "Follow link/goto line." (interactive) (cond ((string= major-mode "c-mode") (progn (call-interactively 'rtags-find-symbol-at-point) (call-interactively 'recenter)))))
However this gives the error:
progn: ‘recenter’ing a window that does not display current-buffer.
How to recenter after calling a function that opens a new buffer?