Re: command mode?
- To: mutt-users@xxxxxxxx
- Subject: Re: command mode?
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Mon, 29 Sep 2008 13:01:35 -0500
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date :from:to:subject:message-id:references:mime-version:content-type :in-reply-to; s=default; bh=cniBKXncarhyt2L22J1y0Z0Pet4=; b=k09Z 5Ya6rMsszH0YL+rOhA0HamLgt4Qtm9NGLJz0eYRvnh7SUSnzdeDxaZF53sZ7Ij3k 6jSmu05svi2x+ihQhJUq7FeJX3QERcPwYCG28qQwzCcruc6aPsGHrbuPQZjl160B yeBYtW1b8LZXtRMCnZZzefKwVqNcwyPgRmBKwNs=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=EI+ESM7FOSs9lUk4e4oaAGQQ5Za9AzgmiJCG5yUSzkGVhR+9wzsZSjyztxNwwkL28MABQvbKT3O7TJl2c6tkr1s3iQcy5/okALnt0BSaBk3zLjKb30swIShQgDERTkqTs0pTFuVmhngQ2mPnFENOQI5VaAoEtms4jRLyxVCdIZQ=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <20080928231348.GA15059@xxxxxxxxxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
- References: <20080928144303.GD7776@b2j> <20080928193820.GA4046@xxxxxxxxxxxxxxxxxxxxxxxx> <20080928194802.GU32480@xxxxxxxxxxxxx> <20080928231348.GA15059@xxxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.18 (2008-08-31)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday, September 29 at 01:13 AM, quoth Nicolas Rachinsky:
>> 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?
Ah! You're absolutely right. Weird. I would have expected that
push <display-message>
exec change-folder
would not produce the exact same behavior as
exec display-message
exec change-folder
... but I just tested it, and they're exactly the same.
I guess the *real* difference is that "exec" protects against typos by
checking to make sure that the argument you give it really is a
function. For example, the following two lines are NOT equivalent:
push <enter> # this works fine
exec enter # this produces an error
And *that* one I tested before spouting off. :)
~Kyle
- --
Power always thinks it has a great soul and vast views beyond the
comprehension of the weak; and that it is doing God's service when it
is violating all his laws.
-- John Adams
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAkjhF/8ACgkQBkIOoMqOI16CGwCffGljVMxvprMg/5MSZY5iQ29f
AOUAn3ROkEVH+RTfu5plpK2sqB+IPvds
=69VU
-----END PGP SIGNATURE-----