[Contents]   [Back]   [Prev]   [Up]   [Next]   [Forward]  


Circular completions in a header

In a header, circular completions are assigned to `C-cTAB'. Circular completion means that a value of alist is replaced by the next value of the list. The end of the list is considered continuous to the top of the list. Circular completions in a header are different for each field as follows:

<Circular completion of domain name>

On a field where addresses are written, use `C-cTAB' for domain completion. Candidates are selected from `mew-mail-domain-list'.

To: kazu@`C-cTAB'

If you try to complete just after "@" as up above, the first domain of `mew-mail-domain-list' is inserted.

To: kazu@mew.org`C-cTAB'

After completion, one more type of `C-cTAB' inserts the next domain of `mew-mail-domain-list'. This completion is looped.

To: kazu@wide.ad.jp

If a candidate can be solely decided, it is inserted.

To: kazu@w`C-cTAB'

The example up above gets:

To: kazu@wide.ad.jp

<Circular completion of From:>

On the From: field, `C-cTAB' circularly completes its value from `mew-from-list'. The first value of the list (aka `mew-from') may have already inserted as follow:

From: Kazu Yamamoto <Kazu@Mew.org>

Typing `C-cTAB' anywhere on the value replaces the value with the next value of `mew-from-list'. For example,

From: Kazu Yamamoto <Kazu@Mew.org>`C-cTAB'

becames as follows:

From: Kazuhiko Yamamoto <kazu@wide.ad.jp>

You can define association of field key and circular completion function in `mew-field-circular-completion-switch'. The following declaration is used by default.

(defvar mew-field-circular-completion-switch
  '(("To:"          . mew-circular-complete-domain)
    ("Cc:"          . mew-circular-complete-domain)
    ("Dcc:"         . mew-circular-complete-domain)
    ("Bcc:"         . mew-circular-complete-domain)
    ("Reply-To:"    . mew-circular-complete-domain)
    ("Resent-To:"   . mew-circular-complete-domain)
    ("Resent-Cc:"   . mew-circular-complete-domain)
    ("From:"        . mew-circular-complete-from)
    ("Resent-From:" . mew-circular-complete-from)
    ("Config:"      . mew-circular-complete-config)))

Please refer to See section Config to know circular completion for Config:.


[Contents]   [Back]   [Prev]   [Up]   [Next]   [Forward]