Function: completion-shorthand-try-completion
completion-shorthand-try-completion is a byte-compiled function
defined in minibuffer.el.gz.
Signature
(completion-shorthand-try-completion STRING TABLE PRED POINT)
Documentation
Try completion with read-symbol-shorthands of original buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/minibuffer.el.gz
;; Shorthand completion
;;
;; Iff there is a (("x-" . "string-library-")) shorthand setup and
;; string-library-foo is in candidates, complete x-foo to it.
(defun completion-shorthand-try-completion (string table pred point)
"Try completion with `read-symbol-shorthands' of original buffer."
(let ((expanded (with-current-buffer minibuffer--original-buffer
(shorthands-to-longhand string))))
(when (and (not (equal expanded string))
(try-completion expanded table pred))
(cons expanded (+ (- point (length string))
(length expanded))))))