aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Eglen1998-02-22 17:34:42 +0000
committerStephen Eglen1998-02-22 17:34:42 +0000
commitd1ebc62e6ca3ab4d6f714326ed8ae2c626d30bf1 (patch)
tree3d57efac375e8ff39a313e107d21bcd112a148a4
parentceb7e4f8e7946d6225f82d497cc46a05f4b49340 (diff)
downloademacs-d1ebc62e6ca3ab4d6f714326ed8ae2c626d30bf1.tar.gz
emacs-d1ebc62e6ca3ab4d6f714326ed8ae2c626d30bf1.zip
Customized.
-rw-r--r--lisp/textmodes/bib-mode.el22
-rw-r--r--lisp/textmodes/picture.el56
-rw-r--r--lisp/textmodes/refbib.el85
-rw-r--r--lisp/textmodes/refer.el35
-rw-r--r--lisp/textmodes/scribe.el23
-rw-r--r--lisp/textmodes/spell.el17
6 files changed, 165 insertions, 73 deletions
diff --git a/lisp/textmodes/bib-mode.el b/lisp/textmodes/bib-mode.el
index 42de7459ee0..9ccbd517ea0 100644
--- a/lisp/textmodes/bib-mode.el
+++ b/lisp/textmodes/bib-mode.el
@@ -30,12 +30,20 @@
30;; and appropriate keys are presented for various kinds of entries. 30;; and appropriate keys are presented for various kinds of entries.
31 31
32;;; Code: 32;;; Code:
33(defgroup bib nil
34 "Major mode for editing bib files."
35 :prefix "bib-"
36 :group 'wp)
33 37
34(defvar bib-file "~/my-bibliography.bib" 38(defcustom bib-file "~/my-bibliography.bib"
35 "Default name of file used by `addbib'.") 39 "Default name of file used by `addbib'."
40 :type 'file
41 :group 'bib)
36 42
37(defvar unread-bib-file "~/to-be-read.bib" 43(defcustom unread-bib-file "~/to-be-read.bib"
38 "Default name of file used by `unread-bib' in Bib mode.") 44 "Default name of file used by `unread-bib' in Bib mode."
45 :type 'file
46 :group 'bib)
39 47
40(defvar bib-mode-map (copy-keymap text-mode-map)) 48(defvar bib-mode-map (copy-keymap text-mode-map))
41(define-key bib-mode-map "\C-M" 'return-key-bib) 49(define-key bib-mode-map "\C-M" 'return-key-bib)
@@ -137,8 +145,10 @@ the car of an entry is followed by one beginning with the cdr.
137 )) 145 ))
138 146
139 147
140(defvar bib-auto-capitalize t 148(defcustom bib-auto-capitalize t
141"*True to automatically capitalize appropriate fields in Bib mode.") 149 "*True to automatically capitalize appropriate fields in Bib mode."
150 :type 'boolean
151 :group 'bib)
142 152
143(defconst bib-capitalized-fields "%[AETCBIJR]") 153(defconst bib-capitalized-fields "%[AETCBIJR]")
144 154
diff --git a/lisp/textmodes/picture.el b/lisp/textmodes/picture.el
index 2b836069294..5292eb98747 100644
--- a/lisp/textmodes/picture.el
+++ b/lisp/textmodes/picture.el
@@ -31,18 +31,36 @@
31 31
32;;; Code: 32;;; Code:
33 33
34(defvar picture-rectangle-ctl ?+ 34(defgroup picture nil
35 "*Character picture-draw-rectangle uses for top left corners.") 35 "Picture mode --- editing using quarter-plane screen model."
36(defvar picture-rectangle-ctr ?+ 36 :prefix "picture-"
37 "*Character picture-draw-rectangle uses for top right corners.") 37 :group 'editing)
38(defvar picture-rectangle-cbr ?+ 38
39 "*Character picture-draw-rectangle uses for bottom right corners.") 39(defcustom picture-rectangle-ctl ?+
40(defvar picture-rectangle-cbl ?+ 40 "*Character `picture-draw-rectangle' uses for top left corners."
41 "*Character picture-draw-rectangle uses for bottom left corners.") 41 :type 'character
42(defvar picture-rectangle-v ?| 42 :group 'picture)
43 "*Character picture-draw-rectangle uses for vertical lines.") 43(defcustom picture-rectangle-ctr ?+
44(defvar picture-rectangle-h ?- 44 "*Character `picture-draw-rectangle' uses for top right corners."
45 "*Character picture-draw-rectangle uses for horizontal lines.") 45 :type 'character
46 :group 'picture)
47(defcustom picture-rectangle-cbr ?+
48 "*Character `picture-draw-rectangle' uses for bottom right corners."
49 :type 'character
50 :group 'picture)
51(defcustom picture-rectangle-cbl ?+
52 "*Character `picture-draw-rectangle' uses for bottom left corners."
53 :type 'character
54 :group 'picture)
55(defcustom picture-rectangle-v ?|
56 "*Character `picture-draw-rectangle' uses for vertical lines."
57 :type 'character
58 :group 'picture)
59(defcustom picture-rectangle-h ?-
60 "*Character `picture-draw-rectangle' uses for horizontal lines."
61 :type 'character
62 :group 'picture)
63
46 64
47;; Picture Movement Commands 65;; Picture Movement Commands
48 66
@@ -290,8 +308,8 @@ With positive argument insert that many lines."
290 308
291;; Picture Tabs 309;; Picture Tabs
292 310
293(defvar picture-tab-chars "!-~" 311(defcustom picture-tab-chars "!-~"
294 "*A character set which controls behavior of commands 312 "*A character set which controls behavior of commands.
295\\[picture-set-tab-stops] and \\[picture-tab-search]. It is NOT a 313\\[picture-set-tab-stops] and \\[picture-tab-search]. It is NOT a
296regular expression, any regexp special characters will be quoted. 314regular expression, any regexp special characters will be quoted.
297It defines a set of \"interesting characters\" to look for when setting 315It defines a set of \"interesting characters\" to look for when setting
@@ -313,7 +331,9 @@ letters `A' through `Z' and the character `-'). If you want the
313character `\\' in the set it must be preceded by itself: \"\\\\\". 331character `\\' in the set it must be preceded by itself: \"\\\\\".
314 332
315The command \\[picture-tab-search] is defined to move beneath (or to) a 333The command \\[picture-tab-search] is defined to move beneath (or to) a
316character belonging to this set independent of the tab stops list.") 334character belonging to this set independent of the tab stops list."
335 :type 'string
336 :group 'picture)
317 337
318(defun picture-set-tab-stops (&optional arg) 338(defun picture-set-tab-stops (&optional arg)
319 "Set value of `tab-stop-list' according to context of this line. 339 "Set value of `tab-stop-list' according to context of this line.
@@ -561,9 +581,11 @@ Leaves the region surrounding the rectangle."
561 (define-key picture-mode-map "\C-c/" 'picture-movement-sw) 581 (define-key picture-mode-map "\C-c/" 'picture-movement-sw)
562 (define-key picture-mode-map "\C-c\\" 'picture-movement-se))) 582 (define-key picture-mode-map "\C-c\\" 'picture-movement-se)))
563 583
564(defvar picture-mode-hook nil 584(defcustom picture-mode-hook nil
565 "If non-nil, its value is called on entry to Picture mode. 585 "If non-nil, its value is called on entry to Picture mode.
566Picture mode is invoked by the command \\[picture-mode].") 586Picture mode is invoked by the command \\[picture-mode]."
587 :type 'hook
588 :group 'picture)
567 589
568(defvar picture-mode-old-local-map) 590(defvar picture-mode-old-local-map)
569(defvar picture-mode-old-mode-name) 591(defvar picture-mode-old-mode-name)
diff --git a/lisp/textmodes/refbib.el b/lisp/textmodes/refbib.el
index ec3039e578d..a2a820002c1 100644
--- a/lisp/textmodes/refbib.el
+++ b/lisp/textmodes/refbib.el
@@ -59,12 +59,20 @@
59;********************************************************** 59;**********************************************************
60; User Parameters 60; User Parameters
61 61
62(defvar r2b-trace-on nil "*trace conversion") 62(defgroup refbib nil
63 63 "Convert refer-style references to ones usable by Latex bib."
64(defvar r2b-journal-abbrevs 64 :prefix "r2b-"
65 '( 65 :group 'wp)
66 ) 66
67 " Abbreviation list for journal names. 67(defcustom r2b-trace-on nil
68 "*Non-nil means trace conversion."
69 :type 'boolean
70 :group 'refbib)
71
72(defcustom r2b-journal-abbrevs
73 '(
74 )
75 "Abbreviation list for journal names.
68If the car of an element matches a journal name exactly, it is replaced by 76If the car of an element matches a journal name exactly, it is replaced by
69the cadr when output. Braces must be included if replacement is a 77the cadr when output. Braces must be included if replacement is a
70{string}, but not if replacement is a bibtex abbreviation. The cadr 78{string}, but not if replacement is a bibtex abbreviation. The cadr
@@ -75,26 +83,31 @@ letter, even if it really doesn't.
75 For example, a value of '((\"Aij\" \"{Artificial Intelligence}\") 83 For example, a value of '((\"Aij\" \"{Artificial Intelligence}\")
76\(\"Ijcai81\" \"ijcai7\")) would expand Aij to the text string 84\(\"Ijcai81\" \"ijcai7\")) would expand Aij to the text string
77\"Artificial Intelligence\", but would replace Ijcai81 with the 85\"Artificial Intelligence\", but would replace Ijcai81 with the
78BibTeX macro \"ijcai7\".") 86BibTeX macro \"ijcai7\"."
79 87 :type '(repeat (list string string))
80(defvar r2b-booktitle-abbrevs 88 :group 'refbib)
81 '( 89
82 ) 90(defcustom r2b-booktitle-abbrevs
83 " Abbreviation list for book and proceedings names. If the car of 91 '(
84an element matches a title or booktitle exactly, it is replaced by 92 )
85the cadr when output. Braces must be included if replacement is 93 "Abbreviation list for book and proceedings names.
86a {string}, but not if replacement is a bibtex abbreviation. The cadr 94If the car of an element matches a title or booktitle exactly, it is
87may be eliminated if is exactly the same as the car. 95replaced by the cadr when output. Braces must be included if
96replacement is a {string}, but not if replacement is a bibtex
97abbreviation. The cadr may be eliminated if is exactly the same as
98the car.
88 Because titles are capitalized before matching, the abbreviated title 99 Because titles are capitalized before matching, the abbreviated title
89should be listed as beginning with a capital letter, even if it doesn't. 100should be listed as beginning with a capital letter, even if it doesn't.
90 For example, a value of '((\"Aij\" \"{Artificial Intelligence}\") 101 For example, a value of '((\"Aij\" \"{Artificial Intelligence}\")
91\(\"Ijcai81\" \"ijcai7\")) would expand Aij to the text string 102\(\"Ijcai81\" \"ijcai7\")) would expand Aij to the text string
92\"Artificial Intelligence\", but would replace Ijcai81 with the 103\"Artificial Intelligence\", but would replace Ijcai81 with the
93BibTeX macro \"ijcai7\".") 104BibTeX macro \"ijcai7\"."
105 :type '(repeat (list string string))
106 :group 'refbib)
94 107
95(defvar r2b-proceedings-list 108(defcustom r2b-proceedings-list
96 '() 109 '()
97 " Assoc list of books or journals which are really conference proceedings, 110 "Assoc list of books or journals which are really conference proceedings,
98but whose name and whose abbrev expansion (as defined in `r2b-journal-abbrevs' 111but whose name and whose abbrev expansion (as defined in `r2b-journal-abbrevs'
99and `r2b-booktitle-abbrevs') does not contain the words \"conference\" or 112and `r2b-booktitle-abbrevs') does not contain the words \"conference\" or
100\"proceedings\". (Those cases are handled automatically.) 113\"proceedings\". (Those cases are handled automatically.)
@@ -106,16 +119,19 @@ a conference, and its expansion is the BibTeX macro \"ijcai7\". Then
106`r2b-proceedings-list' should be '((\"Ijcai81\") ...). If instead its 119`r2b-proceedings-list' should be '((\"Ijcai81\") ...). If instead its
107expansion were \"Proceedings of the Seventh International Conference 120expansion were \"Proceedings of the Seventh International Conference
108on Artificial Intelligence\", then you would NOT need to include Ijcai81 121on Artificial Intelligence\", then you would NOT need to include Ijcai81
109in `r2b-proceedings-list' (although it wouldn't cause an error).") 122in `r2b-proceedings-list' (although it wouldn't cause an error)."
123 :type '(repeat (list string string))
124 :group 'refbib)
110 125
111(defvar r2b-additional-stop-words 126(defvar r2b-additional-stop-words
112 "Some\\|What" 127 "Some\\|What"
113 "Words not to be used to build the citation key. 128 "Words not to be used to build the citation key.
114This is in addition to the `r2b-capitalize-title-stop-words'.") 129This is in addition to the `r2b-capitalize-title-stop-words'.")
115 130
116(defvar r2b-delimit-with-quote 131(defcustom r2b-delimit-with-quote t
117 t 132 "*If true, then use \" to delimit fields, otherwise use braces."
118 "*If true, then use \" to delimit fields, otherwise use braces") 133 :type 'boolean
134 :group 'refbib)
119 135
120;********************************************************** 136;**********************************************************
121; Utility Functions 137; Utility Functions
@@ -189,8 +205,16 @@ This is in addition to the `r2b-capitalize-title-stop-words'.")
189 "Returns string matched in current buffer." 205 "Returns string matched in current buffer."
190 (buffer-substring (match-beginning exp) (match-end exp))) 206 (buffer-substring (match-beginning exp) (match-end exp)))
191 207
192(defvar r2b-out-buf-name "*Out*" "*output from refer-to-bibtex" ) 208(defcustom r2b-out-buf-name "*Out*"
193(defvar r2b-log-name "*Log*" "*logs errors from refer-to-bibtex" ) 209 "*Name of buffer for output from refer-to-bibtex."
210 :type 'string
211 :group 'refbib)
212
213(defcustom r2b-log-name "*Log*"
214 "*Name of buffer for logs errors from refer-to-bibtex."
215 :type 'string
216 :group 'refbib)
217
194(defvar r2b-in-buf nil) 218(defvar r2b-in-buf nil)
195(defvar r2b-out-buf nil) 219(defvar r2b-out-buf nil)
196(defvar r2b-log nil) 220(defvar r2b-log nil)
@@ -663,7 +687,10 @@ do \"M-x r2b-help\" for more info."
663 r2b-out-buf-name r2b-log-name) 687 r2b-out-buf-name r2b-log-name)
664 ) 688 )
665 689
666(defvar r2b-load-quietly nil "*Don't print help message when loaded") 690(defcustom r2b-load-quietly nil
691 "*Non-nil means don't print help message when loaded."
692 :type 'boolean
693 :group 'refbib)
667 694
668(defvar r2b-help-message 695(defvar r2b-help-message
669" Refer to Bibtex Bibliography Conversion 696" Refer to Bibtex Bibliography Conversion
diff --git a/lisp/textmodes/refer.el b/lisp/textmodes/refer.el
index 3234acf2d02..6d710e8d8b5 100644
--- a/lisp/textmodes/refer.el
+++ b/lisp/textmodes/refer.el
@@ -72,7 +72,12 @@
72 72
73(provide 'refer) 73(provide 'refer)
74 74
75(defvar refer-bib-directory nil 75(defgroup refer nil
76 "Look up references in bibliography files."
77 :prefix "refer-"
78 :group 'wp)
79
80(defcustom refer-bib-directory nil
76 "Directory, or list of directories, to search for \\.bib files. Can 81 "Directory, or list of directories, to search for \\.bib files. Can
77be set to 'bibinputs or 'texinputs, in which case the environment 82be set to 'bibinputs or 'texinputs, in which case the environment
78variable BIBINPUTS or TEXINPUTS, respectively, is used to obtain a 83variable BIBINPUTS or TEXINPUTS, respectively, is used to obtain a
@@ -87,10 +92,12 @@ Note that an empty directory is interpreted by BibTeX as indicating
87the default search path. Since Refer does not know that default path, 92the default search path. Since Refer does not know that default path,
88it cannot search it. Include that path explicitly in your BIBINPUTS 93it cannot search it. Include that path explicitly in your BIBINPUTS
89environment if you really want it searched (which is not likely to 94environment if you really want it searched (which is not likely to
90happen anyway).") 95happen anyway)."
96 :type '(choice (repeat directory) (const bibinputs) (const texinputs))
97 :group 'refer)
91 98
92(defvar refer-bib-files 'dir 99(defcustom refer-bib-files 'dir
93 "*List of \\.bib files to search for references, 100 "*List of \\.bib files to search for references,
94or one of the following special values: 101or one of the following special values:
95nil = prompt for \\.bib file (if visiting a \\.bib file, use it as default) 102nil = prompt for \\.bib file (if visiting a \\.bib file, use it as default)
96auto = read \\.bib file names from appropriate command in buffer (see 103auto = read \\.bib file names from appropriate command in buffer (see
@@ -104,16 +111,20 @@ is automatically tried.
104If refer-bib-files is nil, auto or dir, it is setq'd to the appropriate 111If refer-bib-files is nil, auto or dir, it is setq'd to the appropriate
105list of files when it is first used if refer-cache-bib-files is t. If 112list of files when it is first used if refer-cache-bib-files is t. If
106refer-cache-bib-files is nil, the list of \\.bib files to use is re-read 113refer-cache-bib-files is nil, the list of \\.bib files to use is re-read
107each time it is needed.") 114each time it is needed."
115 :type '(choice (repeat file) (const nil) (const auto) (const dir))
116 :group 'refer)
108 117
109(defvar refer-cache-bib-files t 118(defcustom refer-cache-bib-files t
110 "*Variable determining whether the value of refer-bib-files should be cached. 119 "*Variable determining whether the value of refer-bib-files should be cached.
111If t, initialize the value of refer-bib-files the first time it is used. If 120If t, initialize the value of refer-bib-files the first time it is used. If
112nil, re-read the list of \\.bib files depending on the value of refer-bib-files 121nil, re-read the list of \\.bib files depending on the value of refer-bib-files
113each time it is needed.") 122each time it is needed."
123 :type 'boolean
124 :group 'refer)
114 125
115(defvar refer-bib-files-regexp "\\\\bibliography" 126(defcustom refer-bib-files-regexp "\\\\bibliography"
116 "*Regexp matching a bibliography file declaration. 127 "*Regexp matching a bibliography file declaration.
117The current buffer is expected to contain a line such as 128The current buffer is expected to contain a line such as
118\\bibliography{file1,file2,file3} 129\\bibliography{file1,file2,file3}
119which is read to set up refer-bib-files. The regexp must specify the command 130which is read to set up refer-bib-files. The regexp must specify the command
@@ -121,7 +132,9 @@ which is read to set up refer-bib-files. The regexp must specify the command
121command is expected to specify a file name, or a list of comma-separated file 132command is expected to specify a file name, or a list of comma-separated file
122names, within curly braces. 133names, within curly braces.
123If a specified file doesn't exist and has no extension, a \\.bib extension 134If a specified file doesn't exist and has no extension, a \\.bib extension
124is automatically tried.") 135is automatically tried."
136 :type 'regexp
137 :group 'refer)
125 138
126(make-variable-buffer-local 'refer-bib-files) 139(make-variable-buffer-local 'refer-bib-files)
127(make-variable-buffer-local 'refer-cache-bib-files) 140(make-variable-buffer-local 'refer-cache-bib-files)
diff --git a/lisp/textmodes/scribe.el b/lisp/textmodes/scribe.el
index b210e13229d..809992629f6 100644
--- a/lisp/textmodes/scribe.el
+++ b/lisp/textmodes/scribe.el
@@ -30,21 +30,32 @@
30 30
31;;; Code: 31;;; Code:
32 32
33(defgroup scribe nil
34 "Scribe mode."
35 :prefix "scribe-"
36 :group 'wp)
37
33(defvar scribe-mode-syntax-table nil 38(defvar scribe-mode-syntax-table nil
34 "Syntax table used while in scribe mode.") 39 "Syntax table used while in scribe mode.")
35 40
36(defvar scribe-mode-abbrev-table nil 41(defvar scribe-mode-abbrev-table nil
37 "Abbrev table used while in scribe mode.") 42 "Abbrev table used while in scribe mode.")
38 43
39(defvar scribe-fancy-paragraphs nil 44(defcustom scribe-fancy-paragraphs nil
40 "*Non-NIL makes Scribe mode use a different style of paragraph separation.") 45 "*Non-NIL makes Scribe mode use a different style of paragraph separation."
46 :type 'boolean
47 :group 'scribe)
41 48
42(defvar scribe-electric-quote nil 49(defcustom scribe-electric-quote nil
43 "*Non-NIL makes insert of double quote use `` or '' depending on context.") 50 "*Non-NIL makes insert of double quote use `` or '' depending on context."
51 :type 'boolean
52 :group 'scribe)
44 53
45(defvar scribe-electric-parenthesis nil 54(defcustom scribe-electric-parenthesis nil
46 "*Non-NIL makes parenthesis char ( (]}> ) automatically insert its close 55 "*Non-NIL makes parenthesis char ( (]}> ) automatically insert its close
47if typed after an @Command form.") 56if typed after an @Command form."
57 :type 'boolean
58 :group 'scribe)
48 59
49(defconst scribe-open-parentheses "[({<" 60(defconst scribe-open-parentheses "[({<"
50 "Open parenthesis characters for Scribe.") 61 "Open parenthesis characters for Scribe.")
diff --git a/lisp/textmodes/spell.el b/lisp/textmodes/spell.el
index c413459a3d7..780eeb883d8 100644
--- a/lisp/textmodes/spell.el
+++ b/lisp/textmodes/spell.el
@@ -31,13 +31,22 @@
31 31
32;;; Code: 32;;; Code:
33 33
34(defvar spell-command "spell" 34(defgroup spell nil
35 "*Command to run the spell program.") 35 "Interface to the UNIX spell(1) program."
36 :prefix "spell-"
37 :group 'applications)
36 38
37(defvar spell-filter nil 39(defcustom spell-command "spell"
40 "*Command to run the spell program."
41 :type 'string
42 :group 'spell)
43
44(defcustom spell-filter nil
38 "*Filter function to process text before passing it to spell program. 45 "*Filter function to process text before passing it to spell program.
39This function might remove text-processor commands. 46This function might remove text-processor commands.
40nil means don't alter the text before checking it.") 47nil means don't alter the text before checking it."
48 :type 'function
49 :group 'spell)
41 50
42;;;###autoload 51;;;###autoload
43(put 'spell-filter 'risky-local-variable t) 52(put 'spell-filter 'risky-local-variable t)