Skip to content

Commit 6b5231f

Browse files
committed
chore: Use built-in s-replace
1 parent e4d0b3a commit 6b5231f

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

eldoc-eask.el

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,6 @@
4141
:group 'tool
4242
:link '(url-link :tag "Repository" "https://github.com/emacs-eask/eldoc-eask"))
4343

44-
;;
45-
;; (@* "Util" )
46-
;;
47-
48-
(defun eldoc-eask--s-replace (old new s)
49-
"Replace OLD with NEW in S each time it occurs."
50-
(if (fboundp #'string-replace)
51-
(string-replace old new s)
52-
(replace-regexp-in-string (regexp-quote old) new s t t)))
53-
5444
;;
5545
;; (@* "Core" )
5646
;;
@@ -89,7 +79,7 @@ Mainly copy it from `elisp-eldoc-documentation-function' function."
8979
(when doc
9080
(setq str
9181
(format "%s: %s"
92-
(eldoc-eask--s-replace
82+
(eask-s-replace
9383
"eask-f-" ""
9484
(propertize (prin1-to-string
9585
(plist-get plist :thing))

0 commit comments

Comments
 (0)