diff options
| author | Kenichi Handa | 2011-01-14 13:08:30 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2011-01-14 13:08:30 +0900 |
| commit | 66399c0a66e87c20edad6a7eb2474981d9bc7e4e (patch) | |
| tree | 9998842124f34c1c0e75d6f9b796fd690ed2ea6d | |
| parent | 1a6a03e4a30d48bdbb3f188c7de0c0ab09e16992 (diff) | |
| parent | c88aaf48b207664ac714d161061488c86b0963d9 (diff) | |
| download | emacs-66399c0a66e87c20edad6a7eb2474981d9bc7e4e.tar.gz emacs-66399c0a66e87c20edad6a7eb2474981d9bc7e4e.zip | |
merge emacs-23
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 28 | ||||
| -rw-r--r-- | lisp/subr.el | 29 |
4 files changed, 53 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9ed8ee80c89..0f6138bf698 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -9,6 +9,10 @@ | |||
| 9 | (rmail-show-mime): If only a header part was decoded, find the | 9 | (rmail-show-mime): If only a header part was decoded, find the |
| 10 | coding system while ignoring mm-charset-override-alist. | 10 | coding system while ignoring mm-charset-override-alist. |
| 11 | 11 | ||
| 12 | 2011-01-13 Chong Yidong <cyd@stupidchicken.com> | ||
| 13 | |||
| 14 | * subr.el (event-start, event-end): Doc fix (Bug#7826). | ||
| 15 | |||
| 12 | 2011-01-12 Kenichi Handa <handa@m17n.org> | 16 | 2011-01-12 Kenichi Handa <handa@m17n.org> |
| 13 | 17 | ||
| 14 | * mail/rmailmm.el (rmail-mime-next-item) | 18 | * mail/rmailmm.el (rmail-mime-next-item) |
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 6a363c0b4f1..eecbe978c29 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-01-13 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * message.el (message-bury): Add special-case handling for Rmail. | ||
| 4 | |||
| 1 | 2011-01-12 Glenn Morris <rgm@gnu.org> | 5 | 2011-01-12 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * message.el (message-mail): A compose-mail function should | 7 | * message.el (message-mail): A compose-mail function should |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 0ea0df46060..63fcf500189 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -4023,12 +4023,32 @@ Instead, just auto-save the buffer and then bury it." | |||
| 4023 | 4023 | ||
| 4024 | (defun message-bury (buffer) | 4024 | (defun message-bury (buffer) |
| 4025 | "Bury this mail BUFFER." | 4025 | "Bury this mail BUFFER." |
| 4026 | (let ((newbuf (other-buffer buffer))) | 4026 | (let ((newbuf (other-buffer (current-buffer)))) |
| 4027 | (bury-buffer buffer) | 4027 | (bury-buffer (current-buffer)) |
| 4028 | (if (and (window-dedicated-p (selected-window)) | 4028 | (if (and (window-dedicated-p (frame-selected-window)) |
| 4029 | (not (null (delq (selected-frame) (visible-frame-list))))) | 4029 | (not (null (delq (selected-frame) (visible-frame-list))))) |
| 4030 | (delete-frame (selected-frame)) | 4030 | (delete-frame (selected-frame)) |
| 4031 | (switch-to-buffer newbuf)))) | 4031 | ;; Temporary hack to make this behave like `mail-bury', when |
| 4032 | ;; used with Rmail. Replaced in Emacs 24 with | ||
| 4033 | (let (rmail-flag summary-buffer) | ||
| 4034 | (and (not (one-window-p)) | ||
| 4035 | (with-current-buffer | ||
| 4036 | (window-buffer (next-window (selected-window) 'not)) | ||
| 4037 | (setq rmail-flag (eq major-mode 'rmail-mode)) | ||
| 4038 | (setq summary-buffer | ||
| 4039 | (and (if (boundp 'mail-bury-selects-summary) | ||
| 4040 | mail-bury-selects-summary | ||
| 4041 | t) | ||
| 4042 | (boundp 'rmail-summary-buffer) | ||
| 4043 | rmail-summary-buffer | ||
| 4044 | (buffer-name rmail-summary-buffer) | ||
| 4045 | (not (get-buffer-window rmail-summary-buffer)) | ||
| 4046 | rmail-summary-buffer)))) | ||
| 4047 | (if rmail-flag | ||
| 4048 | ;; If the Rmail buffer has a summary, show that. | ||
| 4049 | (if summary-buffer (switch-to-buffer summary-buffer) | ||
| 4050 | (delete-window)) | ||
| 4051 | (switch-to-buffer newbuf)))))) | ||
| 4032 | 4052 | ||
| 4033 | (defun message-send (&optional arg) | 4053 | (defun message-send (&optional arg) |
| 4034 | "Send the message in the current buffer. | 4054 | "Send the message in the current buffer. |
diff --git a/lisp/subr.el b/lisp/subr.el index d8618172103..7ddabbc0e90 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -854,24 +854,37 @@ in the current Emacs session, then this function may return nil." | |||
| 854 | 854 | ||
| 855 | (defsubst event-start (event) | 855 | (defsubst event-start (event) |
| 856 | "Return the starting position of EVENT. | 856 | "Return the starting position of EVENT. |
| 857 | If EVENT is a mouse or key press or a mouse click, this returns the location | 857 | EVENT should be a click, drag, or key press event. |
| 858 | of the event. | 858 | If it is a key press event, the return value has the form |
| 859 | If EVENT is a drag, this returns the drag's starting position. | 859 | (WINDOW POS (0 . 0) 0) |
| 860 | The return value is of the form | 860 | If it is a click or drag event, it has the form |
| 861 | (WINDOW AREA-OR-POS (X . Y) TIMESTAMP OBJECT POS (COL . ROW) | 861 | (WINDOW AREA-OR-POS (X . Y) TIMESTAMP OBJECT POS (COL . ROW) |
| 862 | IMAGE (DX . DY) (WIDTH . HEIGHT)) | 862 | IMAGE (DX . DY) (WIDTH . HEIGHT)) |
| 863 | The `posn-' functions access elements of such lists." | 863 | The `posn-' functions access elements of such lists. |
| 864 | For more information, see Info node `(elisp)Click Events'. | ||
| 865 | |||
| 866 | If EVENT is a mouse or key press or a mouse click, this is the | ||
| 867 | position of the event. If EVENT is a drag, this is the starting | ||
| 868 | position of the drag." | ||
| 864 | (if (consp event) (nth 1 event) | 869 | (if (consp event) (nth 1 event) |
| 865 | (list (selected-window) (point) '(0 . 0) 0))) | 870 | (list (selected-window) (point) '(0 . 0) 0))) |
| 866 | 871 | ||
| 867 | (defsubst event-end (event) | 872 | (defsubst event-end (event) |
| 868 | "Return the ending location of EVENT. | 873 | "Return the ending location of EVENT. |
| 869 | EVENT should be a click, drag, or key press event. | 874 | EVENT should be a click, drag, or key press event. |
| 870 | If EVENT is a click event, this function is the same as `event-start'. | 875 | If EVENT is a key press event, the return value has the form |
| 871 | The return value is of the form | 876 | (WINDOW POS (0 . 0) 0) |
| 877 | If EVENT is a click event, this function is the same as | ||
| 878 | `event-start'. For click and drag events, the return value has | ||
| 879 | the form | ||
| 872 | (WINDOW AREA-OR-POS (X . Y) TIMESTAMP OBJECT POS (COL . ROW) | 880 | (WINDOW AREA-OR-POS (X . Y) TIMESTAMP OBJECT POS (COL . ROW) |
| 873 | IMAGE (DX . DY) (WIDTH . HEIGHT)) | 881 | IMAGE (DX . DY) (WIDTH . HEIGHT)) |
| 874 | The `posn-' functions access elements of such lists." | 882 | The `posn-' functions access elements of such lists. |
| 883 | For more information, see Info node `(elisp)Click Events'. | ||
| 884 | |||
| 885 | If EVENT is a mouse or key press or a mouse click, this is the | ||
| 886 | position of the event. If EVENT is a drag, this is the starting | ||
| 887 | position of the drag." | ||
| 875 | (if (consp event) (nth (if (consp (nth 2 event)) 2 1) event) | 888 | (if (consp event) (nth (if (consp (nth 2 event)) 2 1) event) |
| 876 | (list (selected-window) (point) '(0 . 0) 0))) | 889 | (list (selected-window) (point) '(0 . 0) 0))) |
| 877 | 890 | ||