update packages
This commit is contained in:
18
lisp/s.el
18
lisp/s.el
@@ -4,7 +4,8 @@
|
||||
|
||||
;; Author: Magnar Sveen <magnars@gmail.com>
|
||||
;; Version: 1.12.0
|
||||
;; Package-Version: 20180406.808
|
||||
;; Package-Version: 20210616.619
|
||||
;; Package-Commit: 08661efb075d1c6b4fa812184c1e5e90c08795a9
|
||||
;; Keywords: strings
|
||||
|
||||
;; This program is free software; you can redistribute it and/or modify
|
||||
@@ -165,12 +166,8 @@ See also `s-split'."
|
||||
(defun s-shared-start (s1 s2)
|
||||
"Returns the longest prefix S1 and S2 have in common."
|
||||
(declare (pure t) (side-effect-free t))
|
||||
(let ((search-length (min (length s1) (length s2)))
|
||||
(i 0))
|
||||
(while (and (< i search-length)
|
||||
(= (aref s1 i) (aref s2 i)))
|
||||
(setq i (1+ i)))
|
||||
(substring s1 0 i)))
|
||||
(let ((cmp (compare-strings s1 0 (length s1) s2 0 (length s2))))
|
||||
(if (eq cmp t) s1 (substring s1 0 (1- (abs cmp))))))
|
||||
|
||||
(defun s-shared-end (s1 s2)
|
||||
"Returns the longest suffix S1 and S2 have in common."
|
||||
@@ -628,9 +625,10 @@ transformation."
|
||||
(funcall replacer var extra)
|
||||
(funcall replacer var))))))
|
||||
(if v (format "%s" v) (signal 's-format-resolve md)))
|
||||
(set-match-data replacer-match-data)))) template
|
||||
;; Need literal to make sure it works
|
||||
t t)
|
||||
(set-match-data replacer-match-data))))
|
||||
template
|
||||
;; Need literal to make sure it works
|
||||
t t)
|
||||
(set-match-data saved-match-data))))
|
||||
|
||||
(defvar s-lex-value-as-lisp nil
|
||||
|
||||
Reference in New Issue
Block a user