annotate doc/lispref/two.el @ 103273:c32ec20d0ab5

* abbrevs.texi (Abbrev Mode): abbrev-mode is an option. * backups.texi (Making Backups): backup-directory-alist and make-backup-file-name-function are options. (Auto-Saving): auto-save-list-file-prefix is an option. * buffers.texi (Killing Buffers): buffer-offer-save is an option. * display.texi (Refresh Screen): no-redraw-on-reenter is an option. (Echo Area Customization): echo-keystrokes is an option. (Selective Display): selective-display-ellipses is an option. (Temporary Displays): temp-buffer-show-function is an option. (Face Attributes): underline-minimum-offset and x-bitmap-file-path are options. (Font Selection): face-font-family-alternatives, face-font-selection-order, face-font-registry-alternatives, and scalable-fonts-allowed are options. (Fringe Indicators): indicate-buffer-boundaries is an option. (Fringe Cursors): overflow-newline-into-fringe is an option. (Scroll Bars): scroll-bar-mode is an option. * eval.texi (Eval): max-lisp-eval-depth is an option. * files.texi (Visiting Functions): find-file-hook is an option. (Directory Names): directory-abbrev-alist is an option. (Unique File Names): temporary-file-directory and small-temporary-file-directory are options. * frames.texi (Initial Parameters): initial-frame-alist, minibuffer-frame-alist and default-frame-alist are options. (Cursor Parameters): blink-cursor-alist and cursor-in-non-selected-windows ar options. (Window System Selections): selection-coding-system is an option. (Display Feature Testing): display-mm-dimensions-alist is an option. * help.texi (Help Functions): help-char and help-event-list are options. * keymaps.texi (Functions for Key Lookup): meta-prefix-char is an option. * minibuf.texi (Minibuffer History): history-length and history-delete-duplicates are options. (High-Level Completion): read-buffer-function and read-buffer-completion-ignore-case are options. (Reading File Names): read-file-name-completion-ignore-case is an option. * modes.texi (Mode Line Top): mode-line-format is an option. (Mode Line Variables): mode-line-position and mode-line-modes are options. * nonascii.texi (Text Representations): enable-multibyte-characters is an option. (Default Coding Systems): auto-coding-regexp-alist, file-coding-system-alist, auto-coding-alist and auto-coding-functions are options. (Specifying Coding Systems): inhibit-eol-conversion is an option. * os.texi (Init File): site-run-file is an option. (System Environment): mail-host-address is an option. (User Identification): user-mail-address is an option. (Terminal Output): baud-rate is an option. * positions.texi (Word Motion): words-include-escapes is an option. * searching.texi (Standard Regexps): page-delimiter, paragraph-separate, paragraph-separate and sentence-end are options. * text.texi (Margins): left-margin and fill-nobreak-predicate are options. * variables.texi (Local Variables): max-specpdl-size is an option. * windows.texi (Choosing Window): split-window-preferred-function, special-display-function and display-buffer-function are options.
author Martin Rudalics <rudalics@gmx.at>
date Thu, 21 May 2009 15:31:31 +0000
parents cb5d2387102c
children 1d1d5d9bd884
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
84108
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1 ;; Auxiliary functions for preparing a two volume manual.
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2
100974
cb5d2387102c Add 2009 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 95035
diff changeset
3 ;; Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
84108
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4 ;; Free Software Foundation, Inc.
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
5
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
6 ;; --rjc 30mar92
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
7
95035
fde6f792a832 Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 87649
diff changeset
8 ;; This file is free software: you can redistribute it and/or modify
84108
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
9 ;; it under the terms of the GNU General Public License as published by
95035
fde6f792a832 Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 87649
diff changeset
10 ;; the Free Software Foundation, either version 3 of the License, or
fde6f792a832 Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 87649
diff changeset
11 ;; (at your option) any later version.
84108
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
12
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
13 ;; This file is distributed in the hope that it will be useful,
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
14 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
15 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
16 ;; GNU General Public License for more details.
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
17
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
18 ;; You should have received a copy of the GNU General Public License
95035
fde6f792a832 Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 87649
diff changeset
19 ;; along with this file. If not, see <http://www.gnu.org/licenses/>.
fde6f792a832 Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 87649
diff changeset
20
84108
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
21
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
22 (defun volume-aux-markup (arg)
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
23 "Append `vol. NUMBER' to page number.
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
24 Apply to aux file that you save.
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
25 Then insert marked file into other volume's .aux file."
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
26 (interactive "sType volume number, 1 or 2: " )
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
27 (goto-char (point-min))
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
28 (while (search-forward "-pg" nil t)
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
29 (end-of-line 1)
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
30 (delete-backward-char 1 nil)
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
31 (insert ", vol.'tie" arg "}")))
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
32
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
33 (defun volume-index-markup (arg)
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
34 "Prepend `NUMBER:' to page number. Use Roman Numeral.
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
35 Apply only to unsorted index file,
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
36 Then insert marked file into other volume's unsorted index file.
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
37 Then run texindex on that file and save."
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
38 (interactive
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
39 "sType volume number, roman number I or II: " )
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
40 (goto-char (point-min))
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
41 (while (search-forward "\\entry" nil t)
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
42 (search-forward "}{" (save-excursion (end-of-line) (point)) nil)
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
43 (insert arg ":")))
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
44
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
45 (defun volume-numbers-toc-markup (arg)
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
46 (interactive
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
47 "sType volume number, roman number I or II: " )
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
48 (goto-char (point-min))
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
49 (while (search-forward "chapentry" nil t)
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
50 (end-of-line)
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
51 (search-backward "{" nil t)
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
52 (forward-char 1)
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
53 (insert arg ":")))
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
54
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
55 (defun volume-header-toc-markup ()
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
56 "Insert Volume I and Volume II text into .toc file.
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
57 NOTE: this auxilary function is file specific.
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
58 This is for the *Elisp Ref Manual*"
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
59 (interactive)
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
60 (goto-char (point-min))
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
61 (insert "\\unnumbchapentry {Volume 1}{}\n\\unnumbchapentry {}{}\n")
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
62 (search-forward "\\unnumbchapentry {Index}")
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
63 (forward-line 1)
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
64 (insert
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
65 "\\unnumbchapentry {}{}\n\\unnumbchapentry {}{}\n\\unnumbchapentry {}{}\n\\unnumbchapentry {}{}\n\\unnumbchapentry {Volume 2}{}\n\\unnumbchapentry {}{}\n"))
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
66
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
67
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
68 ;;; In batch mode, you cannot call functions with args; hence this kludge:
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
69
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
70 (defun volume-aux-markup-1 () (volume-aux-markup "1"))
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
71 (defun volume-aux-markup-2 () (volume-aux-markup "2"))
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
72
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
73 (defun volume-index-markup-I () (volume-index-markup "I"))
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
74 (defun volume-index-markup-II () (volume-index-markup "II"))
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
75
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
76 (defun volume-numbers-toc-markup-I () (volume-numbers-toc-markup "I"))
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
77 (defun volume-numbers-toc-markup-II () (volume-numbers-toc-markup "II"))
b0561f19a8b5 Move here from ../../lispref
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
78
95035
fde6f792a832 Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 87649
diff changeset
79 ;; arch-tag: 848955fe-e9cf-45e7-a2f1-570ef156d6a5
fde6f792a832 Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 87649
diff changeset
80 ;;; two.el ends here