Gnus development mailing list
 help / color / mirror / Atom feed
* New prefix
@ 1997-09-21  3:09 Lars Magne Ingebrigtsen
  1997-09-21 13:10 ` Per Abrahamsen
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Magne Ingebrigtsen @ 1997-09-21  3:09 UTC (permalink / raw)


Ok; so I want to add a new prefix.  We already have the normal prefix
-- `C-u' and friends, but in some cases we need an additional prefix.

For instance, the `L' command(s) use the numerical prefix to say how
much to lower the score, and that works fine.  But there are
additional common modifications to the behavior of those commands that
would be nice to have.  For instance, if would be nice if I could tap
a prefix key to make the score command result with a score entry in
"all.SCORE" instead of the current score file.

The machanism has to be somewhat general.  I'm thinking along the
lines of `M-C-u b COMMAND' would give COMMAND the symbolic `b' prefix,
which COMMAND is fit to interpret is it chooses, just as the case is
with the numerical prefix.  I'll be adding a new macro to make these
easy to deal with, and things'll look somewhat like this:

(defun gnus-some-function (&optional arg syms)
  (gnus-interactive "P\nG")
  (let ((prefix-p (memq 'a syms)))
    ... ))

"G" would give a list of symbolic prefixes, and "g" would give one;
the first.

In the former case, the user could say `M-C-u a M-C-u b COMMAND'
to give COMMAND both the `a' and `b' prefixes.

Not all that many commands would need these symbolic prefixes, but a
few commands scream out for something like this.  For instance,
`M-C-u a S o m' to forward something with complete headers.

Reactions?  Good?  Bad?  Use some other prefix key?  What?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@ifi.uio.no * Lars Magne Ingebrigtsen


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

* Re: New prefix
  1997-09-21  3:09 New prefix Lars Magne Ingebrigtsen
@ 1997-09-21 13:10 ` Per Abrahamsen
  1997-09-21 16:33   ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Per Abrahamsen @ 1997-09-21 13:10 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@ifi.uio.no> writes:

> For instance, the `L' command(s) use the numerical prefix to say how
> much to lower the score, and that works fine.  But there are
> additional common modifications to the behavior of those commands that
> would be nice to have.  For instance, if would be nice if I could tap
> a prefix key to make the score command result with a score entry in
> "all.SCORE" instead of the current score file.

Actually, I'd much rather get rid of the prefix-as-modifier
functionality, and have `L' and friends obey the process-prefix
convention.  

Instead, I'd like to get a small (widget-based) window or frame for
setting the default values for `L' and `I'.  I think I did part of
this a long time ago for the menu interface, but it would probably
need a window or frame to work really well.


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

* Re: New prefix
  1997-09-21 13:10 ` Per Abrahamsen
@ 1997-09-21 16:33   ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Magne Ingebrigtsen @ 1997-09-21 16:33 UTC (permalink / raw)


Per Abrahamsen <abraham@dina.kvl.dk> writes:

> Instead, I'd like to get a small (widget-based) window or frame for
> setting the default values for `L' and `I'.  I think I did part of
> this a long time ago for the menu interface, but it would probably
> need a window or frame to work really well.

I think this would be nice to have, but I want to be able to type my
way through all commands and now have to widgetize.  We can have
our cake and eat it, too.

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


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

end of thread, other threads:[~1997-09-21 16:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-09-21  3:09 New prefix Lars Magne Ingebrigtsen
1997-09-21 13:10 ` Per Abrahamsen
1997-09-21 16:33   ` 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).