Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280293 - app-emacs/color-theme-6.6.0 breaks several other Emacs apps
Summary: app-emacs/color-theme-6.6.0 breaks several other Emacs apps
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-04 11:11 UTC by Julian Stecklina
Modified: 2009-08-10 10:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix for name clash (name-clash.patch,1.04 KB, patch)
2009-08-04 11:14 UTC, Julian Stecklina
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Julian Stecklina 2009-08-04 11:11:32 UTC
color-theme defines a function 'replace-in-string' that causes name clashes in other Emacs applications, notably Gnus in Emacs 23. A symptom is an error when viewing a signed mail with Gnus. This has already been reported upstream, but the maintainer seems to be AWOL: http://gna.org/bugs/?9494 

Reproducible: Always

Steps to Reproduce:
1. (require 'color-theme)
2. Use Emacs to view signed mails.
Comment 1 Julian Stecklina 2009-08-04 11:14:39 UTC
Created attachment 200137 [details, diff]
Fix for name clash
Comment 2 Julian Stecklina 2009-08-05 10:59:12 UTC
I was wrong about the maintainer. It is fixed in the next release, but it's unclear at the moment when a new release is going to happen. Until then the patch is still needed for 6.6.0
Comment 3 Ulrich Müller gentoo-dev 2009-08-10 00:25:16 UTC
(In reply to comment #1)
> Created an attachment (id=200137) [edit]
> Fix for name clash

Have you actually tested the patch?

This definition shuffles the three arguments around:

-    (defun replace-in-string (target old new)
-      (replace-regexp-in-string old new  target)))

So how can the following work?

-                           (replace-in-string
-                            (replace-in-string 
+                           (replace-regexp-in-string
+                            (replace-regexp-in-string

Comment 4 Ulrich Müller gentoo-dev 2009-08-10 10:07:29 UTC
Fixed in 6.6.0-r1.
Thanks for reporting the issue.