auctex-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 25bf8e13: ; (LaTeX-completion-documentclass-usepackage): Fix docs


From: Arash Esbati
Subject: master 25bf8e13: ; (LaTeX-completion-documentclass-usepackage): Fix docstring.
Date: Sat, 13 May 2023 14:29:56 -0400 (EDT)

branch: master
commit 25bf8e13e9e4fd708e76d2107e31470f832ad963
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>

    ; (LaTeX-completion-documentclass-usepackage): Fix docstring.
---
 latex.el | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/latex.el b/latex.el
index b287604e..88fec319 100644
--- a/latex.el
+++ b/latex.el
@@ -7598,11 +7598,13 @@ COLLECTION is an list of strings."
                      collection)))))
 
 (defun LaTeX-completion-documentclass-usepackage (entry)
-  "Return completion candidates for arguments of \\usepackage macro.
+  "Return completion candidates for \\usepackage and \\documentclass arguments.
 ENTRY is the value returned by `LaTeX-what-macro'.  This function
-provides completion for package names if point is inside the
-mandatory argument and package options if inside the first
-optional argument."
+provides completion for class/package names if point is inside
+the mandatory argument and class/package options if inside the
+first optional argument.  The completion for class/package names
+is provided only if the value of `TeX-arg-input-file-search' is
+set to t."
   (let ((cls-or-sty (if (member (car entry) '("usepackage" "RequirePackage"
                                               "RequirePackageWithOptions"))
                         'sty



reply via email to

[Prev in Thread] Current Thread [Next in Thread]