Gnus development mailing list
 help / color / mirror / Atom feed
* Wizards!  I mean, Assistants!
@ 2004-05-16 13:48 Lars Magne Ingebrigtsen
  2004-05-16 15:20 ` Simon Josefsson
                   ` (2 more replies)
  0 siblings, 3 replies; 63+ messages in thread
From: Lars Magne Ingebrigtsen @ 2004-05-16 13:48 UTC (permalink / raw)


No, still no code.

And I forgotten what conclusion (if any) we reached last time around.

So, here's some thoughts, again.

We want Gnus to be easy to set up for newbies.  So when you start
Gnus for the first time, you'd ideally be guided through some easy
steps to get up and running.

As a trivial example, Gnus would look around at the normal variables,
ask if this is the right NNTP server to connect to, and if not,
what's the address of the server; then it would check that the server
exists and you can connect to it, and if not, it would say so.  If
everything's OK, it'd write these customizations to file and let you
carry on with reading news.

(We could imagine many similar, more complex wizards.  (I don't
really like that word, though.  "Assistant"?)  Setting up mail, spam
filtering, scoring...  Stuff that you can't do through M-x customize,
because it's kinda interactive.  You query the user, look if the
response is reasonable, set stuff up.

There are two areas of difficulty here:

1) Specifying these Assistants.  If it's boring to write them, and
   they're difficult to maintain, that'd suck.  And they'd not get
   written.

2) Rendering the Assistants.  If they aren't pleasant to use, then
   that'd suck.

For 2) I'd originally though "just use W3", but it might not be the
best fit.  It's too...  free, in a way.  We want to guide the user.
Sternly.  So perhaps a simpler renderer has to be written.  Or
several.  There could be one buffer-based renderer, and one
Gtk-based, etc.

I'll just do the buffer-based one, though.

For 1), I don't really have a clue.  The specification language has
to be easy to read and write, and will be a mix of code and text.

I'll just type a bit and see if my fingers invent something usable:

---------------
<page 1>
(!valid
(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)))
(!result (gnus-select-method (list server port)))
So you want to read news.  The news server to use
is (?server (gnus-getenv-nntpserver));
port number (?port 119).
</page>
---------------

Er, that wasn't all that pleasant to write.  The idea was that
(?server) sets a variable that defaults to the argument, and then the
user can edit the value.  And the (!valid) thing is run when the user
presses the "next" button, and does input validation.  In this case,
it checks whether you can connect to the server, and if not, it'll
display the error message.  If it validates, the (!result) is that
you get a gnus-select-method set.

Hm.  Brainstorm, please.  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 63+ messages in thread

end of thread, other threads:[~2004-05-26 18:57 UTC | newest]

Thread overview: 63+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-16 13:48 Wizards! I mean, Assistants! Lars Magne Ingebrigtsen
2004-05-16 15:20 ` Simon Josefsson
2004-05-16 15:24   ` Lars Magne Ingebrigtsen
2004-05-16 17:59     ` Frank Schmitt
2004-05-17 15:35     ` Per Abrahamsen
2004-05-17 20:36     ` Adam Sjøgren
2004-05-18 12:56       ` Per Abrahamsen
2004-05-18 14:20         ` Lars Magne Ingebrigtsen
2004-05-18 14:55           ` Per Abrahamsen
2004-05-18 15:15             ` Lars Magne Ingebrigtsen
2004-05-18 16:11               ` Per Abrahamsen
2004-05-19  0:14         ` Jesper Harder
2004-05-16 16:19   ` Jonas Steverud
2004-05-17  3:15     ` Paul Jarc
2004-05-17  7:34       ` Jonas Steverud
2004-05-16 22:13   ` Miles Bader
2004-05-16 22:18   ` Miles Bader
2004-05-16 23:17     ` Lars Magne Ingebrigtsen
2004-05-17  2:01       ` Steven E. Harris
2004-05-17  8:39   ` Ian Fitchet
2004-05-17 13:43     ` Lars Magne Ingebrigtsen
2004-05-17 13:55       ` Lloyd Zusman
2004-05-21 20:33       ` luis fernandes
2004-05-22 17:18         ` Lars Magne Ingebrigtsen
2004-05-22 18:46           ` Lars Magne Ingebrigtsen
2004-05-22 21:13             ` Lars Magne Ingebrigtsen
2004-05-22 21:19               ` Miles Bader
2004-05-22 21:33                 ` Lars Magne Ingebrigtsen
2004-05-22 22:01                   ` Miles Bader
2004-05-22 22:07                     ` Lars Magne Ingebrigtsen
2004-05-22 22:15                       ` Miles Bader
2004-05-22 22:29                         ` Lars Magne Ingebrigtsen
2004-05-22 22:32                           ` Lars Magne Ingebrigtsen
2004-05-23 16:38                             ` Per Abrahamsen
2004-05-23 20:12                               ` Lars Magne Ingebrigtsen
2004-05-23 21:43                                 ` Lars Magne Ingebrigtsen
2004-05-23 22:19                                   ` Lars Magne Ingebrigtsen
2004-05-24 10:38                                 ` Per Abrahamsen
2004-05-23 21:14         ` Steinar Bang
     [not found]   ` <87pt94xpbv.fsf@telia.com>
2004-05-19  9:56     ` Simon Josefsson
2004-05-17 14:51 ` Ted Zlatanov
2004-05-17 17:05   ` Lars Magne Ingebrigtsen
2004-05-17 18:52     ` Ted Zlatanov
2004-05-17 19:36       ` Lars Magne Ingebrigtsen
2004-05-18  8:48         ` Kai Grossjohann
2004-05-18 15:25           ` Ted Zlatanov
2004-05-18 19:36         ` new user assistant (was: Wizards! I mean, Assistants!) Ted Zlatanov
2004-05-18 20:44           ` new user assistant Lars Magne Ingebrigtsen
2004-05-19 14:55             ` Ted Zlatanov
2004-05-19 15:21               ` Lars Magne Ingebrigtsen
2004-05-20 18:04           ` Gnus mail reading assistant (was: new user assistant) Ted Zlatanov
2004-05-22 23:41             ` Gnus mail reading assistant Lars Magne Ingebrigtsen
2004-05-23  0:19           ` new user assistant Dale Hagglund
2004-05-24 13:52             ` Ted Zlatanov
2004-05-25 10:13               ` Per Abrahamsen
2004-05-25 13:15                 ` Derrell.Lipman
2004-05-25 18:45                   ` Ted Zlatanov
2004-05-25 19:09                     ` Paul Jarc
2004-05-26 18:49                       ` Per Abrahamsen
2004-05-26 18:57                         ` Paul Jarc
2004-05-26 18:46                     ` Per Abrahamsen
2004-05-17 15:45 ` Wizards! I mean, Assistants! Per Abrahamsen
2004-05-17 16:58   ` Lars Magne Ingebrigtsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).