[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/mh-e/mh-funcs.el [lexbind]
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/mh-e/mh-funcs.el [lexbind] |
Date: |
Sat, 04 Sep 2004 05:45:56 -0400 |
Index: emacs/lisp/mh-e/mh-funcs.el
diff -c emacs/lisp/mh-e/mh-funcs.el:1.3.4.3 emacs/lisp/mh-e/mh-funcs.el:1.3.4.4
*** emacs/lisp/mh-e/mh-funcs.el:1.3.4.3 Sat Jul 17 02:51:48 2004
--- emacs/lisp/mh-e/mh-funcs.el Sat Sep 4 09:22:56 2004
***************
*** 1,6 ****
;;; mh-funcs.el --- MH-E functions not everyone will use right away
! ;; Copyright (C) 1993, 1995, 2001, 02, 2003 Free Software Foundation, Inc.
;; Author: Bill Wohler <address@hidden>
;; Maintainer: Bill Wohler <address@hidden>
--- 1,6 ----
;;; mh-funcs.el --- MH-E functions not everyone will use right away
! ;; Copyright (C) 1993, 1995, 2001, 02, 03, 2004 Free Software Foundation, Inc.
;; Author: Bill Wohler <address@hidden>
;; Maintainer: Bill Wohler <address@hidden>
***************
*** 34,39 ****
--- 34,41 ----
;;; Code:
+ (eval-when-compile (require 'mh-acros))
+ (mh-require-cl)
(require 'mh-e)
;;; Customization
***************
*** 45,55 ****
MH profile.
For example, '(\"-nolimit\" \"-textfield\" \"subject\") is a useful setting.")
(defvar mh-note-copied "C"
! "String whose first character is used to notate copied messages.")
(defvar mh-note-printed "P"
! "String whose first character is used to notate printed messages.")
;;; Functions
--- 47,59 ----
MH profile.
For example, '(\"-nolimit\" \"-textfield\" \"subject\") is a useful setting.")
+ ;;; Scan Line Formats
+
(defvar mh-note-copied "C"
! "Copied messages are marked by this character.")
(defvar mh-note-printed "P"
! "Messages that have been printed are marked by this character.")
;;; Functions
***************
*** 233,292 ****
(mh-recenter 0)))
;;;###mh-autoload
- (defun mh-print-msg (range)
- "Print RANGE on printer.
-
- Check the documentation of `mh-interactive-range' to see how RANGE is read in
- interactive use.
-
- The variable `mh-lpr-command-format' is used to generate the print command.
- The messages are formatted by mhl. See the variable `mhl-formfile'."
- (interactive (list (mh-interactive-range "Print")))
- (message "Printing...")
- (let (msgs)
- ;; Gather message numbers and add them to "printed" sequence.
- (mh-iterate-on-range msg range
- (mh-add-msgs-to-seq msg 'printed t)
- (mh-notate nil mh-note-printed mh-cmd-note)
- (push msg msgs))
- (setq msgs (nreverse msgs))
- ;; Print scan listing if we have more than one message.
- (if (> (length msgs) 1)
- (let* ((msgs-string
- (mapconcat 'identity (mh-list-to-string
- (mh-coalesce-msg-list msgs)) " "))
- (lpr-command
- (format mh-lpr-command-format
- (cond ((listp range)
- (format "Folder: %s, Messages: %s"
- mh-current-folder msgs-string))
- ((symbolp range)
- (format "Folder: %s, Sequence: %s"
- mh-current-folder range)))))
- (scan-command
- (format "scan %s | %s" msgs-string lpr-command)))
- (if mh-print-background-flag
- (mh-exec-cmd-daemon shell-file-name nil "-c" scan-command)
- (call-process shell-file-name nil nil nil "-c" scan-command))))
- ;; Print the messages
- (dolist (msg msgs)
- (let* ((mhl-command (format "%s %s %s"
- (expand-file-name "mhl" mh-lib-progs)
- (if mhl-formfile
- (format " -form %s" mhl-formfile)
- "")
- (mh-msg-filename msg)))
- (lpr-command
- (format mh-lpr-command-format
- (format "%s/%s" mh-current-folder msg)))
- (print-command
- (format "%s | %s" mhl-command lpr-command)))
- (if mh-print-background-flag
- (mh-exec-cmd-daemon shell-file-name nil "-c" print-command)
- (call-process shell-file-name nil nil nil "-c" print-command)))))
- (message "Printing...done"))
-
- ;;;###mh-autoload
(defun mh-sort-folder (&optional extra-args)
"Sort the messages in the current folder by date.
Calls the MH program sortm to do the work.
--- 237,242 ----
***************
*** 307,315 ****
(mh-index-data (mh-index-insert-folder-headers)))))
;;;###mh-autoload
! (defun mh-undo-folder (&rest ignore)
! "Undo all pending deletes and refiles in current folder.
! Argument IGNORE is deprecated."
(interactive)
(cond ((or mh-do-not-confirm-flag
(yes-or-no-p "Undo all commands in folder? "))
--- 257,264 ----
(mh-index-data (mh-index-insert-folder-headers)))))
;;;###mh-autoload
! (defun mh-undo-folder ()
! "Undo all pending deletes and refiles in current folder."
(interactive)
(cond ((or mh-do-not-confirm-flag
(yes-or-no-p "Undo all commands in folder? "))
***************
*** 320,329 ****
(with-mh-folder-updating (nil)
(mh-remove-all-notation)))
(t
! (message "Commands not undone.")
! ;; Remove by 2003-06-30 if nothing seems amiss. XXX
! ;; (sit-for 2)
! )))
;;;###mh-autoload
(defun mh-store-msg (directory)
--- 269,275 ----
(with-mh-folder-updating (nil)
(mh-remove-all-notation)))
(t
! (message "Commands not undone"))))
;;;###mh-autoload
(defun mh-store-msg (directory)
***************
*** 413,423 ****
;;;###mh-autoload
(defun mh-help ()
! "Display cheat sheet for the MH-Folder commands in minibuffer."
(interactive)
! (mh-ephem-message
! (substitute-command-keys
! (mapconcat 'identity (cdr (assoc nil mh-help-messages)) ""))))
;;;###mh-autoload
(defun mh-prefix-help ()
--- 359,373 ----
;;;###mh-autoload
(defun mh-help ()
! "Display cheat sheet for the MH-E commands."
(interactive)
! (with-electric-help
! (function
! (lambda ()
! (insert
! (substitute-command-keys
! (mapconcat 'identity (cdr (assoc nil mh-help-messages)) ""))))
! mh-help-buffer)))
;;;###mh-autoload
(defun mh-prefix-help ()
***************
*** 430,438 ****
;; from the recent keys.
(let* ((keys (recent-keys))
(prefix-char (elt keys (- (length keys) 2))))
! (mh-ephem-message
! (substitute-command-keys
! (mapconcat 'identity (cdr (assoc prefix-char mh-help-messages)) "")))))
(provide 'mh-funcs)
--- 380,393 ----
;; from the recent keys.
(let* ((keys (recent-keys))
(prefix-char (elt keys (- (length keys) 2))))
! (with-electric-help
! (function
! (lambda ()
! (insert
! (substitute-command-keys
! (mapconcat 'identity
! (cdr (assoc prefix-char mh-help-messages)) "")))))
! mh-help-buffer)))
(provide 'mh-funcs)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/lisp/mh-e/mh-funcs.el [lexbind],
Miles Bader <=