diff lisp/modes/mail-abbrevs.el @ 76:c0c698873ce1 r20-0b33

Import from CVS: tag r20-0b33
author cvs
date Mon, 13 Aug 2007 09:05:10 +0200
parents 131b0175ea99
children 360340f9fd5f
line wrap: on
line diff
--- a/lisp/modes/mail-abbrevs.el	Mon Aug 13 09:04:39 2007 +0200
+++ b/lisp/modes/mail-abbrevs.el	Mon Aug 13 09:05:10 2007 +0200
@@ -359,7 +359,10 @@
 	(insert "\n")
 	(delete-horizontal-space)
  	(setq p (point))
-	(indent-relative)
+	;; Prevent abbrev expansion from happening again, since
+	;; sendmail-pre-abbrev-expand-hook will already have done it.
+	(let ((abbrev-mode nil))
+	  (indent-relative))
 	(setq fp (buffer-substring p (point)))
 	;; Go to the end of the new line.
 	(end-of-line)