bugGNU roff - Bugs: bug #59179, man: cR and X registers used...

 
 

bug #59179: man: cR and X registers used together lose the page number

Submitter:  G. Branden Robinson <gbranden>
Submitted:  Fri 25 Sep 2020 01:15:43 PM UTC
   
 
Category:  Macro package man Severity:  3 - Normal
Item Group:  Incorrect behaviour Status:  Fixed
Privacy:  Public Assigned to:  gbranden
Open/Closed:  Closed Planned Release:  1.23.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 19 May 2021 10:46:33 AM UTC, comment #3: 

It doesn't make sense to use the P or X registers with cR.

However there was a legitimate bug here, and the way to reproduce it for easy regression testing purposes is to use -rcR=0 -rC1.

G. Branden Robinson <gbranden>
Group administrator
Wed 19 May 2021 10:45:14 AM UTC, comment #2: 


commit e4f74755a64de030a435de74e28aa4f248608f53
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Fri Sep 25 23:28:59 2020 +1000

    tmac/an-old.tmac: Fix Savannah #59179.

    * tmac/an-old.tmac (an-p-footer): Define \*[an-page-string] if (1) the
      output device is not HTML; (2) \n[X] has been defined; and (3) the
      page number has not yet reached the threshold defined by \n[X].

    Fixes <https://savannah.gnu.org/bugs/index.php?59179>


G. Branden Robinson <gbranden>
Group administrator
Fri 25 Sep 2020 01:36:13 PM UTC, comment #1: 

Fixed in e4f74755a64de030a435de74e28aa4f248608f53.

G. Branden Robinson <gbranden>
Group administrator
Fri 25 Sep 2020 01:15:43 PM UTC, original submission:  


printf '.TH foo 1\n' | groff -Tps -b -ww -z -rcR=1 -rX1 -man
/usr/share/groff/1.22.4/tmac/an-old.tmac:275: backtrace: macro 'BT'
/usr/share/groff/1.22.4/tmac/an-old.tmac:335: backtrace: macro 'an-p-footer'
/usr/share/groff/1.22.4/tmac/an-old.tmac:344: backtrace: trap-invoked macro 'an-end'
troff: warning: macro 'an-page-string' not defined


Judging by `git blame`, this problem dates back to 2007 or 2001.  At first I thought I broke it, but this now seems impossible. :P


G. Branden Robinson <gbranden>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gbranden (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.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-09-25 gbranden StatusIn Progress Fixed
        Open/ClosedOpen Closed
        Planned ReleaseNone 1.23.0

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code