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 ACC696DE3D44 for ; Wed, 21 Mar 2018 14:21:33 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.12 X-Spam-Level: X-Spam-Status: No, score=-0.12 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] 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 HnOp-7V95XJc for ; Wed, 21 Mar 2018 14:21:28 -0700 (PDT) Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by arlo.cworth.org (Postfix) with ESMTPS id F0BE96DE3C53 for ; Wed, 21 Mar 2018 14:21:23 -0700 (PDT) Received: by mail-wm0-f52.google.com with SMTP id r82so12482020wme.0 for ; Wed, 21 Mar 2018 14:21:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xuCrDPTWoo5DxGHj/QMs+SOXbSmGKUrqN7jiaH0ZFk4=; b=mzX/cYuBoIrBoTRixJ6e4Xe2ki16YgijMZwYUErhcG46jo4Dczl2q0w9wO9VUa4EMk Zm4psa69ZmEIfER9mMw3dB3d4iLYZBEKjh/1l8IM7+Jo8BEAhohvrsAcZOj4PvdaaE9Q pGzDZJG3FtoJBidkIijV2mqz8ix1Jl8mO9oJEQWvt9W/xthV68d+OHLL+OqvmeNfousP I7bfsAaQPCTBNk+VFd0KA0aBtX6nSiEvpVnTXPOnngm9HeNDsaFeG+y8K+A2peg8tN+b OTQbLEwRlRek2qC21y3ATiXetYQLnrwyS2rZU+Xmpy9VG3fXKoplFau0OE/jY2ca9tw/ WBJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xuCrDPTWoo5DxGHj/QMs+SOXbSmGKUrqN7jiaH0ZFk4=; b=WwIw5RjarskOp5rhUGH63vlCinZFy+PIlBhm4CIgO+uxfd2etAlchCL8QRhHWuMCUO w95Y4LHV+gYl4AQ+ZpC/64FquQR7T65k937JhtK9aKhTwsX2GIjFoqtF4UwxbRFIltk5 6BboUpSOAdXg0WUWZkL1lti87+zKqVRxGJZbeMM7w4zemqIV/FIQYv8dW6XVBL8sysRI 77cMchLnbs13bNOpZRLiwAp2dkfURLr2XNqoj4cg/ux48PCX7T4d2CPlosH42VuaEjb0 CeMuTkWlfCauPhf7H82Pilub+9Ml1I3A67yp14COgoA4lMHw30rIxtyIxDGtEh0sDYae mKmA== X-Gm-Message-State: AElRT7FpSx7fqO4bGeThOOPwx6HV7Nv1TGOCmdJPoN1uYfhPMQP+8gGW wFVaTe/e8rNLe8L5GJzatbYK7A== X-Google-Smtp-Source: AG47ELu8SIkzVBOPWlLO/gcDUKkdCNpt0tXP9xh+5yFKp57yvVZFMFvvn59GZ09zLJwIXIFe8qWIEw== X-Received: by 10.80.186.71 with SMTP id 7mr16180820eds.221.1521667275555; Wed, 21 Mar 2018 14:21:15 -0700 (PDT) Received: from lenovo (net-47-53-113-34.cust.vodafonedsl.it. [47.53.113.34]) by smtp.gmail.com with ESMTPSA id n30sm3051936edd.45.2018.03.21.14.21.14 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Mar 2018 14:21:14 -0700 (PDT) From: anothersms@gmail.com (=?utf-8?Q?Nicol=C3=B2?= Balzarotti) To: notmuch@notmuchmail.org Cc: Subject: notmuch-search-get-tags unique candidates Date: Wed, 21 Mar 2018 22:21:12 +0100 Message-ID: <5gfu4tp1kn.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.26 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: Wed, 21 Mar 2018 21:21:33 -0000 Hi, I'm using notmuch with emacs and I'm loving it. One thing I don't like is that in `notmuch-search`, when applying a tag to a selection the tab completition return multiple copies of the same tag. Example: > -inbox > -lists/aaa > -lists > -inbox > -lists/aaa > -lists I changed `notmuch-search-get-tags-region` to: ```(defun notmuch-search-get-tags-region (beg end) (let (output) (notmuch-search-foreach-result beg end (lambda (pos) (setq output (append output (notmuch-search-get-tags pos))))) (delete-dups output)));; add delete-dups before returning ``` Why is the current one the default behavior?=20 Thanks, Nicol=C3=B2