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 4E7196DE0F50 for ; Tue, 12 Feb 2019 21:05:27 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -15.785 X-Spam-Level: X-Spam-Status: No, score=-15.785 tagged_above=-999 required=5 tests=[AWL=-0.084, 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_H2=-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 FfnobFNNV7OS for ; Tue, 12 Feb 2019 21:05:25 -0800 (PST) Received: from mail-it1-f170.google.com (mail-it1-f170.google.com [209.85.166.170]) by arlo.cworth.org (Postfix) with ESMTPS id C58E96DE0E7F for ; Tue, 12 Feb 2019 21:05:25 -0800 (PST) Received: by mail-it1-f170.google.com with SMTP id p4so905645itc.4 for ; Tue, 12 Feb 2019 21:05:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=+wnnFQJX9zeDnfa7z8SUKThlRLMykHdkCs91CMzVGnI=; b=mjpMU+rp2E2tG2RC0vGwhNfol+p+9U3uhNqtbg2YwlR4r67pZ3F2sOvdel8MUKdukt TCBgM3qxp9ban3uLQG1rm3wQv0chFpHyoVIoQ/J7quwUV15ek87rVs1lgzLTCTtRvrf7 AGCky8GyEcYGjb6HONkx+5oV+yiSV7Evz2OVnbenNWDY0U9X1dymR/scDGTiMKUX3wYg T9ovqWJz+uXGnG7IPBdHEhf2MMAr2fRt0sQMRRHiCYCS45oNgiIFOaSc+TAvkMmv12Ka 2bDFLXPMSBmtSfgSG5bVmslq3J0FvLuVFhANmg0z2u1N77Zt7RzMt0lpfHHX0aFqBVX3 zb6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=+wnnFQJX9zeDnfa7z8SUKThlRLMykHdkCs91CMzVGnI=; b=NZ5/ezd6aUvDpOudf8OEL2rWP4wpjSeINHZVNwAVv+ngDGvKlrCeCZi8tDwqogepdf ebEhBuClFxrmmhNA2TrwMGQy09p8uGFOd6tt4CH4Vf/gVjjV/Cm+kiVqhiSBS8lwMufr WUuHMWHhIJwyzdcpFXEdo9qPtFksfAJPjfiqv2nK25ADY2+P+N1tqkpk78WBpwRaYvXX muFdGurv7Hbj4JyNuicsP6EtivAvOSQlNT0wQ4HnFHvHLoJWH8SsY0H7pboEWgN2xrWT u1lD9yUvp95SlZuXlfPcscCgZ9O3KygRipWXvg+r/0/GePSOlqQEfHRK4Iy5OBUev7aK HMvQ== X-Gm-Message-State: AHQUAuYs7yn5884E+65/6OCuk0p5RqFgoWxICscJpQkyyNZSUp5ptPkI MWCBspPsKtnzhpqK5mMXQzJixp4GEDFEdSl18OS0WkkJWdM= X-Google-Smtp-Source: AHgI3Ia5H3oJNFusfFD5cMpsj1qlab2jCDmxTog8Kbh1OLChWhECII0dgm7YF/J99srzbBqCedUkmRqfEzltLQpZOuE= X-Received: by 2002:a24:d1c4:: with SMTP id w187mr1197836itg.141.1550034322219; Tue, 12 Feb 2019 21:05:22 -0800 (PST) MIME-Version: 1.0 From: Matt Armstrong Date: Tue, 12 Feb 2019 21:04:56 -0800 Message-ID: Subject: Emacs and the missing 'g' To: Notmuch Mail Content-Type: text/plain; charset="UTF-8" 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: Wed, 13 Feb 2019 05:05:27 -0000 I'm returning to notmuch after a hiatus. It is still nice! First thing I've noticed: the Emacs modes seem to ignore the 'g' key. I would like to bind it (by default) to the relevant "refresh" commands. I'll explain. notmuch-hello mode leaves 'b' bound to self-insert-command, and notmuch-search mode does as well. Most notmuch modes are "special" modes -- i.e. their text is generated by Emacs and does not reflect a file. In these modes 'g' has traditionally been bound to revert the buffer [1]. You see this across many modes: dired, vc, gnus, etc. I was actually going to report this as a bug until I realized that notmuch consistently uses '=' for the same thing. Any objection to also binding 'g'? For context, here is the list of other bindings in a "special" mode (from Emacs' simple.el). Notmuch already follows some of these (such as <, > and q). SPC scroll-up-command - negative-argument 0 .. 9 digit-argument < beginning-of-buffer > end-of-buffer ? describe-mode g revert-buffer h describe-mode q quit-window DEL scroll-down-command S-SPC scroll-down-command [1] (elisp) Basic Major Modes