From: Tomi Ollila Date: Wed, 25 Mar 2015 09:06:21 +0000 (+0200) Subject: Re: Can't compose message in Emacs - Notmuch X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2191b64e097ef662a6dd3b8baab20b2b8dec75c9;p=notmuch-archives.git Re: Can't compose message in Emacs - Notmuch --- diff --git a/38/fa272f63841105027789f472439e548187b9a7 b/38/fa272f63841105027789f472439e548187b9a7 new file mode 100644 index 000000000..80f50bd4c --- /dev/null +++ b/38/fa272f63841105027789f472439e548187b9a7 @@ -0,0 +1,117 @@ +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 CF0E6431E82 + for ; Wed, 25 Mar 2015 02:06:47 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 2.438 +X-Spam-Level: ** +X-Spam-Status: No, score=2.438 tagged_above=-999 required=5 + tests=[DNS_FROM_AHBL_RHSBL=2.438] 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 6xqqEzBkaa5q for ; + Wed, 25 Mar 2015 02:06:44 -0700 (PDT) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by olra.theworths.org (Postfix) with ESMTP id 81993431E62 + for ; Wed, 25 Mar 2015 02:06:44 -0700 (PDT) +Received: from guru.guru-group.fi (localhost [IPv6:::1]) + by guru.guru-group.fi (Postfix) with ESMTP id 358CE100086; + Wed, 25 Mar 2015 11:06:21 +0200 (EET) +From: Tomi Ollila +To: glyn.millington@gmail.com, notmuch@notmuchmail.org +Subject: Re: Can't compose message in Emacs - Notmuch +In-Reply-To: <87619q3s9w.fsf@nowhere.org> +References: <878uembwmj.fsf@nowhere.org> <87fv8u6wbc.fsf@maritornes.cs.unb.ca> + <87619q3s9w.fsf@nowhere.org> +User-Agent: Notmuch/0.19+92~g402df12 (http://notmuchmail.org) Emacs/24.3.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: Wed, 25 Mar 2015 09:06:47 -0000 + +On Wed, Mar 25 2015, Glyn Millington wrote: + +> David Bremner writes: +> +>> Glyn Millington writes: +>> +>>> Greetings! +>>> +>>> Emacs 24.4.1 (Arch Linux if that helps) +>>> Notmuch 0.19 +>>> +>>> The problem is that I can neither compose a new email nor reply to an old +>>> email unless I have already used message mode (via Gnus) first. +>>> I get an error message - Google on the error message below gets me nowhere! +>>> +>> +>> Can you duplicate the error with a minimal .emacs? In particular save +>> the following to "run-notmuch.el" and start emacs with +>> +>> % emacs -Q --load run-emacs.el +>> +>> ;; -8x------------------------------------------------------------- +>> ;; adjust the following line to point to either the .el or .elc of +>> ;; notmuch.el +>> +>> (add-to-list 'load-path "/path/to/notmuch/dot/el") +>> (require 'notmuch) +>> (notmuch-mua-mail) +>> +>> ;; -8x------------------------------------------------------------- +>> +>> If that doesn't error, then the most likely trigger is some setting or +>> add on package in your .emacs. Once we know what the trigger is, we can +>> try to figure out where bug lies. +> +> Thanks David, +> +> It didn't error! +> +> A thorough trawl through init.el revealed that this line is the culprit +> +> (setq message-mail-user-agent t) +> +> which refers on to mail-user-agent, which was invoking gnus! +> +> +> Sorry for the noise. + +Instead of noise I think this is valuable information... + +... if we had "troubleshooting" (or just put to emacstips.mdwn) page +we could add something along the line: + + emacs -Q -L /path/to/notmuch/elisp/dir --eval "(require 'notmuch)" + +(with some explanation) there (e.g. M-x notmuch-hello & M-x notmuch-mua-mail) + +(emacs manpage says -L 'add's this dir to load-path -- I verified +it "prepends"! it to load-path (like add-to-list does by default)) + +> +> atb +> +> Glyn + +Tomi