auctex-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/auctex 25bf8e13e9 24/39: ; (LaTeX-completion-documentcl


From: Tassilo Horn
Subject: [elpa] externals/auctex 25bf8e13e9 24/39: ; (LaTeX-completion-documentclass-usepackage): Fix docstring.
Date: Thu, 20 Jul 2023 04:21:50 -0400 (EDT)

branch: externals/auctex
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 b287604e33..88fec31979 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]