X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=DOODLE-TIPS;h=b59224768a5d87d424a69584d79f5e103a728b3b;hb=99c158b34f006c5840785347fc7e711a6b246c0c;hp=fe51fbbd054ad5b96e9cf112e8ce985748270292;hpb=3a12cf12b2cb6949dc169140932edc6356a068b7;p=elisp%2Fflim.git diff --git a/DOODLE-TIPS b/DOODLE-TIPS index fe51fbb..b592247 100644 --- a/DOODLE-TIPS +++ b/DOODLE-TIPS @@ -1,26 +1,42 @@ * You should byte-compile(make). Because DOODLE uses very complex macro. -Especialy ew-line.el, ew-scan-m.el, ew-scan-s.el and ew-scan-u.el that are require 'lex. +Especialy ew-line.el, ew-scan-m.el, ew-scan-s.el and ew-scan-u.el that +are require 'lex. (lex is scanner generator.) -* Multiline field-bodies fetched from XOVER is already concatinated, -you should set ew-ignore-76bytes-limit to true. -Currentry Gnus use these variables to decode and "Subject" and "From", -tell it here. Unless doing it, DOODLE does not decode atoms in phrase -because DOODLE cannot decide whether an atom is in phrase or not without -field name information. - -(setq gnus-unstructured-field-decoder - (lambda (string) - (if (fboundp 'ew-decode-field) - (let ((ew-ignore-76bytes-limit t)) - (ew-cut-cr-lf (ew-decode-field "Subject" (ew-lf-to-crlf string)))) - (eword-decode-and-unfold-structured-field string)))) - -(setq gnus-structured-field-decoder - (lambda (string) - (if (fboundp 'ew-decode-field) - (let ((ew-ignore-76bytes-limit t)) - (ew-cut-cr-lf (ew-decode-field "From" (ew-lf-to-crlf string) 'ew-cut-cr-lf))) - (eword-decode-unstructured-field-body (std11-unfold-string string) 'must-unfold)))) +* Multiline field-bodies fetched from XOVER is already unfolded, +so special care is needed for gnus-structured-field-decoder and +gnus-unstructured-field-decoder. + +(autoload 'ew-gnus-structured-field-decoder "ew-compat") +(setq gnus-structured-field-decoder 'ew-gnus-structured-field-decoder) + +(autoload 'ew-gnus-unstructured-field-decoder "ew-compat") +(setq gnus-unstructured-field-decoder 'ew-gnus-unstructured-field-decoder) + +* Ignore warnings about args-eword-* when byte-compiling. + +* If you want to modify load-path or other variables when +byte-compiling without editing files, set EVALARGS environment variable. + + % EVALARGS='(setq load-path (cons "../apel" load-path))' make + +* If you use Chao-gnus 6.9, change nnheader.el. + +diff -u -F^( -r1.10.2.1.2.17 nnheader.el +--- nnheader.el 1998/10/20 11:52:46 1.10.2.1.2.17 ++++ nnheader.el 1998/10/25 14:12:57 +@@ -110,10 +110,10 @@ (defsubst make-full-mail-header (&option + nil + nil nil nil + (if subject +- (eword-decode-and-unfold-unstructured-field subject) ++ (eword-decode-field-body subject 'Subject t) + ) + (if from +- (eword-decode-and-unfold-structured-field from) ++ (eword-decode-field-body from 'From t) + ) + date id references + chars lines xref