taskGNU TeXmacs - Tasks: task #15630, A macro OR tree-at-end? function...

 
 

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

task #15630: A macro OR tree-at-end? function bug

Submitter:  chai xx <susoren>
Submitted:  Sat 09 May 2020 01:25:49 PM UTC
   
 
Category:  Styles Should Start On:  Sat 09 May 2020 12:00:00 AM UTC
Should be Finished on:  Sat 09 May 2020 12:00:00 AM UTC Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Percent Complete:  0%
Open/Closed:  Open Effort:  0.00

Sat 09 May 2020 01:25:49 PM UTC, original submission:  

I start to play with macros in texmacs. I encounter a problem:

I have this macro defined

  <assign|demo|<macro|w|x|y|z|R<rsub|<arg|w> <arg|x> <arg|y> <arg|z>>>>
which basically assign \demo to the math $R_{i j k l}$ with $i j k l$ being inserted by me when macro expands.

I want to have a shortcut to move from one parameter to the next parameter, so I defined the following:

(kbd-map
  (:mode in-math?)
  ("C-h"
   (let ((t (focus-tree)))
     (if
      (and (tree-in? t '(demo))
           (not (tree-at-end? t)))
      (traverse-next)
      (set-message "Tree is end" "Tree is end")))))

I noticed that when I moved to the second argument using C-h key, it already displays an “Tree is end” message.

This may be a bug!

chai xx <susoren>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #49050:  macro-upload.tm added by susoren (874B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by susoren (Submitted the item)
  •  

    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.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-05-09 susoren Attached File- Added macro-upload.tm, #49050

    Back to the top

    Powered by Savane 3.14-3b9d.
    Corresponding source code