Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Well, this might be possible, but depends on how much effort you are willing to put into writing eLisp code to make it work. It's not possible by just some configuration option. I would be looking into extending autocomplete by adding new sources to it, something like:</p> <pre><code>(defvar tex-tag-ac-sources '((init . tex-tag-ac-init) (requires . 0) (candidates . tex-tag-ac-candidates) (document . tex-tag-ac-documentation) (match . tex-tag-completion-filter) (prefix . tex-tag-ac-prefix-matcher) (symbol . "s")) "The source generator for autocompletion needed for interaction with auto-complete") </code></pre> <p>Where <code>tex-tag-ac-candidates</code>, <code>tex-tag-ac-documentation</code>, <code>tex-tag-completion-filter</code> and <code>tex-tag-ac-prefix-matcher</code> are function that do autocompletion. I.e. init function is called once when the autocompletion process starts for a specified prefix. It's called w/o arguments. The candidates is the function that is responsible for showing the filtered list of candidates, it's called w/o arguments, you would filter the candidates in the filter function, it is called with the prefix collected so far and the list of candidates so far. Lastly, the matcher function is invoked on the text of the file to see if the completion is needed at point. So, if it returns <code>t</code>, the init is called, and then loops through filter-candidates as you type.</p> <p>While this is a bit involved... you'd definitely have a completion for anything you want. Obviously, if those functions in source are defined by you, then, if you wanted to, you could read completion arguments dynamically or have them generated dynamically in some way.</p> <p>Ah, you would add the sources to autocomplete by something like:</p> <pre><code>(auto-complete (list tex-tag-ac-sources)) </code></pre> <p>if doing it on per call basis, or</p> <pre><code>(setq ac-sources (list tex-tag-ac-sources &lt;other sources&gt;)) </code></pre> <p>You can find more info here: <a href="http://cx4a.org/software/auto-complete/manual.html#Using_Source" rel="nofollow">http://cx4a.org/software/auto-complete/manual.html#Using_Source</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload