From abe1937ba02643beb5b06d01298dfce5f84a26f5 Mon Sep 17 00:00:00 2001 From: yamaoka Date: Fri, 30 Nov 2007 02:59:36 +0000 Subject: [PATCH] Reduce the number of split Info files. --- ChangeLog | 4 ++++ infohack.el | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index b40eb45..0adf714 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-11-30 Katsumi Yamaoka + + * infohack.el: Reduce the number of split Info files. + 2007-10-17 Katsumi Yamaoka * ptexinfmt.el (texinfo-copying-text, texinfo-copying) diff --git a/infohack.el b/infohack.el index fc4ec60..deb90e3 100644 --- a/infohack.el +++ b/infohack.el @@ -89,6 +89,16 @@ Both characters must have the same length of multi-byte form." (require 'bytecomp) +;; Reduce the number of split Info files. +(require 'informat) +(let* ((fn (symbol-function 'Info-split)) + (fns (prin1-to-string fn))) + (when (string-match "\\([\t\n ]+\\)50000\\([\t\n ]+\\)" fns) + (condition-case nil + (fset 'Info-split (read (replace-match "\\1200000\\2" nil nil fns))) + (error + (fset 'Info-split fn))))) + (defun infohack-texi-format (file &optional addsuffix) (let ((auto-save-default nil) (find-file-run-dired nil) -- 1.7.10.4