From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24409 Path: news.gmane.org!not-for-mail From: Radhelorn Newsgroups: gmane.comp.tex.context Subject: Re: About \defineshortcut Date: Sat, 17 Dec 2005 15:38:34 +0300 Message-ID: <43A406CA.8040705@mail.ru> References: <43A1E0C1.7060307@mail.ru> <43A312FB.3080705@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1134823173 14928 80.91.229.2 (17 Dec 2005 12:39:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 17 Dec 2005 12:39:33 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Dec 17 13:39:30 2005 Return-path: 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 1EnbKY-0006R1-Oj for gctc-ntg-context-518@m.gmane.org; Sat, 17 Dec 2005 13:38:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5B4AB12842; Sat, 17 Dec 2005 13:38:29 +0100 (CET) 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 02750-01; Sat, 17 Dec 2005 13:38:23 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B2409127BD; Sat, 17 Dec 2005 13:38:23 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8EFF0127BD for ; Sat, 17 Dec 2005 13:38:22 +0100 (CET) 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 02739-02 for ; Sat, 17 Dec 2005 13:38:21 +0100 (CET) Original-Received: from mx6.mail.ru (mx6.mail.ru [194.67.23.26]) by ronja.ntg.nl (Postfix) with ESMTP id 83873127A0 for ; Sat, 17 Dec 2005 13:38:21 +0100 (CET) Original-Received: from [217.106.91.40] (port=9727 helo=[172.16.6.184]) by mx6.mail.ru with esmtp id 1EnbKL-00010I-00 for ntg-context@ntg.nl; Sat, 17 Dec 2005 15:38:17 +0300 User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <43A312FB.3080705@elvenkind.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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:24409 Archived-At: Taco Hoekwater wrote: > Radhelorn wrote: > >> Hello All! >> >> There is intresting macros in cont-new -- shortcuts. It works pretty >> well, but I have one question: how to undefine them back? >> >> For example after command: >> >> \defineshortcut [//] [] [style=\em] > > >> I can get slash only by \textslash (which is expected) and it breaks >> things like: >> >> \typefile {some/dir/file} >> >> So how to revert to previous meaning of '/'? It is possible to do it >> only temporarily? > > > Explicit \start a /b/ c \stop style grouping is normally best, but > a shortcut is just an active character with a closing defimiter, > so this will work for you special case: > > \catcode`\/=\other > \typefile {some/dir/file} > \catcode`\/=\active > > Thanks Taco. I was experimenting with \bgroup \egroup and thinking about some more explicit and visible. BTW where is these \start \stop defined? -- Radhelorn