Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 09969431FAF for ; Mon, 10 Dec 2012 20:07:55 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id n7HfM+xQAeM3 for ; Mon, 10 Dec 2012 20:07:54 -0800 (PST) Received: from dmz-mailsec-scanner-3.mit.edu (DMZ-MAILSEC-SCANNER-3.MIT.EDU [18.9.25.14]) by olra.theworths.org (Postfix) with ESMTP id 882A2431FAE for ; Mon, 10 Dec 2012 20:07:54 -0800 (PST) X-AuditID: 1209190e-b7f516d0000008e4-9d-50c6b19ad62c Received: from mailhub-auth-2.mit.edu ( [18.7.62.36]) by dmz-mailsec-scanner-3.mit.edu (Symantec Messaging Gateway) with SMTP id 9E.D6.02276.A91B6C05; Mon, 10 Dec 2012 23:07:54 -0500 (EST) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id qBB47rdv003793; Mon, 10 Dec 2012 23:07:54 -0500 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id qBB47qhh017737 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 10 Dec 2012 23:07:53 -0500 (EST) Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.80) (envelope-from ) id 1TiH8K-0003ct-5p; Mon, 10 Dec 2012 23:07:52 -0500 From: Austin Clements To: Mark Walters , notmuch@notmuchmail.org Subject: Re: [PATCH] emacs: show: make RET always toggle parts where plausible In-Reply-To: <1354700480-5170-1-git-send-email-markwalters1009@gmail.com> References: <1354663662-20524-4-git-send-email-markwalters1009@gmail.com> <1354700480-5170-1-git-send-email-markwalters1009@gmail.com> User-Agent: Notmuch/0.14+159~g6895fee (http://notmuchmail.org) Emacs/23.4.1 (i486-pc-linux-gnu) Date: Mon, 10 Dec 2012 23:07:52 -0500 Message-ID: <87obi1nsdj.fsf@awakening.csail.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrAIsWRmVeSWpSXmKPExsUixG6nojtr47EAg02fuSxWz+WxuH5zJrMD k8fOWXfZPZ6tusUcwBTFZZOSmpNZllqkb5fAlbH69m/mgq08FRc2XGFpYJzC1cXIySEhYCLR ffARK4QtJnHh3nq2LkYuDiGBfYwSk+a+YQNJCAlsYJR49TwbInGRSWLavG3MEM4SRolNc3Yx glSxCehLrFg7CWyUiICrxNNvn5lBbGEBP4n/1xrBJnEKeErcOHyOFaK5jVFibc9uoCIODlGB eInZ53xAalgEVCW+NGxlAbF5gc67s3ImlC0ocXLmEzCbWUBL4sa/l0wTGAVmIUnNQpJawMi0 ilE2JbdKNzcxM6c4NVm3ODkxLy+1SNdYLzezRC81pXQTIyggOSX5djB+Pah0iFGAg1GJh7dC 9ViAEGtiWXFl7iFGSQ4mJVFe3+VAIb6k/JTKjMTijPii0pzU4kOMEhzMSiK8pblAOd6UxMqq 1KJ8mJQ0B4uSOO+VlJv+QgLpiSWp2ampBalFMFkZDg4lCd7dG4AaBYtS01Mr0jJzShDSTByc IMN5gIYXgdTwFhck5hZnpkPkTzEqSonzLgNJCIAkMkrz4HphCeMVozjQK8K8PSBVPMBkA9f9 CmgwE9Dgk4KHQQaXJCKkpBoYk4U73qhkXn5k7jFFbME720muG1dMr/Tu+dUzO7LJfOM5AWn+ vY95Zpzl+utY/+67HVtB1rl30SLWexnrSsIuJ7m5K6n052ZzFt/6taZD4fsvVRnznj9PuoP8 3N71TlCccO/6JYUArUXe4XNCWctdpux6/bB9Rd/j113Sy9Z4Lp1rwb0yKjpciaU4I9FQi7mo OBEAZA2Q5PMCAAA= X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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, 11 Dec 2012 04:07:55 -0000 I would just fold this patch in with the rest of the series. This is definitely the right way to toggle. On Wed, 05 Dec 2012, Mark Walters wrote: > This makes RET toggle the visibility of any part which has a component > that can be displayed in the buffer. This included text parts (plain/ > html/ x-tex etc) and images. Parts which cannot be displayed (eg pdf) > RET acts as before and saves/views etc. > > Definite actions can always be accessed with s,v and o (eg v to view a > text/html part in a browser). > > --- > > This is a slight tweak at Jani's suggestion on irc. Applies on top of > the previous series. > > > > emacs/notmuch-show.el | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el > index a4daff8..e319e5c 100644 > --- a/emacs/notmuch-show.el > +++ b/emacs/notmuch-show.el > @@ -2028,7 +2028,7 @@ the user (see `notmuch-show-stash-mlarchive-link-alist')." > (defun notmuch-show-part-button-default (&optional button) > (interactive) > (let ((button (or button (button-at (point))))) > - (if (invisible-p (button-get button 'invisibility-spec)) > + (if (button-get button 'invisibility-spec) > (notmuch-show-toggle-invisible-part-action button) > (notmuch-show-part-button-internal button notmuch-show-part-button-default-action)))) > > -- > 1.7.9.1 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch