From 55449edd5672bea69e327a04600c46b79ea1c6ef Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Sun, 16 Dec 2012 05:08:58 +0200 Subject: [PATCH] Re: [PATCH v2 0/7] Improve Emacs CLI error handling --- 8a/108034c40fd6404210e258d148c3e1f93f36d0 | 81 +++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 8a/108034c40fd6404210e258d148c3e1f93f36d0 diff --git a/8a/108034c40fd6404210e258d148c3e1f93f36d0 b/8a/108034c40fd6404210e258d148c3e1f93f36d0 new file mode 100644 index 000000000..07c8e7740 --- /dev/null +++ b/8a/108034c40fd6404210e258d148c3e1f93f36d0 @@ -0,0 +1,81 @@ +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 1E25C431FBC + for ; Sat, 15 Dec 2012 19:09:05 -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 igruXkMDY8rG for ; + Sat, 15 Dec 2012 19:09:04 -0800 (PST) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by olra.theworths.org (Postfix) with ESMTP id 6129D431FB6 + for ; Sat, 15 Dec 2012 19:09:04 -0800 (PST) +Received: from guru.guru-group.fi (localhost [IPv6:::1]) + by guru.guru-group.fi (Postfix) with ESMTP id 9EDCF100094; + Sun, 16 Dec 2012 05:08:58 +0200 (EET) +From: Tomi Ollila +To: Austin Clements , notmuch@notmuchmail.org +Subject: Re: [PATCH v2 0/7] Improve Emacs CLI error handling +In-Reply-To: <1355601860-30121-1-git-send-email-amdragon@mit.edu> +References: <1355601860-30121-1-git-send-email-amdragon@mit.edu> +User-Agent: Notmuch/0.14+116~g29fcdb5 (http://notmuchmail.org) Emacs/24.2.1 + (x86_64-unknown-linux-gnu) +X-Face: HhBM'cA~ +MIME-Version: 1.0 +Content-Type: text/plain +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: Sun, 16 Dec 2012 03:09:05 -0000 + +On Sat, Dec 15 2012, Austin Clements wrote: + +> This obsoletes id:1355548513-10085-1-git-send-email-amdragon@mit.edu +> and fixes the things Mark and Tomi commented on. The interdiff is +> below. + +Ok, new error messages appear at the end. Good. + ++1 + +Tomi + +> +> diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el +> index cf61635..8f84087 100644 +> --- a/emacs/notmuch-lib.el +> +++ b/emacs/notmuch-lib.el +> @@ -326,10 +326,12 @@ the user dismisses it." +> (with-current-buffer buf +> (view-mode-enter nil #'kill-buffer) +> (let ((inhibit-read-only t)) +> + (goto-char (point-max)) +> + (unless (bobp) +> + (insert "\n")) +> (insert msg) +> (unless (bolp) +> - (insert "\n")) +> - (goto-char (point-min)))) +> + (insert "\n")))) +> (pop-to-buffer buf))) +> -- 2.26.2