From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66521 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Error viewing PGP/mime signed messages Date: Tue, 18 Mar 2008 14:29:26 +0900 Organization: Emacsen advocacy group Message-ID: References: <8763vlwggn.fsf@jehiel.elehack.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1205818327 17878 80.91.229.12 (18 Mar 2008 05:32:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Mar 2008 05:32:07 +0000 (UTC) Cc: bugs@gnus.org, ding@gnus.org To: Michael Ekstrand Original-X-From: ding-owner+M15009@lists.math.uh.edu Tue Mar 18 06:32:36 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1JbUQx-0004NB-H5 for ding-account@gmane.org; Tue, 18 Mar 2008 06:32:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1JbUPG-0004xE-3A; Tue, 18 Mar 2008 00:30:38 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1JbUP5-0004x1-VP for ding@lists.math.uh.edu; Tue, 18 Mar 2008 00:30:28 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JbUOz-00084l-DS for ding@lists.math.uh.edu; Tue, 18 Mar 2008 00:30:27 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JbUP5-0007Cz-00; Tue, 18 Mar 2008 06:30:28 +0100 Original-Received: from [66.225.201.151] (port=58231 helo=mail.jpl.org) by orlando.hostforweb.net with esmtpa (Exim 4.68) (envelope-from ) id 1JbUOM-0004Wd-J9; Tue, 18 Mar 2008 00:29:43 -0500 X-Hashcash: 1:20:080318:michael@elehack.net::gM5H+vHwPzj4ikkb:0000000000000000000000000000000000000000002RVe X-Hashcash: 1:20:080318:bugs@gnus.org::9zDtFNmidUldQfk2:00002bbz X-Hashcash: 1:20:080318:ding@gnus.org::+2t7iyjqHApv+30o:00001bn0 X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:H07yGoi3kynzzW1tW9OXFrL7r2Y= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66521 Archived-At: --=-=-= >>>>> Michael Ekstrand wrote: > Gnus v5.13 > GNU Emacs 23.0.60.1 (x86_64-pc-linux-gnu, GTK+ Version 2.12.9) > of 2008-03-15 on elegiac, modified by Debian > 200 Leafnode NNTP Daemon, version 1.11.7.rc1 running at ahijah.elehack.net (my fqdn: ahijah.elehack.net) > I'm running Gnus from Emacs CVS as of 2008-03-15 (Debian emacs-snapshot > package), and get the following error when I attempt to view a PGP/mime > signed message: > byte-code: Wrong number of arguments: (lambda (target old new) > (replace-regexp-in-string old new target)), 4 You use the color-theme package, don't you? I got to it by searching for the arguments list (target old new) in Google, and discovered there is a serious bug in color-theme.el. The problem is due to the `replace-in-string' function that color-theme.el defines thoughtlessly. mm-util.el uses it as `mm-replace-in-string', and it conflicts with the one that XEmacs originally defines. Here is a patch for color-theme 6.6.0: --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- color-theme.el~ 2006-05-28 13:07:29 +0000 +++ color-theme.el 2008-03-18 05:27:27 +0000 @@ -74,7 +74,7 @@ ;; Add this since it appears to miss in emacs-2x (or (fboundp 'replace-in-string) - (defun replace-in-string (target old new) + (defun color-theme-replace-in-string (target old new) (replace-regexp-in-string old new target))) ;; face-attr-construct has a problem in Emacs 20.7 and older when @@ -1626,8 +1626,8 @@ (add-to-list 'color-themes (list ',n (upcase-initials - (replace-in-string - (replace-in-string + (color-theme-replace-in-string + (color-theme-replace-in-string (symbol-name ',n) "^color-theme-" "") "-" " ")) ,author)) (defun ,n () --=-=-=--