zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: An alternative nroff fix to 12724
@ 2001-05-31  4:57 Bart Schaefer
  2001-06-01 14:00 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Bart Schaefer @ 2001-05-31  4:57 UTC (permalink / raw)
  To: zsh-workers

Add a single space in a strategic spot, and you prevent yodl from running
the PARAGRAPH() macro, which is where all the mess comes in.

The real root of the problem is that the macro definitions in yodl can't
be pushed on a stack, so zman.yo settles for toggling them between two
states.  Of course, when you have a startitem() nested inside another
startitem(), two states is not enough.

--- zsh-forge/current/Doc/Zsh/builtins.yo	Wed May 30 21:47:06 2001
+++ zsh-4.0/Doc/Zsh/builtins.yo	Wed May 30 21:47:20 2001
@@ -831,7 +831,7 @@
 with tt(-c) or tt(-l), with tt(-q) which clears the input queue before
 reading, or within zle where other mechanisms should be used to test for
 input.
-
+ifzman( )
 Note that read does not attempt to alter the input processing mode.  The
 default mode is canonical input, in which an entire line is read at a time,
 so usually `tt(read -t)' will not read anything until an entire line has
@@ -840,8 +840,7 @@
 character is tested, so that e.g. `tt(read -t -k 2)' can still block on the
 second character.
 )
-ifnzman(enditem()
-)
+enditem()
 If the first argument contains a `tt(?)', the remainder of this
 word is used as a var(prompt) on standard error when the shell
 is interactive.
@@ -857,7 +856,6 @@
 cancels both tt(-p) and tt(-u).
 
 The tt(-c) or tt(-l) flags cancel any and all of tt(-kpquz).
-ifzman(enditem())
 )
 cindex(parameters, marking readonly)
 alias(readonly)(typeset -r)

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PATCH: An alternative nroff fix to 12724
  2001-05-31  4:57 PATCH: An alternative nroff fix to 12724 Bart Schaefer
@ 2001-06-01 14:00 ` Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2001-06-01 14:00 UTC (permalink / raw)
  To: Zsh hackers list

"Bart Schaefer" wrote:
> Add a single space in a strategic spot, and you prevent yodl from running
> the PARAGRAPH() macro, which is where all the mess comes in.

This is needed in one extra place.

Index: Doc/Zsh/builtins.yo
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Zsh/builtins.yo,v
retrieving revision 1.27
diff -u -r1.27 builtins.yo
--- Doc/Zsh/builtins.yo	2001/05/31 07:38:00	1.27
+++ Doc/Zsh/builtins.yo	2001/06/01 13:59:15
@@ -1472,7 +1472,7 @@
 tt(KSH_AUTOLOAD) em(is) set.  If neither of these options is given, the
 function will be loaded as determined by the setting of the
 tt(KSH_AUTOLOAD) option at the time the compiled file is read.
-
+ifzman( )
 These options may also appear as many times as necessary between the listed
 var(name)s to specify the loading style of all following functions, up to
 the next tt(-k) or tt(-z).

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR Ltd., Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK                          Tel: +44 (0)1223 392070


**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
prohibited.  
If you received this in error, please contact the sender and 
delete the material from any computer.
**********************************************************************


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-06-01 14:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-31  4:57 PATCH: An alternative nroff fix to 12724 Bart Schaefer
2001-06-01 14:00 ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).