bugGNU troff - Bugs: bug #60260, Incorrect warnings of dangling .el...

 
 

bug #60260: Incorrect warnings of dangling .el with bracket-less nesting

Submitted by:  None
Submitted on:  Fri 19 Mar 2021 04:00:48 PM UTC  
 
Category:  Core Severity:  3 - Normal
Item Group:  Incorrect behaviour Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 20 Mar 2021 07:31:57 PM UTC, comment #2: 

The referenced email-list thread begins at http://lists.gnu.org/archive/html/groff/2021-03/msg00015.html.

Later in the thread, Tadziu suggests that the warnings are legitimate.  If so, this situation should probably be documented better, since it's somewhat nonintuitive.  (Bug #59434 also concerns documenting a surprising "unbalanced .el request" warning.)

Dave <barx>
Project Member
Fri 19 Mar 2021 04:13:41 PM UTC, comment #1: 

Forgot to mention that the conditionals work correctly in spite of the warnings.

The code also works correctly on Heirloom Doctools nroff, according to Branden's test (with an example tweaked to not use gnu extended syntax).

So the groff warning is probably incorrect.

Jim Avera <jimav>
Fri 19 Mar 2021 04:00:48 PM UTC, original submission:  

The code below warns about "unbalanced .el request" if either the first or second condition is true (with -w all).

The warnings do not happen if the "else" statements are wrapped in \{\ ... \} but the brackets are not supposed to be necessary, according to Branden Robinson (in a reply to a question on the -email is unavailable- email list). 

Branden also noted that bug https://savannah.gnu.org/bugs/?45502 might be related.

#!/bin/sh
groff -w all >/dev/null <<'EOF'
.de mymac
.  tm1 "--- mymac called with '\\$1' ---
.  ie '\\$1'a' .tm1 "  CASE a
.  el .ie '\\$1'b' .tm1 "  CASE b
.  el .ie '\\$1'c' .tm1 "  CASE c
.  el .tm1 "  Got something else (\\$1)
..
.mymac a
.mymac b
.mymac c
.mymac d
EOF

Anonymous

 

(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 (Updated the item)
  • -email is unavailable- added by barx (Posted a comment)
  • -email is unavailable- added by jimav (Posted a comment)
  • -email is unavailable- added by jimav
  •  

    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.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-04-21 gbranden CategoryNone => Core
    2021-03-19 jimav Carbon-Copy- => Added jim.avera@gmail.com

    Back to the top


    Powered by Savane 3.6