diff options
| author | Dave Love | 1999-04-12 08:42:35 +0000 |
|---|---|---|
| committer | Dave Love | 1999-04-12 08:42:35 +0000 |
| commit | 6923dac346d2b73e2f5458ebbf311046fe3fafe9 (patch) | |
| tree | 1af87dc61000c8da45f28579dad7e90acd06a565 | |
| parent | b550eb05f78a306210dd41857b8869b1d2727e5c (diff) | |
| download | emacs-6923dac346d2b73e2f5458ebbf311046fe3fafe9.tar.gz emacs-6923dac346d2b73e2f5458ebbf311046fe3fafe9.zip | |
(sc-attrib-selection-list): Fix custom type
more.
(sc-emacs-features): Recognize Emacs 20.
(sc-read-string): Use history arg.
(sc-scan-info-alist): Check for rtnvalue a cons.
| -rw-r--r-- | lisp/mail/supercite.el | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lisp/mail/supercite.el b/lisp/mail/supercite.el index 798079a5ecc..1f23a50f5b7 100644 --- a/lisp/mail/supercite.el +++ b/lisp/mail/supercite.el | |||
| @@ -28,7 +28,7 @@ | |||
| 28 | ;; Boston, MA 02111-1307, USA. | 28 | ;; Boston, MA 02111-1307, USA. |
| 29 | 29 | ||
| 30 | ;; LCD Archive Entry | 30 | ;; LCD Archive Entry |
| 31 | ;; supercite|Barry A. Warsaw|supercite-help@anthem.nlm.nih.gov | 31 | ;; supercite|Barry A. Warsaw|supercite-help@python.org |
| 32 | ;; |Mail and news reply citation package | 32 | ;; |Mail and news reply citation package |
| 33 | ;; |1993/09/22 18:58:46|3.1| | 33 | ;; |1993/09/22 18:58:46|3.1| |
| 34 | 34 | ||
| @@ -421,7 +421,7 @@ must contain an element of the string \"sc-consult\" for this variable | |||
| 421 | to be consulted during attribution selection." | 421 | to be consulted during attribution selection." |
| 422 | :type '(repeat (list string (repeat (cons regexp | 422 | :type '(repeat (list string (repeat (cons regexp |
| 423 | (choice (repeat (repeat sexp)) | 423 | (choice (repeat (repeat sexp)) |
| 424 | symbol))))) | 424 | string))))) |
| 425 | :group 'supercite-attr) | 425 | :group 'supercite-attr) |
| 426 | 426 | ||
| 427 | (defcustom sc-attribs-preselect-hook nil | 427 | (defcustom sc-attribs-preselect-hook nil |
| @@ -510,7 +510,9 @@ string." | |||
| 510 | (defconst sc-emacs-features | 510 | (defconst sc-emacs-features |
| 511 | (let ((version 'v18) | 511 | (let ((version 'v18) |
| 512 | (flavor 'GNU)) | 512 | (flavor 'GNU)) |
| 513 | (if (string= (substring emacs-version 0 2) "19") | 513 | (if (or |
| 514 | (string= (substring emacs-version 0 2) "19") | ||
| 515 | (string= (substring emacs-version 0 2) "20")) | ||
| 514 | (setq version 'v19)) | 516 | (setq version 'v19)) |
| 515 | (if (string-match "Lucid" emacs-version) | 517 | (if (string-match "Lucid" emacs-version) |
| 516 | (setq flavor 'Lucid)) | 518 | (setq flavor 'Lucid)) |
| @@ -647,8 +649,7 @@ In version 18, the HISTORY argument is ignored." | |||
| 647 | "Compatibility between Emacs 18 and 19 `read-string'. | 649 | "Compatibility between Emacs 18 and 19 `read-string'. |
| 648 | In version 18, the HISTORY argument is ignored." | 650 | In version 18, the HISTORY argument is ignored." |
| 649 | (if (memq 'v19 sc-emacs-features) | 651 | (if (memq 'v19 sc-emacs-features) |
| 650 | ;; maybe future versions will take a `history' argument: | 652 | (read-string prompt initial-contents history) |
| 651 | (read-string prompt initial-contents) | ||
| 652 | (read-string prompt initial-contents))) | 653 | (read-string prompt initial-contents))) |
| 653 | 654 | ||
| 654 | (if (fboundp 'match-string) | 655 | (if (fboundp 'match-string) |
| @@ -765,7 +766,9 @@ the list should be unique." | |||
| 765 | (thing (cdr ml-elem))) | 766 | (thing (cdr ml-elem))) |
| 766 | (if (string-match regexp infoval) | 767 | (if (string-match regexp infoval) |
| 767 | ;; we found a match, time to return | 768 | ;; we found a match, time to return |
| 768 | (setq rtnvalue thing | 769 | (setq rtnvalue (if (consp thing) |
| 770 | (car thing) | ||
| 771 | thing) | ||
| 769 | mlist nil | 772 | mlist nil |
| 770 | alist nil) | 773 | alist nil) |
| 771 | ;; else we didn't find a match | 774 | ;; else we didn't find a match |