[4174] in testers

home help back first fref pref prev next nref lref last post

Re: discuss with readline

daemon@ATHENA.MIT.EDU (Greg Hudson)
Thu Jun 3 11:43:38 1999

Message-Id: <199906031543.LAA28584@r93aag001866.sbo-smr.ma.cable.rcn.com>
To: Camilla R Fox <cfox@MIT.EDU>
cc: testers@MIT.EDU
In-reply-to: Your message of "Wed, 02 Jun 1999 23:30:56 EDT."
             <199906030330.XAA07400@x15-cruise-basselope.mit.edu> 
Date: Thu, 03 Jun 1999 11:43:27 EDT
From: Greg Hudson <ghudson@MIT.EDU>

> the macro doesn't work as expected; anytime an s is typed, no matter
> what character follows it, the s as well as the next few characters
> gets eaten, and never appear.  If I type "show" in it's entirety, I
> do however get it's expansion instead.

I think this is just how key bindings work in readline.  What you're
doing is analagous to binding "show" to (insert "print") in emacs,
except that emacs won't let you use s as a prefix.

> My other problem is that the conditional doesn't work; I've tried
> several variations, such as "$if discuss" (as per the example in the
> man page) and "$if application=discuss".  However, in each case it
> evaluates to false inside the discuss client.  If I add an $else
> clause, that gets evaluated instead.

Well, this is interesting.  The readline user documentation documents
"$if <application>" as if every program sets it, but the programming
documentation buries the information about setting it very effectively
(you have to read the documentation for the variable rl_readline_name,
or pore over the example).

Since we don't currently deal with rl_readline_name, the application
name for discuss and zctl and olc is "other".  I think it should be a
simple hack to ss to set the application name, and another simple hack
to olc.

home help back first fref pref prev next nref lref last post