(gnus-configure-posting-styles): Work with empty signature file.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 29 Oct 2004 05:25:41 +0000 (05:25 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 29 Oct 2004 05:25:41 +0000 (05:25 +0000)
lisp/ChangeLog
lisp/gnus-msg.el

index 78e47c7..53c2e1d 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 ecba62d..32bec9e 100644 (file)
@@ -1871,8 +1871,9 @@ 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))))
            (setq results (delq (assoc element results) results))
            (push (cons element v) results))))