bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #64212] [PATCH] [troff] want string-valued register naming the next


From: G. Branden Robinson
Subject: [bug #64212] [PATCH] [troff] want string-valued register naming the next trap
Date: Wed, 9 Aug 2023 19:27:42 -0400 (EDT)

Update of bug #64212 (project groff):

                  Status:             In Progress => Fixed                  
             Open/Closed:                    Open => Closed                 
         Planned Release:                    None => 1.24.0                 

    _______________________________________________________

Follow-up Comment #5:


commit 4c2cd5e076674b80135cf06fe6261e684f3a3cbd
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Wed Jul 26 02:58:27 2023 -0500

    [troff]: Add new `.trap` built-in register.
    
    * src/roff/troff/div.h (class diversion, class macro_diversion, class
      top_level_diversion): Declare new member function
      `get_next_trap_name`.
    
    * src/roff/troff/div.cpp (macro_diversion::get_next_trap_name): New
      member function returns name of diversion trap if any, and if its
      position is greater than the vertical drawing position, otherwise an
      empty string.
    
      (top_level_diversion::get_next_trap_name): New member function returns
      the name of the next vertical position trap, if any, otherwise an
      empty string.
    
      (class next_trap_name_reg): New class has one member, a `get_string()`
      function.
    
      (next_trap_name_reg::get_string): New function.
    
      (init_div_requests): Add `.trap` to the register dictionary and wire
      it up to `next_trap_name_reg`.
    
    * doc/groff.texi (Page Location Traps):
    * man/groff.7.man (Read-only registers):
    * man/groff_diff.7.man (New registers): Document it.
    
    * src/roff/groff/tests/dot-trap_register_works.sh: Test it.
    * src/roff/groff/groff.am (groff_TESTS): Run test.
    
    * NEWS: Add item.
    
    Fixes <https://savannah.gnu.org/bugs/?64212>.  Thanks to Dave Kemper for
    feedback.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64212>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]