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 1B30F431FBC for ; Fri, 27 Jan 2012 02:29:07 -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 GHzEG2VsVOPO for ; Fri, 27 Jan 2012 02:29:06 -0800 (PST) Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 639DF431FB6 for ; Fri, 27 Jan 2012 02:29:06 -0800 (PST) Received: by wgbdt12 with SMTP id dt12so1426306wgb.2 for ; Fri, 27 Jan 2012 02:29:05 -0800 (PST) Received: by 10.180.78.233 with SMTP id e9mr9164490wix.0.1327660145147; Fri, 27 Jan 2012 02:29:05 -0800 (PST) Received: from hotblack-desiato.hh.sledj.net (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25]) by mx.google.com with ESMTPS id di5sm21854237wib.3.2012.01.27.02.29.02 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 Jan 2012 02:29:03 -0800 (PST) Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000) id 72F74A0363; Fri, 27 Jan 2012 10:29:01 +0000 (GMT) To: Mark Walters , notmuch@notmuchmail.org Subject: Re: [PATCH 3/3] emacs: Prefer '[No Subject]' to blank subjects. In-Reply-To: <874nvh5tro.fsf@qmul.ac.uk> References: <1327496913-4946-1-git-send-email-dme@dme.org> <1327499314-7887-1-git-send-email-dme@dme.org> <1327499314-7887-4-git-send-email-dme@dme.org> <874nvh5tro.fsf@qmul.ac.uk> User-Agent: Notmuch/0.11+122~g97bdcf6 (http://notmuchmail.org) Emacs/24.0.92.1 (x86_64-pc-linux-gnu) From: David Edmondson Date: Fri, 27 Jan 2012 10:28:56 +0000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" 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: Fri, 27 Jan 2012 10:29:07 -0000 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 27 Jan 2012 10:23:07 +0000, Mark Walters wro= te: > I am very much not a lisp expert Me neither, so please do continue to review stuff. > The patch 1/3 seems to set the show buffer line to *[No Subject]* where > it used to be just [No Subject]. (I have no preference: I just wasn't > sure if that was intentional. There was inconsistency before, now the buffer name always has the surrounding *s. > Patch 3/3: > > diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el > > index e6a5b31..c602b3e 100644 > > --- a/emacs/notmuch-show.el > > +++ b/emacs/notmuch-show.el > > @@ -985,7 +985,7 @@ buffer." > > (notmuch-show-next-open-message)) > >=20=20 > > ;; Set the header line to the subject of the first open message. > > - (setq header-line-format (notmuch-show-strip-re (notmuch-show-get-= subject))) > > + (setq header-line-format (notmuch-show-strip-re (notmuch-show-get-= pretty-subject))) > >=20=20 > > (notmuch-show-mark-read))) > >=20=20 > > @@ -1216,6 +1216,9 @@ Some useful entries are: > > (defun notmuch-show-get-depth () > > (notmuch-show-get-prop :depth)) > >=20=20 > > +(defun notmuch-show-get-pretty-subject () > > + (notmuch-prettify-subject (notmuch-show-get-subject))) > > + > > (defun notmuch-show-set-tags (tags) > > "Set the tags of the current message." > > (notmuch-show-set-prop :tags tags) >=20 > As far as I can see notmuch-show-get-pretty-subject is only called once > so I wondered why you bothered with a new function. But as I say I have > almost zero lisp experience so no feel for lisp style. Just mirroring the existing structure really. `notmuch-show-get-' to access details of the message. I've no strong preference. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk8ifGgACgkQaezQq/BJZRYw6QCePHN9bKWfow9xhUJf2uV28e3P QSYAn3h7fgZsneL1bMrZaClnd7maxmUR =mV95 -----END PGP SIGNATURE----- --=-=-=--