diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2018-04-13 12:31:52 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2018-04-13 12:35:43 +0200 |
commit | 70d53662017addd8cdeea75a43ddcdf37247d2df (patch) | |
tree | 23210ee6db6731cbf41dbf101146d090cbc02d9e /helm-info.el | |
parent | e45dbec7743afff900e04db6acce90d1d3fa1fd5 (diff) |
Fix info at point from info buffers
* helm-info.el (helm-info-init): Don't use a default *info* buffer to
compute list and use save-selected-window.
Diffstat (limited to 'helm-info.el')
-rw-r--r-- | helm-info.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/helm-info.el b/helm-info.el index 02f8d109..d32eeb3c 100644 --- a/helm-info.el +++ b/helm-info.el @@ -53,8 +53,8 @@ files with `helm-info-at-point'." (helm-candidate-buffer)) (kill-buffer it)) (unless (helm-candidate-buffer) - (save-window-excursion - (info file) + (save-selected-window + (info file " *helm info temp buffer*") (let ((tobuf (helm-candidate-buffer 'global)) Info-history start end line) @@ -78,7 +78,8 @@ files with `helm-info-at-point'." "\n" "" (buffer-substring start end))) (with-current-buffer tobuf (insert line) - (insert "\n"))))))))) + (insert "\n"))))) + (bury-buffer))))) (defun helm-info-goto (node-line) (Info-goto-node (car node-line)) |