unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Kan-Ru Chen <kanru@kanru.info>
To: notmuch@notmuchmail.org
Subject: [PATCH 1/4] emacs: Don't eat last newline character of citations
Date: Mon, 14 Dec 2009 13:41:32 +0800	[thread overview]
Message-ID: <1260769295-12924-2-git-send-email-kanru@kanru.info> (raw)
In-Reply-To: <1260769295-12924-1-git-send-email-kanru@kanru.info>

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 <kanru@kanru.info>
---
 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

  reply	other threads:[~2009-12-14  5:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-14  5:41 [PATCH-v2] Don't eat last newline character of citations Kan-Ru Chen
2009-12-14  5:41 ` Kan-Ru Chen [this message]
2009-12-14  5:41   ` [PATCH 2/4] emacs: Connect two hunk of citations if only blank separated Kan-Ru Chen
2009-12-14  5:41     ` [PATCH 3/4] emacs: Some cleanup Kan-Ru Chen
2009-12-14  5:41       ` [PATCH 4/4] emacs: Use font-lock-comment-face to highlight citation button Kan-Ru Chen
2010-02-08 22:34         ` Carl Worth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1260769295-12924-2-git-send-email-kanru@kanru.info \
    --to=kanru@kanru.info \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).