From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 118255255552 X-Google-Groups: supmua X-Google-Thread: 3030fda1bf,de37ab03d5293e7 X-Google-Attributes: gid3030fda1bf,domainid0,public,googlegroup X-Google-NewGroupId: yes X-Received: by 10.112.144.102 with SMTP id sl6mr1118017lbb.3.1411071853766; Thu, 18 Sep 2014 13:24:13 -0700 (PDT) X-BeenThere: supmua@googlegroups.com Received: by 10.152.206.72 with SMTP id lm8ls279536lac.9.gmail; Thu, 18 Sep 2014 13:24:13 -0700 (PDT) X-Received: by 10.112.167.165 with SMTP id zp5mr997989lbb.9.1411071853190; Thu, 18 Sep 2014 13:24:13 -0700 (PDT) Return-Path: Received: from mout.web.de (mout.web.de. [212.227.17.12]) by gmr-mx.google.com with ESMTPS id b6si139902lbd.1.2014.09.18.13.24.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Sep 2014 13:24:13 -0700 (PDT) Received-SPF: pass (google.com: domain of ruthard.baudach@web.de designates 212.227.17.12 as permitted sender) client-ip=212.227.17.12; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ruthard.baudach@web.de designates 212.227.17.12 as permitted sender) smtp.mail=ruthard.baudach@web.de Received: from localhost ([188.98.5.84]) by smtp.web.de (mrweb102) with ESMTPSA (Nemesis) id 0MhDkj-1XhgfF2Vaj-00MOW1 for ; Thu, 18 Sep 2014 22:24:12 +0200 From: Ruthard Baudach To: supmua Subject: Re: how to write interactive hook In-reply-to: <1410717805-sup-9254@ruthard-lappi> References: <1410717805-sup-9254@ruthard-lappi> Date: Thu, 18 Sep 2014 22:15:00 +0200 Message-Id: <1411071274-sup-3080@ruthard-lappi> User-Agent: Sup/0.19.0 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=-1411071303-668658-14830-9418-1-=" X-Provags-ID: V03:K0:9cHw0hg7rl2fFbFaBlyhQRw07e4Fmjx8frvWJNWA4TAYvU/8F6s tGoUxduv5b6RDD7HWcUkY1cM40evlhYt3Aeuno0l1xN4AmzAYOEgB8UU1lih94BGTTsu9xZ Lu/VQpikTigvaQ4FLejcD/p/Z70na4NmO0pz+BK3yk3ZRcISHPCW+bbxF/SeFGRfX5WRT10 2pWhI+KL76mRigEgtjW6A== X-UI-Out-Filterresults: notjunk:1; --=-1411071303-668658-14830-9418-1-= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dear list, I put together the following minimal hook: ------------>%------------- # signature.rb -- generate signature signature =3D BufferManager.ask_many_with_completions :sign, "Choose sign= ature: ", ["One","Two","Three"] 'Signature: ' + signature ------------>%------------- Works, but the hook seems to be called =E2=80=93 or at least ask_many_with_completions asks when 1) sup enters compose mode 2) sup calls the external editor 3)4) two times when sup regains control =E2=80=93 only the second answer = is attached to compose-mode text 5) after initializing sendmail by hitting y So I have to choose the signature 5 times! Has anybody an idea about that? Greetings, Ruthard -- = Signature: Two --=-1411071303-668658-14830-9418-1-= Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJUGz1HAAoJEA852hysWsbCq/YIAKySUFqlcUxq8HuM4hkwdrXN VSFLi3bdE6ry8EO0BRHvmNe9RIY4xAiDuaavFeb+PMJ4M2vCjt/AjiAc2kQLaMWY r9grn6aayuq2w6xkgCt05c12KBf9pWr408521ksTFGKEjIvErrUSxteVp6Azix9R cLIcqTlV4ySf087RbGmt/EC/x2vkVHkxBVWz3+GDH876gx2PKk7oSC/cIXFep9BZ d85wpwToIb/OtydoZNpftZF1TsisMsMsN9EgIRNh49KnkAOXwMIEWLl3m9gwDukD ZcgRwxZNavgMseEHB1xOs4Jry8Q720NeAJkZkrXIodIR+6WDtdg2XkywZwf/idg= =oxJ1 -----END PGP SIGNATURE----- --=-1411071303-668658-14830-9418-1-=--