(infohack): Use Info-split-threshold to decide whether to split Info files.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 25 Sep 2008 23:09:50 +0000 (23:09 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 25 Sep 2008 23:09:50 +0000 (23:09 +0000)
texi/ChangeLog
texi/infohack.el

index b3ac653..28a4d21 100644 (file)
@@ -1,3 +1,8 @@
+2008-09-25  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * infohack.el (infohack): Use Info-split-threshold to decide whether to
+       split Info files.
+
 2008-09-25  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * message.texi (Sending Variables): Fixed variable documentation to
index 4afbb81..919641f 100644 (file)
@@ -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)))