diff options
| author | Bill Wohler | 2005-05-28 22:04:54 +0000 |
|---|---|---|
| committer | Bill Wohler | 2005-05-28 22:04:54 +0000 |
| commit | e495eaec9cfa70e8a392e822dad178bd86f7f9cc (patch) | |
| tree | 5ca85c795be15c332c2b947d5579469ed6554e9f /lisp/mh-e/mh-seq.el | |
| parent | b5352ff5ec4f313dc5e4035041fbae2d21029281 (diff) | |
| download | emacs-e495eaec9cfa70e8a392e822dad178bd86f7f9cc.tar.gz emacs-e495eaec9cfa70e8a392e822dad178bd86f7f9cc.zip | |
Upgraded to MH-E version 7.84.
See etc/MH-E-NEWS and lisp/mh-e/ChangeLog for details.
Diffstat (limited to 'lisp/mh-e/mh-seq.el')
| -rw-r--r-- | lisp/mh-e/mh-seq.el | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/lisp/mh-e/mh-seq.el b/lisp/mh-e/mh-seq.el index d09e9805682..e618e6f41b3 100644 --- a/lisp/mh-e/mh-seq.el +++ b/lisp/mh-e/mh-seq.el | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | ;;; mh-seq.el --- MH-E sequences support | 1 | ;;; mh-seq.el --- MH-E sequences support |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1993, 1995, 2005 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1993, 1995, |
| 4 | ;; 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. | ||
| 4 | 5 | ||
| 5 | ;; Author: Bill Wohler <wohler@newt.com> | 6 | ;; Author: Bill Wohler <wohler@newt.com> |
| 6 | ;; Maintainer: Bill Wohler <wohler@newt.com> | 7 | ;; Maintainer: Bill Wohler <wohler@newt.com> |
| @@ -195,7 +196,7 @@ redone to get the new thread tree. This makes incremental threading easier.") | |||
| 195 | (insert "\n")) | 196 | (insert "\n")) |
| 196 | (setq seq-list (cdr seq-list))) | 197 | (setq seq-list (cdr seq-list))) |
| 197 | (goto-char (point-min)) | 198 | (goto-char (point-min)) |
| 198 | (view-mode 1) | 199 | (view-mode-enter) |
| 199 | (setq view-exit-action 'kill-buffer) | 200 | (setq view-exit-action 'kill-buffer) |
| 200 | (message "Listing sequences...done"))))) | 201 | (message "Listing sequences...done"))))) |
| 201 | 202 | ||
| @@ -788,10 +789,33 @@ This function can only be used the folder is threaded." | |||
| 788 | If no prefix arg is given, then return DEFAULT." | 789 | If no prefix arg is given, then return DEFAULT." |
| 789 | (let ((default-string (loop for x in default concat (format " %s" x)))) | 790 | (let ((default-string (loop for x in default concat (format " %s" x)))) |
| 790 | (if (or current-prefix-arg (equal default-string "")) | 791 | (if (or current-prefix-arg (equal default-string "")) |
| 791 | (delete "" (split-string (read-string "Pick expression: " | 792 | (mh-pick-args-list (read-string "Pick expression: " |
| 792 | default-string))) | 793 | default-string)) |
| 793 | default))) | 794 | default))) |
| 794 | 795 | ||
| 796 | (defun mh-pick-args-list (s) | ||
| 797 | "Form list by grouping elements in string S suitable for pick arguments. | ||
| 798 | For example, the string \"-subject a b c -from Joe User <user@domain.com>\" | ||
| 799 | is converted to (\"-subject\" \"a b c\" \"-from\" | ||
| 800 | \"Joe User <user@domain.com>\"" | ||
| 801 | (let ((full-list (split-string s)) | ||
| 802 | current-arg collection arg-list) | ||
| 803 | (while full-list | ||
| 804 | (setq current-arg (car full-list)) | ||
| 805 | (if (null (string-match "^-" current-arg)) | ||
| 806 | (setq collection | ||
| 807 | (if (null collection) | ||
| 808 | current-arg | ||
| 809 | (format "%s %s" collection current-arg))) | ||
| 810 | (when collection | ||
| 811 | (setq arg-list (append arg-list (list collection))) | ||
| 812 | (setq collection nil)) | ||
| 813 | (setq arg-list (append arg-list (list current-arg)))) | ||
| 814 | (setq full-list (cdr full-list))) | ||
| 815 | (when collection | ||
| 816 | (setq arg-list (append arg-list (list collection)))) | ||
| 817 | arg-list)) | ||
| 818 | |||
| 795 | ;;;###mh-autoload | 819 | ;;;###mh-autoload |
| 796 | (defun mh-narrow-to-subject (&optional pick-expr) | 820 | (defun mh-narrow-to-subject (&optional pick-expr) |
| 797 | "Limit to messages with same subject. | 821 | "Limit to messages with same subject. |
| @@ -1315,6 +1339,7 @@ All messages after START-POINT are added to the thread tree." | |||
| 1315 | (old-buffer-modified-flag (buffer-modified-p))) | 1339 | (old-buffer-modified-flag (buffer-modified-p))) |
| 1316 | (delete-region (point-min) (point-max)) | 1340 | (delete-region (point-min) (point-max)) |
| 1317 | (mh-thread-print-scan-lines thread-tree) | 1341 | (mh-thread-print-scan-lines thread-tree) |
| 1342 | (mh-notate-user-sequences) | ||
| 1318 | (mh-notate-deleted-and-refiled) | 1343 | (mh-notate-deleted-and-refiled) |
| 1319 | (mh-notate-cur) | 1344 | (mh-notate-cur) |
| 1320 | (set-buffer-modified-p old-buffer-modified-flag)))) | 1345 | (set-buffer-modified-p old-buffer-modified-flag)))) |