From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24393 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: About \defineshortcut Date: Fri, 16 Dec 2005 20:18:19 +0100 Message-ID: <43A312FB.3080705@elvenkind.com> References: <43A1E0C1.7060307@mail.ru> 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 1134760784 17376 80.91.229.2 (16 Dec 2005 19:19:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Dec 2005 19:19:44 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 16 20:19:42 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 1EnL5O-0005j3-SA for gctc-ntg-context-518@m.gmane.org; Fri, 16 Dec 2005 20:17:46 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D0B9312842; Fri, 16 Dec 2005 20:17:45 +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 25533-01; Fri, 16 Dec 2005 20:17:42 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2B73F1282D; Fri, 16 Dec 2005 20:17:42 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 703161282D for ; Fri, 16 Dec 2005 20:17:40 +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 25439-06 for ; Fri, 16 Dec 2005 20:17:39 +0100 (CET) Original-Received: from post-25.mail.nl.demon.net (post-25.mail.nl.demon.net [194.159.73.195]) by ronja.ntg.nl (Postfix) with ESMTP id 8E8C91282C for ; Fri, 16 Dec 2005 20:17:39 +0100 (CET) Original-Received: from boo.demon.nl ([82.161.175.147]:38812 helo=[192.168.1.3]) by post-25.mail.nl.demon.net with esmtp (Exim 4.51) id 1EnL5G-000Ftp-NO for ntg-context@ntg.nl; Fri, 16 Dec 2005 19:17:39 +0000 User-Agent: Mozilla Thunderbird 1.0 (X11/20050215) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <43A1E0C1.7060307@mail.ru> 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:24393 Archived-At: 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 Cheers, taco