From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88406 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: processallactionsinset and default Date: Thu, 14 Aug 2014 14:44:57 +0200 Message-ID: <530FA52D-786D-48FB-8314-B2BC734BEE6E@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1408020327 11686 80.91.229.3 (14 Aug 2014 12:45:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Aug 2014 12:45:27 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 14 14:45:22 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XHuP9-0001GV-GV for gctc-ntg-context-518@m.gmane.org; Thu, 14 Aug 2014 14:45:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DE62D10220 for ; Thu, 14 Aug 2014 14:45:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id cHbP10IVE0Ub for ; Thu, 14 Aug 2014 14:45:18 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id CB6A410223 for ; Thu, 14 Aug 2014 14:45:11 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3ECAB101EE for ; Thu, 14 Aug 2014 14:45:07 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 4utTSebBnG3i for ; Thu, 14 Aug 2014 14:45:04 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id A9F70101E2 for ; Thu, 14 Aug 2014 14:45:04 +0200 (CEST) Original-Received: from mail-wg0-x22a.google.com (mail-wg0-x22a.google.com [IPv6:2a00:1450:400c:c00::22a]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s7ECj33n007132 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Thu, 14 Aug 2014 14:45:03 +0200 Original-Received: by mail-wg0-f42.google.com with SMTP id l18so1010730wgh.25 for ; Thu, 14 Aug 2014 05:45:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=rYoQIcgJqqk1CBW6tXSMY3YdbRtSFBLH1K4ZtDm9qRY=; b=Nzec4LyThhwffGp6/vyS3CVYm5rVb6zufCoQbRqnolxVSTMUDGkN+rKC9l26so1BgV 0jf0sYkHkMxH6uqEVQy7R7rJzElVK22x5sYho4rizVvEYvQThM2jv3aArk8lSEClN7E/ ESE8WIDofgrAZWmnhasrqLW8GwHMJq47NRBJ7UCRKqPWeU5Rxxted1SMP3ntVzCqpV9f aTiOBqgFYZ+EGVkdVS1SM+AUr8d2tsx0bc4+O8sJ8A4H1B8jwS8ZBgw0ZEgD4u88jyQl oXSYQTMtsvfV0bPwtLUg7+xjEIbN+JCa+Z47DN97cz5HZkXv2zlsvcrOvokNSNg23kjW 0WQw== X-Received: by 10.180.20.105 with SMTP id m9mr12376631wie.6.1408020302940; Thu, 14 Aug 2014 05:45:02 -0700 (PDT) Original-Received: from keima.localdomain (x2f30fcd.dyn.telefonica.de. [2.243.15.205]) by mx.google.com with ESMTPSA id ho7sm11304409wjb.2.2014.08.14.05.44.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 Aug 2014 05:44:59 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1878.6) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c00::22a; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06MCAJ30K - d74e12bd44ae - 20140814 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:88406 Archived-At: Am 14.08.2014 um 11:38 schrieb Christoph Reller : > Hi! > > The "default" value works well for processaction but apparently does not for processallactionsinset. What am I missing? > > Example: > > \def\A{A} > \def\XX{} > \def\Un{Un} > > \processaction[\A][A=>Yeah!,default=>Def.,unknown=>Huh?]% > \processaction[\XX][A=>Yeah!,default=>Def.,unknown=>Huh?]% > \processaction[\Un][A=>Yeah!,default=>Def.,unknown=>Huh?] > > \processallactionsinset[\A,\XX,\Un][A=>Yeah!,default=>Def.,unknown=>Huh?] > > Output: > > Yeah!Def.Huh? > Yeah!Huh?Huh? The default value is only used when there is no argument at all. Your example for \processallactionsinset with a list of values where you have empty key (A,,Un) is not supported and because the empty is not in the list you get the argument for unknown. Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________