aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2004-10-04 23:18:11 +0000
committerJuri Linkov2004-10-04 23:18:11 +0000
commit7c3bb5a5dbc6476fc864b6bdd5cb3365883a6547 (patch)
tree251acff73372a728dbfb6bbf6900300587434a37
parent5086e75d2a30c6b26f639fc58fb4c992262b2a4c (diff)
downloademacs-7c3bb5a5dbc6476fc864b6bdd5cb3365883a6547.tar.gz
emacs-7c3bb5a5dbc6476fc864b6bdd5cb3365883a6547.zip
* gnus-group.el (gnus-update-group-mark-positions):
* gnus-sum.el (gnus-update-summary-mark-positions): * message.el (message-check-news-body-syntax): * gnus-msg.el (gnus-debug): Use `string-as-multibyte' to convert 8-bit unibyte values to a multibyte string for search functions.
-rw-r--r--lisp/gnus/ChangeLog8
-rw-r--r--lisp/gnus/gnus-group.el3
-rw-r--r--lisp/gnus/gnus-msg.el3
-rw-r--r--lisp/gnus/gnus-sum.el18
-rw-r--r--lisp/gnus/message.el4
5 files changed, 26 insertions, 10 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 907ad5f3411..c072a77a807 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,11 @@
12004-10-05 Juri Linkov <juri@jurta.org>
2
3 * gnus-group.el (gnus-update-group-mark-positions):
4 * gnus-sum.el (gnus-update-summary-mark-positions):
5 * message.el (message-check-news-body-syntax):
6 * gnus-msg.el (gnus-debug): Use `string-as-multibyte' to convert
7 8-bit unibyte values to a multibyte string for search functions.
8
12004-10-01 Katsumi Yamaoka <yamaoka@jpl.org> 92004-10-01 Katsumi Yamaoka <yamaoka@jpl.org>
2 10
3 * gnus-sum.el (gnus-summary-toggle-header): Make it work even if 11 * gnus-sum.el (gnus-summary-toggle-header): Make it work even if
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el
index 9f7b259e066..abf99cbfd64 100644
--- a/lisp/gnus/gnus-group.el
+++ b/lisp/gnus/gnus-group.el
@@ -1046,7 +1046,8 @@ The following commands are available:
1046 (gnus-group-insert-group-line "dummy.group" 0 nil 0 nil) 1046 (gnus-group-insert-group-line "dummy.group" 0 nil 0 nil)
1047 (goto-char (point-min)) 1047 (goto-char (point-min))
1048 (setq gnus-group-mark-positions 1048 (setq gnus-group-mark-positions
1049 (list (cons 'process (and (search-forward "\200" nil t) 1049 (list (cons 'process (and (search-forward
1050 (string-as-multibyte "\200") nil t)
1050 (- (point) 2)))))))) 1051 (- (point) 2))))))))
1051 1052
1052(defun gnus-mouse-pick-group (e) 1053(defun gnus-mouse-pick-group (e)
diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el
index 33531e7f8a4..77395ca5042 100644
--- a/lisp/gnus/gnus-msg.el
+++ b/lisp/gnus/gnus-msg.el
@@ -1534,7 +1534,8 @@ The source file has to be in the Emacs load path."
1534 ;; Remove any control chars - they seem to cause trouble for some 1534 ;; Remove any control chars - they seem to cause trouble for some
1535 ;; mailers. (Byte-compiled output from the stuff above.) 1535 ;; mailers. (Byte-compiled output from the stuff above.)
1536 (goto-char point) 1536 (goto-char point)
1537 (while (re-search-forward "[\000-\010\013-\037\200-\237]" nil t) 1537 (while (re-search-forward (string-as-multibyte
1538 "[\000-\010\013-\037\200-\237]") nil t)
1538 (replace-match (format "\\%03o" (string-to-char (match-string 0))) 1539 (replace-match (format "\\%03o" (string-to-char (match-string 0)))
1539 t t)))) 1540 t t))))
1540 1541
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 92ba2346949..abbecbbdff2 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -3231,20 +3231,24 @@ buffer that was in action when the last article was fetched."
3231 [0 "" "" "05 Apr 2001 23:33:09 +0400" "" "" 0 0 "" nil] 3231 [0 "" "" "05 Apr 2001 23:33:09 +0400" "" "" 0 0 "" nil]
3232 0 nil t 128 t nil "" nil 1) 3232 0 nil t 128 t nil "" nil 1)
3233 (goto-char (point-min)) 3233 (goto-char (point-min))
3234 (setq pos (list (cons 'unread (and (search-forward "\200" nil t) 3234 (setq pos (list (cons 'unread
3235 (- (point) (point-min) 1))))) 3235 (and (search-forward
3236 (string-as-multibyte "\200") nil t)
3237 (- (point) (point-min) 1)))))
3236 (goto-char (point-min)) 3238 (goto-char (point-min))
3237 (push (cons 'replied (and (search-forward "\201" nil t) 3239 (push (cons 'replied (and (search-forward
3240 (string-as-multibyte "\201") nil t)
3238 (- (point) (point-min) 1))) 3241 (- (point) (point-min) 1)))
3239 pos) 3242 pos)
3240 (goto-char (point-min)) 3243 (goto-char (point-min))
3241 (push (cons 'score (and (search-forward "\202" nil t) 3244 (push (cons 'score (and (search-forward
3245 (string-as-multibyte "\202") nil t)
3242 (- (point) (point-min) 1))) 3246 (- (point) (point-min) 1)))
3243 pos) 3247 pos)
3244 (goto-char (point-min)) 3248 (goto-char (point-min))
3245 (push (cons 'download 3249 (push (cons 'download (and (search-forward
3246 (and (search-forward "\203" nil t) 3250 (string-as-multibyte "\203") nil t)
3247 (- (point) (point-min) 1))) 3251 (- (point) (point-min) 1)))
3248 pos))) 3252 pos)))
3249 (setq gnus-summary-mark-positions pos)))) 3253 (setq gnus-summary-mark-positions pos))))
3250 3254
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 8e5edbc048a..85f918986d5 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -4399,7 +4399,9 @@ Otherwise, generate and save a value for `canlock-password' first."
4399 nil)))) 4399 nil))))
4400 ;; Check for control characters. 4400 ;; Check for control characters.
4401 (message-check 'control-chars 4401 (message-check 'control-chars
4402 (if (re-search-forward "[\000-\007\013\015-\032\034-\037\200-\237]" nil t) 4402 (if (re-search-forward
4403 (string-as-multibyte "[\000-\007\013\015-\032\034-\037\200-\237]")
4404 nil t)
4403 (y-or-n-p 4405 (y-or-n-p
4404 "The article contains control characters. Really post? ") 4406 "The article contains control characters. Really post? ")
4405 t)) 4407 t))