From 442d69bd4c553f4864ff7eea1c42109aa92776e2 Mon Sep 17 00:00:00 2001 From: Daniel Schoepe Date: Tue, 16 Jun 2015 23:47:20 +0200 Subject: [PATCH] [PATCH] Fix documentation for notmuch--tag-hook functions --- ab/1a3b037ec5cd345851773d710afa68c54e58f0 | 101 ++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 ab/1a3b037ec5cd345851773d710afa68c54e58f0 diff --git a/ab/1a3b037ec5cd345851773d710afa68c54e58f0 b/ab/1a3b037ec5cd345851773d710afa68c54e58f0 new file mode 100644 index 000000000..bde23e9cc --- /dev/null +++ b/ab/1a3b037ec5cd345851773d710afa68c54e58f0 @@ -0,0 +1,101 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id A5B076DE0243 + for ; Tue, 16 Jun 2015 14:47:30 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.471 +X-Spam-Level: +X-Spam-Status: No, score=0.471 tagged_above=-999 required=5 tests=[AWL=1.292, + DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + RCVD_IN_DNSWL_LOW=-0.7, 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 VqgnaoZgw6s6 for ; + Tue, 16 Jun 2015 14:47:28 -0700 (PDT) +Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com + [209.85.217.174]) + by arlo.cworth.org (Postfix) with ESMTPS id C47C86DE01F5 + for ; Tue, 16 Jun 2015 14:47:27 -0700 (PDT) +Received: by lblr1 with SMTP id r1so19569935lbl.0 + for ; Tue, 16 Jun 2015 14:47:25 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schoepe.org; s=google; + h=from:to:cc:subject:date:message-id; + bh=y1COqrdUrkrGsUvcVpACszHl2y94sVWDCL2yHhl3UJk=; + b=YQktWp3MBhMKifI2V18utdBrxCq7FMFZOvPvInAB/CA/2I6sWyNFXgROFbOmGxmMFg + E4Ne4L2CSUV8HeIQ5M7tdm5XP/C3YhP7hABwy9b+wKOx3Mk1DIegl1k7nW1EkqeQpNl0 + 8lIAjrT0rQQ0w/KvC9b/XMu8DZt8d6LdNb2w8= +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:from:to:cc:subject:date:message-id; + bh=y1COqrdUrkrGsUvcVpACszHl2y94sVWDCL2yHhl3UJk=; + b=DygcUxzzQLEx0zKDr21JZcwRO7zkdwgxrO+FCJ69ItOfN0lVrG7PJkMNrs+IO3fXXB + oZZj+5+CFYFh4nNRon4oedSAKYKDutESjM5sKCO3k1I/K0IJzGm0CoMGMht9/DoRBZLK + PRAunhsGQkFx7tDyruCOCptsYPMEcF20Sga/YtmNG6+7wj2ytt3b3n10eDVWqDIWuXo+ + TsCheeP7HIoTTNoRahPQhRZVL5VK1xBnS8bb3lPS9E9DnTYLhKdiZQYc3ogFDRhlNuv8 + Z0LySNdQdHnP088qhgQBEnQih3jt6HzoReid2lpCg7YmNFMtdelVH9AjBCiztTb/A27v + avGw== +X-Gm-Message-State: + ALoCoQn/GDeZoKwCEaDzoqoJEmlr8XF9Sm9p33F966TDUy/505+h2C5d6yLaHzQizY92zLQBzzc+ +X-Received: by 10.152.30.34 with SMTP id p2mr4267377lah.89.1434491245272; + Tue, 16 Jun 2015 14:47:25 -0700 (PDT) +Received: from localhost (rd19.odn.sgsnet.se. [46.239.97.207]) + by mx.google.com with ESMTPSA id ox10sm512747lbc.30.2015.06.16.14.47.22 + (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Tue, 16 Jun 2015 14:47:23 -0700 (PDT) +From: Daniel Schoepe +To: notmuch@notmuchmail.org +Subject: [PATCH] Fix documentation for notmuch--tag-hook functions +Date: Tue, 16 Jun 2015 23:47:20 +0200 +Message-Id: <1434491240-31023-1-git-send-email-daniel@schoepe.org> +X-Mailer: git-send-email 2.4.3 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.18 +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: Tue, 16 Jun 2015 21:47:30 -0000 + +The second argument to notmuch-tag is now called tag-changes, but the +documentation for notmuch-before-tag-hook and notmuch-after-tag-hook +still used the old argument name `tags'. This resulted in broken hooks +when following the documentation. +--- + emacs/notmuch-tag.el | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/emacs/notmuch-tag.el b/emacs/notmuch-tag.el +index f54aa9d..c7f62c9 100644 +--- a/emacs/notmuch-tag.el ++++ b/emacs/notmuch-tag.el +@@ -265,7 +265,7 @@ changed (the normal case) are shown using formats from + (defcustom notmuch-before-tag-hook nil + "Hooks that are run before tags of a message are modified. + +-'tags' will contain the tags that are about to be added or removed as ++'tag-changes' will contain the tags that are about to be added or removed as + a list of strings of the form \"+TAG\" or \"-TAG\". + 'query' will be a string containing the search query that determines + the messages that are about to be tagged" +@@ -277,7 +277,7 @@ the messages that are about to be tagged" + (defcustom notmuch-after-tag-hook nil + "Hooks that are run after tags of a message are modified. + +-'tags' will contain the tags that were added or removed as ++'tag-changes' will contain the tags that were added or removed as + a list of strings of the form \"+TAG\" or \"-TAG\". + 'query' will be a string containing the search query that determines + the messages that were tagged" +-- +2.4.3 + -- 2.26.2