diff options
| author | Juanma Barranquero | 2005-08-09 11:00:42 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2005-08-09 11:00:42 +0000 |
| commit | 177a0809c6522f167a8238aa42ed8c2c271388d8 (patch) | |
| tree | 7a0ca48dc8cfba7e0d89a718ec262d6f2943db6d | |
| parent | 196a121b68b432440dc8a9558b7479e71b8f7a68 (diff) | |
| download | emacs-177a0809c6522f167a8238aa42ed8c2c271388d8.tar.gz emacs-177a0809c6522f167a8238aa42ed8c2c271388d8.zip | |
(r2b-convert-record, r2b-convert-buffer): Improve argument/docstring
consistency. Doc fixes.
(r2b-variables, r2bv-address, r2bv-annote, r2bv-author,r2bv-booktitle,
r2bv-date, r2bv-decade, r2bv-editor,r2bv-entry-kind, r2bv-institution,
r2bv-journal, r2bv-keywords,r2bv-kn, r2bv-month, r2bv-note, r2bv-number,
r2bv-ordering,r2bv-organization, r2bv-pages, r2bv-primary-author,r2bv-publisher,
r2bv-school, r2bv-title, r2bv-title-first-word, r2bv-tr, r2bv-type, r2bv-volume,
r2bv-where, r2bv-year): Defvar at compile time.
| -rw-r--r-- | lisp/textmodes/refbib.el | 88 |
1 files changed, 50 insertions, 38 deletions
diff --git a/lisp/textmodes/refbib.el b/lisp/textmodes/refbib.el index afea0c20c5e..99e2b780999 100644 --- a/lisp/textmodes/refbib.el +++ b/lisp/textmodes/refbib.el | |||
| @@ -222,37 +222,49 @@ This is in addition to the `r2b-capitalize-title-stop-words'.") | |||
| 222 | 222 | ||
| 223 | (defvar r2b-error-found nil) | 223 | (defvar r2b-error-found nil) |
| 224 | 224 | ||
| 225 | (eval-when-compile | ||
| 226 | (defvar r2b-variables) (defvar r2bv-address) (defvar r2bv-annote) | ||
| 227 | (defvar r2bv-author) (defvar r2bv-booktitle) (defvar r2bv-date) | ||
| 228 | (defvar r2bv-decade) (defvar r2bv-editor) (defvar r2bv-entry-kind) | ||
| 229 | (defvar r2bv-institution) (defvar r2bv-journal) (defvar r2bv-keywords) | ||
| 230 | (defvar r2bv-kn) (defvar r2bv-month) (defvar r2bv-note) | ||
| 231 | (defvar r2bv-number) (defvar r2bv-ordering) (defvar r2bv-organization) | ||
| 232 | (defvar r2bv-pages) (defvar r2bv-primary-author) (defvar r2bv-publisher) | ||
| 233 | (defvar r2bv-school) (defvar r2bv-title) (defvar r2bv-title-first-word) | ||
| 234 | (defvar r2bv-tr) (defvar r2bv-type) (defvar r2bv-volume) | ||
| 235 | (defvar r2bv-where) (defvar r2bv-year)) | ||
| 236 | |||
| 225 | (setq r2b-variables '( | 237 | (setq r2b-variables '( |
| 226 | r2b-error-found | 238 | r2b-error-found |
| 227 | r2bv-author | 239 | r2bv-author |
| 228 | r2bv-primary-author | 240 | r2bv-primary-author |
| 229 | r2bv-date | 241 | r2bv-date |
| 230 | r2bv-year | 242 | r2bv-year |
| 231 | r2bv-decade | 243 | r2bv-decade |
| 232 | r2bv-month | 244 | r2bv-month |
| 233 | r2bv-title | 245 | r2bv-title |
| 234 | r2bv-title-first-word | 246 | r2bv-title-first-word |
| 235 | r2bv-editor | 247 | r2bv-editor |
| 236 | r2bv-annote | 248 | r2bv-annote |
| 237 | r2bv-tr | 249 | r2bv-tr |
| 238 | r2bv-address | 250 | r2bv-address |
| 239 | r2bv-institution | 251 | r2bv-institution |
| 240 | r2bv-keywords | 252 | r2bv-keywords |
| 241 | r2bv-booktitle | 253 | r2bv-booktitle |
| 242 | r2bv-journal | 254 | r2bv-journal |
| 243 | r2bv-volume | 255 | r2bv-volume |
| 244 | r2bv-number | 256 | r2bv-number |
| 245 | r2bv-pages | 257 | r2bv-pages |
| 246 | r2bv-booktitle | 258 | r2bv-booktitle |
| 247 | r2bv-kn | 259 | r2bv-kn |
| 248 | r2bv-publisher | 260 | r2bv-publisher |
| 249 | r2bv-organization | 261 | r2bv-organization |
| 250 | r2bv-school | 262 | r2bv-school |
| 251 | r2bv-type | 263 | r2bv-type |
| 252 | r2bv-where | 264 | r2bv-where |
| 253 | r2bv-note | 265 | r2bv-note |
| 254 | r2bv-ordering | 266 | r2bv-ordering |
| 255 | )) | 267 | )) |
| 256 | 268 | ||
| 257 | (defun r2b-clear-variables () | 269 | (defun r2b-clear-variables () |
| 258 | "Set all global vars used by r2b to nil." | 270 | "Set all global vars used by r2b to nil." |
| @@ -633,14 +645,14 @@ but not a publisher." | |||
| 633 | ) | 645 | ) |
| 634 | 646 | ||
| 635 | 647 | ||
| 636 | (defun r2b-convert-record (output-name) | 648 | (defun r2b-convert-record (output) |
| 637 | "Transform current bib entry and append to buffer OUTPUT; | 649 | "Transform current bib entry and append to buffer OUTPUT. |
| 638 | do \"M-x r2b-help\" for more info." | 650 | Do `\\[r2b-help]' for more info." |
| 639 | (interactive | 651 | (interactive |
| 640 | (list (read-string "Output to buffer: " r2b-out-buf-name))) | 652 | (list (read-string "Output to buffer: " r2b-out-buf-name))) |
| 641 | (let (rec-end rec-begin not-done) | 653 | (let (rec-end rec-begin not-done) |
| 642 | (setq r2b-out-buf-name output-name) | 654 | (setq r2b-out-buf-name output) |
| 643 | (setq r2b-out-buf (get-buffer-create output-name)) | 655 | (setq r2b-out-buf (get-buffer-create output)) |
| 644 | (setq r2b-in-buf (current-buffer)) | 656 | (setq r2b-in-buf (current-buffer)) |
| 645 | (set-buffer r2b-out-buf) | 657 | (set-buffer r2b-out-buf) |
| 646 | (goto-char (point-max)) | 658 | (goto-char (point-max)) |
| @@ -670,9 +682,9 @@ do \"M-x r2b-help\" for more info." | |||
| 670 | )) | 682 | )) |
| 671 | 683 | ||
| 672 | 684 | ||
| 673 | (defun r2b-convert-buffer (output-name) | 685 | (defun r2b-convert-buffer (output) |
| 674 | "Transform current buffer and append to buffer OUTPUT. | 686 | "Transform current buffer and append to buffer OUTPUT. |
| 675 | Do `M-x r2b-help' for more info." | 687 | Do `\\[r2b-help]' for more info." |
| 676 | (interactive | 688 | (interactive |
| 677 | (list (read-string "Output to buffer: " r2b-out-buf-name))) | 689 | (list (read-string "Output to buffer: " r2b-out-buf-name))) |
| 678 | (save-excursion | 690 | (save-excursion |
| @@ -683,7 +695,7 @@ Do `M-x r2b-help' for more info." | |||
| 683 | (goto-char (point-min)) | 695 | (goto-char (point-min)) |
| 684 | (message "Working, please be patient...") | 696 | (message "Working, please be patient...") |
| 685 | (sit-for 0) | 697 | (sit-for 0) |
| 686 | (while (r2b-convert-record output-name) t) | 698 | (while (r2b-convert-record output) t) |
| 687 | (message "Done, results in %s, errors in %s" | 699 | (message "Done, results in %s, errors in %s" |
| 688 | r2b-out-buf-name r2b-log-name) | 700 | r2b-out-buf-name r2b-log-name) |
| 689 | ) | 701 | ) |