* Re: Error viewing PGP/mime signed messages
[not found] <8763vlwggn.fsf@jehiel.elehack.net>
@ 2008-03-18 5:29 ` Katsumi Yamaoka
2008-03-18 5:37 ` Katsumi Yamaoka
2008-03-18 14:10 ` Michael Ekstrand
0 siblings, 2 replies; 3+ messages in thread
From: Katsumi Yamaoka @ 2008-03-18 5:29 UTC (permalink / raw)
To: Michael Ekstrand; +Cc: bugs, ding
[-- Attachment #1: Type: text/plain, Size: 972 bytes --]
>>>>> 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:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 906 bytes --]
--- 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 ()
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Error viewing PGP/mime signed messages
2008-03-18 5:29 ` Error viewing PGP/mime signed messages Katsumi Yamaoka
@ 2008-03-18 5:37 ` Katsumi Yamaoka
2008-03-18 14:10 ` Michael Ekstrand
1 sibling, 0 replies; 3+ messages in thread
From: Katsumi Yamaoka @ 2008-03-18 5:37 UTC (permalink / raw)
To: Michael Ekstrand; +Cc: bugs, ding
[-- Attachment #1: Type: text/plain, Size: 234 bytes --]
>>>>> Katsumi Yamaoka wrote:
> there is a serious bug in color-theme.el.
> --- color-theme.el~ 2006-05-28 13:07:29 +0000
> +++ color-theme.el 2008-03-18 05:27:27 +0000
It will not work with XEmacs, sorry. Please use this instead:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1157 bytes --]
--- color-theme.el~ 2006-05-28 13:07:29 +0000
+++ color-theme.el 2008-03-18 05:33:06 +0000
@@ -73,9 +73,10 @@
"Non-nil if running XEmacs.")
;; Add this since it appears to miss in emacs-2x
-(or (fboundp 'replace-in-string)
- (defun replace-in-string (target old new)
- (replace-regexp-in-string old new target)))
+(if (fboundp 'replace-in-string)
+ (defalias 'color-theme-replace-in-string 'replace-in-string)
+ (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
;; dealing with inverse-video faces. Here is a short test to check
@@ -1626,8 +1627,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 ()
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Error viewing PGP/mime signed messages
2008-03-18 5:29 ` Error viewing PGP/mime signed messages Katsumi Yamaoka
2008-03-18 5:37 ` Katsumi Yamaoka
@ 2008-03-18 14:10 ` Michael Ekstrand
1 sibling, 0 replies; 3+ messages in thread
From: Michael Ekstrand @ 2008-03-18 14:10 UTC (permalink / raw)
To: Katsumi Yamaoka; +Cc: bugs, ding
[-- Attachment #1: Type: text/plain, Size: 1415 bytes --]
Katsumi Yamaoka <yamaoka@jpl.org> writes:
>>>>>> 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:
Yes, I do use color-theme. After applying your XEmacs-safe patch to
color-theme.el, the problem goes away. Thank you.
- Michael
--
mouse, n: A device for pointing at the xterm in which you want to type.
Confused by the strange files? I cryptographically sign my messages.
For more information see <http://www.elehack.net/resources/gpg>.
[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-03-18 14:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <8763vlwggn.fsf@jehiel.elehack.net>
2008-03-18 5:29 ` Error viewing PGP/mime signed messages Katsumi Yamaoka
2008-03-18 5:37 ` Katsumi Yamaoka
2008-03-18 14:10 ` Michael Ekstrand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).