Skip to content

Commit

Permalink
Always use the ident as an anchor
Browse files Browse the repository at this point in the history
Instead of only using it when browsing to an external location, use it
for the web URL *and* the local file path.
  • Loading branch information
brandonw committed Nov 12, 2013
1 parent 0ff0841 commit 43f2747
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions inf-haskell.el
Expand Up @@ -784,11 +784,11 @@ we load it."
(url (if (or (eq inferior-haskell-use-web-docs 'always)
(and (not (file-exists-p local-path))
(eq inferior-haskell-use-web-docs 'fallback)))
(concat inferior-haskell-web-docs-base package "/" file-name
;; Jump to the symbol anchor within Haddock.
"#v:" sym)
(concat inferior-haskell-web-docs-base package "/" file-name)
(and (file-exists-p local-path)
(concat "file://" local-path)))))
(concat "file://" local-path))))
;; Jump to the symbol within Haddock.
(url (concat url "#v:" sym)))
(if url (browse-url url) (error "Local file doesn't exist"))))

(provide 'inf-haskell)
Expand Down

0 comments on commit 43f2747

Please sign in to comment.