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.180.24.70 with SMTP id s6mr1296812wif.3.1411074647335; Thu, 18 Sep 2014 14:10:47 -0700 (PDT) X-BeenThere: supmua@googlegroups.com Received: by 10.180.88.72 with SMTP id be8ls10144wib.5.canary; Thu, 18 Sep 2014 14:10:46 -0700 (PDT) X-Received: by 10.194.100.3 with SMTP id eu3mr5077wjb.6.1411074646938; Thu, 18 Sep 2014 14:10:46 -0700 (PDT) Return-Path: Received: from mail-la0-f48.google.com (mail-la0-f48.google.com [209.85.215.48]) by gmr-mx.google.com with ESMTPS id fa3si154460lbc.0.2014.09.18.14.10.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Sep 2014 14:10:46 -0700 (PDT) Received-SPF: none (google.com: eg@gaute.vetsj.com does not designate permitted sender hosts) client-ip=209.85.215.48; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: eg@gaute.vetsj.com does not designate permitted sender hosts) smtp.mail=eg@gaute.vetsj.com Received: by mail-la0-f48.google.com with SMTP id ty20so1999562lab.35 for ; Thu, 18 Sep 2014 14:10:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:subject:to:references:in-reply-to :user-agent:message-id:mime-version:content-type :content-transfer-encoding; bh=EjI1rpb+WhlCfi5bfweQKR4E4OsuaIFP6IybE2/evvI=; b=YW5MlDO6QNFX2nYyKXhrr4a/1HIifFCO9uMuZvGzxerGwQjTnfOjVdabVv/XqJ+AEl ihM1MZ4NCJP7yGA11bdkv3en7i3HSVn/nZ82ccuYYTxz9PuSkmnq+exANn2QbWhAVfDH Vki+J6SjLNqgu5f7BLgsa1Tq1uQAm2ZRD5r1qTpItWOY2/cs+dIIo1zABVetBPrkFPGV g3Dvv6Aes/Z/RoJgyUtyzpDdno+zc09dTb+CHp+GL7+/MVTya3+OkJvZRvcwbFlSEjZI 0n1YnZc4bp7hEwIaquO6oSu7LopVCTHZwzsJNLChZ36DB0KNkCTj2mJ8xY2wNvtrzero FTaw== X-Gm-Message-State: ALoCoQnj5G5zJgObi4pw+cH+fh9l3ZDYFHCkxuyQ/GDId3yBFF/mTP2EGg0gzzMet0CHi9485GY+ X-Received: by 10.112.25.65 with SMTP id a1mr2124867lbg.85.1411074646625; Thu, 18 Sep 2014 14:10:46 -0700 (PDT) Return-Path: Received: from localhost (cD572BF51.dhcp.as2116.net. [81.191.114.213]) by mx.google.com with ESMTPSA id kw10sm561303lbc.17.2014.09.18.14.10.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Sep 2014 14:10:45 -0700 (PDT) Date: Thu, 18 Sep 2014 21:10:43 +0000 From: Gaute Hope Subject: Re: [sup] Re: how to write interactive hook To: supmua@googlegroups.com, Ruthard Baudach References: <1410717805-sup-9254@ruthard-lappi> <1411071274-sup-3080@ruthard-lappi> In-Reply-To: <1411071274-sup-3080@ruthard-lappi> User-Agent: astroid/v79e85a0b (https://github.com/gauteh/astroid) Message-Id: <1411074468-astroid-3-ptv2hfgu1x-1239@strange> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Excerpts from Ruthard Baudach's message of September 18, 2014 22:15: > Works, but the hook seems to be called =E2=80=93 or at least > ask_many_with_completions asks when >=20 > 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 It is probably called every time the message needs to be generated. If you could figure out a way to save the state for the message then you could just return the previously selected one on the subsequent calls. - gaute =20 =