* gnus-score.el (gnus-score-headers): Move the "Scoring..."
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 19 Aug 2001 22:29:24 +0000 (22:29 +0000)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 19 Aug 2001 22:29:24 +0000 (22:29 +0000)
message down in levels, since it happens very fast.

* smiley-ems.el (smiley-update-cache): Respect the symbol version
of smiley-regexp-alist.

* mm-view.el (mm-inline-text): Ignore vcard errors.

* gnus-art.el (gnus-ignored-headers): Added more junk headers.

* gnus-score.el (gnus-all-score-files): Use append instead of
nconc.

* gnus.el (gnus-splash-face): Doc fix.

lisp/ChangeLog
lisp/earcon.el
lisp/gnus-art.el
lisp/gnus-score.el
lisp/gnus.el
lisp/mm-decode.el
lisp/mm-view.el
lisp/smiley-ems.el

index 8252248..3c86888 100644 (file)
@@ -1,5 +1,28 @@
+2001-08-19  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
+
+       * earcon.el (earcon-auto-play): Remove unused option.
+
 2001-08-19 16:14:41  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * gnus-score.el (gnus-score-headers): Move the "Scoring..."
+       message down in levels, since it happens very fast.
+
+       * smiley-ems.el (smiley-update-cache): Respect the symbol version
+       of smiley-regexp-alist.
+
+       * mm-view.el (mm-inline-text): Ignore vcard errors.
+
+       * gnus-art.el (gnus-ignored-headers): Added more junk headers. 
+
+       * gnus-score.el (gnus-all-score-files): Use append instead of
+       nconc. 
+
+       * gnus.el (gnus-splash-face): Doc fix.
+
+       * mm-decode.el (mm-mailcap-command): Use
+       mm-path-name-rewrite-functions. 
+       (mm-path-name-rewrite-functions): New variable.
+
        * gnus-spec.el (gnus-parse-complex-format): React to ?=.
        (gnus-complex-form-to-spec): Insert tab.
        (gnus-spec-tab): New function.
index 19d3fa5..ecd118f 100644 (file)
   "Turn ** sounds ** into noise."
   :group 'gnus-visual)
 
-(defcustom earcon-auto-play nil
-  "*When True, automatically play sounds as well as buttonize them."
-  :type 'boolean
-  :group 'earcon)
-
 (defcustom earcon-prefix "**"
   "*String denoting the start of an earcon."
   :type 'string
index e28835c..cdb8ab9 100644 (file)
     "^X-Received:" "^Content-length:" "X-precedence:"
     "^X-Authenticated-User:" "^X-Comment" "^X-Report:" "^X-Abuse-Info:"
     "^X-HTTP-Proxy:" "^X-Mydeja-Info:" "^X-Copyright" "^X-No-Markup:"
-    "^X-Abuse-Info:")
+    "^X-Abuse-Info:" "^X-From_:" "^X-Accept-Language:" "^Errors-To:"
+    "^X-BeenThere:" "^X-Mailman-Version:" "^List-Help:" "^List-Post:"
+    "^List-Subscribe:" "^List-Id:" "^List-Unsubscribe:" "^List-Archive:"
+     "^X-Content-length:" "^X-Posting-Agent:")
   "*All headers that start with this regexp will be hidden.
 This variable can also be a list of regexps of headers to be ignored.
 If `gnus-visible-headers' is non-nil, this variable will be ignored."
index 31825dd..8a813c3 100644 (file)
@@ -1433,7 +1433,7 @@ EXTRA is the possible non-standard header."
               (headers gnus-newsgroup-headers)
               (current-score-file gnus-current-score-file)
               entry header new)
-         (gnus-message 5 "Scoring...")
+         (gnus-message 7 "Scoring...")
          ;; Create articles, an alist of the form `(HEADER . SCORE)'.
          (while (setq header (pop headers))
            ;; WARNING: The assq makes the function O(N*S) while it could
@@ -1494,7 +1494,7 @@ EXTRA is the possible non-standard header."
                  (gnus-score-advanced (car score) trace))
                (pop score))))
 
