Mosè: Do you see the line (TeX-add-to-alist 'LaTeX-provided-package-options ? in
+(defun LaTeX-arg-usepackage-insert (packages options) + "Actually insert arguments to usepackage." + (unless (zerop (length options)) + (let ((opts (LaTeX-listify-package-options options))) + (mapc (lambda (elt) + (TeX-add-to-alist 'LaTeX-provided-package-options + (list (cons elt opts)))) + packages)) + (insert LaTeX-optop options LaTeX-optcl)) + (insert TeX-grop (mapconcat 'identity packages ",") TeX-grcl) + (run-hooks 'LaTeX-after-usepackage-hook)) Well, long story short, every time I would try to insert the options for the package, say for example, for the inputenc package, like utf8, utf8x, etc., it would throw a "symbol's definition is void " error. So, I said, enough with my faulty reasoning, and I went ahead and modified it as well to: (defun LaTeX-arg-usepackage-insert (packages options) "Actually insert arguments to usepackage." (unless (zerop (length options)) (let ((opts (LaTeX-listify-package-options options))) (mapc 'TeX-run-style-hooks (LaTeX-listify-package-options options)) packages) (insert LaTeX-optop options LaTeX-optcl)) (insert TeX-grop (mapconcat 'identity packages ",") TeX-grcl) (run-hooks 'LaTeX-after-usepackage-hook)) Now, that did it. If only my emacs could sing. Of course, needless to say, you can give it the last touch as you wish. Mosè, that was a monumental achievement! _______________________________________________ auctex-devel mailing list auctex-devel@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-devel