From: plugd Date: Sat, 24 Jul 2021 20:07:33 +0000 (+0200) Subject: Removed unused regexp and fixed spelling error. X-Git-Tag: v3.0.0~6 X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=8df32499ec6d54b37427a5f49bc41fce47a98ffc;p=elpher.git Removed unused regexp and fixed spelling error. --- 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."