Skip to content

Commit 2d42855

Browse files
committed
Merge pull request #1167 from luntain/master
Fix haskell-hoogle to work with buffer local var
2 parents 7430512 + 4ef443e commit 2d42855

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

haskell-hoogle.el

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ is asked to show extra info for the items matching QUERY.."
6565
current-prefix-arg)))
6666
(if (null haskell-hoogle-command)
6767
(browse-url (format haskell-hoogle-url (url-hexify-string query)))
68-
(with-help-window "*hoogle*"
69-
(with-current-buffer standard-output
70-
(insert (shell-command-to-string
71-
(concat haskell-hoogle-command
72-
(if info " -i " "")
73-
" --color " (shell-quote-argument query))))
74-
(ansi-color-apply-on-region (point-min) (point-max))))))
68+
(let ((command (concat haskell-hoogle-command
69+
(if info " -i " "")
70+
" --color " (shell-quote-argument query))))
71+
(with-help-window "*hoogle*"
72+
(with-current-buffer standard-output
73+
(insert (shell-command-to-string command))
74+
(ansi-color-apply-on-region (point-min) (point-max)))))))
7575

7676
;;;###autoload
7777
(defalias 'hoogle 'haskell-hoogle)

0 commit comments

Comments
 (0)