-         (gnus-message 5 "Scoring...done"))))))
+         (gnus-message 7 "Scoring...done"))))))
 
 (defun gnus-score-lower-thread (thread score-adjust)
   "Lower the score on THREAD with SCORE-ADJUST.
@@ -2744,8 +2744,8 @@ The list is determined from the variable gnus-score-file-alist."
       (while funcs
        (when (gnus-functionp (car funcs))
          (setq score-files
-               (nconc score-files
-                      (nreverse (funcall (car funcs) group)))))
+               (append score-files
+                       (nreverse (funcall (car funcs) group)))))
        (setq funcs (cdr funcs)))
       (when gnus-score-use-all-scores
        ;; Add any home score files.
index 311d5c3..9deb410 100644 (file)
@@ -753,7 +753,7 @@ be set in `.emacs' instead."
      (:foreground "Brown"))
     (t
      ()))
-  "Face of the splash screen.")
+  "Face for the splash screen.")
 
 (defun gnus-splash ()
   (save-excursion
index 3bc681d..8bdf2ca 100644 (file)
@@ -279,6 +279,14 @@ Ready-made functions include
 `capitalize', `downcase', `upcase', and
 `upcase-initials'.")
 
+(defvar mm-path-name-rewrite-functions nil
+  "*List of functions used for rewriting path names of MIME parts.
+This is used when viewing parts externally , and is meant for
+transforming the path name so that non-compliant programs can
+find the file where it's saved.
+
+Each function takes a file name as input and returns a file name.")
+
 (defvar mm-file-name-replace-whitespace nil
   "String used for replacing whitespace characters; default is `\"_\"'.")
 
@@ -611,7 +619,8 @@ external if displayed external."
                  (mm-handle-set-undisplayer handle mm)))))
        ;; The function is a string to be executed.
        (mm-insert-part handle)
