(gnus-string-remove-all-properties): another fix
authorTeodor Zlatanov <tzz@lifelogs.com>
Mon, 2 Oct 2006 12:44:22 +0000 (12:44 +0000)
committerTeodor Zlatanov <tzz@lifelogs.com>
Mon, 2 Oct 2006 12:44:22 +0000 (12:44 +0000)
lisp/ChangeLog
lisp/gnus-util.el

index e1258cb..ffe6e97 100644 (file)
@@ -1,3 +1,7 @@
+2006-10-02  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * gnus-util.el (gnus-string-remove-all-properties): another fix
+
 2006-09-29  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * gnus-util.el (gnus-string-remove-all-properties): fix to ignore
index 75c3d87..e86ad58 100644 (file)
@@ -1207,11 +1207,11 @@ Return the modified alist."
     t))
 
 (defun gnus-string-remove-all-properties (string)
-  (if (stringp string)
+  (condition-case ()
       (let ((s string))
        (set-text-properties 0 (length string) nil string)
        s)
-    string))
+    (error string)))
 
 ;; This might use `compare-strings' to reduce consing in the
 ;; case-insensitive case, but it has to cope with null args.