Function: shadow-regexp-superquote
shadow-regexp-superquote is a byte-compiled function defined in
shadowfile.el.gz.
Signature
(shadow-regexp-superquote STRING)
Documentation
Like regexp-quote, but includes the \ and \.
This makes sure regexp matches nothing but STRING.
Source Code
;; Defined in /usr/src/emacs/lisp/shadowfile.el.gz
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Syntactic sugar; General list and string manipulation
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun shadow-regexp-superquote (string)
"Like `regexp-quote', but includes the \\` and \\'.
This makes sure regexp matches nothing but STRING."
(concat "\\`" (regexp-quote string) "\\'"))