Synch to No Gnus 200410290525.
authoryamaoka <yamaoka>
Fri, 29 Oct 2004 05:26:12 +0000 (05:26 +0000)
committeryamaoka <yamaoka>
Fri, 29 Oct 2004 05:26:12 +0000 (05:26 +0000)
lisp/ChangeLog
lisp/gnus-msg.el

index 75c498b..d8a7979 100644 (file)
@@ -1,5 +1,9 @@
 2004-10-29  Katsumi Yamaoka  <yamaoka@jpl.org>
 
+       * gnus-msg.el (gnus-configure-posting-styles): Work with empty
+       signature file.  Suggested by Manoj Srivastava
+       <srivasta@golden-gryphon.com>.
+
        * mm-util.el (mm-coding-system-priorities): Prefer iso-8859-1 than
        iso-2022-jp even in the Japanese language environment.  Suggested
        by Jason Rumney <jasonr@gnu.org>.
index bd75b3c..f41a272 100644 (file)
@@ -2165,8 +2165,8 @@ this is a reply."
        (setq v (with-temp-buffer
                  (insert-file-contents v)
                  (goto-char (point-max))
-                 (while (bolp)
-                   (delete-char -1))
+                 (skip-chars-backward "\n")
+                 (delete-region (+ (point) (if (bolp) 0 1)) (point-max))
                  (buffer-string))))
       (if (eq element 'import)
          (progn