(gnus-summary-insert-old-articles): Don't truncate group name for
`read-string'.
+ * gnus-util.el (gnus-limit-string): Delete this function.
+
+ * gnus-sum.el (gnus-simplify-subject-fully): Use
+ `truncate-string-to-width' instead.
+
2007-05-11 Micha\e,Ak\e(Bl Cadilhac <michael@cadilhac.name>
* gnus-sum.el (gnus-summary-next-group-on-exit): New variable. Tell if, on
((eq gnus-summary-gather-subject-limit 'fuzzy)
(gnus-simplify-subject-fuzzy subject))
((numberp gnus-summary-gather-subject-limit)
- (gnus-limit-string (gnus-simplify-subject-re subject)
- gnus-summary-gather-subject-limit))
+ (truncate-string-to-width (gnus-simplify-subject-re subject)
+ gnus-summary-gather-subject-limit))
(t
subject)))
(set symbol nil))
symbol))
-;; Added by Geoffrey T. Dairiki <dairiki@u.washington.edu>. A safe way
-;; to limit the length of a string. This function is necessary since
-;; `(substr "abc" 0 30)' pukes with "Args out of range".
-;; Fixme: Why not `truncate-string-to-width'?
-(defsubst gnus-limit-string (str width)
- (if (> (length str) width)
- (substring str 0 width)
- str))
-
(defsubst gnus-goto-char (point)
(and point (goto-char point)))