Function: bibtex-complete-string-cleanup
bibtex-complete-string-cleanup is a byte-compiled function defined in
bibtex.el.gz.
Signature
(bibtex-complete-string-cleanup COMPL)
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/bibtex.el.gz
(defun bibtex-complete-string-cleanup (compl) (lambda (str status) ;Curried.
"Cleanup after inserting string STR.
Remove enclosing field delimiters for STR. Display message with
expansion of STR using expansion list COMPL."
(when (memq status '(exact finished sole))
(let ((abbr (cdr (assoc-string str compl t))))
(when abbr
(message "%s = abbreviation for `%s'" str abbr)))
(when (eq status 'finished)
(save-excursion (bibtex-remove-delimiters))))))