Mercurial > emacs
comparison lisp/mh-e/mh-seq.el @ 90268:d88caeac70d7
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-2
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (base, patch 1-3)
- tag of miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-704
- Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0 (patch 700-704)
- Update from CVS
- Merge from gnus--rel--5.10
- Update from CVS: lisp/cus-edit.el (customize-rogue): Minor doc fix.
* miles@gnu.org--gnu-2005/gnus--rel--5.10 (patch 185-186)
- Merge from emacs--cvs-trunk--0
- Update from CVS
author | Miles Bader <miles@gnu.org> |
---|---|
date | Thu, 19 Jan 2006 07:11:42 +0000 |
parents | 7beb78bc1f8e 0c77c0b9a620 |
children | 7432ca837c8d |
comparison
equal
deleted
inserted
replaced
90267:e5855ea89245 | 90268:d88caeac70d7 |
---|---|
558 (ignore-errors | 558 (ignore-errors |
559 (apply #'mh-exec-cmd-quiet nil "mhpath" folder strings) | 559 (apply #'mh-exec-cmd-quiet nil "mhpath" folder strings) |
560 (set-buffer mh-temp-buffer) | 560 (set-buffer mh-temp-buffer) |
561 (goto-char (point-min)) | 561 (goto-char (point-min)) |
562 (while (re-search-forward "/\\([0-9]*\\)$" nil t) | 562 (while (re-search-forward "/\\([0-9]*\\)$" nil t) |
563 (push (car (read-from-string (match-string 1))) result)) | 563 (push (string-to-number (match-string 1)) result)) |
564 (nreverse result))))) | 564 (nreverse result))))) |
565 | 565 |
566 (defun mh-seq-names (seq-list) | 566 (defun mh-seq-names (seq-list) |
567 "Return an alist containing the names of the SEQ-LIST." | 567 "Return an alist containing the names of the SEQ-LIST." |
568 (mapcar (lambda (entry) (list (symbol-name (mh-seq-name entry)))) | 568 (mapcar (lambda (entry) (list (symbol-name (mh-seq-name entry)))) |
926 (with-temp-buffer | 926 (with-temp-buffer |
927 (apply #'mh-exec-cmd-output "pick" nil folder | 927 (apply #'mh-exec-cmd-output "pick" nil folder |
928 (append original (list "-list") pick-expr)) | 928 (append original (list "-list") pick-expr)) |
929 (goto-char (point-min)) | 929 (goto-char (point-min)) |
930 (while (not (eobp)) | 930 (while (not (eobp)) |
931 (let ((num (read-from-string | 931 (let ((num (ignore-errors |
932 (buffer-substring (point) (line-end-position))))) | 932 (string-to-number |
933 (when (numberp (car num)) (push (car num) msg-list)) | 933 (buffer-substring (point) (line-end-position)))))) |
934 (when num (push num msg-list)) | |
934 (forward-line)))) | 935 (forward-line)))) |
935 (if (null msg-list) | 936 (if (null msg-list) |
936 (message "No matches") | 937 (message "No matches") |
937 (when (assoc 'header mh-seq-list) (mh-delete-seq 'header)) | 938 (when (assoc 'header mh-seq-list) (mh-delete-seq 'header)) |
938 (mh-add-msgs-to-seq msg-list 'header) | 939 (mh-add-msgs-to-seq msg-list 'header) |
1348 (while (not (eobp)) | 1349 (while (not (eobp)) |
1349 (block process-message | 1350 (block process-message |
1350 (let* ((index-line | 1351 (let* ((index-line |
1351 (prog1 (buffer-substring (point) (line-end-position)) | 1352 (prog1 (buffer-substring (point) (line-end-position)) |
1352 (forward-line))) | 1353 (forward-line))) |
1353 (index (car (read-from-string index-line))) | 1354 (index (string-to-number index-line)) |
1354 (id (prog1 (buffer-substring (point) (line-end-position)) | 1355 (id (prog1 (buffer-substring (point) (line-end-position)) |
1355 (forward-line))) | 1356 (forward-line))) |
1356 (refs (prog1 (buffer-substring (point) (line-end-position)) | 1357 (refs (prog1 (buffer-substring (point) (line-end-position)) |
1357 (forward-line))) | 1358 (forward-line))) |
1358 (in-reply-to (prog1 (buffer-substring (point) | 1359 (in-reply-to (prog1 (buffer-substring (point) |