diff options
| author | Richard M. Stallman | 1997-07-20 17:41:31 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-07-20 17:41:31 +0000 |
| commit | 149f002ee2a91f242ae99029161d623b963c1892 (patch) | |
| tree | 0fbd037b54bbcba180bbba6d4cb0ce8d5549691d | |
| parent | 507c92471fab82af331576861b4573c31346a804 (diff) | |
| download | emacs-149f002ee2a91f242ae99029161d623b963c1892.tar.gz emacs-149f002ee2a91f242ae99029161d623b963c1892.zip | |
(texinfo-no-refill-regexp): Add "direntry".
(texinfo-format-direntry, texinfo-end-direntry): New functions.
(texinfo-format-dircategory): New function.
| -rw-r--r-- | lisp/textmodes/texinfmt.el | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lisp/textmodes/texinfmt.el b/lisp/textmodes/texinfmt.el index 885a0625901..0ecaa91a7c5 100644 --- a/lisp/textmodes/texinfmt.el +++ b/lisp/textmodes/texinfmt.el | |||
| @@ -467,6 +467,7 @@ Info-split to do these manually." | |||
| 467 | (concat | 467 | (concat |
| 468 | "^@" | 468 | "^@" |
| 469 | "\\(" | 469 | "\\(" |
| 470 | "direntry\\|" | ||
| 470 | "example\\|" | 471 | "example\\|" |
| 471 | "smallexample\\|" | 472 | "smallexample\\|" |
| 472 | "lisp\\|" | 473 | "lisp\\|" |
| @@ -2370,6 +2371,29 @@ If used within a line, follow `@bullet' with braces." | |||
| 2370 | (insert "\n "))) | 2371 | (insert "\n "))) |
| 2371 | 2372 | ||
| 2372 | 2373 | ||
| 2374 | ;; @direntry and @dircategory | ||
| 2375 | |||
| 2376 | (put 'direntry 'texinfo-format 'texinfo-format-direntry) | ||
| 2377 | (defun texinfo-format-direntry () | ||
| 2378 | (texinfo-push-stack 'direntry nil) | ||
| 2379 | (texinfo-discard-line) | ||
| 2380 | (insert "START-INFO-DIR-ENTRY\n\n")) | ||
| 2381 | |||
| 2382 | (put 'direntry 'texinfo-end 'texinfo-end-direntry) | ||
| 2383 | (defun texinfo-end-direntry () | ||
| 2384 | (texinfo-discard-command) | ||
| 2385 | (insert "END-INFO-DIR-ENTRY\n") | ||
| 2386 | (texinfo-pop-stack 'direntry)) | ||
| 2387 | |||
| 2388 | (put 'dircategory 'texinfo-format 'texinfo-format-dircategory) | ||
| 2389 | (defun texinfo-format-dircategory () | ||
| 2390 | (texinfo-discard-command) | ||
| 2391 | (delete-region (point) | ||
| 2392 | (progn | ||
| 2393 | (skip-chars-forward " ") | ||
| 2394 | (point))) | ||
| 2395 | (insert "INFO-DIR-SECTION ")) | ||
| 2396 | |||
| 2373 | ;;; @cartouche | 2397 | ;;; @cartouche |
| 2374 | 2398 | ||
| 2375 | ;; The @cartouche command is a noop in Info; in a printed manual, | 2399 | ;; The @cartouche command is a noop in Info; in a printed manual, |