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 7121E6DE1063 for ; Sat, 16 Feb 2019 12:27:34 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -15.815 X-Spam-Level: X-Spam-Status: No, score=-15.815 tagged_above=-999 required=5 tests=[AWL=-0.117, DKIMWL_WL_MED=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] 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 gpn2r6jmxtLN for ; Sat, 16 Feb 2019 12:27:33 -0800 (PST) Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by arlo.cworth.org (Postfix) with ESMTPS id 4CF8E6DE0EDB for ; Sat, 16 Feb 2019 12:27:33 -0800 (PST) Received: by mail-pg1-f195.google.com with SMTP id q206so6473012pgq.4 for ; Sat, 16 Feb 2019 12:27:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=ixLydjPoJsMUxXnM/XdFQeA4qDxKH5fhSUdNnUdWfkU=; b=s8V/JMIro14PFwIO9adWOFi8mNzt8uCJoHHD5oLuyuUbvT/PSypAzzOMtpeHUBUqLk YKpTDWPVhX9UFufcZaiTHTEAypFmADppYsYa80imPq6dblD5wnHBONcTO2ZfRG10E+zu lhR+U6jTvrGbaknLEHgpBPh7XpVvfN9q9HzN1KggtBJkbU8MKroYgqPcovZHGvj2RzjA d5btudgttSkXOTyyuYy08KmHvzCnH3EFWqGWhiUxaBAJBCRrjZ4rFENAGhyiqXhQQ9zQ 7Rl3QRoQeXsHcFeL0dBqmyEFXMCFt/5mB43072HTocXCzncw85WdIPOgD9QNFjyaybST 60gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=ixLydjPoJsMUxXnM/XdFQeA4qDxKH5fhSUdNnUdWfkU=; b=CfTFv+QmVL7OXb+K9319NH4DzF1LCWz1LOWwZ05gQNrnNjh5XMCfvqKruEaTG2q/7Z x/G+dnsvMXk7HMBti7r0y/kVEKOuDbmX5FSKXKOCO9n71wmUIUCq4GzWqJeoO2/pz5xJ b6iX/jz3R9lxYoIzJEQ1QoGwDe5hMYkyVatQR3znjCecLifQ+JBNqTERlik3gb4JVpbb bDYqJ5e/xVL+uhxf35s3+Q+Lwc9uhtl7jm1eZ1ykhn0Pet2W0tN67E7dMuCwpDx8Qqom 0JB4AyTpHcqwWZLneTgs8/VO/Tn4kB+11CdYXJNI6fg2F0y7Ie1/KnZoZLuDOr7d+OqS AG2Q== X-Gm-Message-State: AHQUAuY48ZTDo+KFM1H2xTVqQ4gYLT3EdrLV5nuyTHztJI6QTd7QtNMu aRO+QF3npdaKDwUjx899TBtALDBKZho= X-Google-Smtp-Source: AHgI3IZmACfusanfOTbXK0TyX0UtjneSIUcCMQ0FIFzlAUTENIxSlo1QjbQax96njA8qTwaIUceGGQ== X-Received: by 2002:a63:fc49:: with SMTP id r9mr11211933pgk.209.1550348852395; Sat, 16 Feb 2019 12:27:32 -0800 (PST) Received: from naz.kir.corp.google.com ([2620:0:1008:11:1808:d974:65ca:bcbe]) by smtp.gmail.com with ESMTPSA id b12sm14182367pfb.30.2019.02.16.12.27.31 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 16 Feb 2019 12:27:31 -0800 (PST) From: Matt Armstrong To: notmuch@notmuchmail.org Subject: [PATCH 1/1] Emacs: bind "g" to 'notuch-refresh-this-buffer Date: Sat, 16 Feb 2019 12:27:30 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 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: Sat, 16 Feb 2019 20:27:34 -0000 Using "g" for refresh operations is a pretty common Emacs convention, codified by `special-mode' in simple.el. --- doc/notmuch-emacs.rst | 9 +++++++++ emacs/notmuch-lib.el | 1 + 2 files changed, 10 insertions(+) diff --git a/doc/notmuch-emacs.rst b/doc/notmuch-emacs.rst index 2e85b8a5..0df46df9 100644 --- a/doc/notmuch-emacs.rst +++ b/doc/notmuch-emacs.rst @@ -62,6 +62,7 @@ notmuch-hello key bindings ```` Activate the current widget. +``g`` ``=`` Refresh the buffer; mainly update the counts of messages for various saved searches. @@ -159,6 +160,10 @@ menu of results that the user can explore further by pressing ```` Open thread on current line in :ref:`notmuch-show` mode +``g`` +``=`` + Refresh the buffer + ``?`` Display full set of key bindings @@ -296,6 +301,10 @@ tags. ``p`` Move to previous matching message +``g`` +``=`` + Refresh the buffer + ``?`` Display full set of key bindings diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index 25d83fd6..8cf7261e 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -155,6 +155,7 @@ For example, if you wanted to remove an \"inbox\" tag and add an (define-key map "s" 'notmuch-search) (define-key map "z" 'notmuch-tree) (define-key map "m" 'notmuch-mua-new-mail) + (define-key map "g" 'notmuch-refresh-this-buffer) (define-key map "=" 'notmuch-refresh-this-buffer) (define-key map (kbd "M-=") 'notmuch-refresh-all-buffers) (define-key map "G" 'notmuch-poll-and-refresh-this-buffer) -- 2.21.0.rc0.258.g878e2cd30e-goog