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 2E250431FAE for ; Tue, 1 Dec 2009 08:16:03 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 glPDM1p8G5VE for ; Tue, 1 Dec 2009 08:16:01 -0800 (PST) Received: from e23smtp09.au.ibm.com (e23smtp09.au.ibm.com [202.81.31.142]) by olra.theworths.org (Postfix) with ESMTP id 240C6431FBC for ; Tue, 1 Dec 2009 08:16:00 -0800 (PST) Received: from d23relay03.au.ibm.com (d23relay03.au.ibm.com [202.81.31.245]) by e23smtp09.au.ibm.com (8.14.3/8.13.1) with ESMTP id nB23G0H7001753 for ; Wed, 2 Dec 2009 14:16:00 +1100 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id nB1GFxd91020004 for ; Wed, 2 Dec 2009 03:15:59 +1100 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id nB1GFx13008693 for ; Wed, 2 Dec 2009 03:15:59 +1100 Received: from localhost.localdomain ([9.124.215.21]) by d23av04.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id nB1GFr3h008630; Wed, 2 Dec 2009 03:15:57 +1100 From: aneesh.kumar@gmail.com To: cworth@cworth.org, aneesh.kumar@linux.vnet.ibm.com Date: Tue, 1 Dec 2009 21:45:48 +0530 Message-Id: <1259684149-9574-2-git-send-email-aneesh.kumar@gmail.com> X-Mailer: git-send-email 1.6.5.2.74.g610f9 In-Reply-To: <1259684149-9574-1-git-send-email-aneesh.kumar@gmail.com> References: <1259684149-9574-1-git-send-email-aneesh.kumar@gmail.com> X-Mailman-Approved-At: Tue, 01 Dec 2009 08:25:29 -0800 Cc: "Aneesh Kumar K.V" , notmuch@notmuchmail.org Subject: [notmuch] [PATCH 2/3] notmuch.el: Fix the message summary button to be active even on first column X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 01 Dec 2009 16:16:03 -0000 From: Aneesh Kumar K.V This make we have button activated even on the first column of the message summary line. Remove the inverse video overlay on the message summary line. Signed-off-by: Aneesh Kumar K.V --- notmuch.el | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/notmuch.el b/notmuch.el index c1e8257..6a0c119 100644 --- a/notmuch.el +++ b/notmuch.el @@ -575,7 +575,7 @@ which this thread was originally shown." :supertype 'notmuch-button-invisibility-toggle-type) (define-button-type 'notmuch-button-body-toggle-type 'help-echo "mouse-1, RET: Show message" - 'face '(:inverse-video . t) + 'face 'message-header-other :supertype 'notmuch-button-invisibility-toggle-type ) (defun notmuch-show-markup-citations-region (beg end depth) @@ -721,13 +721,7 @@ which this thread was originally shown." (forward-line) (let ((beg (point-marker)) (btn nil)) - (end-of-line) - ; Inverse video for subject - (let ((message-overlay (make-overlay beg (point)))) - (overlay-put message-overlay 'face '(:inverse-video t)) - (setq btn (make-button (line-beginning-position) - (overlay-end message-overlay) - :type 'notmuch-button-body-toggle-type))) + (forward-line 1) (end-of-line) (let ((beg-hidden (point-marker))) @@ -747,7 +741,12 @@ which this thread was originally shown." (overlay-put (make-overlay beg-hidden end) 'invisible invis-spec) (goto-char beg) + ;; mail summary + (setq btn (make-button (line-beginning-position) + (line-end-position) + :type 'notmuch-button-body-toggle-type)) (forward-line) + ;; subject line (make-button (line-beginning-position) (line-end-position) 'invisibility-spec (cons invis-spec t) :type 'notmuch-button-headers-toggle-type)) -- 1.6.5.2.74.g610f9