From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29820 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Bug in ctxtools --documentation Date: Mon, 31 Jul 2006 03:17:37 -0400 (EDT) Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154330286 23629 80.91.229.2 (31 Jul 2006 07:18:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 31 Jul 2006 07:18:06 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 31 09:18:01 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1G7S2H-0000oL-OK for gctc-ntg-context-518@m.gmane.org; Mon, 31 Jul 2006 09:17:57 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DF6CD1FE21; Mon, 31 Jul 2006 09:17:56 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23273-05; Mon, 31 Jul 2006 09:17:51 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3FA9C1FE2C; Mon, 31 Jul 2006 09:17:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2781E1FE2C for ; Mon, 31 Jul 2006 09:17:47 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23276-01 for ; Mon, 31 Jul 2006 09:17:42 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by ronja.ntg.nl (Postfix) with SMTP id 5C60F1FE21 for ; Mon, 31 Jul 2006 09:17:40 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY hackers.mr.itd.umich.edu ID 44CDAE92.D3BC6.14810 ; 31 Jul 2006 03:17:38 -0400 Original-To: mailing list for ConTeXt users X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:29820 Archived-At: Hi Hans, ctxtools.rb says that %D is the documetation marker. However, while matching it uses when /^[%\#]D/io then Doesn't /i stand for ignorecase, which means that %d is also matched? Is this a bug or a feature? Try generating documentation of core-fnt.tex for an interesting manifestation of this. You have %def\uppercased#1{{\forceunexpanded\xdef\@@globalcrap{\uppercase{#1}}}\@@globalcrap} %def\lowercased#1{{\forceunexpanded\xdef\@@globalcrap{\lowercase{#1}}}\@@globalcrap} %d gets matched, %de gets deleted and the following is written in core-fnt.ted \startdocumentation f\uppercased#1{{\forceunexpanded\xdef\@@globalcrap{\uppercase{#1}}}\@@globalcrap} f\lowercased#1{{\forceunexpanded\xdef\@@globalcrap{\lowercase{#1}}}\@@globalcrap} \stopdocumentation when context processes this it complains ! Illegal parameter number in definition of \@@expanded. } \uppercased ... \xdef \@@expanded {\uppercase {#1} }}\@@expanded l.251 f\uppercased# 1{{\forceunexpanded\xdef\@@globalcrap{\uppercase{#1}}}\@@... ? ! You can't use `macro parameter character #' in horizontal mode. ## \@@expanded ->\uppercase {##} l.251 f\uppercased# 1{{\forceunexpanded\xdef\@@globalcrap{\uppercase{#1}}}\@@... Aditya