-       (let* ((dir (make-temp-name (expand-file-name "emm." mm-tmp-directory)))
+       (let* ((dir (make-temp-name
+                    (expand-file-name "emm." mm-tmp-directory)))
               (filename (mail-content-type-get
                          (mm-handle-disposition handle) 'filename))
               (mime-info (mailcap-mime-info
@@ -620,7 +629,7 @@ external if displayed external."
                              (assoc "needsterminal" mime-info)))
               (copiousoutput (assoc "copiousoutput" mime-info))
               file buffer)
-       ;; We create a private sub-directory where we store our files.
+         ;; We create a private sub-directory where we store our files.
          (make-directory dir)
          (set-file-modes dir 448)
          (if filename
@@ -630,74 +639,76 @@ external if displayed external."
          (let ((coding-system-for-write mm-binary-coding-system))
            (write-region (point-min) (point-max) file nil 'nomesg))
          (message "Viewing with %s" method)
-         (cond (needsterm
-                (unwind-protect
-                    (if window-system
-                        (start-process "*display*" nil
-                                       mm-external-terminal-program
-                                       "-e" shell-file-name
-                                       shell-command-switch
-                                       (mm-mailcap-command
-                                        method file (mm-handle-type handle)))
-                      (require 'term)
-                      (require 'gnus-win)
-                      (set-buffer
-                       (setq buffer
-                             (make-term "display"
-                                        shell-file-name
-                                        nil
-                                        shell-command-switch
-                                        (mm-mailcap-command
-                                         method file
-                                         (mm-handle-type handle)))))
-                      (term-mode)
-                      (term-char-mode)
-                      (set-process-sentinel
-                       (get-buffer-process buffer)
-                       `(lambda (process state)
-                          (if (eq 'exit (process-status process))
-                              (gnus-configure-windows
-                               ',gnus-current-window-configuration))))
-                      (gnus-configure-windows 'display-term))
-                  (mm-handle-set-external-undisplayer handle (cons file buffer)))
-                (message "Displaying %s..." (format method file))
-                'external)
-               (copiousoutput
-                (with-current-buffer outbuf
-                  (forward-line 1)
-                  (mm-insert-inline
-                   handle
-                   (unwind-protect
-                       (progn
-                         (call-process shell-file-name nil
-                                       (setq buffer
-                                             (generate-new-buffer " *mm*"))
-                                       nil
-                                       shell-command-switch
-                                       (mm-mailcap-command
-                                        method file (mm-handle-type handle)))
-                         (if (buffer-live-p buffer)
-                             (save-excursion
-                               (set-buffer buffer)
-                               (buffer-string))))
-                     (progn
-                       (ignore-errors (delete-file file))
-                       (ignore-errors (delete-directory
-                                       (file-name-directory file)))
-                       (ignore-errors (kill-buffer buffer))))))
-                'inline)
-               (t
-                (unwind-protect
-                    (start-process "*display*"
-                                   (setq buffer
-                                         (generate-new-buffer " *mm*"))
+         (cond
+          (needsterm
+           (unwind-protect
+               (if window-system
+                   (start-process "*display*" nil
+                                  mm-external-terminal-program
+                                  "-e" shell-file-name
+                                  shell-command-switch
+                                  (mm-mailcap-command
+                                   method file (mm-handle-type handle)))
+                 (require 'term)
+                 (require 'gnus-win)
+                 (set-buffer
+                  (setq buffer
+                        (make-term "display"
                                    shell-file-name
+                                   nil
                                    shell-command-switch
                                    (mm-mailcap-command
-                                    method file (mm-handle-type handle)))
-                  (mm-handle-set-external-undisplayer handle (cons file buffer)))
-                (message "Displaying %s..." (format method file))
-                'external)))))))
+                                    method file
+                                    (mm-handle-type handle)))))
+                 (term-mode)
+                 (term-char-mode)
+                 (set-process-sentinel
+                  (get-buffer-process buffer)
+                  `(lambda (process state)
+                     (if (eq 'exit (process-status process))
+                         (gnus-configure-windows
+                          ',gnus-current-window-configuration))))
+                 (gnus-configure-windows 'display-term))
+             (mm-handle-set-external-undisplayer handle (cons file buffer)))
+           (message "Displaying %s..." (format method file))
+           'external)
+          (copiousoutput
+           (with-current-buffer outbuf
+             (forward-line 1)
+             (mm-insert-inline
+              handle
+              (unwind-protect
+                  (progn
+                    (call-process shell-file-name nil
+                                  (setq buffer
+                                        (generate-new-buffer " *mm*"))
+                                  nil
+                                  shell-command-switch
+                                  (mm-mailcap-command
+                                   method file (mm-handle-type handle)))
+                    (if (buffer-live-p buffer)
+                        (save-excursion
+                          (set-buffer buffer)
+                          (buffer-string))))
+                (progn
+                  (ignore-errors (delete-file file))
+                  (ignore-errors (delete-directory
+                                  (file-name-directory file)))
+                  (ignore-errors (kill-buffer buffer))))))
+           'inline)
+          (t
+           (unwind-protect
+               (start-process "*display*"
+                              (setq buffer
+                                    (generate-new-buffer " *mm*"))
+                              shell-file-name
+                              shell-command-switch
+                              (mm-mailcap-command
+                               method file (mm-handle-type handle)))
+             (mm-handle-set-external-undisplayer
+              handle (cons file buffer)))
+           (message "Displaying %s..." (format method file))
+           'external)))))))
 
 (defun mm-mailcap-command (method file type-list)
   (let ((ctl (cdr type-list))
@@ -714,16 +725,18 @@ external if displayed external."
        (push "%" out))
        ((string= total "%s")
        (setq uses-stdin nil)
-       (push (mm-quote-arg file) out))
+       (push (mm-quote-arg
+              (gnus-map-function mm-path-name-rewrite-functions file)) out))
        ((string= total "%t")
        (push (mm-quote-arg (car type-list)) out))
        (t
        (push (mm-quote-arg (or (cdr (assq (intern sub) ctl)) "")) out))))
     (push (substring method beg (length method)) out)
-    (if uses-stdin
-       (progn
-         (push "<" out)
-         (push (mm-quote-arg file) out)))
+    (when uses-stdin
+      (push "<" out)
+      (push (mm-quote-arg
+            (gnus-map-function mm-path-name-rewrite-functions file))
+           out))
     (mapconcat 'identity (nreverse out) "")))
 
 (defun mm-remove-parts (handles)
index ece7a55..fbceb3a 100644 (file)
       (mm-insert-inline
        handle
        (concat "\n-- \n"
-              (if (fboundp 'vcard-pretty-print)
-                  (vcard-pretty-print (mm-get-part handle))
-                (vcard-format-string
-                 (vcard-parse-string (mm-get-part handle)
-                                     'vcard-standard-filter))))))
+              (ignore-errors
+                (if (fboundp 'vcard-pretty-print)
+                    (vcard-pretty-print (mm-get-part handle))
+                  (vcard-format-string
+                   (vcard-parse-string (mm-get-part handle)
+                                       'vcard-standard-filter)))))))
      (t
       (let ((b (point))
            (charset (mail-content-type-get
index fd58d68..dd1a183 100644 (file)
@@ -70,7 +70,9 @@ rgexp to replace with IMAGE.  IMAGE is the name of a PBM file in
 (defvar smiley-cached-regexp-alist nil)
 
 (defun smiley-update-cache ()
-  (dolist (elt smiley-regexp-alist)
+  (dolist (elt (if (symbolp smiley-regexp-alist)
+                  (symbol-value smiley-regexp-alist)
+                smiley-regexp-alist))
     (let* ((data-directory smiley-data-directory)
           (image (find-image (list (list :type 'pbm
                                          :file (nth 2 elt)