| Ticket UUID: | 528392 | |||
| Title: | Missing commands in nroff format | |||
| Type: | Bug | Version: | None | |
| Submitter: | arjenmarkus | Created on: | 2002-03-11 08:15:03 | |
| Subsystem: | doctools | Assigned To: | andreas_kupries | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2002-03-15 14:22:28 | |
| Resolution: | Invalid | Closed By: | arjenmarkus | |
| Closed on: | 2002-03-15 07:22:28 | |||
| Description: |
The nroff format does not implement the commands [lb] and [rb]. These are necessary for entering code examples in the man pages. | |||
| User Comments: |
arjenmarkus added on 2002-03-15 14:22:28:
Logged In: YES user_id=400048 What did the famous poet say? For want of a nail a shoe was lost ... Hm, I will add the finishing clause! andreas_kupries added on 2002-03-15 04:20:27: Logged In: YES user_id=75003 The overall cause is that the doctools command "manpage_end" is not used to close the manpage "calculus.man". I will now close this item as "invalid" as the problem is the manpage, and not doctools. See FR "[530059] Stricter check of incoming manpages" for a followup requesting better checks of the manpage structure and better error messages. andreas_kupries added on 2002-03-15 04:09:16: Logged In: YES user_id=75003 Ok, I know why the message is showing up, but not yet where in NROFF this is caused. The problem is one of stacking contexts. The expander pushes a context when invoked, stores the chosen bracket information and restores the outer brackets after the expansion. At last the context is popped. These brackets have nothing directly to do with [lb] [rb] commands as far as I can tell, we are talking about storing/restoring the information used by the expander to determine where macros start and end. In the case of nroff another context (mp) is pushed, but never popped, causing the expander to access a context which does not contain the lb/rb variables when trying to restore the information of the outer invocation. So the problem is in the nroff format, but not in the [lb] command. The error message is simply misleading. See new tracker item "[530056] Misleading error message in expander". andreas_kupries added on 2002-03-15 03:41:12: Logged In: YES user_id=75003 The message is a bit weird. It means that the method 'cget' was used to query the value of the variable 'lb'. The [lb] command (method Op_lb) uses the internal command 'Get' to query the variable, which does not! generate this message. I'll try to track where this is called. andreas_kupries added on 2002-03-15 03:21:56: Logged In: YES user_id=75003 Confirmed while reintegrating the new calculus code. This could take a bit longer. The HTML, TMML, and LaTeX formats do not complain. So there is a fundamental difference between these and NROFF. arjenmarkus added on 2002-03-13 02:04:18: Logged In: YES
user_id=400048
This is the exact message:
::mp cget: lb doesn't exist in this context
while executing
"::mp expand $text"
(procedure "passes" line 8)
invoked from within
"passes"
(procedure "main" line 6)
invoked from within
"main"
(file "d:\tcl83\lib\tcllib1.2\doctools\mpexpand" line
286)
arjenmarkus added on 2002-03-12 14:06:38: Logged In: YES user_id=400048 The message was something like "lb" not being available in this context. I will have to look up the exact message later on, but I was surprised by the text, it did include something to this effect. andreas_kupries added on 2002-03-12 04:09:12: Logged In: YES user_id=75003 May I see the error message generated when you try to use the commands ? Both "lb" and "rb" are commands implemented in the textutil::expander package itself, simply returning [ and ]. The formats do not have to implement them by themselves. | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki