From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 65CD66DE1329 for ; Thu, 21 Dec 2017 10:20:33 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.021 X-Spam-Level: X-Spam-Status: No, score=-0.021 tagged_above=-999 required=5 tests=[AWL=-0.031, T_SPF_TEMPERROR=0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iBuUC9WfNkcj for ; Thu, 21 Dec 2017 10:20:29 -0800 (PST) Received: from che.mayfirst.org (che.mayfirst.org [162.247.75.118]) by arlo.cworth.org (Postfix) with ESMTPS id 73C1F6DE1310 for ; Thu, 21 Dec 2017 10:20:24 -0800 (PST) Received: from fifthhorseman.net (unknown [38.109.115.130]) by che.mayfirst.org (Postfix) with ESMTPSA id A18A4F99B; Thu, 21 Dec 2017 13:20:23 -0500 (EST) Received: by fifthhorseman.net (Postfix, from userid 1000) id CDBF120739; Thu, 21 Dec 2017 12:40:13 -0500 (EST) From: Daniel Kahn Gillmor To: Tomas Nordin , Alex Abdo , Notmuch Mail Subject: Re: Notmuch Emacs: tab completion for tags in Fcc: In-Reply-To: <873744xjh7.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> References: <1937B10E-68A6-4F49-9C9C-7AB61C196891@alexabdo.com> <873744xjh7.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> Date: Thu, 21 Dec 2017 12:40:10 -0500 Message-ID: <87efnokmit.fsf@fifthhorseman.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Dec 2017 18:20:33 -0000 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Thu 2017-12-21 15:07:32 +0100, Tomas Nordin wrote: > Alex Abdo writes: >> One small suggestion for Notmuch Emacs: it would be nice if there were=20 >> tab completion for tags (and, if possible, folders) in the Fcc header=20 >> when composing messages in Emacs. >> >> There is already tab completion for tags in a number of other places,=20 >> but for some reason, there isn=E2=80=99t tab completion in the Fcc heade= r. > > The reason is maybe that this place don't often vary much. But there is > a configuration variable for this, notmuch-fcc-dirs, which see. Put > point in the beginning of the variable name here and say C-h v. > > I have it set like this: > > (setq notmuch-fcc-dirs > '(("tomasn@kth\\.se" . "kth/Sent") > ("tom\\(asn\\|nor\\)@posteo\\.\\(net\\|de\\)" . "posteo/Sent"))) > > A list of (regex . folder), and depending on the address I am sending > from I get a copy in the specified folder. I would probably find it > annoying if I had to write it each time, even with tab completion. I don't think Alex is asking about tab completion of nomtuch-fcc-dirs itself -- he's talking about tab completion during message composition of the Fcc: header line. So that would be the equivalent of tab-completing "kth/Sent" or "posteo/Sent" in your examples above, and including in that tab completion values from the set of known tags if the user is tabbing after having entered a "+" or "-" symbol. Alex, please correct me if i've confused anything about your feature request. --dkg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEDuW+l5KC2AufdUDxzNLtlNIXOekFAlo78fsACgkQzNLtlNIX OelasQ/9GqI1d3y++EMKTJdgpfgoQM4KdAZzqEbo8Qaw4Mg37JvqMpbLnVy7TnPW YwFeEvj9OQa+KeeUIM6NNBjAu5LQkhT8WOIuUX1U6lgrlXvjsXc4Sts/SH7KX52G SbBySQ82hRcotweJL+qlL1WM4w8RsggyWD9Dd5XLkGhTjy1tlKyUSbesVQqeJRay 6ggKsKoi974dkMh6tQxr3wJKrbxVJcnUJtQ9dZxFYHO3ZNTw0m35+4jBCoXh8ril 3rtRRUG7b2D8DwpE2/fjw/RTwekGEcy9yigQ2WYGpWH04W5B08Y1BLjJ2F+gVrTK yv76CmKU5EQYu4SAu/3lBtM8Vuyc7jpqMdJ0fHTVy/FgpiSpts3h5GDSfceCSMJx eBHNiWFEEUoblhSCyHZDWlIFVddOGVlJsiamJub4/1PKaL+JPDfHxt4uNCsxMTtu piioj9afb/ZM1TjR5niulN8+dZeKy2QnmOKJmuzdN0ttaC2/LmJd6zgFuPfExexx 4AUfs3Iyn5WyxB5CZVZ3aJR+epX81PlEOaqwLHM56VKjRi1wo/1bm0Mai+DfG6B/ 2TVZ2KwUrbgGXsjXqjynCVKiyl0QRNSpL2T+suEde8nrybhfSAgNVlZL2ElYrSIy wVd1mybVJSOOjK0ne6RqSMOGBY7tMJrOMy3nWYTgYbWy6n8cRdE= =ebg4 -----END PGP SIGNATURE----- --=-=-=--