comparison lisp/mh-e/mh-customize.el @ 68013:bbc0e52abce5

* mh-alias.el (mh-alias-add-alias): Grand message and error string unification. Use single sentence if possible by using semicolon. Don't end message with punctuation. Don't need format with message. Quote messages as in docstrings: use `' around symbols, \" for option choices. Don't use quotes around %s. * mh-comp.el (mh-complete-word): Ditto. * mh-customize.el (mh-adaptive-cmd-note-flag-check) (mh-scan-format-file-check): Ditto. * mh-e.el (mh-refile-or-write-again, mh-previous-unread-msg) (mh-delete-a-msg, mh-refile-a-msg, mh-next-unread-msg) (mh-msg-num-width-to-column): Ditto. * mh-identity.el (mh-identity-field-handler): Ditto. * mh-index.el (mh-mairix-execute-search) (mh-swish-execute-search, mh-swish++-execute-search) (mh-namazu-execute-search): Ditto. * mh-init.el (mh-variant-set): Ditto. * mh-mime.el (mh-mh-to-mime-undo, mh-mml-forward-message) (mh-secure-message, mh-mime-display): Ditto. * mh-pick.el (mh-search-folder, mh-pick-construct-regexp): Ditto. * mh-seq.el (mh-narrow-to-seq, mh-put-msg-in-seq, mh-read-seq) (mh-read-range, mh-thread-container-subject): Ditto. * mh-utils.el (mh-x-image-scale-and-display) (mh-prompt-for-folder, mh-handle-process-error) (mh-list-to-string-1): Ditto.
author Bill Wohler <wohler@newt.com>
date Wed, 04 Jan 2006 02:08:12 +0000
parents 830e95c83d49
children aad660b49047
comparison
equal deleted inserted replaced
68012:256cc87e0619 68013:bbc0e52abce5
1039 Throw an error if user tries to turn on 1039 Throw an error if user tries to turn on
1040 `mh-adaptive-cmd-note-flag' when `mh-scan-format-file' isn't t. 1040 `mh-adaptive-cmd-note-flag' when `mh-scan-format-file' isn't t.
1041 Otherwise, set SYMBOL to VALUE." 1041 Otherwise, set SYMBOL to VALUE."
1042 (if (and value 1042 (if (and value
1043 (not (eq mh-scan-format-file t))) 1043 (not (eq mh-scan-format-file t)))
1044 (error "%s %s" "Can't turn on unless mh-scan-format-file" 1044 (error "%s %s" "Can't turn on unless `mh-scan-format-file'"
1045 "is set to \"Use MH-E scan Format\"") 1045 "is set to \"Use MH-E scan Format\"")
1046 (set-default symbol value))) 1046 (set-default symbol value)))
1047 1047
1048 (defun mh-scan-format-file-check (symbol value) 1048 (defun mh-scan-format-file-check (symbol value)
1049 "Check if desired setting is legal. 1049 "Check if desired setting is legal.
1050 Throw an error if user tries to set `mh-scan-format-file' to 1050 Throw an error if user tries to set `mh-scan-format-file' to
1051 anything but t when `mh-adaptive-cmd-note-flag' is on. Otherwise, 1051 anything but t when `mh-adaptive-cmd-note-flag' is on. Otherwise,
1052 set SYMBOL to VALUE." 1052 set SYMBOL to VALUE."
1053 (if (and (not (eq value t)) 1053 (if (and (not (eq value t))
1054 (eq mh-adaptive-cmd-note-flag t)) 1054 (eq mh-adaptive-cmd-note-flag t))
1055 (error "%s %s" "You must turn off mh-adaptive-cmd-note-flag" 1055 (error "%s %s" "You must turn off `mh-adaptive-cmd-note-flag'"
1056 "unless you use \"Use MH-E scan Format\"") 1056 "unless you use \"Use MH-E scan Format\"")
1057 (set-default symbol value))) 1057 (set-default symbol value)))
1058 1058
1059 (defcustom mh-adaptive-cmd-note-flag t 1059 (defcustom mh-adaptive-cmd-note-flag t
1060 "*Non-nil means that the message number width is determined dynamically. 1060 "*Non-nil means that the message number width is determined dynamically.