From: Lars Magne Ingebrigtsen Date: Thu, 17 Mar 2011 19:18:13 +0000 (+0100) Subject: Use assoc instead of assoc-string to avoid warning on XEmacs. X-Git-Url: http://cgit.sxemacs.org/?p=gnus;a=commitdiff_plain;h=586f35bdde164965e6b3d613db995010b9dc7e4e Use assoc instead of assoc-string to avoid warning on XEmacs. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index eb488b813..8055dc030 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2011-03-17 Lars Magne Ingebrigtsen + * time-date.el (format-seconds): Use assoc instead of assoc-string to + avoid warning on XEmacs. + * dgnushack.el: Bind help-echo-owns-message to avoid a compiler warning on XEmacs. diff --git a/lisp/time-date.el b/lisp/time-date.el index 3e595341e..622036006 100644 --- a/lisp/time-date.el +++ b/lisp/time-date.el @@ -310,7 +310,7 @@ This function does not work for SECONDS greater than `most-positive-fixnum'." (unless (string-equal spec "%") (or (setq match (assoc (downcase spec) units)) (error "Bad format specifier: `%s'" spec)) - (if (assoc-string spec usedunits t) + (if (assoc (downcase spec) usedunits) (error "Multiple instances of specifier: `%s'" spec)) (if (string-equal (car match) "z") (setq zeroflag t)