bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

texinfo-format-buffer doesn't produce info index properly


From: Shigeru Fukaya
Subject: texinfo-format-buffer doesn't produce info index properly
Date: Tue, 13 Nov 2007 19:40:46 +0900

I found `texinfo-format-buffer' doesn't produce proper INFO index from
elisp.texi and relating files attached with emacs.
(emacs-vesion 22.1 (and also current CVS top, Rev. 1.89))

In elisp.texi, written as

    @synindex cp fn
    @syncodeindex vr fn
    @syncodeindex ky fn
    @syncodeindex pg fn

and, in index.texi (included in elisp.texi).

    @printindex fn

But, no Vaviable's index is prodeced into elisp info file.

It is because the settings of @synindex and @syncodeindex commands are
ignored later at the index making time.


I change the function `texinfo-format-printindex' for the while
followingly:

(defun texinfo-format-printindex ()
  (let* ((arg (texinfo-parse-arg-discard))
         (fmt (cdr (assoc arg texinfo-short-index-format-cmds-alist)))
         (index-list (delq nil (mapcar (lambda (e)
                                         (and (eq fmt (get (cdr e)
'texinfo-format))
                                              (cdr (assoc (car e)
texinfo-indexvar-alist))))
                                       texinfo-short-index-cmds-alist)))
         (indexelts (apply #'append nil (mapcar #'symbol-value index-list)))
         opoint)
    (insert "\n* Menu:\n\n")
    (setq opoint (point))
    (texinfo-print-index nil indexelts)
    (if (memq system-type '(vax-vms windows-nt ms-dos))
        (texinfo-sort-region opoint (point))
      (shell-command-on-region opoint (point) "sort -fd" 1))))


Regards,
Shigeru




reply via email to

[Prev in Thread] Current Thread [Next in Thread]