# HG changeset patch # User Richard M. Stallman # Date 1121537123 0 # Node ID d24c0f192f20c9e0d78202c616f56f694301d474 # Parent 3b6714810ffc5814ce53ef6b30616a9f2bd60359 (uce-reply-to-uce): Replace beginning-of-buffer and insert-file. diff -r 3b6714810ffc -r d24c0f192f20 lisp/mail/uce.el --- a/lisp/mail/uce.el Sat Jul 16 18:02:07 2005 +0000 +++ b/lisp/mail/uce.el Sat Jul 16 18:05:23 2005 +0000 @@ -283,7 +283,7 @@ (re-search-forward "^Lines:") (beginning-of-line)) ((eq uce-mail-reader 'rmail) - (beginning-of-buffer) + (goto-char (point-min)) (search-forward "*** EOOH ***\n") (beginning-of-line) (forward-line -1))) @@ -364,11 +364,7 @@ (if (file-exists-p "~/.signature") (progn (insert "\n\n-- \n") - (insert-file "~/.signature") - ;; Function insert-file leaves point where it was, - ;; while we want to place signature in the ``middle'' - ;; of the message. - (exchange-point-and-mark)))) + (forward-char (cadr (insert-file-contents "~/.signature")))))) (uce-signature (insert "\n\n-- \n" uce-signature))) ;; And text of the original message.