From 8df32499ec6d54b37427a5f49bc41fce47a98ffc Mon Sep 17 00:00:00 2001 From: plugd Date: Sat, 24 Jul 2021 22:07:33 +0200 Subject: [PATCH] Removed unused regexp and fixed spelling error. --- elpher.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/elpher.el b/elpher.el index ed0b02a..ef133c6 100644 --- a/elpher.el +++ b/elpher.el @@ -1066,7 +1066,7 @@ If ADDRESS is not supplied or nil the record is rendered as an (defconst elpher-url-regex "\\([a-zA-Z]+\\)://\\([a-zA-Z0-9.-]*[a-zA-Z0-9-]\\|\\[[a-zA-Z0-9:]+\\]\\)\\(:[0-9]+\\)?\\(/\\([0-9a-zA-Z_~?/@|:.%#=&-]*[0-9a-zA-Z_~?/@|#-]\\)?\\)?" - "Regexp used to locate and buttinofy URLs in text files loaded by elpher.") + "Regexp used to locate and buttonify URLs in text files loaded by elpher.") (defun elpher-buttonify-urls (string) "Turn substrings which look like urls in STRING into clickable buttons." @@ -1085,9 +1085,6 @@ If ADDRESS is not supplied or nil the record is rendered as an 'face 'button))) (buffer-string))) -(defconst elpher-ansi-regex "\x1b\\[[^m]*m" - "Incomplete regexp used to strip out some troublesome ANSI escape sequences.") - (defun elpher-process-text-for-display (string) "Perform any desired processing of STRING prior to display as text. Currently includes buttonifying URLs and processing ANSI escape codes." -- 2.20.1