GNU TeXmacs - Bugs: bug #58346, A macro OR tree-at-end? function...
You are not allowed to post comments on this tracker with your current authentication level.
bug #58346: A macro OR tree-at-end? function bug
Submitter: | chai xx <susoren> | ||
Submitted: | Mon 11 May 2020 01:54:15 AM UTC | ||
Category: | Editor | Priority: | 5 - Normal |
Item Group: | Error | Status: | Works For Me |
Privacy: | Public | Assigned to: | vdhoeven |
Originator Name: | Open/Closed: | Closed | |
Release: | None | Release: | |
Fixed Release: | None | Fixed Release: | |
Keywords: |
Sat 24 Oct 2020 04:47:53 PM UTC, comment #2: |
Joris van der Hoeven <vdhoeven> |
Mon 11 May 2020 11:48:53 AM UTC, comment #1: Are you sure that the focus-tree is on 'demo and not on 'arg? 'traverse-next seems to look for the next similar tag, which would be an arg. So it seems to me that you would have to check the parent maybe, instead of t itself. |
Massimiliano Gubinelli <mgubi> |
Mon 11 May 2020 01:54:15 AM UTC, original submission:
I start to play with macros in texmacs. I encounter a problem:
|
chai xx <susoren> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 5 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2020-10-24 | vdhoeven | Status | None | Works For Me | |
Assigned to | None | vdhoeven | |||
Open/Closed | Open | Closed | |||
2020-10-23 | vdhoeven | Item Group | None | Error | |
2020-05-11 | susoren | Attached File | - | Added macro-upload.tm, #49055 |
Powered by Savane 3.13-d3ae.
Corresponding source code
I think that (tree-at-end? t) will test whether you are just behind your demo tag (since this cursor position is available). You probably wish to check whether the cursor is inside the last child of the demo tag, which is not the same thing.
Note that you may look at the structured-left/right/etc. macros in order to see how to implement this kind of thing.