branch: externals/auctex
commit 49f46a2c4f19bb251eb17bd567519f4f764e8069
Author: Arash Esbati <ar...@gnu.org>
Commit: Arash Esbati <ar...@gnu.org>

    Fix position of `LaTeX--arguments-completion-at-point'
    
    * latex.el (LaTeX-common-initialization): Use 5 for depth when
    adding `LaTeX--arguments-completion-at-point' to
    `completion-at-point-functions'.  This ensures that the function
    is added before `ispell-completion-at-point' introduced in
    Emacs30.
---
 latex.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/latex.el b/latex.el
index f077acd4ca..83de0e84f4 100644
--- a/latex.el
+++ b/latex.el
@@ -8479,7 +8479,7 @@ function would return non-nil and `(match-string 1)' 
would return
   ;; Standard Emacs completion-at-point support.  We append the entry
   ;; in order to let `TeX--completion-at-point' be first in the list:
   (add-hook 'completion-at-point-functions
-            #'LaTeX--arguments-completion-at-point t t)
+            #'LaTeX--arguments-completion-at-point 5 t)
 
   (set (make-local-variable 'LaTeX-item-list) '(("description" . 
LaTeX-item-argument)
                                                 ("thebibliography" . 
LaTeX-item-bib)

Reply via email to