]> git.eshelyaron.com Git - emacs.git/commit
Allow predicates for matching in browse-url-handlers.
authorTassilo Horn <tsdh@gnu.org>
Fri, 8 May 2020 18:57:19 +0000 (20:57 +0200)
committerTassilo Horn <tsdh@gnu.org>
Fri, 8 May 2020 18:57:19 +0000 (20:57 +0200)
commit909591a4b25901392686f1cf68870260d3016afe
tree3b33377bf96c5c37d39e6240b47aa014f07052a5
parent39b2a598d27809c524a123fd53db71783693071e
Allow predicates for matching in browse-url-handlers.

* lisp/net/browse-url.el (browse-url-handlers): Allow predicates for
matching in browse-url-handlers.  Adapt docs and customize type.
(browse-url-select-handler): Support predicates in addition to
regexes.
(browse-url--non-html-file-url-p): New defun.
(browse-url-default-handlers): Use above predicate entry instead of
two entries.
doc/emacs/misc.texi
etc/NEWS
lisp/net/browse-url.el