aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2007-10-29 20:07:57 +0000
committerStefan Monnier2007-10-29 20:07:57 +0000
commitc70dbcd5f37213650979d5a20729b2a21ce351bd (patch)
tree8c2420aeaf6f7f8b4da8fa304469d03bd981041d
parentfc5e09b3ee29bda2f2ef666ffd7b7f460cbc6058 (diff)
downloademacs-c70dbcd5f37213650979d5a20729b2a21ce351bd.tar.gz
emacs-c70dbcd5f37213650979d5a20729b2a21ce351bd.zip
(message-check-news-body-syntax): Avoid mm-string-as-multibyte.
(message-hide-headers): Don't assume (point-min)==1.
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/message.el10
2 files changed, 11 insertions, 4 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index d14f01db614..b6d03bcf218 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
12007-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * message.el (message-check-news-body-syntax): Avoid mm-string-as-multibyte.
4 (message-hide-headers): Don't assume (point-min)==1.
5
12007-10-28 Reiner Steib <Reiner.Steib@gmx.de> 62007-10-28 Reiner Steib <Reiner.Steib@gmx.de>
2 7
3 * gnus.el: Bump version to Gnus v5.13. 8 * gnus.el: Bump version to Gnus v5.13.
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index de8e0754036..d14528ffe11 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -2877,6 +2877,8 @@ M-RET `message-newline-and-reformat' (break the line and reformat)."
2877 ;; solution would be not to use `define-derived-mode', and run 2877 ;; solution would be not to use `define-derived-mode', and run
2878 ;; `text-mode-hook' ourself at the end of the mode. 2878 ;; `text-mode-hook' ourself at the end of the mode.
2879 ;; -- Per Abrahamsen <abraham@dina.kvl.dk> Date: 2001-10-19. 2879 ;; -- Per Abrahamsen <abraham@dina.kvl.dk> Date: 2001-10-19.
2880 ;; This kludge is unneeded in Emacs>=21 since define-derived-mode is
2881 ;; now careful to run parent hooks after the body. --Stef
2880 (when auto-fill-function 2882 (when auto-fill-function
2881 (setq auto-fill-function normal-auto-fill-function))) 2883 (setq auto-fill-function normal-auto-fill-function)))
2882 2884
@@ -4952,7 +4954,7 @@ Otherwise, generate and save a value for `canlock-password' first."
4952 ;; Check for control characters. 4954 ;; Check for control characters.
4953 (message-check 'control-chars 4955 (message-check 'control-chars
4954 (if (re-search-forward 4956 (if (re-search-forward
4955 (mm-string-as-multibyte "[\000-\007\013\015-\032\034-\037\200-\237]") 4957 (mm-string-to-multibyte "[\000-\007\013\015-\032\034-\037\200-\237]")
4956 nil t) 4958 nil t)
4957 (y-or-n-p 4959 (y-or-n-p
4958 "The article contains control characters. Really post? ") 4960 "The article contains control characters. Really post? ")
@@ -7672,7 +7674,7 @@ From headers in the original article."
7672 message-hidden-headers)) 7674 message-hidden-headers))
7673 (inhibit-point-motion-hooks t) 7675 (inhibit-point-motion-hooks t)
7674 (after-change-functions nil) 7676 (after-change-functions nil)
7675 (end-of-headers 0)) 7677 (end-of-headers (point-min)))
7676 (when regexps 7678 (when regexps
7677 (save-excursion 7679 (save-excursion
7678 (save-restriction 7680 (save-restriction
@@ -7687,11 +7689,11 @@ From headers in the original article."
7687 (setq header (buffer-substring begin (point)) 7689 (setq header (buffer-substring begin (point))
7688 header-len (- (point) begin)) 7690 header-len (- (point) begin))
7689 (delete-region begin (point)) 7691 (delete-region begin (point))
7690 (goto-char (1+ end-of-headers)) 7692 (goto-char end-of-headers)
7691 (insert header) 7693 (insert header)
7692 (setq end-of-headers 7694 (setq end-of-headers
7693 (+ end-of-headers header-len)))))))) 7695 (+ end-of-headers header-len))))))))
7694 (narrow-to-region (1+ end-of-headers) (point-max)))) 7696 (narrow-to-region end-of-headers (point-max))))
7695 7697
7696(defun message-hide-header-p (regexps) 7698(defun message-hide-header-p (regexps)
7697 (let ((result nil) 7699 (let ((result nil)