From: Tim Vaughan Date: Sat, 27 Apr 2019 11:24:19 +0000 (+0200) Subject: Fixed bugs in url regexp and text entry face. X-Git-Tag: v1.0.0~34 X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=elpher.git;a=commitdiff_plain;h=3a2a4c61a00e08ebc8b3cf8f65778ac3bb204347 Fixed bugs in url regexp and text entry face. --- diff --git a/elopher.el b/elopher.el index ab4d84c..1502782 100644 --- a/elopher.el +++ b/elopher.el @@ -60,7 +60,7 @@ "Face used for index records.") (defface elopher-text - '((default :weight "bold") + '((default :weight bold) (((background dark)) :foreground "white")) "Face used for text records.") @@ -320,7 +320,7 @@ The result is stored as a string in the variable elopher-selector-string." ;; Text retrieval -(defconst elopher-url-regex "\\(https?\\|gopher\\)://\\([a-zA-Z0-9.\-]+\\)\\(?3::[0-9]+\\)?\\(?4:/[^ \r\n\t(),]*\\)" +(defconst elopher-url-regex "\\(https?\\|gopher\\)://\\([a-zA-Z0-9.\-]+\\)\\(?3::[0-9]+\\)?\\(?4:/[^ \r\n\t(),]*\\)?" "Regexp used to locate and buttinofy URLs in text files loaded by elopher.") (defun elopher-buttonify-urls (string)