You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I customize display-buffer-alist to control where windows and buffers should be placed inside a frame, and I use something like this for *help* buffers and helpful buffers:
However, helpful does not respect the dedicated parameter, ie. when I press RET on a link, it opens the file in the same window as the helpful buffer, whereas the expected behavior is to visit this file in a window that is placed elsewhere, and keep the helpful window as-is. (*Help* does this correctly.)
The cause lies in helpful--navigate, which uses find-file. find-file internally uses pop-to-buffer-same-window. A corrected version is:
(defunhelpful--navigate (button)
"Navigate to the path this BUTTON represents."
(pop-to-buffer (find-file-noselect (substring-no-properties (button-getbutton'path))))
;; We use `get-text-property' to work around an Emacs 25 bug:;; http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=f7c4bad17d83297ee9a1b57552b1944020f23aea
(-when-let (pos (get-text-propertybutton'position
(marker-bufferbutton)))
(helpful--goto-char-widen pos)))
The text was updated successfully, but these errors were encountered:
I agree that helpful's navigation should be changed in this way. I don't use the display-buffer-alist variable, but I've found navigation with helpful to be unintuitive. Helpful keeps trying to open links in other windows, instead of reusing the same one.
I customize
display-buffer-alist
to control where windows and buffers should be placed inside a frame, and I use something like this for*help*
buffers and helpful buffers:However, helpful does not respect the
dedicated
parameter, ie. when I press RET on a link, it opens the file in the same window as the helpful buffer, whereas the expected behavior is to visit this file in a window that is placed elsewhere, and keep the helpful window as-is. (*Help*
does this correctly.)The cause lies in
helpful--navigate
, which usesfind-file
.find-file
internally usespop-to-buffer-same-window
. A corrected version is:The text was updated successfully, but these errors were encountered: