annotate lisp/mail/mbox-trunk-annotations/rmailedit.el.annotation @ 98055:04b7a6119a88

(diff-find-source-location): Declare. (find-change-log): If called from a diff buffer, try to switch to the source buffer (e.g. to respect change-log-default-name there).
author Glenn Morris <rgm@gnu.org>
date Sat, 06 Sep 2008 19:38:35 +0000
parents 513ae63d6175
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
97531
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
1 1.25 (pj 15-Jul-01): ;;; rmailedit.el --- "RMAIL edit mode" Edit the current message
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
2 1.3 (eric 30-May-92):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
3 1.40 (gm 12-Jun-08): ;; Copyright (C) 1985, 1994, 2001, 2002, 2003, 2004, 2005, 2006,
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
4 1.40 (gm 12-Jun-08): ;; 2007, 2008 Free Software Foundation, Inc.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
5 1.6 (eric 22-Jul-92):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
6 1.4 (eric 16-Jul-92): ;; Maintainer: FSF
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
7 1.5 (eric 17-Jul-92): ;; Keywords: mail
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
8 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
9 1.1 (jla 31-Oct-89): ;; This file is part of GNU Emacs.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
10 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
11 1.39 (gm 06-May-08): ;; GNU Emacs is free software: you can redistribute it and/or modify
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
12 1.1 (jla 31-Oct-89): ;; it under the terms of the GNU General Public License as published by
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
13 1.39 (gm 06-May-08): ;; the Free Software Foundation, either version 3 of the License, or
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
14 1.39 (gm 06-May-08): ;; (at your option) any later version.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
15 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
16 1.1 (jla 31-Oct-89): ;; GNU Emacs is distributed in the hope that it will be useful,
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
17 1.1 (jla 31-Oct-89): ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
18 1.1 (jla 31-Oct-89): ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
19 1.1 (jla 31-Oct-89): ;; GNU General Public License for more details.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
20 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
21 1.1 (jla 31-Oct-89): ;; You should have received a copy of the GNU General Public License
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
22 1.39 (gm 06-May-08): ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
23 1.25 (pj 15-Jul-01):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
24 1.25 (pj 15-Jul-01): ;;; Commentary:
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
25 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
26 1.4 (eric 16-Jul-92): ;;; Code:
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
27 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
28 1.1 (jla 31-Oct-89): (require 'rmail)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
29 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
30 1.23 (gerd 07-May-01): (defcustom rmail-edit-mode-hook nil
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
31 1.23 (gerd 07-May-01): "List of functions to call when editing an RMAIL message."
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
32 1.23 (gerd 07-May-01): :type 'hook
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
33 1.24 (gerd 07-May-01): :version "21.1"
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
34 1.23 (gerd 07-May-01): :group 'rmail-edit)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
35 1.23 (gerd 07-May-01):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
36 1.18 (kwzh 08-Apr-98): (defvar rmail-old-text)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
37 1.18 (kwzh 08-Apr-98):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
38 1.1 (jla 31-Oct-89): (defvar rmail-edit-map nil)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
39 1.1 (jla 31-Oct-89): (if rmail-edit-map
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
40 1.1 (jla 31-Oct-89): nil
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
41 1.7 (rms 20-Jul-93): ;; Make a keymap that inherits text-mode-map.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
42 1.18 (kwzh 08-Apr-98): (setq rmail-edit-map (make-sparse-keymap))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
43 1.18 (kwzh 08-Apr-98): (set-keymap-parent rmail-edit-map text-mode-map)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
44 1.1 (jla 31-Oct-89): (define-key rmail-edit-map "\C-c\C-c" 'rmail-cease-edit)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
45 1.1 (jla 31-Oct-89): (define-key rmail-edit-map "\C-c\C-]" 'rmail-abort-edit))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
46 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
47 1.1 (jla 31-Oct-89): ;; Rmail Edit mode is suitable only for specially formatted data.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
48 1.1 (jla 31-Oct-89): (put 'rmail-edit-mode 'mode-class 'special)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
49 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
50 1.36 (dann 25-Nov-07): (declare-function rmail-summary-disable "" ())
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
51 1.36 (dann 25-Nov-07): (declare-function rmail-summary-enable "rmailsum" ())
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
52 1.36 (dann 25-Nov-07):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
53 1.1 (jla 31-Oct-89): (defun rmail-edit-mode ()
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
54 1.1 (jla 31-Oct-89): "Major mode for editing the contents of an RMAIL message.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
55 1.1 (jla 31-Oct-89): The editing commands are the same as in Text mode, together with two commands
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
56 1.1 (jla 31-Oct-89): to return to regular RMAIL:
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
57 1.23 (gerd 07-May-01): * \\[rmail-abort-edit] cancels the changes
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
58 1.1 (jla 31-Oct-89): you have made and returns to RMAIL
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
59 1.23 (gerd 07-May-01): * \\[rmail-cease-edit] makes them permanent.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
60 1.23 (gerd 07-May-01): This functions runs the normal hook `rmail-edit-mode-hook'.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
61 1.1 (jla 31-Oct-89): \\{rmail-edit-map}"
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
62 1.29 (lute 14-Jun-05): (delay-mode-hooks (text-mode))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
63 1.1 (jla 31-Oct-89): (use-local-map rmail-edit-map)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
64 1.1 (jla 31-Oct-89): (setq major-mode 'rmail-edit-mode)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
65 1.1 (jla 31-Oct-89): (setq mode-name "RMAIL Edit")
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
66 1.1 (jla 31-Oct-89): (if (boundp 'mode-line-modified)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
67 1.1 (jla 31-Oct-89): (setq mode-line-modified (default-value 'mode-line-modified))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
68 1.1 (jla 31-Oct-89): (setq mode-line-format (default-value 'mode-line-format)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
69 1.9 (kwzh 07-Apr-94): (if (rmail-summary-exists)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
70 1.10 (kwzh 07-Apr-94): (save-excursion
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
71 1.10 (kwzh 07-Apr-94): (set-buffer rmail-summary-buffer)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
72 1.10 (kwzh 07-Apr-94): (rmail-summary-disable)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
73 1.28 (lute 26-May-05): (run-mode-hooks 'rmail-edit-mode-hook))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
74 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
75 1.20 (rms 27-May-98): (defvar rmail-old-pruned nil)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
76 1.20 (rms 27-May-98): (put 'rmail-old-pruned 'permanent-local t)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
77 1.20 (rms 27-May-98):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
78 1.21 (rms 13-Jul-98): (defvar rmail-edit-saved-coding-system nil)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
79 1.21 (rms 13-Jul-98): (put 'rmail-edit-saved-coding-system 'permanent-local t)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
80 1.21 (rms 13-Jul-98):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
81 1.17 (rms 27-Sep-96): ;;;###autoload
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
82 1.1 (jla 31-Oct-89): (defun rmail-edit-current-message ()
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
83 1.1 (jla 31-Oct-89): "Edit the contents of this message."
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
84 1.1 (jla 31-Oct-89): (interactive)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
85 1.20 (rms 27-May-98): (make-local-variable 'rmail-old-pruned)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
86 1.20 (rms 27-May-98): (setq rmail-old-pruned (rmail-msg-is-pruned))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
87 1.21 (rms 13-Jul-98): (make-local-variable 'rmail-edit-saved-coding-system)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
88 1.21 (rms 13-Jul-98): (setq rmail-edit-saved-coding-system save-buffer-coding-system)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
89 1.20 (rms 27-May-98): (rmail-toggle-header 0)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
90 1.1 (jla 31-Oct-89): (rmail-edit-mode)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
91 1.21 (rms 13-Jul-98): ;; As the local value of save-buffer-coding-system is deleted by
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
92 1.21 (rms 13-Jul-98): ;; rmail-edit-mode, we restore the original value.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
93 1.21 (rms 13-Jul-98): (make-local-variable 'save-buffer-coding-system)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
94 1.21 (rms 13-Jul-98): (setq save-buffer-coding-system rmail-edit-saved-coding-system)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
95 1.1 (jla 31-Oct-89): (make-local-variable 'rmail-old-text)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
96 1.1 (jla 31-Oct-89): (setq rmail-old-text (buffer-substring (point-min) (point-max)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
97 1.1 (jla 31-Oct-89): (setq buffer-read-only nil)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
98 1.14 (kwzh 25-Apr-95): (force-mode-line-update)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
99 1.1 (jla 31-Oct-89): (if (and (eq (key-binding "\C-c\C-c") 'rmail-cease-edit)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
100 1.1 (jla 31-Oct-89): (eq (key-binding "\C-c\C-]") 'rmail-abort-edit))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
101 1.1 (jla 31-Oct-89): (message "Editing: Type C-c C-c to return to Rmail, C-c C-] to abort")
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
102 1.16 (kwzh 25-Jan-96): (message "%s" (substitute-command-keys
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
103 1.20 (rms 27-May-98): "Editing: Type \\[rmail-cease-edit] to return to Rmail, \\[rmail-abort-edit] to abort"))))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
104 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
105 1.1 (jla 31-Oct-89): (defun rmail-cease-edit ()
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
106 1.1 (jla 31-Oct-89): "Finish editing message; switch back to Rmail proper."
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
107 1.1 (jla 31-Oct-89): (interactive)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
108 1.9 (kwzh 07-Apr-94): (if (rmail-summary-exists)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
109 1.10 (kwzh 07-Apr-94): (save-excursion
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
110 1.10 (kwzh 07-Apr-94): (set-buffer rmail-summary-buffer)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
111 1.10 (kwzh 07-Apr-94): (rmail-summary-enable)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
112 1.1 (jla 31-Oct-89): ;; Make sure buffer ends with a newline.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
113 1.1 (jla 31-Oct-89): (save-excursion
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
114 1.1 (jla 31-Oct-89): (goto-char (point-max))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
115 1.1 (jla 31-Oct-89): (if (/= (preceding-char) ?\n)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
116 1.1 (jla 31-Oct-89): (insert "\n"))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
117 1.1 (jla 31-Oct-89): ;; Adjust the marker that points to the end of this message.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
118 1.1 (jla 31-Oct-89): (set-marker (aref rmail-message-vector (1+ rmail-current-message))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
119 1.1 (jla 31-Oct-89): (point)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
120 1.1 (jla 31-Oct-89): (let ((old rmail-old-text))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
121 1.14 (kwzh 25-Apr-95): (force-mode-line-update)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
122 1.18 (kwzh 08-Apr-98): (kill-all-local-variables)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
123 1.1 (jla 31-Oct-89): (rmail-mode-1)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
124 1.40 (gm 12-Jun-08): (if (boundp 'tool-bar-map)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
125 1.40 (gm 12-Jun-08): (set (make-local-variable 'tool-bar-map) rmail-tool-bar-map))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
126 1.18 (kwzh 08-Apr-98): (rmail-variables)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
127 1.21 (rms 13-Jul-98): ;; As the local value of save-buffer-coding-system is changed by
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
128 1.21 (rms 13-Jul-98): ;; rmail-variables, we restore the original value.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
129 1.21 (rms 13-Jul-98): (setq save-buffer-coding-system rmail-edit-saved-coding-system)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
130 1.1 (jla 31-Oct-89): (if (and (= (length old) (- (point-max) (point-min)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
131 1.1 (jla 31-Oct-89): (string= old (buffer-substring (point-min) (point-max))))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
132 1.1 (jla 31-Oct-89): ()
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
133 1.1 (jla 31-Oct-89): (setq old nil)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
134 1.1 (jla 31-Oct-89): (rmail-set-attribute "edited" t)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
135 1.1 (jla 31-Oct-89): (if (boundp 'rmail-summary-vector)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
136 1.1 (jla 31-Oct-89): (progn
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
137 1.1 (jla 31-Oct-89): (aset rmail-summary-vector (1- rmail-current-message) nil)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
138 1.1 (jla 31-Oct-89): (save-excursion
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
139 1.1 (jla 31-Oct-89): (rmail-widen-to-current-msgbeg
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
140 1.19 (rms 01-May-98): (function (lambda ()
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
141 1.1 (jla 31-Oct-89): (forward-line 2)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
142 1.1 (jla 31-Oct-89): (if (looking-at "Summary-line: ")
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
143 1.1 (jla 31-Oct-89): (let ((buffer-read-only nil))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
144 1.1 (jla 31-Oct-89): (delete-region (point)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
145 1.1 (jla 31-Oct-89): (progn (forward-line 1)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
146 1.19 (rms 01-May-98): (point))))))))))))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
147 1.19 (rms 01-May-98): (save-excursion
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
148 1.20 (rms 27-May-98): (rmail-show-message)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
149 1.20 (rms 27-May-98): (rmail-toggle-header (if rmail-old-pruned 1 0))))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
150 1.22 (gerd 18-Nov-99): (run-hooks 'rmail-mode-hook)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
151 1.1 (jla 31-Oct-89): (setq buffer-read-only t))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
152 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
153 1.1 (jla 31-Oct-89): (defun rmail-abort-edit ()
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
154 1.1 (jla 31-Oct-89): "Abort edit of current message; restore original contents."
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
155 1.1 (jla 31-Oct-89): (interactive)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
156 1.1 (jla 31-Oct-89): (delete-region (point-min) (point-max))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
157 1.1 (jla 31-Oct-89): (insert rmail-old-text)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
158 1.13 (rms 09-Aug-94): (rmail-cease-edit)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
159 1.13 (rms 09-Aug-94): (rmail-highlight-headers))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
160 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
161 1.26 (rost 15-Nov-02): (provide 'rmailedit)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
162 1.26 (rost 15-Nov-02):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
163 1.38 (monnier 10-Apr-08): ;; arch-tag: 93c22709-a14a-46c1-ab91-52c3f5a0ec12
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
164 1.3 (eric 30-May-92): ;;; rmailedit.el ends here