aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/mh-e/ChangeLog22
-rw-r--r--lisp/mh-e/mh-search.el4
-rw-r--r--lisp/mh-e/mh-seq.el13
-rw-r--r--lisp/mh-e/mh-speed.el3
-rw-r--r--lisp/mh-e/mh-thread.el6
-rw-r--r--lisp/mh-e/mh-xface.el7
6 files changed, 40 insertions, 15 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog
index 29238ff424..5112344248 100644
--- a/lisp/mh-e/ChangeLog
+++ b/lisp/mh-e/ChangeLog
@@ -1,3 +1,25 @@
+2009-03-13 D. Goel <[email protected]>
+
+ * mh-seq.el (mh-folder-size-flist): Use (values-list) in m-v call
+ to list.
+
+ * mh-speed.el (mh-speed-parse-flists-output): Ditto.
+ * mh-xface.el (mh-face-display-function): Ditto.
+ * mh-search.el (mh-index-parse-search-regexp): Ditto.
+
+
+ * mh-thread.el (mh-thread-generate): Ditto.
+
+ * mh-seq.el (mh-parse-flist-output-line): Return list rather than values. We
+ want to avoid emacs using m-v facilities.
+ (mh-folder-size-folder): Ditto.
+ (mh-parse-flist-output-line): Ditto.
+ * mh-thread.el (mh-thread-prune-subject): Ditto.
+ * mh-xface.el (mh-picon-get-image): Ditto.
+ (mh-picon-file-contents): Ditto.
+ * mh-search.el (mh-index-evaluate): Ditto.
+
+
2009-01-27 Bill Wohler <[email protected]>
* mh-funcs.el (mh-pack-folder): Fix docstring.
diff --git a/lisp/mh-e/mh-search.el b/lisp/mh-e/mh-search.el
index 1d5433e950..975fd62a45 100644
--- a/lisp/mh-e/mh-search.el
+++ b/lisp/mh-e/mh-search.el
@@ -717,7 +717,7 @@ parsed."
((equal token "and") (push 'and op-stack))
((equal token ")")
(multiple-value-setq (op-stack operand-stack)
- (mh-index-evaluate op-stack operand-stack))
+ (values-list (mh-index-evaluate op-stack operand-stack)))
(when (eq (car op-stack) 'not)
(setq op-stack (cdr op-stack))
(push `(not ,(pop operand-stack)) operand-stack))
@@ -767,7 +767,7 @@ parsed."
(while op-stack
(setq op (pop op-stack))
(cond ((eq op 'paren)
- (return-from mh-index-evaluate (values op-stack operand-stack)))
+ (return-from mh-index-evaluate (list op-stack operand-stack)))
((eq op 'not)
(push `(not ,(pop operand-stack)) operand-stack))
((or (eq op 'and) (eq op 'or))
diff --git a/lisp/mh-e/mh-seq.el b/lisp/mh-e/mh-seq.el
index 15363505fb..dc7154adf2 100644
--- a/lisp/mh-e/mh-seq.el
+++ b/lisp/mh-e/mh-seq.el
@@ -746,9 +746,10 @@ completion is over."
"-norecurse" folder "-sequence" (symbol-name mh-unseen-seq))
(goto-char (point-min))
(multiple-value-bind (folder unseen total)
- (mh-parse-flist-output-line
- (buffer-substring (point) (mh-line-end-position)))
- (values total unseen folder))))
+ (values-list
+ (mh-parse-flist-output-line
+ (buffer-substring (point) (mh-line-end-position))))
+ (list total unseen folder))))
(defun mh-folder-size-folder (folder)
"Find size of FOLDER using \"folder\"."
@@ -759,8 +760,8 @@ completion is over."
"-norecurse" folder)
(goto-char (point-min))
(if (re-search-forward " has \\([0-9]+\\) " nil t)
- (values (string-to-number (match-string 1)) u folder)
- (values 0 u folder)))))
+ (list (string-to-number (match-string 1)) u folder)
+ (list 0 u folder)))))
;;;###mh-autoload
(defun mh-parse-flist-output-line (line &optional current-folder)
@@ -788,7 +789,7 @@ folders whose names end with a '+' character."
(when (and (equal (aref folder (1- (length folder))) ?+)
(equal current-folder folder))
(setq folder (substring folder 0 (1- (length folder)))))
- (values (format "+%s" folder) unseen total)))))))
+ (list (format "+%s" folder) unseen total)))))))
;;;###mh-autoload
(defun mh-read-folder-sequences (folder save-refiles)
diff --git a/lisp/mh-e/mh-speed.el b/lisp/mh-e/mh-speed.el
index 588df7229c..f806fb43e7 100644
--- a/lisp/mh-e/mh-speed.el
+++ b/lisp/mh-e/mh-speed.el
@@ -455,7 +455,8 @@ be handled next."
(substring output position line-end))
mh-speed-partial-line "")
(multiple-value-setq (folder unseen total)
- (mh-parse-flist-output-line line mh-speed-current-folder))
+ (values-list
+ (mh-parse-flist-output-line line mh-speed-current-folder)))
(when (and folder unseen total
(let ((old-pair (gethash folder mh-speed-flists-cache)))
(or (not (equal (car old-pair) unseen))
diff --git a/lisp/mh-e/mh-thread.el b/lisp/mh-e/mh-thread.el
index 4a691511d7..1a9ad8f655 100644
--- a/lisp/mh-e/mh-thread.el
+++ b/lisp/mh-e/mh-thread.el
@@ -493,8 +493,8 @@ not put into a single thread."
(setq subject-pruned-flag t)
(setq subject (substring subject 0 (match-beginning 0))))
;; Canonicalize subject only if it is non-empty
- (cond ((equal subject "") (values subject subject-pruned-flag))
- (t (values
+ (cond ((equal subject "") (list subject subject-pruned-flag))
+ (t (list
(or (gethash subject mh-thread-subject-hash)
(setf (gethash subject mh-thread-subject-hash) subject))
subject-pruned-flag)))))
@@ -618,7 +618,7 @@ Only information about messages in MSG-LIST are added to the tree."
(return-from process-message))
(unless (integerp index) (return)) ;Error message here
(multiple-value-setq (subject subject-re-p)
- (mh-thread-prune-subject subject))
+ (values-list (mh-thread-prune-subject subject)))
(setq in-reply-to (mh-thread-process-in-reply-to in-reply-to))
(setq refs (loop for x in (append (split-string refs) in-reply-to)
when (string-match mh-message-id-regexp x)
diff --git a/lisp/mh-e/mh-xface.el b/lisp/mh-e/mh-xface.el
index bbe974ccf4..b63a196626 100644
--- a/lisp/mh-e/mh-xface.el
+++ b/lisp/mh-e/mh-xface.el
@@ -76,7 +76,8 @@ in this order is used."
(x-face (setq raw (mh-uncompface x-face)
type 'pbm))
(url (setq type 'url))
- (t (multiple-value-setq (type raw) (mh-picon-get-image))))
+ (t (multiple-value-setq (type raw)
+ (values-list (mh-picon-get-image)))))
(when type
(goto-char (point-min))
(when (re-search-forward "^from:" (point-max) t)
@@ -275,8 +276,8 @@ elements of the list are nil."
(let ((type (and (string-match ".*\\.\\(...\\)$" file)
(intern (match-string 1 file)))))
(insert-file-contents-literally file)
- (values type (buffer-string))))
- (values nil nil)))
+ (list type (buffer-string))))
+ (list nil nil)))