## GNU TeXmacs - Bugs: bug #36143, Variant mechanism inside e.g....

You are not allowed to post comments on this tracker with your current authentification level.

## bug #36143: Variant mechanism inside e.g. <reference| > conflicts with autocomplete

 Submitted by: Alvaro Tejero Cantero Submitted on: Tue Apr 10 09:53:49 2012 Category: Editor Priority: 5 - Normal Item Group: Error Status: Fixed Privacy: Public Assigned to: Miguel de Benito Originator Name: Open/Closed: Closed Release: 1.0.7.15 Release: None Fixed Release: None Fixed Release: Keywords: inactive, markup, references, autocompletion, variants

Wed Jan 16 23:46:18 2013, comment #3:

Turns out it was simpler than all that. I fixed it in SVN 6130.

However, the solution is a hack. As I mentioned elsewhere, I think we need some special mode (besides "src", "text", "prog" and "math") to indicate that we have plain text. This would be used with some macro arguments (like here), in verbatim text and in many other places where the typesetter needs to behave differently (no ligatures), where many actions/shortcuts make no sense (like inserting whitespace of arbitrary width).

Miguel de Benito <mdbenito>
Sun Aug 19 22:51:00 2012, comment #2:

Moreover: the definition of kbd-variant is ignored in all modes (i.e. wherever it's overloaded) when the cursor is after a dash. The problem seems to be the use of variant-circulate instead of kbd-variant (see generic-kbd.scm:102)

Miguel de Benito <mdbenito>
Wed Apr 11 15:49:53 2012, comment #1:

Confirmed. Hitting TAB after a dash won't trigger autocompletion inside a <\reference>. Further, hitting tab in a <\cite> tag will enter a new field instead of auto-completing.

Miguel de Benito <mdbenito>
Tue Apr 10 09:53:49 2012, original submission:

TAB is used inside several tags for autocompletion. This is particularly handy for references. However, it conflicts with the variant mechanism, which also uses TAB. In particular, TAB after spaces or hyphens results in the character before cursor being modified, instead of the reference string being autocompleted.

Can somebody confirm? I unfortunately lack the time to do more extensive testing ATM, but think it is important to report.

The obvious fix is to bind TAB /only/ to autocompletion inside these structures.

Alvaro Tejero Cantero <alv>

No files currently attached

Depends on the following items: None found

Items that depend on this one: None found

Carbon-Copy List
• -unavailable- added by mdbenito (Posted a comment)
• -unavailable- added by alv (Submitted the item)
•

Do you think this task is very important?
This task has 0 encouragements so far.

Only logged-in users can vote.

Please enter the title of George Orwell's famous dystopian book (it's a date):