summaryrefslogtreecommitdiff
path: root/helm-info.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2018-04-13 12:31:52 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2018-04-13 12:35:43 +0200
commit70d53662017addd8cdeea75a43ddcdf37247d2df (patch)
tree23210ee6db6731cbf41dbf101146d090cbc02d9e /helm-info.el
parente45dbec7743afff900e04db6acce90d1d3fa1fd5 (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.el7
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))