emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/gnus/nnmh.el


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/lisp/gnus/nnmh.el
Date: Sat, 04 Sep 2004 09:28:37 -0400

Index: emacs/lisp/gnus/nnmh.el
diff -c emacs/lisp/gnus/nnmh.el:1.10 emacs/lisp/gnus/nnmh.el:1.11
*** emacs/lisp/gnus/nnmh.el:1.10        Mon Sep  1 15:45:24 2003
--- emacs/lisp/gnus/nnmh.el     Sat Sep  4 13:13:44 2004
***************
*** 1,10 ****
  ;;; nnmh.el --- mhspool access for Gnus
  
! ;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2002
  ;;    Free Software Foundation, Inc.
  
  ;; Author: Lars Magne Ingebrigtsen <address@hidden>
! ;;    Masanobu UMEDA <address@hidden>
  ;; Keywords: news, mail
  
  ;; This file is part of GNU Emacs.
--- 1,10 ----
  ;;; nnmh.el --- mhspool access for Gnus
  
! ;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2003
  ;;    Free Software Foundation, Inc.
  
  ;; Author: Lars Magne Ingebrigtsen <address@hidden>
! ;;    Masanobu UMEDA <address@hidden>
  ;; Keywords: news, mail
  
  ;; This file is part of GNU Emacs.
***************
*** 41,56 ****
  (nnoo-declare nnmh)
  
  (defvoo nnmh-directory message-directory
!   "*Mail spool directory.")
  
  (defvoo nnmh-get-new-mail t
!   "*If non-nil, nnmh will check the incoming mail file and split the mail.")
  
  (defvoo nnmh-prepare-save-mail-hook nil
!   "*Hook run narrowed to an article before saving.")
  
  (defvoo nnmh-be-safe nil
!   "*If non-nil, nnmh will check all articles to make sure whether they are 
new or not.
  Go through the .nnmh-articles file and compare with the actual
  articles in this folder.  The articles that are \"new\" will be marked
  as unread by Gnus.")
--- 41,56 ----
  (nnoo-declare nnmh)
  
  (defvoo nnmh-directory message-directory
!   "Mail spool directory.")
  
  (defvoo nnmh-get-new-mail t
!   "If non-nil, nnmh will check the incoming mail file and split the mail.")
  
  (defvoo nnmh-prepare-save-mail-hook nil
!   "Hook run narrowed to an article before saving.")
  
  (defvoo nnmh-be-safe nil
!   "If non-nil, nnmh will check all articles to make sure whether they are new 
or not.
  Go through the .nnmh-articles file and compare with the actual
  articles in this folder.  The articles that are \"new\" will be marked
  as unread by Gnus.")
***************
*** 239,248 ****
                (file-truename (file-name-as-directory
                                (expand-file-name nnmh-toplev))))
               dir)
!             (nnheader-replace-chars-in-string
!              (mm-decode-coding-string (substring dir (match-end 0))
!                                       nnmail-pathname-coding-system)
!              ?/ ?.))
            (apply 'max files)
            (apply 'min files)))))))
    t)
--- 239,250 ----
                (file-truename (file-name-as-directory
                                (expand-file-name nnmh-toplev))))
               dir)
!             (mm-string-as-multibyte
!              (mm-encode-coding-string
!               (nnheader-replace-chars-in-string
!                (substring dir (match-end 0))
!                ?/ ?.)
!               nnmail-pathname-coding-system)))
            (apply 'max files)
            (apply 'min files)))))))
    t)
***************
*** 288,295 ****
  (deffoo nnmh-close-group (group &optional server)
    t)
  
! (deffoo nnmh-request-move-article
!     (article group server accept-form &optional last)
    (let ((buf (get-buffer-create " *nnmh move*"))
        result)
      (and
--- 290,297 ----
  (deffoo nnmh-close-group (group &optional server)
    t)
  
! (deffoo nnmh-request-move-article (article group server
!                                          accept-form &optional last)
    (let ((buf (get-buffer-create " *nnmh move*"))
        result)
      (and
***************
*** 314,320 ****
    (nnmh-possibly-change-directory group server)
    (nnmail-check-syntax)
    (when nnmail-cache-accepted-message-ids
!     (nnmail-cache-insert (nnmail-fetch-field "message-id")))
    (nnheader-init-server-buffer)
    (prog1
        (if (stringp group)
--- 316,325 ----
    (nnmh-possibly-change-directory group server)
    (nnmail-check-syntax)
    (when nnmail-cache-accepted-message-ids
!     (nnmail-cache-insert (nnmail-fetch-field "message-id") 
!                        group
!                        (nnmail-fetch-field "subject")
!                        (nnmail-fetch-field "from")))
    (nnheader-init-server-buffer)
    (prog1
        (if (stringp group)
***************
*** 422,428 ****
          (file-name-coding-system nnmail-pathname-coding-system))
        (if (file-directory-p pathname)
          (setq nnmh-current-directory pathname)
!       (error "No such newsgroup: %s" newsgroup)))))
  
  (defun nnmh-possibly-create-directory (group)
    (let (dir dirs)
--- 427,433 ----
          (file-name-coding-system nnmail-pathname-coding-system))
        (if (file-directory-p pathname)
          (setq nnmh-current-directory pathname)
!       (nnheader-report 'nnmh "Not a directory: %s" nnmh-directory)))))
  
  (defun nnmh-possibly-create-directory (group)
    (let (dir dirs)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]