auctex-devel
[Top][All Lists]
Advanced

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

Re: ExecuteMetaData with [ ] instead of { }


From: Arash Esbati
Subject: Re: ExecuteMetaData with [ ] instead of { }
Date: Thu, 18 Aug 2022 10:17:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50

Hi Uwe,

Uwe Brauer <oub@mat.ucm.es> writes:

> I would like to add a TeX-add-symbols 
> in order to obtain something like this
> \ExecuteMetaData[external-fixmes]{1}
>
>
>   (TeX-add-symbols
>     '("ExecuteMetaData"
>       ;; Act like \include and not like \input:
>        (TeX-arg-input-file "File" t) "TAG"))
>
> Unfortunately inserts
>
> \ExecuteMetaData{external-fixmes}{1}
>
> I don't want to use the optional option since I have no completion.
>
> Advice would be welcome 

The simple style attached works for me as expected, i.e., I get
completion for the optional argument.  Maybe you've set the variable
`TeX-arg-input-file-search':

,----[ C-h v TeX-arg-input-file-search RET ]
| TeX-arg-input-file-search is a variable defined in ‘latex.el’.
| 
| Its value is t
| 
| If ‘TeX-arg-input-file’ should search for files.
| If the value is t, files in TeX’s search path are searched for
| and provided for completion.  The file name is then inserted
| without directory and extension.  If the value is nil, the file
| name can be specified manually and is inserted with a path
| relative to the directory of the current buffer’s file and with
| extension.  If the value is ‘ask’, you are asked for the method
| to use every time ‘TeX-arg-input-file’ is called.
| 
|   You can customize this variable.
| 
`----

And this is from the manual:

 TeX-arg-input-file

    Prompt for the name of an input file in TeX’s search path, and use
    it without the extension. Run the style hooks for the file. (Note
    that the behavior (type of prompt and inserted file name) of the
    function can be controlled by the variable
    TeX-arg-input-file-search.)

Does this help?

Best, Arash

Attachment: catchfilebetweentags.el
Description: application/emacs-lisp


reply via email to

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