From: shuhei-k Date: Wed, 26 Aug 1998 01:02:22 +0000 (+0000) Subject: (gnus-truncate-string): Ignore more than two arguments. X-Git-Tag: gnus-6_8_16~4 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=f3044e3ac0e81a746b20e0bec5018b8147ede3c1;p=elisp%2Fgnus.git- (gnus-truncate-string): Ignore more than two arguments. --- diff --git a/lisp/gnus-util.el b/lisp/gnus-util.el index 4e437f5..45bfcb0 100644 --- a/lisp/gnus-util.el +++ b/lisp/gnus-util.el @@ -75,7 +75,10 @@ (set symbol nil)) symbol)) -(defun gnus-truncate-string (str width) +;; Avoid byte-compile warning. +;; In Mule, this function will be redefined to `truncate-string', +;; which takes 3 or 4 args. +(defun gnus-truncate-string (str width &rest ignore) (substring str 0 width)) ;; Added by Geoffrey T. Dairiki . A safe way