diff options
| author | Juri Linkov | 2007-11-18 12:48:32 +0000 |
|---|---|---|
| committer | Juri Linkov | 2007-11-18 12:48:32 +0000 |
| commit | 71f89cd9525a8f271e09eb7a1eac87ff01319110 (patch) | |
| tree | 222726121e3a14691883480c3c731f2d608dbcc0 | |
| parent | b048d47875384535b96cebc34953c280653488f5 (diff) | |
| download | emacs-71f89cd9525a8f271e09eb7a1eac87ff01319110.tar.gz emacs-71f89cd9525a8f271e09eb7a1eac87ff01319110.zip | |
(texinfo-format-printindex): Collect combined indexes
using texinfo-short-index-format-cmds-alist.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/textmodes/texinfmt.el | 13 |
2 files changed, 14 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 94bc86ce1a1..63dee8f6e0d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2007-11-18 Shigeru Fukaya <shigeru.fukaya@gmail.com> (tiny change) | ||
| 2 | |||
| 3 | * textmodes/texinfmt.el (texinfo-format-printindex): Collect | ||
| 4 | combined indexes using texinfo-short-index-format-cmds-alist. | ||
| 5 | Reported on <bug-texinfo@gnu.org>. | ||
| 6 | |||
| 1 | 2007-11-18 Michael Albinus <michael.albinus@gmx.de> | 7 | 2007-11-18 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 8 | ||
| 3 | * net/tramp.el (tramp-completion-reread-directory-timeout): New | 9 | * net/tramp.el (tramp-completion-reread-directory-timeout): New |
diff --git a/lisp/textmodes/texinfmt.el b/lisp/textmodes/texinfmt.el index 73b6ec3920e..55e7134f87e 100644 --- a/lisp/textmodes/texinfmt.el +++ b/lisp/textmodes/texinfmt.el | |||
| @@ -3001,14 +3001,17 @@ Default is to leave paragraph indentation as is." | |||
| 3001 | (put 'printindex 'texinfo-format 'texinfo-format-printindex) | 3001 | (put 'printindex 'texinfo-format 'texinfo-format-printindex) |
| 3002 | 3002 | ||
| 3003 | (defun texinfo-format-printindex () | 3003 | (defun texinfo-format-printindex () |
| 3004 | (let ((indexelts (symbol-value | 3004 | (let* ((arg (texinfo-parse-arg-discard)) |
| 3005 | (cdr (assoc (texinfo-parse-arg-discard) | 3005 | (fmt (cdr (assoc arg texinfo-short-index-format-cmds-alist))) |
| 3006 | texinfo-indexvar-alist)))) | 3006 | (index-list (delq nil (mapcar (lambda (e) |
| 3007 | opoint) | 3007 | (and (eq fmt (get (cdr e) 'texinfo-format)) |
| 3008 | (cdr (assoc (car e) texinfo-indexvar-alist)))) | ||
| 3009 | texinfo-short-index-cmds-alist))) | ||
| 3010 | (indexelts (apply #'append nil (mapcar #'symbol-value index-list))) | ||
| 3011 | opoint) | ||
| 3008 | (insert "\n* Menu:\n\n") | 3012 | (insert "\n* Menu:\n\n") |
| 3009 | (setq opoint (point)) | 3013 | (setq opoint (point)) |
| 3010 | (texinfo-print-index nil indexelts) | 3014 | (texinfo-print-index nil indexelts) |
| 3011 | |||
| 3012 | (if (memq system-type '(vax-vms windows-nt ms-dos)) | 3015 | (if (memq system-type '(vax-vms windows-nt ms-dos)) |
| 3013 | (texinfo-sort-region opoint (point)) | 3016 | (texinfo-sort-region opoint (point)) |
| 3014 | (shell-command-on-region opoint (point) "sort -fd" 1)))) | 3017 | (shell-command-on-region opoint (point) "sort -fd" 1)))) |