projects
/
gnus
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gnus-notifications: add actions support
[gnus]
/
lisp
/
nndir.el
diff --git
a/lisp/nndir.el
b/lisp/nndir.el
index
7e7222f
..
1e36229
100644
(file)
--- a/
lisp/nndir.el
+++ b/
lisp/nndir.el
@@
-1,15
+1,16
@@
;;; nndir.el --- single directory newsgroup access for Gnus
;;; nndir.el --- single directory newsgroup access for Gnus
-;; Copyright (C) 1995,96 Free Software Foundation, Inc.
-;; Author: Lars Magne Ingebrigtsen <larsi@ifi.uio.no>
+;; Copyright (C) 1995-2012 Free Software Foundation, Inc.
+
+;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
;; Keywords: news
;; This file is part of GNU Emacs.
;; Keywords: news
;; This file is part of GNU Emacs.
-;; GNU Emacs is free software
;
you can redistribute it and/or modify
+;; GNU Emacs is free software
:
you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; it under the terms of the GNU General Public License as published by
-;; the Free Software Foundation
; either version 2, or (at your option)
-;; any later version.
+;; the Free Software Foundation
, either version 3 of the License, or
+;;
(at your option)
any later version.
;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
@@
-17,9
+18,7
@@
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
-;; along with GNU Emacs; see the file COPYING. If not, write to the
-;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-;; Boston, MA 02111-1307, USA.
+;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
;;; Commentary:
;;; Commentary:
@@
-63,8
+62,6
@@
server))
(unless (assq 'nndir-directory defs)
(push `(nndir-directory ,server) defs))
server))
(unless (assq 'nndir-directory defs)
(push `(nndir-directory ,server) defs))
- ;(when (equal server "")
- ; (setq server (cadr (assq 'nndir-directory defs))))
(push `(nndir-current-group
,(file-name-nondirectory (directory-file-name nndir-directory)))
defs)
(push `(nndir-current-group
,(file-name-nondirectory (directory-file-name nndir-directory)))
defs)
@@
-73,12
+70,12
@@
defs)
(nnoo-change-server 'nndir server defs)
(let (err)
defs)
(nnoo-change-server 'nndir server defs)
(let (err)
- (cond
+ (cond
((not (condition-case arg
(file-exists-p nndir-directory)
(ftp-error (setq err (format "%s" arg)))))
(nndir-close-server)
((not (condition-case arg
(file-exists-p nndir-directory)
(ftp-error (setq err (format "%s" arg)))))
(nndir-close-server)
- (nnheader-report
+ (nnheader-report
'nndir (or err "No such file or directory: %s" nndir-directory)))
((not (file-directory-p (file-truename nndir-directory)))
(nndir-close-server)
'nndir (or err "No such file or directory: %s" nndir-directory)))
((not (file-directory-p (file-truename nndir-directory)))
(nndir-close-server)
@@
-90,11
+87,11
@@
(nnoo-map-functions nndir
(nnml-retrieve-headers 0 nndir-current-group 0 0)
(nnoo-map-functions nndir
(nnml-retrieve-headers 0 nndir-current-group 0 0)
- (nnm
h
-request-article 0 nndir-current-group 0 0)
+ (nnm
l
-request-article 0 nndir-current-group 0 0)
(nnmh-request-group nndir-current-group 0 0)
(nnmh-request-group nndir-current-group 0 0)
- (nnm
h
-close-group nndir-current-group 0)
- (nnm
h
-request-list (nnoo-current-server 'nndir) nndir-directory)
- (nnm
h
-request-newsgroups (nnoo-current-server 'nndir) nndir-directory))
+ (nnm
l
-close-group nndir-current-group 0)
+ (nnm
l
-request-list (nnoo-current-server 'nndir) nndir-directory)
+ (nnm
l
-request-newsgroups (nnoo-current-server 'nndir) nndir-directory))
(provide 'nndir)
(provide 'nndir)