From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/73322 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: assistants, again Date: Tue, 19 Oct 2010 14:21:08 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87ocaqng4b.fsf@lifelogs.com> References: <8762wys1q8.fsf@lifelogs.com> <87bp6qowqa.fsf@lifelogs.com> <87zkuanh10.fsf_-_@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1287516114 8957 80.91.229.12 (19 Oct 2010 19:21:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 19 Oct 2010 19:21:54 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M21694@lists.math.uh.edu Tue Oct 19 21:21:52 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P8Hkt-0007n5-K3 for ding-account@gmane.org; Tue, 19 Oct 2010 21:21:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1P8Hka-0008Dw-8t; Tue, 19 Oct 2010 14:21:32 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1P8HkY-0008Dc-Jl for ding@lists.math.uh.edu; Tue, 19 Oct 2010 14:21:30 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P8HkT-0002li-EC for ding@lists.math.uh.edu; Tue, 19 Oct 2010 14:21:29 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P8HkS-0006W2-00 for ; Tue, 19 Oct 2010 21:21:24 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P8HkQ-0007Z0-Hv for ding@gnus.org; Tue, 19 Oct 2010 21:21:22 +0200 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Oct 2010 21:21:22 +0200 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Oct 2010 21:21:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 45 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:CZKvEyqI9N/rTZKYiC7mzTuhOqs= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:73322 Archived-At: On Tue, 19 Oct 2010 21:08:48 +0200 Lars Magne Ingebrigtsen wrote: LMI> Ted Zlatanov writes: >> I'll work on it. LMI> Great! Heh. Maybe I'll get to it by Christmas. Not the one in 2010. >> I really need you to explain how assistants work, though. Your parse, >> render, and data assembly code makes sense when I read it but in >> practice (writing actual .ast files) it's hard to use. Plus it's not >> obvious to me how to make assisted changes permanent: do I need to >> write a converter or can assistant.el customize things directly? LMI> I think you need to hook it into customize, probably, if I remember LMI> correctly. I meant to write that bit, but didn't get around to it. OK. Is it supposed to be hooked into one of the :get or :initialize `defcustom' options? I have never touched those areas. The alternate is to just use 'finish to directly set some variables so assistant.el is standalone. LMI> If the .ast file format is difficult to use, feel free to change the LMI> format to something better. I don't think this is used by anybody. No, I mean it's like Lego blocks: I understand each piece but don't know how to put together a big assembly. The parser is fine, the format is fine, but I need to see at least one complete example to do it. It doesn't have to be a full example, it can be just a variable with two configuration paths: either it's a single choice of symbols or a list of symbols or sublists (to show recursion). So given the choices 'one, 'two, 'three, show me how to customize a variable to have these possible values: 'one nil '(one two) '((one two) (three)) ...and make it permanent afterwards. That will be most of what I need and I can figure out the rest. Ted