The Lambda Lab
/
projects
/
elpher.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
23c1d9b
)
Removed unused regexp and fixed spelling error.
author
plugd
<plugd@thelambdalab.xyz>
Sat, 24 Jul 2021 20:07:33 +0000
(22:07 +0200)
committer
plugd
<plugd@thelambdalab.xyz>
Sat, 24 Jul 2021 20:07:33 +0000
(22:07 +0200)
elpher.el
patch
|
blob
|
history
diff --git
a/elpher.el
b/elpher.el
index
ed0b02a
..
ef133c6
100644
(file)
--- 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_~?/@|#-]\\)?\\)?"
(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 butt
ino
fy URLs in text files loaded by elpher.")
+ "Regexp used to locate and butt
oni
fy URLs in text files loaded by elpher.")
(defun elpher-buttonify-urls (string)
"Turn substrings which look like urls in STRING into clickable buttons."
(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)))
'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."
(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."