command mode?

2008-09-28 Thread bill lam
Hello,
There are some unbound functions at the bottom of the help page ? eg,
query delete-thread, However when I type 
 :query
It said unknown command, How to execute these commands without binding
them to shortcut keys? 
Also commands like set aaa= seems working, but how to do things
like,
:set aaa?
:echo $bbb

Or does mutt has a command mode similar to that in vi/vim?

TIA
-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: command mode?

2008-09-28 Thread Michael Kjorling
On 28 Sep 2008 22:43 +0800, by [EMAIL PROTECTED] (bill lam):
 There are some unbound functions at the bottom of the help page ? eg,
 query delete-thread, However when I type 
  :query
 It said unknown command, How to execute these commands without binding

:push query

Works for me.

-- 
Michael Kjörling .. [EMAIL PROTECTED] .. http://michael.kjorling.se
* . No bird soars too high if he soars with his own wings . *
* ENCRYPTED email preferred -- OpenPGP key ID: 0x 758F8749 BDE9ADA6 *
* ASCII Ribbon Campaign: Against HTML mail, proprietary attachments *



signature.asc
Description: Digital signature


Re: command mode?

2008-09-28 Thread bill lam
On Sun, 28 Sep 2008, Michael Kjorling wrote:
 :push query
Thank you for quick response. I see the syntax is to type
:push first.  memo

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: command mode?

2008-09-28 Thread David Champion
 On Sun, 28 Sep 2008, Michael Kjorling wrote:
  :push query
 Thank you for quick response. I see the syntax is to type
 :push first.  memo

Right.  These symbols from the help screen are names of key bindings.
Commands are different; they're what you putt in muttrc or after
pressing the : key (the enter-command keybinding).

The push command is the inverse of enter-command.  Enter-command
lets you initiate a command by pressing a key (:).  push lets you
enter keystrokes (or bindings) by entering a command.

When you push keystrokes, you can use either literal letters, numbers,
etc., or you can use binding names.  Binding names are always inside
angle-brackets, with no spaces.  Keys substitude for the bindings
they're bound to, but binding names can be used whether or not they're
bound to a key.

In other words, push arguments work the same way as macros definitions
do.

-- 
 -D.[EMAIL PROTECTED]NSITUniversity of Chicago


Re: command mode?

2008-09-28 Thread Gary Johnson
On 2008-09-28, bill lam [EMAIL PROTECTED] wrote:
 Hello,
 There are some unbound functions at the bottom of the help page ? eg,
 query delete-thread, However when I type 
  :query
 It said unknown command, How to execute these commands without binding
 them to shortcut keys? 

In addition to using

   :push query

you can also use

   :exec query

I don't remember the difference, if any other than the syntax, 
off-hand.

 Also commands like set aaa= seems working, but how to do things
 like,
 :set aaa?
 :echo $bbb
 
 Or does mutt has a command mode similar to that in vi/vim?

You can query the value of a variable by preceding its name with a 
question mark in the set command, like this,

   :set ?pager

or by starting a set command, then typing a tab after the equals 
sign.  For example, type this,

   :set pager=

then hit tab.  Note that mutt has variable-name-completion on the 
command line, too.  Just type the first few characters of the 
variable name, then tab.  If there is more than one match, 
successive tabs will cycle through the alternatives.

Regards,
Gary



Re: command mode?

2008-09-28 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sunday, September 28 at 12:38 PM, quoth Gary Johnson:
In addition to using

   :push query

you can also use

   :exec query

I don't remember the difference, if any other than the syntax, 
off-hand.

The difference is *when* the command gets executed. With exec, the 
function is executed immediately. With push, it is executed the next 
time mutt goes into its idle loop (for lack of a better term).

For example, if you're calling those functions from a send-hook, using 
exec triggers whatever it is to be performed immediately, while push 
triggers whatever it is to be performed after all the hooks have 
finished.

~Kyle
- -- 
Selfishness is not living as one wishes to live, it is asking others 
to live as one wishes to live.
 -- Oscar Wilde
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iEYEARECAAYFAkjf33IACgkQBkIOoMqOI16qPACfV2MQEGHvksxaUO6ST4RO2vSL
Xv4AoLpwm6Xk3f4xVhZcGg3kEFMWZhcu
=o8Sf
-END PGP SIGNATURE-


Re: command mode?

2008-09-28 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sunday, September 28 at 10:43 PM, quoth bill lam:
Also commands like set aaa= seems working, but how to do things
like,
:set aaa?
:echo $bbb

In both cases, I think what you're looking for is this:

 :set ?aaa

~Kyle
- -- 
Necessity is the plea for every infringement of human liberty; it is 
the argument of tyrants; it is the creed of slaves.
-- William Pitt
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iEYEARECAAYFAkjf3tcACgkQBkIOoMqOI1740ACfUzD+09Z153v7ZyfQuuaUoIO1
ZyQAoNYkiI8j5tQEI6lDup+3GwnjJwz+
=/uB2
-END PGP SIGNATURE-


Re: command mode?

2008-09-28 Thread Nicolas Rachinsky
* Kyle Wheeler [EMAIL PROTECTED] [2008-09-28 14:48 -0500]:
 I don't remember the difference, if any other than the syntax, 
 off-hand.
 
 The difference is *when* the command gets executed. With exec, the 
 function is executed immediately. With push, it is executed the next 
 time mutt goes into its idle loop (for lack of a better term).

Are you sure about this difference? Do you have any example where you
can notice it?

I think they behave in the same way, at least as I read manual.txt and
a short glance over the code seems to confirm this.

Nicolas
-- 
http://www.rachinsky.de/nicolas