diff options
| author | Stefan Monnier | 2005-03-28 20:03:18 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2005-03-28 20:03:18 +0000 |
| commit | caf3c78f59f3bfee940b699cd3d5d33b35427a10 (patch) | |
| tree | 79291bfed5d7b8952959bc0603dabd501bd44fcf | |
| parent | a42e7db0c44718304f265bdd2426d3a95393e34a (diff) | |
| download | emacs-caf3c78f59f3bfee940b699cd3d5d33b35427a10.tar.gz emacs-caf3c78f59f3bfee940b699cd3d5d33b35427a10.zip | |
(sc-mail-field): Use assoc-string.
(sc-get-address): Simplify regexps.
| -rw-r--r-- | lisp/ChangeLog | 12 | ||||
| -rw-r--r-- | lisp/mail/supercite.el | 8 |
2 files changed, 16 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f2dac559136..95ab41b8a86 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,15 @@ | |||
| 1 | 2005-03-28 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * mail/supercite.el (sc-mail-field): Use assoc-string. | ||
| 4 | (sc-get-address): Simplify regexps. | ||
| 5 | |||
| 6 | * files.el (minibuffer-with-setup-hook): New macro. | ||
| 7 | (find-file-read-args): Use it to avoid let-binding | ||
| 8 | minibuffer-with-setup-hook (which breaks turning on/off | ||
| 9 | file-name-shadow-mode while in the prompt). | ||
| 10 | |||
| 11 | * complete.el (PC-read-include-file-name-internal): Use test-completion. | ||
| 12 | |||
| 1 | 2005-03-28 Luc Teirlinck <teirllm@auburn.edu> | 13 | 2005-03-28 Luc Teirlinck <teirllm@auburn.edu> |
| 2 | 14 | ||
| 3 | * font-lock.el: Bind `font-lock-fontify-block' to M-o M-o. | 15 | * font-lock.el: Bind `font-lock-fontify-block' to M-o M-o. |
diff --git a/lisp/mail/supercite.el b/lisp/mail/supercite.el index 3f24c952d89..371bb90b9cf 100644 --- a/lisp/mail/supercite.el +++ b/lisp/mail/supercite.el | |||
| @@ -838,7 +838,7 @@ error occurs." | |||
| 838 | "Return the mail header field value associated with FIELD. | 838 | "Return the mail header field value associated with FIELD. |
| 839 | If there was no mail header with FIELD as its key, return the value of | 839 | If there was no mail header with FIELD as its key, return the value of |
| 840 | `sc-mumble'. FIELD is case insensitive." | 840 | `sc-mumble'. FIELD is case insensitive." |
| 841 | (or (cdr (assoc (downcase field) sc-mail-info)) sc-mumble)) | 841 | (or (cdr (assoc-string field sc-mail-info 'case-fold)) sc-mumble)) |
| 842 | 842 | ||
| 843 | (defun sc-mail-field-query (arg) | 843 | (defun sc-mail-field-query (arg) |
| 844 | "View the value of a mail field. | 844 | "View the value of a mail field. |
| @@ -916,8 +916,8 @@ Match addresses of the style ``<name[stuff]>.''" | |||
| 916 | "Get the full email address path from FROM. | 916 | "Get the full email address path from FROM. |
| 917 | AUTHOR is the author's name (which is removed from the address)." | 917 | AUTHOR is the author's name (which is removed from the address)." |
| 918 | (let ((eos (length from))) | 918 | (let ((eos (length from))) |
| 919 | (if (string-match (concat "\\(^\\|^\"\\)" author | 919 | (if (string-match (concat "\\`\"?" (regexp-quote author) |
| 920 | "\\(\\s +\\|\"\\s +\\)") from 0) | 920 | "\"?\\s +") from 0) |
| 921 | (let ((address (substring from (match-end 0) eos))) | 921 | (let ((address (substring from (match-end 0) eos))) |
| 922 | (if (and (= (aref address 0) ?<) | 922 | (if (and (= (aref address 0) ?<) |
| 923 | (= (aref address (1- (length address))) ?>)) | 923 | (= (aref address (1- (length address))) ?>)) |
| @@ -2054,5 +2054,5 @@ more information. Info node `(SC)Top'." | |||
| 2054 | (provide 'supercite) | 2054 | (provide 'supercite) |
| 2055 | (run-hooks 'sc-load-hook) | 2055 | (run-hooks 'sc-load-hook) |
| 2056 | 2056 | ||
| 2057 | ;;; arch-tag: a5d5bfa6-3bd5-4414-8c65-0afc83e45cd3 | 2057 | ;; arch-tag: a5d5bfa6-3bd5-4414-8c65-0afc83e45cd3 |
| 2058 | ;;; supercite.el ends here | 2058 | ;;; supercite.el ends here |