diff options
| author | Juri Linkov | 2004-12-14 00:54:54 +0000 |
|---|---|---|
| committer | Juri Linkov | 2004-12-14 00:54:54 +0000 |
| commit | 37d8fcc253e253b425eb20bc832e9799253b5b78 (patch) | |
| tree | c349958195dcfcf3ee209008d2964223e9822ca0 | |
| parent | f1e2a03326d180858cad6fb8a1718714dc5f161a (diff) | |
| download | emacs-37d8fcc253e253b425eb20bc832e9799253b5b78.tar.gz emacs-37d8fcc253e253b425eb20bc832e9799253b5b78.zip | |
(sc-cite-frame-alist): Doc fix.
(sc-cite-region, sc-uncite-region, sc-recite-region):
Fix previous change to handle not alist as a symbol, but
a citation frame as a symbol that represents a variable name.
| -rw-r--r-- | lisp/ChangeLog | 12 | ||||
| -rw-r--r-- | lisp/mail/supercite.el | 32 |
2 files changed, 26 insertions, 18 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f0e9e860ff2..905c8b4e549 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,9 +1,19 @@ | |||
| 1 | 2004-12-13 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * simple.el (next-error-buffer-p, next-error-find-buffer): | ||
| 4 | Doc fix. | ||
| 5 | |||
| 6 | * mail/supercite.el (sc-cite-frame-alist): Doc fix. | ||
| 7 | (sc-cite-region, sc-uncite-region, sc-recite-region): | ||
| 8 | Fix previous change to handle not alist as a symbol, but | ||
| 9 | a citation frame as a symbol that represents a variable name. | ||
| 10 | |||
| 1 | 2004-12-13 Richard M. Stallman <rms@gnu.org> | 11 | 2004-12-13 Richard M. Stallman <rms@gnu.org> |
| 2 | 12 | ||
| 3 | * filecache.el (file-cache-add-directory-using-find): | 13 | * filecache.el (file-cache-add-directory-using-find): |
| 4 | Only set up file-cache-find-command-posix-flag if we will use it. | 14 | Only set up file-cache-find-command-posix-flag if we will use it. |
| 5 | 15 | ||
| 6 | * bindings.el (mode-line-buffer-identification-keymap): | 16 | * bindings.el (mode-line-buffer-identification-keymap): |
| 7 | Don't cancel the mode-line's usual down-mouse-1 binding. | 17 | Don't cancel the mode-line's usual down-mouse-1 binding. |
| 8 | 18 | ||
| 9 | * cus-edit.el (custom-face-selected): Handle `default' specs. | 19 | * cus-edit.el (custom-face-selected): Handle `default' specs. |
diff --git a/lisp/mail/supercite.el b/lisp/mail/supercite.el index c1f4b6f0170..06282c430f0 100644 --- a/lisp/mail/supercite.el +++ b/lisp/mail/supercite.el | |||
| @@ -146,8 +146,9 @@ Each element of this list has the following form: | |||
| 146 | (...))) | 146 | (...))) |
| 147 | 147 | ||
| 148 | Where INFOKEY is a key for `sc-mail-field', REGEXP is a regular | 148 | Where INFOKEY is a key for `sc-mail-field', REGEXP is a regular |
| 149 | expression to match against the INFOKEY's value. FRAME is a citation | 149 | expression to match against the INFOKEY's value. FRAME is |
| 150 | frame, or a variable containing a citation frame." | 150 | a citation frame, or a symbol that represents the name of |
| 151 | a variable whose value is a citation frame." | ||
| 151 | :type '(repeat (list symbol (repeat (cons regexp | 152 | :type '(repeat (list symbol (repeat (cons regexp |
| 152 | (choice (repeat (repeat sexp)) | 153 | (choice (repeat (repeat sexp)) |
| 153 | symbol))))) | 154 | symbol))))) |
| @@ -1434,12 +1435,11 @@ When called interactively, the optional arg INTERACTIVE is non-nil, | |||
| 1434 | and that means call `sc-select-attribution' too." | 1435 | and that means call `sc-select-attribution' too." |
| 1435 | (interactive "r\nP\np") | 1436 | (interactive "r\nP\np") |
| 1436 | (undo-boundary) | 1437 | (undo-boundary) |
| 1437 | (let ((frame (or (sc-scan-info-alist | 1438 | (let ((frame (sc-scan-info-alist sc-cite-frame-alist)) |
| 1438 | (if (symbolp sc-cite-frame-alist) | ||
| 1439 | (symbol-value sc-cite-frame-alist) | ||
| 1440 | sc-cite-frame-alist)) | ||
| 1441 | sc-default-cite-frame)) | ||
| 1442 | (sc-confirm-always-p (if confirm-p t sc-confirm-always-p))) | 1439 | (sc-confirm-always-p (if confirm-p t sc-confirm-always-p))) |
| 1440 | (if (and frame (symbolp frame)) | ||
| 1441 | (setq frame (symbol-value frame))) | ||
| 1442 | (or frame (setq frame sc-default-cite-frame)) | ||
| 1443 | (run-hooks 'sc-pre-cite-hook) | 1443 | (run-hooks 'sc-pre-cite-hook) |
| 1444 | (if interactive | 1444 | (if interactive |
| 1445 | (sc-select-attribution)) | 1445 | (sc-select-attribution)) |
| @@ -1450,11 +1450,10 @@ and that means call `sc-select-attribution' too." | |||
| 1450 | First runs `sc-pre-uncite-hook'." | 1450 | First runs `sc-pre-uncite-hook'." |
| 1451 | (interactive "r") | 1451 | (interactive "r") |
| 1452 | (undo-boundary) | 1452 | (undo-boundary) |
| 1453 | (let ((frame (or (sc-scan-info-alist | 1453 | (let ((frame (sc-scan-info-alist sc-uncite-frame-alist))) |
| 1454 | (if (symbolp sc-uncite-frame-alist) | 1454 | (if (and frame (symbolp frame)) |
| 1455 | (symbol-value sc-uncite-frame-alist) | 1455 | (setq frame (symbol-value frame))) |
| 1456 | sc-uncite-frame-alist)) | 1456 | (or frame (setq frame sc-default-uncite-frame)) |
| 1457 | sc-default-uncite-frame))) | ||
| 1458 | (run-hooks 'sc-pre-uncite-hook) | 1457 | (run-hooks 'sc-pre-uncite-hook) |
| 1459 | (regi-interpret frame start end))) | 1458 | (regi-interpret frame start end))) |
| 1460 | 1459 | ||
| @@ -1465,11 +1464,10 @@ First runs `sc-pre-recite-hook'." | |||
| 1465 | (let ((sc-confirm-always-p t)) | 1464 | (let ((sc-confirm-always-p t)) |
| 1466 | (sc-select-attribution)) | 1465 | (sc-select-attribution)) |
| 1467 | (undo-boundary) | 1466 | (undo-boundary) |
| 1468 | (let ((frame (or (sc-scan-info-alist | 1467 | (let ((frame (sc-scan-info-alist sc-recite-frame-alist))) |
| 1469 | (if (symbolp sc-recite-frame-alist) | 1468 | (if (and frame (symbolp frame)) |
| 1470 | (symbol-value sc-recite-frame-alist) | 1469 | (setq frame (symbol-value frame))) |
| 1471 | sc-recite-frame-alist)) | 1470 | (or frame (setq frame sc-default-recite-frame)) |
| 1472 | sc-default-recite-frame))) | ||
| 1473 | (run-hooks 'sc-pre-recite-hook) | 1471 | (run-hooks 'sc-pre-recite-hook) |
| 1474 | (regi-interpret frame start end))) | 1472 | (regi-interpret frame start end))) |
| 1475 | 1473 | ||