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

Submitted by:  chai xx <susoren>
Submitted on:  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
Percent Complete:  0% Assigned to:  None
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>

 

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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    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.5