Mercurial > emacs
comparison lisp/mail/mh-e.el @ 38414:67b464da13ec
Some fixes to follow coding conventions.
author | Pavel Janík <Pavel@Janik.cz> |
---|---|
date | Sun, 15 Jul 2001 19:53:53 +0000 |
parents | e2d1dc22d119 |
children | 5591f9b8480f |
comparison
equal
deleted
inserted
replaced
38413:a26d9b55abb6 | 38414:67b464da13ec |
---|---|
5 ;; Maintainer: Bill Wohler <wohler@newt.com> | 5 ;; Maintainer: Bill Wohler <wohler@newt.com> |
6 ;; Version: 5.0.2 | 6 ;; Version: 5.0.2 |
7 ;; Keywords: mail | 7 ;; Keywords: mail |
8 ;; Bug-reports: include `M-x mh-version' output in any correspondence | 8 ;; Bug-reports: include `M-x mh-version' output in any correspondence |
9 | 9 |
10 ;; This file is part of mh-e, part of GNU Emacs. | 10 ;; This file is part of GNU Emacs. |
11 | 11 |
12 ;; GNU Emacs is free software; you can redistribute it and/or modify | 12 ;; GNU Emacs is free software; you can redistribute it and/or modify |
13 ;; it under the terms of the GNU General Public License as published by | 13 ;; it under the terms of the GNU General Public License as published by |
14 ;; the Free Software Foundation; either version 2, or (at your option) | 14 ;; the Free Software Foundation; either version 2, or (at your option) |
15 ;; any later version. | 15 ;; any later version. |
58 | 58 |
59 ;; Original version for Gosling emacs by Brian Reid, Stanford, 1982. | 59 ;; Original version for Gosling emacs by Brian Reid, Stanford, 1982. |
60 ;; Modified by James Larus, BBN, July 1984 and UCB, 1984 & 1985. | 60 ;; Modified by James Larus, BBN, July 1984 and UCB, 1984 & 1985. |
61 ;; Rewritten for GNU Emacs, James Larus 1985. larus@ginger.berkeley.edu | 61 ;; Rewritten for GNU Emacs, James Larus 1985. larus@ginger.berkeley.edu |
62 ;; Modified by Stephen Gildea 1988. gildea@lcs.mit.edu | 62 ;; Modified by Stephen Gildea 1988. gildea@lcs.mit.edu |
63 (defconst mh-e-RCS-id "$Id: mh-e.el,v 1.26 2000/08/16 20:38:40 monnier Exp $") | 63 (defconst mh-e-RCS-id "$Id: mh-e.el,v 1.27 2000/11/02 12:37:54 gerd Exp $") |
64 | 64 |
65 ;;; Code: | 65 ;;; Code: |
66 | 66 |
67 (provide 'mh-e) | 67 (provide 'mh-e) |
68 (require 'mh-utils) | 68 (require 'mh-utils) |
627 (defun mh-delete-a-msg (msg) | 627 (defun mh-delete-a-msg (msg) |
628 ;; Delete the MESSAGE. | 628 ;; Delete the MESSAGE. |
629 (save-excursion | 629 (save-excursion |
630 (mh-goto-msg msg nil t) | 630 (mh-goto-msg msg nil t) |
631 (if (looking-at mh-refiled-msg-regexp) | 631 (if (looking-at mh-refiled-msg-regexp) |
632 (error "Message %d is refiled. Undo refile before deleting." msg)) | 632 (error "Message %d is refiled. Undo refile before deleting" msg)) |
633 (if (looking-at mh-deleted-msg-regexp) | 633 (if (looking-at mh-deleted-msg-regexp) |
634 nil | 634 nil |
635 (mh-set-folder-modified-p t) | 635 (mh-set-folder-modified-p t) |
636 (setq mh-delete-list (cons msg mh-delete-list)) | 636 (setq mh-delete-list (cons msg mh-delete-list)) |
637 (mh-add-msgs-to-seq msg 'deleted t) | 637 (mh-add-msgs-to-seq msg 'deleted t) |
641 (defun mh-refile-a-msg (msg destination) | 641 (defun mh-refile-a-msg (msg destination) |
642 ;; Refile MESSAGE in FOLDER. FOLDER is a symbol, not a string. | 642 ;; Refile MESSAGE in FOLDER. FOLDER is a symbol, not a string. |
643 (save-excursion | 643 (save-excursion |
644 (mh-goto-msg msg nil t) | 644 (mh-goto-msg msg nil t) |
645 (cond ((looking-at mh-deleted-msg-regexp) | 645 (cond ((looking-at mh-deleted-msg-regexp) |
646 (error "Message %d is deleted. Undo delete before moving." msg)) | 646 (error "Message %d is deleted. Undo delete before moving" msg)) |
647 ((looking-at mh-refiled-msg-regexp) | 647 ((looking-at mh-refiled-msg-regexp) |
648 (if (y-or-n-p | 648 (if (y-or-n-p |
649 (format "Message %d already refiled. Copy to %s as well? " | 649 (format "Message %d already refiled. Copy to %s as well? " |
650 msg destination)) | 650 msg destination)) |
651 (mh-exec-cmd "refile" (mh-get-msg-num t) "-link" | 651 (mh-exec-cmd "refile" (mh-get-msg-num t) "-link" |