`wl-acap-original-msgdb-dir'.
* wl-vars.el (wl-icon-directory): Renamed from `wl-icon-dir'.
(wl-score-files-directory): Renamed from `wl-score-fiels-dir'.
* wl-mime.el (wl-mime-save-directory): Renamed from
`wl-mime-save-directory'.
* elmo.el (elmo-folder-make-temporary-directory): Renamed from
`elmo-folder-make-temp-dir'
* elmo-vars.el (elmo-cache-directory): New variable.
(elmo-cache-dir): Abolished.
(elmo-msgdb-directory): Renamed from `elmo-msgdb-directory'.
-2001-12-10 TAKAHASHI Kaoru <kaoru@kaisei.org>
+2001-12-11 TAKAHASHI Kaoru <kaoru@kaisei.org>
+
+ * elmo.el (elmo-folder-make-temporary-directory): Renamed from
+ `elmo-folder-make-temp-dir'
+
+ * elmo-vars.el (elmo-cache-directory): New variable.
+ (elmo-cache-dir): Abolished.
+ (elmo-msgdb-directory): Renamed from `elmo-msgdb-directory'.
* elmo-version.el (elmo-version): Up to 2.7.7.
(symbol-name
(elmo-archive-folder-archive-type-internal
folder)))
- elmo-msgdb-dir)))
+ elmo-msgdb-directory)))
;;; MMDF parser -- info-zip agent w/ REXX
(defvar elmo-mmdf-delimiter "^\01\01\01\01$"
(defun elmo-archive-folder-message-make-temp-files (folder
numbers
start-number)
- (let* ((tmp-dir-src (elmo-folder-make-temp-dir folder))
- (tmp-dir-dst (elmo-folder-make-temp-dir folder))
+ (let* ((tmp-dir-src (elmo-folder-make-temporary-directory folder))
+ (tmp-dir-dst (elmo-folder-make-temporary-directory folder))
(arc (elmo-archive-get-archive-name folder))
(type (elmo-archive-folder-archive-type-internal folder))
(prefix (elmo-archive-folder-archive-prefix-internal folder))
(elmo-cache-folder-set-directory-internal
folder
(expand-file-name (elmo-match-string 2 name)
- (expand-file-name elmo-cache-dirname elmo-msgdb-dir)))
+ elmo-cache-directory))
folder))
(luna-define-method elmo-folder-expand-msgdb-path ((folder elmo-cache-folder))
(expand-file-name (elmo-cache-folder-dir-name-internal folder)
(expand-file-name "internal/cache"
- elmo-msgdb-dir)))
+ elmo-msgdb-directory)))
(luna-define-method elmo-map-folder-list-message-locations
((folder elmo-cache-folder))
(database-live-p (symbol-value dbsym))))
(set dbsym (open-database (expand-file-name
dbname
- elmo-msgdb-dir
+ elmo-msgdb-directory
)))
(symbol-value dbsym)))
elmo-filter-folder))
(expand-file-name
(elmo-replace-string-as-filename (elmo-folder-name-internal folder))
- (expand-file-name "filter" elmo-msgdb-dir)))
+ (expand-file-name "filter" elmo-msgdb-directory)))
(luna-define-method elmo-folder-newsgroups ((folder elmo-filter-folder))
(elmo-folder-newsgroups (elmo-filter-folder-target-internal folder)))
"nowhere")
(expand-file-name
"imap"
- elmo-msgdb-dir)))))))
+ elmo-msgdb-directory)))))))
(luna-define-method elmo-folder-status-plugged ((folder
elmo-imap4-folder))
"/")
(expand-file-name ;;"localdir"
(symbol-name (elmo-folder-type-internal folder))
- elmo-msgdb-dir)))
+ elmo-msgdb-directory)))
(luna-define-method elmo-message-file-name ((folder
elmo-localdir-folder)
numbers
&optional
start-number)
- (let ((temp-dir (elmo-folder-make-temp-dir folder))
+ (let ((temp-dir (elmo-folder-make-temporary-directory folder))
(cur-number (or start-number 0)))
(dolist (number numbers)
(elmo-add-name-to-file
(elmo-localnews-folder-group-internal folder)
(expand-file-name
(symbol-name (elmo-folder-type-internal folder))
- elmo-msgdb-dir)))
+ elmo-msgdb-directory)))
(luna-define-method elmo-folder-newsgroups ((folder elmo-localnews-folder))
(list (elmo-localnews-folder-group-internal folder)))
(luna-define-method elmo-folder-expand-msgdb-path ((folder
elmo-maildir-folder))
- (expand-file-name
- (elmo-replace-string-as-filename
+ (expand-file-name
+ (elmo-replace-string-as-filename
(elmo-maildir-folder-directory-internal folder))
(expand-file-name
"maildir"
- elmo-msgdb-dir)))
+ elmo-msgdb-directory)))
(defun elmo-maildir-message-file-name (folder location)
"Get a file name of the message from FOLDER which corresponded to
numbers
&optional
start-number)
- (let ((temp-dir (elmo-folder-make-temp-dir folder))
+ (let ((temp-dir (elmo-folder-make-temporary-directory folder))
(cur-number (if start-number 0)))
(dolist (number numbers)
(elmo-copy-file
elmo-mark-folder))
(expand-file-name "mark"
(expand-file-name "internal"
- elmo-msgdb-dir)))
+ elmo-msgdb-directory)))
(luna-define-method elmo-map-folder-list-message-locations
((folder elmo-mark-folder))
(elmo-object-load
(expand-file-name
elmo-msgdb-global-mark-filename
- elmo-msgdb-dir)))))
+ elmo-msgdb-directory)))))
(if (string= (elmo-mark-folder-mark-internal folder)
(cdr pair))
(setq result (cons (car pair) result))))
(defun elmo-msgdb-global-mark-delete (msgid)
(let* ((path (expand-file-name
elmo-msgdb-global-mark-filename
- elmo-msgdb-dir))
+ elmo-msgdb-directory))
(malist (or elmo-msgdb-global-mark-alist
(setq elmo-msgdb-global-mark-alist
(elmo-object-load path))))
(defun elmo-msgdb-global-mark-set (msgid mark)
(let* ((path (expand-file-name
elmo-msgdb-global-mark-filename
- elmo-msgdb-dir))
+ elmo-msgdb-directory))
(malist (or elmo-msgdb-global-mark-alist
(setq elmo-msgdb-global-mark-alist
(elmo-object-load path))))
(elmo-object-load
(expand-file-name
elmo-msgdb-global-mark-filename
- elmo-msgdb-dir)))))))
+ elmo-msgdb-directory)))))))
;;;
;; persistent mark handling
(defun elmo-msgdb-finfo-load ()
(elmo-object-load (expand-file-name
elmo-msgdb-finfo-filename
- elmo-msgdb-dir)
+ elmo-msgdb-directory)
elmo-mime-charset t))
(defun elmo-msgdb-finfo-save (finfo)
(elmo-object-save (expand-file-name
elmo-msgdb-finfo-filename
- elmo-msgdb-dir)
+ elmo-msgdb-directory)
finfo elmo-mime-charset))
(defun elmo-msgdb-flist-load (fname)
elmo-msgdb-flist-filename
(expand-file-name
(elmo-safe-filename fname)
- (expand-file-name "folder" elmo-msgdb-dir)))))
+ (expand-file-name "folder" elmo-msgdb-directory)))))
(elmo-object-load flist-file elmo-mime-charset t)))
(defun elmo-msgdb-flist-save (fname flist)
elmo-msgdb-flist-filename
(expand-file-name
(elmo-safe-filename fname)
- (expand-file-name "folder" elmo-msgdb-dir)))))
+ (expand-file-name "folder" elmo-msgdb-directory)))))
(elmo-object-save flist-file flist elmo-mime-charset)))
(defun elmo-crosspost-alist-load ()
(elmo-object-load (expand-file-name
elmo-crosspost-alist-filename
- elmo-msgdb-dir)
+ elmo-msgdb-directory)
nil t))
(defun elmo-crosspost-alist-save (alist)
(elmo-object-save (expand-file-name
elmo-crosspost-alist-filename
- elmo-msgdb-dir)
+ elmo-msgdb-directory)
alist))
(defun elmo-msgdb-add-msgs-to-seen-list (msgs msgdb unread-marks seen-list)
(expand-file-name (elmo-replace-string-as-filename
(elmo-folder-name-internal folder))
(expand-file-name "multi"
- elmo-msgdb-dir)))
+ elmo-msgdb-directory)))
(luna-define-method elmo-folder-newsgroups ((folder elmo-multi-folder))
(delq nil
(expand-file-name
(elmo-replace-string-as-filename
(elmo-folder-name-internal folder))
- (expand-file-name "nmz" elmo-msgdb-dir)))
+ (expand-file-name "nmz" elmo-msgdb-directory)))
(defun elmo-nmz-msgdb-create-entity (folder number)
"Create msgdb entity for the message in the FOLDER with NUMBER."
numbers
&optional
start-number)
- (let ((temp-dir (elmo-folder-make-temp-dir folder))
+ (let ((temp-dir (elmo-folder-make-temporary-directory folder))
(cur-number (if start-number 0)))
(dolist (number numbers)
(elmo-add-name-to-file
(elmo-nntp-folder-group-internal folder)
(expand-file-name (or (elmo-net-folder-server-internal folder) "nowhere")
(expand-file-name "nntp"
- elmo-msgdb-dir)))))
+ elmo-msgdb-directory)))))
(luna-define-method elmo-folder-newsgroups ((folder elmo-nntp-folder))
(list (elmo-nntp-folder-group-internal folder)))
(expand-file-name (elmo-net-folder-server-internal folder)
(expand-file-name
"pop"
- elmo-msgdb-dir)))))
+ elmo-msgdb-directory)))))
(luna-define-method elmo-folder-exists-p ((folder elmo-pop3-folder))
(if (and elmo-pop3-exists-exactly
(luna-define-method elmo-folder-expand-msgdb-path ((folder elmo-sendlog-folder))
(expand-file-name "sendlog"
(expand-file-name "internal"
- elmo-msgdb-dir)))
+ elmo-msgdb-directory)))
(luna-define-method elmo-map-folder-list-message-locations
((folder elmo-sendlog-folder))
(defun elmo-sendlog-folder-list-message-locations (folder)
(let ((filename (expand-file-name elmo-sendlog-filename
- elmo-msgdb-dir))
+ elmo-msgdb-directory))
result)
(if (not (file-readable-p filename))
- nil
+ nil
(elmo-set-work-buf
(as-binary-input-file
- (insert-file-contents filename))
+ (insert-file-contents filename))
(goto-char (point-min))
(catch 'done
(while t
(require 'product)
(product-provide (provide 'elmo-sendlog) (require 'elmo-version))
-;;; elmo-sendlog.el ends here
\ No newline at end of file
+;;; elmo-sendlog.el ends here
(elmo-shimbun-folder-shimbun-internal folder))
"/"
(elmo-shimbun-folder-group-internal folder))
- (expand-file-name "shimbun" elmo-msgdb-dir)))
+ (expand-file-name "shimbun" elmo-msgdb-directory)))
(defun elmo-shimbun-msgdb-create-entity (folder number)
(let ((header (elmo-get-hash-val
(defun elmo-passwd-alist-load ()
(save-excursion
(let ((filename (expand-file-name elmo-passwd-alist-file-name
- elmo-msgdb-dir))
+ elmo-msgdb-directory))
(tmp-buffer (get-buffer-create " *elmo-passwd-alist-tmp*"))
insert-file-contents-pre-hook ; To avoid autoconv-xmas...
insert-file-contents-post-hook
(interactive)
(save-excursion
(let ((filename (expand-file-name elmo-passwd-alist-file-name
- elmo-msgdb-dir))
+ elmo-msgdb-directory))
(tmp-buffer (get-buffer-create " *elmo-passwd-alist-tmp*")))
(set-buffer tmp-buffer)
(erase-buffer)
(if (null (file-directory-p parent))
(elmo-make-directory parent))
(make-directory path)
- (if (string= path (expand-file-name elmo-msgdb-dir))
+ (if (string= path (expand-file-name elmo-msgdb-directory))
(set-file-modes path (+ (* 64 7) (* 8 0) 0))))) ; chmod 0700
(defun elmo-delete-directory (path &optional no-hierarchy)
(if (setq msgid (elmo-msgid-to-cache msgid))
(expand-file-name
(if section
- (format "%s/%s/%s/%s/%s"
- elmo-msgdb-dir
- elmo-cache-dirname
+ (format "%s/%s/%s/%s"
+ elmo-cache-directory
(elmo-cache-get-path-subr msgid)
msgid
section)
- (format "%s/%s/%s/%s"
- elmo-msgdb-dir
- elmo-cache-dirname
+ (format "%s/%s/%s"
+ elmo-cache-directory
(elmo-cache-get-path-subr msgid)
msgid)))))
total beginning)
(message "Checking disk usage...")
(setq total (/ (elmo-disk-usage
- (expand-file-name
- elmo-cache-dirname elmo-msgdb-dir)) Kbytes))
+ elmo-cache-directory) Kbytes))
(setq beginning total)
(message "Checking disk usage...done")
(let ((cfl (elmo-cache-get-sorted-cache-file-list))
(defun elmo-cache-get-sorted-cache-file-list ()
(let ((dirs (directory-files
- (expand-file-name elmo-cache-dirname elmo-msgdb-dir)
+ elmo-cache-directory
t "^[^\\.]"))
(i 0) num
elist
elmo-cache-expire-default-age)))
(int-to-string elmo-cache-expire-default-age)))
(dirs (directory-files
- (expand-file-name elmo-cache-dirname elmo-msgdb-dir)
+ elmo-cache-directory
t "^[^\\.]"))
(count 0)
curtime)
(format "%s/%s"
(elmo-cache-get-path-subr msgid)
msgid))
- (expand-file-name elmo-cache-dirname
- elmo-msgdb-dir)))))
+ elmo-cache-directory))))
;;;
;; Warnings.
(setq elmo-dop-queue
(elmo-object-load
(expand-file-name elmo-dop-queue-filename
- elmo-msgdb-dir))))
+ elmo-msgdb-directory))))
(defun elmo-dop-queue-save ()
(elmo-object-save
(expand-file-name elmo-dop-queue-filename
- elmo-msgdb-dir)
+ elmo-msgdb-directory)
elmo-dop-queue))
(require 'product)
(defvar elmo-msgdb-file-header-chop-length 2048
"*Number of bytes to get header in one reading from file.")
-(defvar elmo-msgdb-dir "~/.elmo"
+(defvar elmo-msgdb-directory "~/.elmo"
"*ELMO Message Database path.")
(defvar elmo-passwd-alist-file-name "passwd"
"*ELMO Password filename.")
(defvar elmo-cache-expire-default-age 50
"Cache expiration age (days).")
-(defvar elmo-cache-dirname "cache"
+(defvar elmo-cache-directory (expand-file-name "cache" elmo-msgdb-directory)
"Directory name for cache storage.")
(defvar elmo-pack-number-check-strict t
(elmo-object-load
(expand-file-name
elmo-msgdb-global-mark-filename
- elmo-msgdb-dir)))))
+ elmo-msgdb-directory)))))
(if (and (string= important-mark (cdr mark-pair))
(setq num-pair (rassoc (car mark-pair) number-alist)))
(setq result (cons (car num-pair) result))))
(elmo-crosspost-alist-save elmo-crosspost-message-alist)
(setq elmo-crosspost-message-alist-modified nil))))
-(defun elmo-folder-make-temp-dir (folder)
+(defun elmo-folder-make-temporary-directory (folder)
;; Make a temporary directory for FOLDER.
(let ((temp-dir (make-temp-name
(concat
'elmo-pop3-default-authenticate-type)
(elmo-define-obsolete-variable 'elmo-default-pop3-port
'elmo-pop3-default-port)
+(elmo-define-obsolete-variable 'elmo-cache-dirname
+ 'elmo-cache-directory)
+(elmo-define-obsolete-variable 'elmo-msgdb-dir
+ 'elmo-msgdb-directory)
+
+;; Obsolete functions.
+;; 2001-12-11: *-dir -> *-directory
+(defalias 'elmo-folder-make-temporary-directory 'elmo-folder-make-temp-dir)
+(make-obsolete 'elmo-folder-make-temp-dir
+ 'elmo-folder-make-temporary-directory)
+
;; autoloads
(autoload 'elmo-dop-queue-flush "elmo-dop")
(setq wl-alias-auto-alist
(elmo-object-load (expand-file-name
wl-alias-auto-file-name
- elmo-msgdb-dir)))))
+ elmo-msgdb-directory)))))
(setq wl-addrbook-alist (wl-addrbook-make-alist))
;; wl-alias-auto-alist is used independently so must use copy-alist
(if wl-addrbook-alist
(when wl-alias-auto-file-name
(elmo-object-save (expand-file-name
wl-alias-auto-file-name
- elmo-msgdb-dir)
+ elmo-msgdb-directory)
wl-alias-auto-alist)
(setq wl-alias-auto-alist nil)
(setq wl-addrbook-hashtb nil)))
+2001-12-11 TAKAHASHI Kaoru <kaoru@kaisei.org>
+
+ * wl-acap.el (wl-acap-original-msgdb-directory): Renamed from
+ `wl-acap-original-msgdb-dir'.
+
+ * wl-vars.el (wl-icon-directory): Renamed from `wl-icon-dir'.
+ (wl-score-files-directory): Renamed from `wl-score-fiels-dir'.
+
+ * wl-mime.el (wl-mime-save-directory): Renamed from
+ `wl-mime-save-directory'.
+
2001-12-11 Katsumi Yamaoka <yamaoka@jpl.org>
* wl-vars.el (wl-icon-dir): Fixed the docstring.
:type 'symbol
:group 'wl)
-(defvar wl-acap-original-msgdb-dir nil)
+(defvar wl-acap-original-msgdb-directory nil)
(defun wl-acap-exit ()
"End ACAP session."
- (setq elmo-msgdb-dir wl-acap-original-msgdb-dir))
-
+ (setq elmo-msgdb-directory wl-acap-original-msgdb-directory))
+
(defun wl-acap-init ()
"A candidate for `wl-folder-init-function'."
- (setq wl-acap-original-msgdb-dir nil)
+ (setq wl-acap-original-msgdb-directory nil)
(condition-case nil ; catch error and quit.
(let ((service (wl-acap-find-acap-service))
proc entries settings folder-top type)
(dolist (setting settings)
(set (car setting) (cdr setting)))
;; Database directory becomes specific to the ACAP server.
- (setq wl-acap-original-msgdb-dir elmo-msgdb-dir)
- (setq elmo-msgdb-dir (expand-file-name
- (concat "acap/" (car service) "/" wl-acap-user)
- elmo-msgdb-dir))
+ (setq wl-acap-original-msgdb-directory elmo-msgdb-directory)
+ (setq elmo-msgdb-directory (expand-file-name
+ (concat "acap/" (car service) "/" wl-acap-user)
+ elmo-msgdb-directory))
(acap-close proc))
- (error (when wl-acap-original-msgdb-dir
- (setq elmo-msgdb-dir wl-acap-original-msgdb-dir)))
- (quit (when wl-acap-original-msgdb-dir
- (setq elmo-msgdb-dir wl-acap-original-msgdb-dir)))))
-
+ (error (when wl-acap-original-msgdb-directory
+ (setq elmo-msgdb-directory wl-acap-original-msgdb-directory)))
+ (quit (when wl-acap-original-msgdb-directory
+ (setq elmo-msgdb-directory wl-acap-original-msgdb-directory)))))
+
(defun wl-acap-create-folder-entity (string)
(with-temp-buffer
(set-specifier (symbol-value 'scrollbar-height) 0 (current-buffer))
(set-specifier (symbol-value 'scrollbar-width) 0 (current-buffer)))
(if (and file
- (if (and wl-icon-dir
- (file-directory-p wl-icon-dir))
- (setq file (expand-file-name file wl-icon-dir))
- (message "You have to specify the value of `wl-icon-dir'")
+ (if (and wl-icon-directory
+ (file-directory-p wl-icon-directory))
+ (setq file (expand-file-name file wl-icon-directory))
+ (message "You have to specify the value of `wl-icon-directory'")
nil)
(if (file-exists-p file)
(if (file-readable-p file)
(wl-draft-edit-string (elmo-get-file-string
(or file
(read-file-name "File to edit: "
- (or wl-tmp-dir "~/"))))))
+ (or wl-temporary-file-directory
+ "~/"))))))
(defun wl-draft-edit-string (string)
(let ((cur-buf (current-buffer))
(when wl-draft-sendlog
(with-temp-buffer
(let* ((filename (expand-file-name wl-draft-sendlog-filename
- elmo-msgdb-dir))
+ elmo-msgdb-directory))
(filesize (nth 7 (file-attributes filename)))
(server (if server (concat " server=" server) ""))
(to (if to (cond
;;(let (image icon from to overlay)
;; ;; The function `find-image' will look for an image first on `load-path'
;; ;; and then in `data-directory'.
-;; (let ((load-path (cons wl-icon-dir load-path)))
+;; (let ((load-path (cons wl-icon-directory load-path)))
;; (setq image (find-image (list (list :type 'xpm :file wl-nntp-folder-icon
;; :ascent 'center)))))
;; ;; `propertize' is a convenient function in such a case.
(defun wl-e21-setup-toolbar (bar)
(when (and wl-use-toolbar
(wl-e21-display-image-p))
- (let ((load-path (cons wl-icon-dir load-path))
+ (let ((load-path (cons wl-icon-directory load-path))
(props '(:type xpm :ascent center
:color-symbols (("backgroundToolBarColor" . "None"))
:file))
(unless image
(let ((name (symbol-value
(cdr (assq icon wl-folder-toggle-icon-list))))
- (load-path (cons wl-icon-dir load-path)))
+ (load-path (cons wl-icon-directory load-path)))
(when (setq image (find-image `((:type xpm :file ,name
:ascent center))))
(setq image (put icon 'image (propertize name
(defun wl-folder-init-icons ()
(when (wl-e21-display-image-p)
- (let ((load-path (cons wl-icon-dir load-path))
+ (let ((load-path (cons wl-icon-directory load-path))
(icons wl-folder-internal-icon-list)
icon name image)
(while (setq icon (pop icons))
(if (wl-e21-display-image-p)
(progn
(unless wl-plugged-image
- (let ((load-path (cons wl-icon-dir load-path)))
+ (let ((load-path (cons wl-icon-directory load-path)))
(setq wl-plugged-image (find-image
`((:type xpm
:file ,wl-plugged-icon
(if (wl-e21-display-image-p)
(progn
(unless wl-biff-mail-image
- (let ((load-path (cons wl-icon-dir load-path)))
+ (let ((load-path (cons wl-icon-directory load-path)))
(setq wl-biff-mail-image (find-image
`((:type xpm
:file ,wl-biff-mail-icon
(defun wl-expired-alist-load ()
(elmo-object-load (expand-file-name
wl-expired-alist-file-name
- elmo-msgdb-dir)))
+ elmo-msgdb-directory)))
(defun wl-expired-alist-save (&optional alist)
(elmo-object-save (expand-file-name
wl-expired-alist-file-name
- elmo-msgdb-dir)
+ elmo-msgdb-directory)
(or alist wl-expired-alist)))
(defsubst wl-expire-msg-p (msg-num mark-alist)
(save-excursion
(let ((tmp-buf (get-buffer-create " *wl-expire work*"))
(filename (expand-file-name wl-expired-log-alist-file-name
- elmo-msgdb-dir)))
+ elmo-msgdb-directory)))
(set-buffer tmp-buf)
(erase-buffer)
(if dst-folder
(wl-summary-sync-update)))
;; internal variable.
-(defvar wl-mime-save-dir nil "Last saved directory.")
+(defvar wl-mime-save-directory nil "Last saved directory.")
;;; Yet another save method.
(defun wl-mime-save-content (entity situation)
(let ((filename (read-file-name "Save to file: "
(expand-file-name
(or (mime-entity-safe-filename entity)
".")
- (or wl-mime-save-dir
- wl-tmp-dir)))))
+ (or wl-mime-save-directory
+ wl-temporary-file-directory)))))
(while (file-directory-p filename)
(setq filename (read-file-name "Please set filename (not directory): "
filename)))
(if (file-exists-p filename)
(or (yes-or-no-p (format "File %s exists. Save anyway? " filename))
(error "Not saved")))
- (setq wl-mime-save-dir (file-name-directory filename))
+ (setq wl-mime-save-directory (file-name-directory filename))
(mime-write-entity-content entity filename)))
;;; Yet another combine method.
(setq wl-refile-alist
(elmo-object-load
(expand-file-name wl-refile-alist-file-name
- elmo-msgdb-dir) elmo-mime-charset)))
+ elmo-msgdb-directory) elmo-mime-charset)))
((eq (car flist) 'wl-refile-guess-by-msgid)
(setq wl-refile-msgid-alist
(elmo-object-load
(expand-file-name wl-refile-msgid-alist-file-name
- elmo-msgdb-dir) elmo-mime-charset)))
+ elmo-msgdb-directory) elmo-mime-charset)))
((eq (car flist) 'wl-refile-guess-by-subject)
(setq wl-refile-subject-alist
(elmo-object-load
(expand-file-name wl-refile-subject-alist-file-name
- elmo-msgdb-dir) elmo-mime-charset))))
+ elmo-msgdb-directory) elmo-mime-charset))))
(setq flist (cdr flist)))))
(defun wl-refile-alist-save ()
(defun wl-refile-alist-save-file (file-name alist)
(if (> (length alist) wl-refile-alist-max-length)
(setcdr (nthcdr (1- wl-refile-alist-max-length) alist) nil))
- (elmo-object-save (expand-file-name file-name elmo-msgdb-dir)
+ (elmo-object-save (expand-file-name file-name elmo-msgdb-directory)
alist elmo-mime-charset))
(defun wl-refile-learn (entity dst)
(or (and (string-match
(concat "^" (regexp-quote
(expand-file-name
- wl-score-files-dir)))
+ wl-score-files-directory)))
(expand-file-name file))
file)
(expand-file-name
file
- (file-name-as-directory wl-score-files-dir)))))
+ (file-name-as-directory wl-score-files-directory)))))
(cached (assoc file wl-score-cache))
alist)
(if cached
(defun wl-score-change-score-file (file)
"Change current score alist."
(interactive
- (list (read-file-name "Change to score file: " wl-score-files-dir)))
+ (list (read-file-name "Change to score file: " wl-score-files-directory)))
(wl-score-load-file file))
(defun wl-score-default (level)
(defun wl-score-edit-file (file)
"Edit a score FILE."
(interactive
- (list (read-file-name "Edit score file: " wl-score-files-dir)))
+ (list (read-file-name "Edit score file: " wl-score-files-directory)))
(when (wl-collect-summary)
(wl-score-save))
(let ((winconf (current-window-configuration))
(save-excursion
(goto-char (point-min))
(let ((wl-save-dir
- (wl-read-directory-name "Save to directory: " wl-tmp-dir))
+ (wl-read-directory-name "Save to directory: "
+ wl-temporary-file-directory))
(regexp (concat "^" wl-summary-buffer-number-regexp "\\(\\*\\)"))
number mlist)
(if (null (file-exists-p wl-save-dir))
(let ((filename)
(num (wl-summary-message-number)))
(if (null wl-save-dir)
- (setq wl-save-dir wl-tmp-dir))
+ (setq wl-save-dir wl-temporary-file-directory))
(if num
(save-excursion
(setq filename (expand-file-name
(narrow-to-region beg end)
(goto-char (point-min))
(let ((wl-save-dir
- (wl-read-directory-name "Save to directory: " wl-tmp-dir)))
+ (wl-read-directory-name "Save to directory: "
+ wl-temporary-file-directory)))
(if (null (file-exists-p wl-save-dir))
(make-directory wl-save-dir))
(if (eq wl-summary-buffer-view 'thread)
(set-buffer tmp-buf)
(message "Exec %s..." wl-prog-uudecode)
(unwind-protect
- (let ((decode-dir wl-tmp-dir))
+ (let ((decode-dir wl-temporary-file-directory))
(if (not wl-prog-uudecode-no-stdout-option)
(setq filename (read-file-name "Save to file: "
(expand-file-name
(elmo-safe-filename filename)
- wl-tmp-dir)))
+ wl-temporary-file-directory)))
(setq decode-dir
(wl-read-directory-name "Save to directory: "
- wl-tmp-dir))
+ wl-temporary-file-directory))
(setq filename (expand-file-name filename decode-dir)))
(if (file-exists-p filename)
(or (yes-or-no-p (format "File %s exists. Save anyway? "
:group 'wl
:group 'wl-setting)
-(defcustom wl-tmp-dir "~/tmp/"
+(defcustom wl-temporary-file-directory "~/tmp/"
"*Default temporary directory to save message, part."
:type 'directory
:group 'wl)
-(defcustom wl-icon-dir (if (fboundp 'locate-data-directory)
- (locate-data-directory "wl")
- (let ((icons (expand-file-name "wl/icons/"
- data-directory)))
- (if (file-directory-p icons)
- icons)))
+(defcustom wl-icon-directory (if (fboundp 'locate-data-directory)
+ (locate-data-directory "wl")
+ (let ((icons (expand-file-name "wl/icons/"
+ data-directory)))
+ (if (file-directory-p icons)
+ icons)))
"*Directory to load the icon files from, or nil if none."
:type '(choice (const :tag "none" nil)
string)
:type 'integer
:group 'wl-score)
-(defcustom wl-score-files-dir (concat elmo-msgdb-dir elmo-path-sep)
+(defcustom wl-score-files-directory (concat elmo-msgdb-directory elmo-path-sep)
"*Name of the directory where score files will be stored.
(default \"~/.elmo\")."
:type 'directory
(defvar wl-highlight-thread-indent-string-regexp "[^[<]*"
"* A regexp string for thread indent...for highlight.")
-;; folder icons. filename relative to wl-icon-dir
+;; folder icons. filename relative to wl-icon-directory
(defvar wl-opened-group-folder-icon "opened.xpm"
"*Icon file for opened group folder.")
(defvar wl-closed-group-folder-icon "closed.xpm"
;;;; Obsolete variables.
+;; 2001-12-11: *-dir -> *-directory
+(elmo-define-obsolete-variable 'wl-icon-dir
+ 'wl-icon-directory)
+(elmo-define-obsolete-variable 'wl-mime-save-dir
+ 'wl-mime-save-directory)
+(elmo-define-obsolete-variable 'wl-score-files-dir
+ 'wl-score-files-directory)
+(elmo-define-obsolete-variable 'wl-tmp-dir
+ 'wl-teporary-file-directory)
+
;; 2001-12-10
(elmo-define-obsolete-variable 'wl-summary-update-confirm-threshold
'elmo-folder-update-threshold)
(elmo-define-obsolete-variable 'wl-summary-temp-above
'wl-summary-target-above)
-;; 2000-03-08
-(elmo-define-obsolete-variable 'wl-score-files-directory
- 'wl-score-files-dir)
-
;; 1999-11-07: Unified with `wl-draft-config-alist'.
(defvar wl-draft-prepared-config-alist nil)
(make-obsolete-variable 'wl-draft-prepared-config-alist
"The Draft buffer toolbar.")
(defun wl-xmas-setup-toolbar (bar)
- (let ((dir wl-icon-dir)
+ (let ((dir wl-icon-directory)
icon up down disabled name)
(when dir
(while bar
(when wl-highlight-folder-with-icon
(set-glyph-image glyph
(vector 'xpm :file (expand-file-name
- icon-file wl-icon-dir))
+ icon-file wl-icon-directory))
locale tag-set 'prepend))
glyph))
(unless (elmo-folder-exists-p lost+found-folder)
(elmo-folder-create lost+found-folder)))
;; tmp dir
- (unless (file-exists-p wl-tmp-dir)
+ (unless (file-exists-p wl-temporary-file-directory)
(if (y-or-n-p
(format "Temp directory (to save multipart) %s does not exist, create it now? "
- wl-tmp-dir))
- (make-directory wl-tmp-dir)
+ wl-temporary-file-directory))
+ (make-directory wl-temporary-file-directory)
(error "Temp directory is not created"))))))
;;;###autoload