From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 12D4A431FBC for ; Sun, 13 Dec 2009 21:42:30 -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 sk-zEN9FG7l9 for ; Sun, 13 Dec 2009 21:42:29 -0800 (PST) Received: from cp20.secserverpros.com (cp20.secserverpros.com [67.220.217.187]) by olra.theworths.org (Postfix) with ESMTP id CFD85431FAE for ; Sun, 13 Dec 2009 21:42:28 -0800 (PST) Received: from 61-228-164-59.dynamic.hinet.net ([61.228.164.59] helo=kanru.info) by cp20.secserverpros.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NK3hR-0004jX-PZ for notmuch@notmuchmail.org; Mon, 14 Dec 2009 05:42:27 +0000 Received: from kanru (uid 1000) (envelope-from kanru@kanru.info) id 2387 by kanru.info (DragonFly Mail Agent) Mon, 14 Dec 2009 13:41:52 +0800 From: Kan-Ru Chen To: notmuch@notmuchmail.org Date: Mon, 14 Dec 2009 13:41:32 +0800 Message-Id: <1260769295-12924-2-git-send-email-kanru@kanru.info> X-Mailer: git-send-email 1.6.5.5 In-Reply-To: <1260769295-12924-1-git-send-email-kanru@kanru.info> References: <1260769295-12924-1-git-send-email-kanru@kanru.info> X-ACL-Warn: { X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cp20.secserverpros.com X-AntiAbuse: Original Domain - notmuchmail.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - kanru.info X-Source: X-Source-Args: X-Source-Dir: Subject: [PATCH 1/4] emacs: Don't eat last newline character of citations 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: Mon, 14 Dec 2009 05:42:30 -0000 In case of a citation following immediately new contents. When the citation was collapsed: [1-line citation. Click/Enter to show.] Lorem ipsum dolor sit amet, consectetur adipisicin When it was expanded: [10-line citation. Click/Enter to show.] > Lorem ipsum dolor sit amet, consectetur adipisicin The indentation was wrong. Signed-off-by: Kan-Ru Chen --- notmuch.el | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/notmuch.el b/notmuch.el index 97914f2..5823094 100644 --- a/notmuch.el +++ b/notmuch.el @@ -606,7 +606,8 @@ which this thread was originally shown." (while (looking-at citation) (forward-line) (move-to-column depth)) - (let ((overlay (make-overlay beg-sub (point))) + (end-of-line 0) + (let ((overlay (make-overlay beg-sub (1+ (point-marker)))) (invis-spec (make-symbol "notmuch-citation-region"))) (add-to-invisibility-spec invis-spec) (overlay-put overlay 'invisible invis-spec) -- 1.6.5.5