diff options
| author | Richard M. Stallman | 2007-03-20 16:24:03 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2007-03-20 16:24:03 +0000 |
| commit | 5d5afbcdea4bd86dc1c8083c23b02b8d6298b9cb (patch) | |
| tree | 8ee090f1aa0257a87d13a409b0697526ff30e38e | |
| parent | bc4c663309d53cfeafb17f596fc8f47f7fb483c6 (diff) | |
| download | emacs-5d5afbcdea4bd86dc1c8083c23b02b8d6298b9cb.tar.gz emacs-5d5afbcdea4bd86dc1c8083c23b02b8d6298b9cb.zip | |
(compose-mail): Run switch-function after setting up the mail buffer.
(switch-to-completions): No error if search for \n\n fails.
| -rw-r--r-- | lisp/ChangeLog | 16 | ||||
| -rw-r--r-- | lisp/simple.el | 15 |
2 files changed, 27 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 31621363d53..705642dc7f3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2007-03-20 Richard Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * textmodes/ispell.el (ispell-call-process): New function. | ||
| 4 | Defends against bad `default-directory.' | ||
| 5 | (ispell-check-version, ispell-find-aspell-dictionaries) | ||
| 6 | (ispell-get-aspell-config-value, lookup-words): Call it. | ||
| 7 | (ispell-call-process-region): New function. | ||
| 8 | (ispell-send-string): Call it. | ||
| 9 | |||
| 1 | 2007-03-20 Andreas Schwab <schwab@suse.de> | 10 | 2007-03-20 Andreas Schwab <schwab@suse.de> |
| 2 | 11 | ||
| 3 | * Makefile.in (custom-deps): Depend on $(lisp)/subdirs.el. | 12 | * Makefile.in (custom-deps): Depend on $(lisp)/subdirs.el. |
| @@ -52,6 +61,9 @@ | |||
| 52 | * files.el (default-directory): Mark safe. | 61 | * files.el (default-directory): Mark safe. |
| 53 | (basic-save-buffer-2): Put proper dir name in error message. | 62 | (basic-save-buffer-2): Put proper dir name in error message. |
| 54 | 63 | ||
| 64 | * simple.el (compose-mail): Run switch-function after | ||
| 65 | setting up the mail buffer. | ||
| 66 | |||
| 55 | * startup.el (inhibit-splash-screen, initial-major-mode): Doc fixes. | 67 | * startup.el (inhibit-splash-screen, initial-major-mode): Doc fixes. |
| 56 | 68 | ||
| 57 | 2007-03-18 Jay Belanger <belanger@truman.edu> | 69 | 2007-03-18 Jay Belanger <belanger@truman.edu> |
| @@ -94,6 +106,10 @@ | |||
| 94 | * autorevert.el (auto-revert-tail-handler): | 106 | * autorevert.el (auto-revert-tail-handler): |
| 95 | Call after-revert-hook. | 107 | Call after-revert-hook. |
| 96 | 108 | ||
| 109 | 2007-03-17 Ryan Yeske <rcyeske@gmail.com> | ||
| 110 | |||
| 111 | * simple.el (switch-to-completions): No error if search for \n\n fails. | ||
| 112 | |||
| 97 | 2007-03-17 Chong Yidong <cyd@stupidchicken.com> | 113 | 2007-03-17 Chong Yidong <cyd@stupidchicken.com> |
| 98 | 114 | ||
| 99 | * simple.el (line-move-1): Respect | 115 | * simple.el (line-move-1): Respect |
diff --git a/lisp/simple.el b/lisp/simple.el index 5bbfa317958..6871993d2b7 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -4726,9 +4726,16 @@ SEND-ACTIONS is a list of actions to call when the message is sent. | |||
| 4726 | Each action has the form (FUNCTION . ARGS)." | 4726 | Each action has the form (FUNCTION . ARGS)." |
| 4727 | (interactive | 4727 | (interactive |
| 4728 | (list nil nil nil current-prefix-arg)) | 4728 | (list nil nil nil current-prefix-arg)) |
| 4729 | (let ((function (get mail-user-agent 'composefunc))) | 4729 | (let ((function (get mail-user-agent 'composefunc)) |
| 4730 | (funcall function to subject other-headers continue | 4730 | result-buffer) |
| 4731 | switch-function yank-action send-actions))) | 4731 | (if switch-function |
| 4732 | (save-window-excursion | ||
| 4733 | (prog1 | ||
| 4734 | (funcall function to subject other-headers continue | ||
| 4735 | nil yank-action send-actions) | ||
| 4736 | (funcall switch-function (current-buffer)))) | ||
| 4737 | (funcall function to subject other-headers continue | ||
| 4738 | nil yank-action send-actions)))) | ||
| 4732 | 4739 | ||
| 4733 | (defun compose-mail-other-window (&optional to subject other-headers continue | 4740 | (defun compose-mail-other-window (&optional to subject other-headers continue |
| 4734 | yank-action send-actions) | 4741 | yank-action send-actions) |
| @@ -5165,7 +5172,7 @@ select the completion near point.\n\n")))))) | |||
| 5165 | (when window | 5172 | (when window |
| 5166 | (select-window window) | 5173 | (select-window window) |
| 5167 | (goto-char (point-min)) | 5174 | (goto-char (point-min)) |
| 5168 | (search-forward "\n\n") | 5175 | (search-forward "\n\n" nil t) |
| 5169 | (forward-line 1)))) | 5176 | (forward-line 1)))) |
| 5170 | 5177 | ||
| 5171 | ;;; Support keyboard commands to turn on various modifiers. | 5178 | ;;; Support keyboard commands to turn on various modifiers. |