Function: hpath:get-external-display-alist
hpath:get-external-display-alist is a byte-compiled function defined
in hpath.el.
Signature
(hpath:get-external-display-alist)
Documentation
Return an alist of elements for the current window system.
The alist is (FILENAME-REGEXP . DISPLAY-PROGRAM-STRING-OR-LIST).
These are used to display matching filenames with external window system
programs, such as a pdf reader. The cdr of each element may be:
a string which must represent either an executable name or a shell command
with an embedded %s for substitution of the current context filename;
a list of executable names (the first valid one is used);
or a function of one filename argument.
See also hpath:internal-display-alist for internal,
window-system independent display settings.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hpath.el
;; (hyperb:window-system) function from "hversion.el" must be defined
;; prior to use of this function.
(defun hpath:get-external-display-alist ()
"Return an alist of elements for the current window system.
The alist is (FILENAME-REGEXP . DISPLAY-PROGRAM-STRING-OR-LIST).
These are used to display matching filenames with external window system
programs, such as a pdf reader. The cdr of each element may be:
a string which must represent either an executable name or a shell command
with an embedded %s for substitution of the current context filename;
a list of executable names \(the first valid one is used);
or a function of one filename argument.
See also `hpath:internal-display-alist' for internal,
window-system independent display settings."
(cond ((memq window-system '(mac dps ns))
hpath:external-display-alist-macos)
(hyperb:microsoft-os-p
hpath:external-display-alist-mswindows)
(t (cdr (assoc (hyperb:window-system)
(list (cons "emacs" hpath:external-display-alist-x) ; GNU Emacs under X
(cons "next" hpath:external-display-alist-macos)))))))