From bfdf48b68a066f7ec1102ff388bca00d3fa1422a Mon Sep 17 00:00:00 2001 From: "Kirill A. Shutemov" Date: Mon, 28 Jan 2013 17:52:20 +0200 Subject: [PATCH] [PATCH 5/5] Drop harmful reply buffer preparation --- 7c/4ba751a4503ce1704eb452e2d4c44fe6d7023f | 83 +++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 7c/4ba751a4503ce1704eb452e2d4c44fe6d7023f diff --git a/7c/4ba751a4503ce1704eb452e2d4c44fe6d7023f b/7c/4ba751a4503ce1704eb452e2d4c44fe6d7023f new file mode 100644 index 000000000..8e55ebd70 --- /dev/null +++ b/7c/4ba751a4503ce1704eb452e2d4c44fe6d7023f @@ -0,0 +1,83 @@ +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 B96BC431FC3 + for ; Mon, 28 Jan 2013 07:57:08 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + 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 JLo54OGttyak for ; + Mon, 28 Jan 2013 07:57:08 -0800 (PST) +Received: from shutemov.name (shutemov.name [204.155.152.216]) + by olra.theworths.org (Postfix) with ESMTP id 2114A431FAF + for ; Mon, 28 Jan 2013 07:57:08 -0800 (PST) +Received: by shutemov.name (Postfix, from userid 1000) + id 4C92B333DE; Mon, 28 Jan 2013 17:52:25 +0200 (EET) +From: "Kirill A. Shutemov" +To: Felipe Contreras +Subject: [PATCH 5/5] Drop harmful reply buffer preparation +Date: Mon, 28 Jan 2013 17:52:20 +0200 +Message-Id: <1359388340-27136-6-git-send-email-kirill@shutemov.name> +X-Mailer: git-send-email 1.7.10.4 +In-Reply-To: <1359388340-27136-1-git-send-email-kirill@shutemov.name> +References: <1359388340-27136-1-git-send-email-kirill@shutemov.name> +Cc: notmuch@notmuchmail.org +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: Mon, 28 Jan 2013 15:57:09 -0000 + +From: "Kirill A. Shutemov" + +Inserting empty lines at the end of reply buffer and switching to insert +mode are not what user want on reply. It's only annoying if you try to +comment on patch. + +If a user really wants this kind of preparation it should be implemented +as an user-specific hook. + +Signed-off-by: Kirill A. Shutemov +--- + notmuch-ruby.vim | 4 ---- + 1 file changed, 4 deletions(-) + +diff --git a/notmuch-ruby.vim b/notmuch-ruby.vim +index cda5df4..44d127f 100644 +--- a/notmuch-ruby.vim ++++ b/notmuch-ruby.vim +@@ -144,7 +144,6 @@ ruby << EOF + EOF + call s:set_map(g:notmuch_rb_compose_maps) + autocmd BufUnload call s:compose_unload() +- startinsert! + endfunction + + function! s:show_info() +@@ -511,9 +510,6 @@ ruby << EOF + part.convert.each_line do |l| + body_lines << "> %s" % l.chomp + end +- body_lines << "" +- body_lines << "" +- body_lines << "" + + reply.body = body_lines.join("\n") + +-- +1.7.10.4 + -- 2.26.2