diff options
| author | Katsumi Yamaoka | 2010-11-25 23:20:19 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-11-25 23:20:19 +0000 |
| commit | 443ecb08cdd0691a8b5e7cfa203b5d5707c94f0b (patch) | |
| tree | 2c2930507c69fffb989a3c511299a91606a617f8 | |
| parent | a56a1cce9283ab4b731a4bc96c06fd4c649d7763 (diff) | |
| download | emacs-443ecb08cdd0691a8b5e7cfa203b5d5707c94f0b.tar.gz emacs-443ecb08cdd0691a8b5e7cfa203b5d5707c94f0b.zip | |
message.el (message-called-interactively-p): A temporary macro.
message.el (message-goto-body): Use it temporarily.
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 14 |
2 files changed, 18 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 1f1f4cb1f65..6f79bc2d252 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-11-25 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * message.el (message-called-interactively-p): A temporary macro. | ||
| 4 | (message-goto-body): Use it temporarily. | ||
| 5 | |||
| 1 | 2010-11-25 Lars Magne Ingebrigtsen <larsi@gnus.org> | 6 | 2010-11-25 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 7 | ||
| 3 | * nnimap.el (nnimap-unfold-quoted-lines): Refactor out. | 8 | * nnimap.el (nnimap-unfold-quoted-lines): Refactor out. |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index bd6aa82b77a..1ee07a2d5ee 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -3047,10 +3047,22 @@ M-RET `message-newline-and-reformat' (break the line and reformat)." | |||
| 3047 | (interactive) | 3047 | (interactive) |
| 3048 | (message-position-on-field "Summary" "Subject")) | 3048 | (message-position-on-field "Summary" "Subject")) |
| 3049 | 3049 | ||
| 3050 | (eval-when-compile | ||
| 3051 | (defmacro message-called-interactively-p (kind) | ||
| 3052 | (condition-case nil | ||
| 3053 | (progn | ||
| 3054 | (eval '(called-interactively-p 'any)) | ||
| 3055 | ;; Emacs >=23.2 | ||
| 3056 | `(called-interactively-p ,kind)) | ||
| 3057 | ;; Emacs <23.2 | ||
| 3058 | (wrong-number-of-arguments '(called-interactively-p)) | ||
| 3059 | ;; XEmacs | ||
| 3060 | (void-function '(interactive-p))))) | ||
| 3061 | |||
| 3050 | (defun message-goto-body () | 3062 | (defun message-goto-body () |
| 3051 | "Move point to the beginning of the message body." | 3063 | "Move point to the beginning of the message body." |
| 3052 | (interactive) | 3064 | (interactive) |
| 3053 | (when (and (called-interactively-p 'any) | 3065 | (when (and (message-called-interactively-p 'any) |
| 3054 | (looking-at "[ \t]*\n")) | 3066 | (looking-at "[ \t]*\n")) |
| 3055 | (expand-abbrev)) | 3067 | (expand-abbrev)) |
| 3056 | (goto-char (point-min)) | 3068 | (goto-char (point-min)) |