From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel,gmane.emacs.xemacs.beta Subject: Re: Emacs setup assistants Date: 19 May 2004 08:34:46 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1084948771 13151 80.91.224.253 (19 May 2004 06:39:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 May 2004 06:39:31 +0000 (UTC) Cc: xemacs-beta@xemacs.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed May 19 08:39:26 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BQKje-0008R2-00 for ; Wed, 19 May 2004 08:39:26 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BQKje-0008Bn-00 for ; Wed, 19 May 2004 08:39:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BQKii-0002S0-PJ for emacs-devel@quimby.gnus.org; Wed, 19 May 2004 02:38:28 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BQKh5-0001fR-Ud for emacs-devel@gnu.org; Wed, 19 May 2004 02:36:48 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BQKgU-0001Mz-8y for emacs-devel@gnu.org; Wed, 19 May 2004 02:36:41 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BQKfg-0000wG-RF for emacs-devel@gnu.org; Wed, 19 May 2004 02:35:20 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1BQKfb-0000No-Nq; Wed, 19 May 2004 02:35:20 -0400 Original-To: emacs-devel@gnu.org In-Reply-To: Original-Lines: 74 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:23688 gmane.emacs.xemacs.beta:14745 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23688 Lars Magne Ingebrigtsen writes: > One project that's been on my mind (well, far back of my mind) for a > few years has been to implement something that would make it easy to > set up complex stuff by guiding the user through the process. > > This differs from Customize by being a guided tour through the > options, not just a big whopping menu of stuff to twiddle. > > For instance, when setting Gnus up for reading news, an assistant > would look around the environment for sensible news server defaults, > present these to the user, ask for corrections, and at the end check > whether the information given is sensible (ie., that the news server > exists). (That's a pretty trivial example; setting up spam handling > or mail reading is much more complicated. :-) > > My original plan was to use something HTML-like, and use w3, but Per > Abraahmsen suggested using something more TeXinfo like, and I thought > that was a really groovy idea, so here's an example assistant > specification. > > (It's a mock-up; no code has been written, and most assistants would > have more pages than one.) > > ----------- > @title Configuring Gnus for reading news > @node Server name and port > @variable server :string (gnus-getenv-nntpserver) > @variable port :number 119 > @validate > (let ((stream > (condition-case err > (open-network-stream "nntpd" nil server port) > (error (setq error err))))) > (if (memq (process-status stream) '(open run)) > (progn > (delete-process stream) > t) > nil))) > @end validate > @result gnus-select-method (list server port) > @text > To read Usenet news with Gnus, you first have to tell > Gnus where the news server is. > > The server name is @variable{server}; port number @variable{port}. > @end text > ----------- > > Rendering this is another issue. > > I'm posting this here (on the Emacs and XEmacs development lists) to > let all y'all know what's up, and get the loud objections that I'm > sure are imminent... :-) Well, there currently is the possibility to say: If you want to enable document parsing permanently, press @kbd{C-x C-e} after the following expression: @example (progn (require 'tex) (customize-save-variable 'TeX-master nil "Manual")) @end example > And also -- would actually extending the texinfo.el parser be a good > idea, or should I just roll my own (which would call texinfo.el > functions, of course)? I don't see what you are getting at. Info files are not read by the texinfo parser. Is the question whether you should write your own info reader? -- David Kastrup, Kriemhildstr. 15, 44793 Bochum