aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2012-04-18 09:45:13 -0700
committerPaul Eggert2012-04-18 09:45:13 -0700
commit6c94c34fe8fef20680c29731277ad8baf87bf47e (patch)
treef7a054d06b2a030ce73f298c41baaa14310dfcb8
parente36899b642d36b3e0280e8e3914f7bbc28e75f9d (diff)
parentbc6494efe328c6b6da13bafd95e035da4e36ca98 (diff)
downloademacs-6c94c34fe8fef20680c29731277ad8baf87bf47e.tar.gz
emacs-6c94c34fe8fef20680c29731277ad8baf87bf47e.zip
Merge from trunk.
-rw-r--r--ChangeLog2
-rw-r--r--lib-src/ChangeLog2
-rw-r--r--lisp/ChangeLog24
-rw-r--r--lisp/files.el1
-rw-r--r--lisp/mail/rmail.el23
-rw-r--r--lisp/mail/sendmail.el7
-rw-r--r--lisp/simple.el36
-rw-r--r--lwlib/ChangeLog2
-rw-r--r--msdos/ChangeLog2
-rw-r--r--oldXMenu/ChangeLog2
-rw-r--r--src/ChangeLog2
11 files changed, 71 insertions, 32 deletions
diff --git a/ChangeLog b/ChangeLog
index 18633199008..95baf9c5294 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,4 @@
12012-04-17 Paul Eggert <eggert@cs.ucla.edu> 12012-04-18 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 configure: new option --enable-gcc-warnings (Bug#11207) 3 configure: new option --enable-gcc-warnings (Bug#11207)
4 I have been using this change for many months in my private copy 4 I have been using this change for many months in my private copy
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index d8d0fc877b9..106b2c8faca 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,4 +1,4 @@
12012-04-17 Paul Eggert <eggert@cs.ucla.edu> 12012-04-18 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 configure: new option --enable-gcc-warnings (Bug#11207) 3 configure: new option --enable-gcc-warnings (Bug#11207)
4 * Makefile.in (C_WARNINGS_SWITCH): Remove. 4 * Makefile.in (C_WARNINGS_SWITCH): Remove.
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d9aadbe0f22..054b3ca5f47 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,27 @@
12012-04-18 Chong Yidong <cyd@gnu.org>
2
3 * simple.el (line-move): Use forward-line if in batch mode
4 (Bug#11053).
5
62012-04-18 Christopher Schmidt <christopher@ch.ristopher.com>
7
8 * files.el (after-find-file): Do not try to add a final newline if
9 the buffer is read-only (Bug#11156).
10
112012-04-17 Richard Stallman <rms@gnu.org>
12
13 * mail/rmail.el (rmail-start-mail):
14 Pass (rmail-mail-return...) for the return-action.
15 Pass (rmail-yank-current-message...) for the yank-action.
16 (rmail-yank-current-message): New function.
17 (rmail-mail): Pass the Rmail buffer, not view buffer, for replybuffer.
18 (rmail-reply): Likewise.
19 (rmail-forward): Pass the Rmail buffer, not nil, for replybuffer.
20
21 * mail/sendmail.el (mail-bury): Choose the first rmail-mode
22 buffer, not the last. Reject temp buffers. Use the rmail-mode
23 buffer, not newbuf.
24
12012-04-17 Juanma Barranquero <lekktu@gmail.com> 252012-04-17 Juanma Barranquero <lekktu@gmail.com>
2 26
3 * server.el (server-ensure-safe-dir): Simplify. 27 * server.el (server-ensure-safe-dir): Simplify.
diff --git a/lisp/files.el b/lisp/files.el
index fb4662e7ea8..d757e1a277c 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -2152,6 +2152,7 @@ unless NOMODES is non-nil."
2152 (/= (char-after (1- (point-max))) ?\n) 2152 (/= (char-after (1- (point-max))) ?\n)
2153 (not (and (eq selective-display t) 2153 (not (and (eq selective-display t)
2154 (= (char-after (1- (point-max))) ?\r))) 2154 (= (char-after (1- (point-max))) ?\r)))
2155 (not buffer-read-only)
2155 (save-excursion 2156 (save-excursion
2156 (goto-char (point-max)) 2157 (goto-char (point-max))
2157 (insert "\n"))) 2158 (insert "\n")))
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 093050229c4..12d1e0c6c36 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -3560,6 +3560,16 @@ does not pop any summary buffer."
3560 3560
3561;;;; *** Rmail Mailing Commands *** 3561;;;; *** Rmail Mailing Commands ***
3562 3562
3563(defun rmail-yank-current-message (buffer)
3564 "Yank into the current buffer the current message of Rmail buffer BUFFER.
3565If BUFFER is swapped with its message viewer buffer, yank out of BUFFER.
3566If BUFFER is not swapped, yank out of its message viewer buffer."
3567 (with-current-buffer buffer
3568 (unless (rmail-buffers-swapped-p)
3569 (setq buffer rmail-view-buffer)))
3570 (insert-buffer buffer))
3571
3572
3563(defun rmail-start-mail (&optional noerase to subject in-reply-to cc 3573(defun rmail-start-mail (&optional noerase to subject in-reply-to cc
3564 replybuffer sendactions same-window 3574 replybuffer sendactions same-window
3565 other-headers) 3575 other-headers)
@@ -3571,7 +3581,8 @@ does not pop any summary buffer."
3571 (if replybuffer 3581 (if replybuffer
3572 ;; The function used here must behave like insert-buffer wrt 3582 ;; The function used here must behave like insert-buffer wrt
3573 ;; point and mark (see doc of sc-cite-original). 3583 ;; point and mark (see doc of sc-cite-original).
3574 (setq yank-action (list 'insert-buffer replybuffer))) 3584 (setq yank-action
3585 `(rmail-yank-current-message ,replybuffer)))
3575 (push (cons "cc" cc) other-headers) 3586 (push (cons "cc" cc) other-headers)
3576 (push (cons "in-reply-to" in-reply-to) other-headers) 3587 (push (cons "in-reply-to" in-reply-to) other-headers)
3577 (setq other-headers 3588 (setq other-headers
@@ -3587,7 +3598,7 @@ does not pop any summary buffer."
3587 (prog1 3598 (prog1
3588 (compose-mail to subject other-headers noerase 3599 (compose-mail to subject other-headers noerase
3589 switch-function yank-action sendactions 3600 switch-function yank-action sendactions
3590 `(rmail-mail-return ,replybuffer)) 3601 (if replybuffer `(rmail-mail-return ,replybuffer)))
3591 (if (eq switch-function 'switch-to-buffer-other-frame) 3602 (if (eq switch-function 'switch-to-buffer-other-frame)
3592 ;; This is not a standard frame parameter; nothing except 3603 ;; This is not a standard frame parameter; nothing except
3593 ;; sendmail.el looks at it. 3604 ;; sendmail.el looks at it.
@@ -3644,7 +3655,7 @@ to switch to."
3644While composing the message, use \\[mail-yank-original] to yank the 3655While composing the message, use \\[mail-yank-original] to yank the
3645original message into it." 3656original message into it."
3646 (interactive) 3657 (interactive)
3647 (rmail-start-mail nil nil nil nil nil rmail-view-buffer)) 3658 (rmail-start-mail nil nil nil nil nil rmail-buffer))
3648 3659
3649;; FIXME should complain if there is nothing to continue. 3660;; FIXME should complain if there is nothing to continue.
3650(defun rmail-continue () 3661(defun rmail-continue ()
@@ -3731,9 +3742,7 @@ use \\[mail-yank-original] to yank the original message into it."
3731 (mail-strip-quoted-names 3742 (mail-strip-quoted-names
3732 (if (null cc) to (concat to ", " cc)))))) 3743 (if (null cc) to (concat to ", " cc))))))
3733 (if (string= cc-list "") nil cc-list))) 3744 (if (string= cc-list "") nil cc-list)))
3734 (if (rmail-buffers-swapped-p) 3745 rmail-buffer
3735 rmail-buffer
3736 rmail-view-buffer)
3737 (list (list 'rmail-mark-message 3746 (list (list 'rmail-mark-message
3738 rmail-buffer 3747 rmail-buffer
3739 (with-current-buffer rmail-buffer 3748 (with-current-buffer rmail-buffer
@@ -3835,7 +3844,7 @@ see the documentation of `rmail-resend'."
3835 (or (mail-fetch-field "Subject") "") 3844 (or (mail-fetch-field "Subject") "")
3836 "]"))) 3845 "]")))
3837 (if (rmail-start-mail 3846 (if (rmail-start-mail
3838 nil nil subject nil nil nil 3847 nil nil subject nil nil rmail-buffer
3839 (list (list 'rmail-mark-message 3848 (list (list 'rmail-mark-message
3840 forward-buffer 3849 forward-buffer
3841 (with-current-buffer rmail-buffer 3850 (with-current-buffer rmail-buffer
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index f8958a691b2..0b0f2795610 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -863,8 +863,11 @@ Prefix arg means don't delete this window."
863 ;; even if this message was not started by an Rmail command. 863 ;; even if this message was not started by an Rmail command.
864 (unless return-action 864 (unless return-action
865 (dolist (buffer (buffer-list)) 865 (dolist (buffer (buffer-list))
866 (if (eq (buffer-local-value 'major-mode buffer) 'rmail-mode) 866 (if (and (eq (buffer-local-value 'major-mode buffer) 'rmail-mode)
867 (setq return-action `(rmail-mail-return ,newbuf))))) 867 (null return-action)
868 ;; Don't match message-viewer buffer.
869 (not (string-match "\\` " (buffer-name buffer))))
870 (setq return-action `(rmail-mail-return ,buffer)))))
868 (if (and (null arg) return-action) 871 (if (and (null arg) return-action)
869 (apply (car return-action) (cdr return-action)) 872 (apply (car return-action) (cdr return-action))
870 (switch-to-buffer newbuf)))) 873 (switch-to-buffer newbuf))))
diff --git a/lisp/simple.el b/lisp/simple.el
index 09fe1807d8f..67f6e4eedf7 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -4405,23 +4405,25 @@ lines."
4405;; a cleaner solution to the problem of making C-n do something 4405;; a cleaner solution to the problem of making C-n do something
4406;; useful given a tall image. 4406;; useful given a tall image.
4407(defun line-move (arg &optional noerror to-end try-vscroll) 4407(defun line-move (arg &optional noerror to-end try-vscroll)
4408 (unless (and auto-window-vscroll try-vscroll 4408 (if noninteractive
4409 ;; Only vscroll for single line moves 4409 (forward-line arg)
4410 (= (abs arg) 1) 4410 (unless (and auto-window-vscroll try-vscroll
4411 ;; But don't vscroll in a keyboard macro. 4411 ;; Only vscroll for single line moves
4412 (not defining-kbd-macro) 4412 (= (abs arg) 1)
4413 (not executing-kbd-macro) 4413 ;; But don't vscroll in a keyboard macro.
4414 (line-move-partial arg noerror to-end)) 4414 (not defining-kbd-macro)
4415 (set-window-vscroll nil 0 t) 4415 (not executing-kbd-macro)
4416 (if (and line-move-visual 4416 (line-move-partial arg noerror to-end))
4417 ;; Display-based column are incompatible with goal-column. 4417 (set-window-vscroll nil 0 t)
4418 (not goal-column) 4418 (if (and line-move-visual
4419 ;; When the text in the window is scrolled to the left, 4419 ;; Display-based column are incompatible with goal-column.
4420 ;; display-based motion doesn't make sense (because each 4420 (not goal-column)
4421 ;; logical line occupies exactly one screen line). 4421 ;; When the text in the window is scrolled to the left,
4422 (not (> (window-hscroll) 0))) 4422 ;; display-based motion doesn't make sense (because each
4423 (line-move-visual arg noerror) 4423 ;; logical line occupies exactly one screen line).
4424 (line-move-1 arg noerror to-end)))) 4424 (not (> (window-hscroll) 0)))
4425 (line-move-visual arg noerror)
4426 (line-move-1 arg noerror to-end)))))
4425 4427
4426;; Display-based alternative to line-move-1. 4428;; Display-based alternative to line-move-1.
4427;; Arg says how many lines to move. The value is t if we can move the 4429;; Arg says how many lines to move. The value is t if we can move the
diff --git a/lwlib/ChangeLog b/lwlib/ChangeLog
index f6ffedeafda..5451fa38001 100644
--- a/lwlib/ChangeLog
+++ b/lwlib/ChangeLog
@@ -1,4 +1,4 @@
12012-04-17 Paul Eggert <eggert@cs.ucla.edu> 12012-04-18 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 configure: new option --enable-gcc-warnings (Bug#11207) 3 configure: new option --enable-gcc-warnings (Bug#11207)
4 * Makefile.in (C_WARNINGS_SWITCH): Remove. 4 * Makefile.in (C_WARNINGS_SWITCH): Remove.
diff --git a/msdos/ChangeLog b/msdos/ChangeLog
index bf3a11d5bd8..82f877eee9e 100644
--- a/msdos/ChangeLog
+++ b/msdos/ChangeLog
@@ -1,4 +1,4 @@
12012-04-17 Paul Eggert <eggert@cs.ucla.edu> 12012-04-18 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 configure: new option --enable-gcc-warnings (Bug#11207) 3 configure: new option --enable-gcc-warnings (Bug#11207)
4 * sed1v2.inp, sed3v2.inp, sedlibmk.inp: GNULIB_WARN_CFLAGS, 4 * sed1v2.inp, sed3v2.inp, sedlibmk.inp: GNULIB_WARN_CFLAGS,
diff --git a/oldXMenu/ChangeLog b/oldXMenu/ChangeLog
index 243899e011d..b1eb200416b 100644
--- a/oldXMenu/ChangeLog
+++ b/oldXMenu/ChangeLog
@@ -1,4 +1,4 @@
12012-04-17 Paul Eggert <eggert@cs.ucla.edu> 12012-04-18 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 configure: new option --enable-gcc-warnings (Bug#11207) 3 configure: new option --enable-gcc-warnings (Bug#11207)
4 * Makefile.in (C_WARNINGS_SWITCH): Remove. 4 * Makefile.in (C_WARNINGS_SWITCH): Remove.
diff --git a/src/ChangeLog b/src/ChangeLog
index ae245a254a0..ae91f04635b 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,4 +1,4 @@
12012-04-17 Paul Eggert <eggert@cs.ucla.edu> 12012-04-18 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 configure: new option --enable-gcc-warnings (Bug#11207) 3 configure: new option --enable-gcc-warnings (Bug#11207)
4 * Makefile.in (C_WARNINGS_SWITCH): Remove. 4 * Makefile.in (C_WARNINGS_SWITCH): Remove.