# HG changeset patch # User Alex Schroeder # Date 1137622818 0 # Node ID 259a58cdd236ae61bb851d091b0609fb938a79e7 # Parent 8b5a826d67e47ef9d7401e60430358bb42ed0d27 (rmail-cease-edit): Bugfix. diff -r 8b5a826d67e4 -r 259a58cdd236 lisp/mail/rmailedit.el --- a/lisp/mail/rmailedit.el Wed Jan 18 22:19:05 2006 +0000 +++ b/lisp/mail/rmailedit.el Wed Jan 18 22:20:18 2006 +0000 @@ -1,7 +1,7 @@ ;;; rmailedit.el --- "RMAIL edit mode" Edit the current message -;; Copyright (C) 1985, 1994, 2001, 2002, 2003, 2004, -;; 2005 Free Software Foundation, Inc. +;; Copyright (C) 1985, 1994, 2001, 2002, 2003, 2004, 2005, +;; 2006 Free Software Foundation, Inc. ;; Maintainer: FSF ;; Keywords: mail @@ -106,7 +106,6 @@ (message "%s" (substitute-command-keys "Editing: Type \\[rmail-cease-edit] to return to Rmail, \\[rmail-abort-edit] to abort")))) -;;; mbox: ready (defun rmail-cease-edit () "Finish editing message; switch back to Rmail proper." (interactive) @@ -119,10 +118,10 @@ (goto-char (point-max)) (if (/= (preceding-char) ?\n) (insert "\n")) - ;; Adjust the marker that points to the end of this message, unles + ;; Adjust the marker that points to the end of this message, unless ;; we're at the last message. (when (< rmail-current-message (length rmail-desc-vector)) - (rmail-desc-set-end (1+ rmail-current-message) (point)))) + (rmail-desc-set-start (1+ rmail-current-message) (point)))) (let ((old rmail-old-text)) (force-mode-line-update) (kill-all-local-variables)