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 AC6D6431FAF for ; Wed, 28 Mar 2012 03:13:17 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 KElanK3ioeNG for ; Wed, 28 Mar 2012 03:13:13 -0700 (PDT) Received: from mail-qa0-f43.google.com (mail-qa0-f43.google.com [209.85.216.43]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 0B381431FAE for ; Wed, 28 Mar 2012 03:13:12 -0700 (PDT) Received: by qadb15 with SMTP id b15so65804qad.2 for ; Wed, 28 Mar 2012 03:13:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type:x-gm-message-state; bh=s/SUtTxS+CPuJpgn5wFWhbZVztV2lNSgRaAU3br7GCY=; b=AThIi7JYIoIWRCSmag+afBVujuuiHjjclV0AYQMfdC8TL67PECFSwLHObJqQLmDmGH pf474ghp0Wm+IGQrLve+lWh6LlEULoz25+0fLPzzuYbm3drPLsomr39zbg5H7WEzwH8r fifuhFmkPRmAOSSCjmz0GRlDXP4ByzUi/9B5R4u9CiqHwJLapjk6uHogTKQa2Fq8N7Yf ht7u90uBrOh4gYQwniVpn53l7koIuZ+1aaVDhtDpc8ggIq3zO6VhviXtzbKYEgY/D1K1 5s4L0PX/s60BJ6px/OwtuxjvTWfhaY2jAA8fPIYj7B/Ix9C8ymVcShLBST4IgbXpmCxF D5bA== Received: by 10.229.136.79 with SMTP id q15mr11033220qct.149.1332929591203; Wed, 28 Mar 2012 03:13:11 -0700 (PDT) Received: from localhost (nikula.org. [92.243.24.172]) by mx.google.com with ESMTPS id j17sm5755831qaj.9.2012.03.28.03.13.08 (version=SSLv3 cipher=OTHER); Wed, 28 Mar 2012 03:13:10 -0700 (PDT) From: Jani Nikula To: Notmuch Mail Subject: Re: bug in emacs reply code? In-Reply-To: <87r4we3wp7.fsf@nikula.org> References: <87r4we3wp7.fsf@nikula.org> User-Agent: Notmuch/0.11.1+222~ga47a98c (http://notmuchmail.org) Emacs/23.1.1 (i686-pc-linux-gnu) Date: Wed, 28 Mar 2012 10:13:05 +0000 Message-ID: <87obrh3ufi.fsf@nikula.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Gm-Message-State: ALoCoQkTd6s8BDCjknQPNVYpCE0boE9uaC0/Y+ijZPe7F4MuOxHOWRHpZPpP8+i1Uvc8Bw922/aZ 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, 28 Mar 2012 10:13:17 -0000 On Tue, 27 Mar 2012 15:11:48 +0000, Jani Nikula wrote: > > Hi all, just upgraded from 0.11 to master on one machine, and emacs > reply started failing as follows. The four tests fail, all others pass. > > $ emacs --version > GNU Emacs 23.2.1 I bisected the problem to commit "emacs: Use the new JSON reply format and message-cite-original" 650123510cfa64caf6b20f5239f43433fa6f2941. Following up Adam's suggestion, it boils down to a change in emacs message-mail function in lisp/gnus/message.el. If I eval-defun the message-mail from 23.3, the UI seems to work. The diff between the versions is below. That bit of elisp is beyond me, please look into it. BR, Jani. --- emacs-23.2/lisp/gnus/message.el 2010-04-23 17:59:51.000000000+0300 +++ emacs-23.3/lisp/gnus/message.el 2011-11-26 05:20:20.000000000+0200 [...] @@ -6487,7 +6513,13 @@ (message-setup (nconc `((To . ,(or to "")) (Subject . ,(or subject ""))) - (when other-headers other-headers)) + ;; C-h f compose-mail says that headers should be specified as + ;; (string . value); however all the rest of message expects + ;; headers to be symbols, not strings (eg message-header-format-alist). + ;; http://lists.gnu.org/archive/html/emacs-devel/2011-01/msg00337.html + ;; We need to convert any string input, eg from rmail-start-mail. + (dolist (h other-headers other-headers) + (if (stringp (car h)) (setcar h (intern (capitalize (car h))))))) yank-action send-actions continue switch-function) ;; FIXME: Should return nil if failure. t)) @@ -8189,5 +8221,4 @@ [...]