Function: shorthands-to-longhand
shorthands-to-longhand is a byte-compiled function defined in
shorthands.el.gz.
Signature
(shorthands-to-longhand STRING)
Documentation
Return the longhand form of STRING according to read-symbol-shorthands.
Returns a string. If no shorthand applies, returns STRING.
Probably introduced at or before Emacs version 32.1.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/shorthands.el.gz
(defun shorthands-to-longhand (string)
"Return the longhand form of STRING according to `read-symbol-shorthands'.
Returns a string. If no shorthand applies, returns STRING."
(let ((mappings read-symbol-shorthands))
(while (and mappings (not (string-prefix-p (caar mappings) string)))
(setq mappings (cdr mappings)))
(if mappings
(concat (cdar mappings) (substring string (length (caar mappings))))
string)))