aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2000-11-10 18:11:31 +0000
committerDave Love2000-11-10 18:11:31 +0000
commit6ab8077a8d37198a728d1937a423395b4eafe65a (patch)
treef71b2ccecd98eac6044f12948d99a323fc52b47f
parent1c57d870891141a8f4d7061cbfb5e94c0aba1918 (diff)
downloademacs-6ab8077a8d37198a728d1937a423395b4eafe65a.tar.gz
emacs-6ab8077a8d37198a728d1937a423395b4eafe65a.zip
(gnus-cache-active-file): Don't use
file-name-as-directory on directory. (gnus-cache-file-name): Use expand-file-name, not concat. Don't use file-name-as-directory on directory.
-rw-r--r--lisp/gnus/ChangeLog21
-rw-r--r--lisp/gnus/gnus-cache.el32
2 files changed, 38 insertions, 15 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index f1f480ca3de..ad1a475bd7b 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,5 +1,26 @@
12000-11-10 Dave Love <fx@gnu.org> 12000-11-10 Dave Love <fx@gnu.org>
2 2
3 * gnus-cache.el (gnus-cache-active-file): Don't use
4 file-name-as-directory on directory.
5 (gnus-cache-file-name): Use expand-file-name, not concat. Don't
6 use file-name-as-directory on directory.
7
8 * time-date.el (timezone-make-date-arpa-standard): Autoload.
9 (date-to-time): Use it.
10
11 * message.el (message-mode) <adaptive-fill-regexp>:
12 <adaptive-fill-first-line-regexp>: Use [:alnum:] in regexp range.
13 (message-newline-and-reformat): Likewise.
14
15 * mm-util.el: Doc fixes.
16 (mm-mime-charset): Don't use the raw result of
17 mm-preferred-coding-system.
18 (mm-with-unibyte-buffer, mm-with-unibyte-current-buffer)
19 (mm-with-unibyte): Simplify.
20
21 * gnus-int.el (gnus-start-news-server): Use expand-file-name, not
22 concat.
23
3 * pop3.el (pop3-version): Deleted. 24 * pop3.el (pop3-version): Deleted.
4 (pop3-make-date): New function, avoiding message-make-date. 25 (pop3-make-date): New function, avoiding message-make-date.
5 (pop3-munge-message-separator): Use it. 26 (pop3-munge-message-separator): Use it.
diff --git a/lisp/gnus/gnus-cache.el b/lisp/gnus/gnus-cache.el
index 3e80bdc1e46..c51085e324d 100644
--- a/lisp/gnus/gnus-cache.el
+++ b/lisp/gnus/gnus-cache.el
@@ -36,7 +36,7 @@
36 (require 'gnus-sum)) 36 (require 'gnus-sum))
37 37
38(defcustom gnus-cache-active-file 38(defcustom gnus-cache-active-file
39 (concat (file-name-as-directory gnus-cache-directory) "active") 39 (expand-file-name "active" gnus-cache-directory)
40 "*The cache active file." 40 "*The cache active file."
41 :group 'gnus-cache 41 :group 'gnus-cache
42 :type 'file) 42 :type 'file)
@@ -410,20 +410,22 @@ Returns the list of articles removed."
410 (and (not unread) (not ticked) (not dormant) (memq 'read class)))) 410 (and (not unread) (not ticked) (not dormant) (memq 'read class))))
411 411
412(defun gnus-cache-file-name (group article) 412(defun gnus-cache-file-name (group article)
413 (concat (file-name-as-directory gnus-cache-directory) 413 (expand-file-name
414 (file-name-as-directory 414 (if (stringp article) article (int-to-string article))
415 (nnheader-translate-file-chars 415 (file-name-as-directory
416 (if (gnus-use-long-file-name 'not-cache) 416 (expand-file-name
417 group 417 (nnheader-translate-file-chars
418 (let ((group (nnheader-replace-duplicate-chars-in-string 418 (if (gnus-use-long-file-name 'not-cache)
419 (nnheader-replace-chars-in-string group ?/ ?_) 419 group
420 ?. ?_))) 420 (let ((group (nnheader-replace-duplicate-chars-in-string
421 ;; Translate the first colon into a slash. 421 (nnheader-replace-chars-in-string group ?/ ?_)
422 (when (string-match ":" group) 422 ?. ?_)))
423 (aset group (match-beginning 0) ?/)) 423 ;; Translate the first colon into a slash.
424 (nnheader-replace-chars-in-string group ?. ?/))) 424 (when (string-match ":" group)
425 t)) 425 (aset group (match-beginning 0) ?/))
426 (if (stringp article) article (int-to-string article)))) 426 (nnheader-replace-chars-in-string group ?. ?/)))
427 t)
428 gnus-cache-directory))))
427 429
428(defun gnus-cache-update-article (group article) 430(defun gnus-cache-update-article (group article)
429 "If ARTICLE is in the cache, remove it and re-enter it." 431 "If ARTICLE is in the cache, remove it and re-enter it."