From: Katsumi Yamaoka Date: Thu, 25 Sep 2008 23:09:50 +0000 (+0000) Subject: (infohack): Use Info-split-threshold to decide whether to split Info files. X-Git-Url: https://cgit.sxemacs.org/?a=commitdiff_plain;h=c8c3be75bba77e5d231667cfa7804aea19eab3c5;p=gnus (infohack): Use Info-split-threshold to decide whether to split Info files. --- diff --git a/texi/ChangeLog b/texi/ChangeLog index b3ac65386..28a4d21a6 100644 --- a/texi/ChangeLog +++ b/texi/ChangeLog @@ -1,3 +1,8 @@ +2008-09-25 Katsumi Yamaoka + + * infohack.el (infohack): Use Info-split-threshold to decide whether to + split Info files. + 2008-09-25 Teodor Zlatanov * message.texi (Sending Variables): Fixed variable documentation to diff --git a/texi/infohack.el b/texi/infohack.el index 4afbb810b..919641fca 100644 --- a/texi/infohack.el +++ b/texi/infohack.el @@ -112,7 +112,9 @@ which are indicated by the @copying ... @end copying command." (expand-file-name (file-name-nondirectory buffer-file-name) default-directory)) (setq buffer-file-coding-system coding-system) - (if (> (buffer-size) 100000) + (if (> (buffer-size) (if (boundp 'Info-split-threshold) + (+ 50000 Info-split-threshold) + 100000)) (Info-split)) (save-buffer)))