>> (defun LaTeX-hologo--arg-use-region-or-query-logo-name (optional) >> (if (and (use-region-p) >> (member (buffer-substring (region-beginning) (region-end)) >> LaTeX-hologo-logo-names)) >> (progn >> (insert TeX-grop) >> (goto-char (region-end)) >> (insert TeX-grcl)) >> (TeX-argument-insert >> (completing-read >> (TeX-argument-prompt optional nil "Logo name") >> LaTeX-hologo-logo-names) >> optional))) > > Yes, that's better! Thanks, pushed!
Ah, and now that can also be used for the first argument of \[Hh]ologoVariant which didn't work before. :-) Bye, Tassilo
