From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Subject: Re: Re: keys and command name info Date: Tue, 17 Aug 2010 17:44:04 +0200 Message-ID: <4C6AAE44.6090607@easy-emacs.de> References: <4C5086C1.9060000@easy-emacs.de> <20100808222636.GF20223@shi.workgroup> <770A61DC-4063-4A72-95F2-21F4E7DE6E77@gmail.com> <87fwyom8iv.fsf@gmx.net> <20100809101957.GC14007@shi.workgroup> <878w4f4oy4.fsf@stats.ox.ac.uk> <87tyn337rm.fsf@stats.ox.ac.uk> <21306250-E2A2-46A7-BFB5-891034F3FA59@gmail.com> <4C659D63.1090003@easy-emacs.de> <86490E4E-6B55-4596-82A9-1BDD1079B1F0@uva.nl> <4C683B07.6090206@easy-emacs.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=60692 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OlOLb-0007Kb-Ml for emacs-orgmode@gnu.org; Tue, 17 Aug 2010 11:45:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OlOLa-0006nE-2x for emacs-orgmode@gnu.org; Tue, 17 Aug 2010 11:45:07 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:51490) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlOLZ-0006n7-M0 for emacs-orgmode@gnu.org; Tue, 17 Aug 2010 11:45:06 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode >>>>>> Here is my proposal for now: >>>>>> >>>>>> @macro orgcmd{key,command} >>>>>> @kindex \key\ >>>>>> @findex \command\ >>>>>> @item \key\ @ @ @ @ @ @ @ @ @ @ @r{(}\command\@r{)} >>>>>> @end macro >>>>>> >>>>>> And then define keys/commands like this: >>>>>> >>>>>> @table @kbd >>>>>> ..... >>>>>> @orgcmd{@key{TAB}, org-cycle} >>>>>> Here follows the description of the command >>>>>> .... >>>>>> @end table >>>>>> >>>>>> - Carsten >>>>>> >>>>>> >>>>> [ ... ] >>>>> >>>>> Hi Carsten, >>>>> >>>>> attached a sreenshot, how it comes out for C-c C-b. >>>>> Doesn't look ok for me, as back-tick and quote are uncommon that way. >>>> >>>> Hi Andreas, you are correct, this does not look right. >>>> Seems like we will have to make the table ins @asis and >>>> then have the macro apply the formatting. Sigh... :) >>> >>> If you do insert all the macro calls with the command names, I will take >>> care of the formatting. >>> >>> - Carsten >>> >> >> Hi, >> >> will do that. >> >> Let us check nonetheless a working example first. >> >> While trying to put @asis at the right place, I get error messages >> and it refuses to compile. >> >> Could you re-write the example for me? >> >> Sorry being that stupid :-) >> >> Andreas > > I mean it like this: > > @macro orgcmd{key,command} > @kindex \key\ > @findex \command\ > @item @kbd{\key\} @ @ @ @ @ @ @ @ @ @ (@code{\command}\) > @end macro > > And then define keys/commands like this: > > @table @asis > ..... > @orgcmd{C-c C-x @key{TAB}, org-cycle} > Here follows the description of the command > .... > @end table > BTW used macro form from first proposal, @asis entry from second. Second macro form was not visible (maybe due typo backslash "}\)" ?)