Function: hpath:find-line
hpath:find-line is an interactive and byte-compiled function defined
in hpath.el.
Signature
(hpath:find-line FILENAME LINE-NUM &optional COL-NUM DISPLAY-WHERE)
Documentation
Edit file FILENAME with point placed at LINE-NUM and optional COL-NUM.
When given, LINE-NUM and COL-NUM may be strings or integers.
hpath:display-where-alist is consulted using the optional argument, DISPLAY-WHERE (a symbol) or if that is nil, the value of hpath:display-where, and the matching display function is used to determine where to display the file, e.g. in another frame. Always return t.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hpath.el
(defun hpath:find-line (filename line-num &optional col-num display-where)
"Edit file FILENAME with point placed at LINE-NUM and optional COL-NUM.
When given, LINE-NUM and COL-NUM may be strings or integers.
`hpath:display-where-alist' is consulted using the optional
argument, DISPLAY-WHERE (a symbol) or if that is nil, the value
of `hpath:display-where', and the matching display function is
used to determine where to display the file, e.g. in another
frame. Always return t."
(interactive "FFind file: ")
;; Just delete any special Hyperbole command characters preceding
;; the filename, ignoring them.
(when (string-match hpath:prefix-regexp filename)
(setq filename (substring filename (match-end 0))))
(hpath:find
(concat
(or (hywiki-get-existing-page-file filename) filename)
(cond ((integerp line-num)
(concat ":" (int-to-string line-num)))
((stringp line-num)
(concat ":" line-num)))
(cond ((integerp col-num)
(concat ":" (int-to-string col-num)))
((stringp col-num)
(concat ":" col-num))))
display-where)
t)