Function: actypes::link-to-file

actypes::link-to-file is an interactive and byte-compiled function defined in hactypes.el.

Signature

(actypes::link-to-file PATH &optional POINT)

Documentation

Display a file given by PATH scrolled to optional POINT.

If POINT is given, display the buffer with POINT at the top of the window or as close as possible.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hactypes.el
(defact link-to-file (path &optional point)
  "Display a file given by PATH scrolled to optional POINT.
If POINT is given, display the buffer with POINT at the top of
the window or as close as possible."
  (interactive (hactypes:link-to-file-interactively))
  (if path
      (progn
	;; Remove any double quotes and whitespace at the start and end of
	;; the path that use within a key series may have introduced.
	(setq path (hpath:trim path))
	(and (hpath:find path)
	     (integer-or-marker-p point)
	     (progn (goto-char (min (point-max) point))
		    (recenter 0))))
    (hypb:error "(link-to-file): Invalid file name: \"%s\"" path)))