Function: hpath:relative-arguments

hpath:relative-arguments is a byte-compiled function defined in hpath.el.

Signature

(hpath:relative-arguments ARG-LIST)

Documentation

Return any paths in ARG-LIST below button source loc directory made relative.

Other paths are simply expanded. Non-path arguments are returned unchanged.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hpath.el
(defun hpath:relative-arguments (arg-list)
  "Return any paths in ARG-LIST below button source loc directory made relative.
Other paths are simply expanded.  Non-path arguments are returned unchanged."
  (let ((loc (hattr:get 'hbut:current 'loc)))
    (mapcar (lambda (arg)
	      (hpath:relative-to arg (if (stringp loc)
					 (file-name-directory loc)
				       (buffer-local-value 'default-directory loc))))
	    arg-list)))