From 3a2a4c61a00e08ebc8b3cf8f65778ac3bb204347 Mon Sep 17 00:00:00 2001 From: Tim Vaughan Date: Sat, 27 Apr 2019 13:24:19 +0200 Subject: [PATCH] Fixed bugs in url regexp and text entry face. --- elopher.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.20.1