Function: org--file-apps-regexp-alist
org--file-apps-regexp-alist is a byte-compiled function defined in
org.el.gz.
Signature
(org--file-apps-regexp-alist LIST &optional ADD-AUTO-MODE)
Documentation
Convert extensions to regular expressions in the cars of LIST.
Also, weed out any non-string entries, because the return value is used only for regexp matching.
When ADD-AUTO-MODE is non-nil, make all matches in auto-mode-alist
point to the symbol emacs, indicating that the file should be
opened in Emacs.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org--file-apps-regexp-alist (list &optional add-auto-mode)
"Convert extensions to regular expressions in the cars of LIST.
Also, weed out any non-string entries, because the return value
is used only for regexp matching.
When ADD-AUTO-MODE is non-nil, make all matches in `auto-mode-alist'
point to the symbol `emacs', indicating that the file should be
opened in Emacs."
(append
(delq nil
(mapcar (lambda (x)
(unless (not (stringp (car x)))
(if (string-match "\\W" (car x))
x
(cons (concat "\\." (car x) "\\'") (cdr x)))))
list))
(when add-auto-mode
(mapcar (lambda (x) (cons (car x) 'emacs)) auto-mode-alist))))