Function: sc-mail-field-query
sc-mail-field-query is an interactive and byte-compiled function
defined in supercite.el.gz.
Signature
(sc-mail-field-query ARG)
Documentation
View the value of a mail field.
With C-u (universal-argument), prompts for action on mail field.
Action can be one of: View, Modify, Add, or Delete.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/mail/supercite.el.gz
(defun sc-mail-field-query (arg)
"View the value of a mail field.
With \\[universal-argument], prompts for action on mail field.
Action can be one of: View, Modify, Add, or Delete."
(interactive "P")
(let* ((alist '(("view" . ?v) ("modify" . ?m) ("add" . ?a) ("delete" . ?d)))
(action (if (not arg) ?v (sc-ask alist)))
key)
(if (not action)
()
(setq key (completing-read
(concat (car (rassq action alist))
" information key: ")
sc-mail-info nil
(if (eq action ?a) nil 'noexit)
nil 'sc-mail-field-history))
(cond
((eq action ?v)
(message "%s: %s" key (cdr (assoc key sc-mail-info))))
((eq action ?d)
(setq sc-mail-info (delq (assoc key sc-mail-info) sc-mail-info)))
((eq action ?m)
(let ((keyval (assoc key sc-mail-info)))
;; first put initial value onto list if not already there
(if (not (member (cdr keyval)
sc-mail-field-modification-history))
(setq sc-mail-field-modification-history
(cons (cdr keyval) sc-mail-field-modification-history)))
(setcdr keyval (read-string
(concat key ": ") (cdr keyval)
'sc-mail-field-modification-history))))
((eq action ?a)
(push (cons key (read-string (concat key ": "))) sc-mail-info))))))