Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: ding@gnus.org
Subject: Re: [BUG]What does this mean:"Mention that multibyte characters
Date: Fri, 15 Oct 2004 14:43:14 +0900	[thread overview]
Message-ID: <b9ypt3k5yfh.fsf@jpl.org> (raw)
In-Reply-To: <plop874qkxgf2f.fsf@gnu-rox.org>

Hi,

2004-10-05  Juri Linkov  <juri@jurta.org>

	* 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.

Isn't at least the change to gnus-sum.el wrong?  When using
Emacs 22.0.0, there's a problem that we cannot set marks to
articles in the Gnus summary buffer.  For instance:

>>>>> In <m2pt3ryt2b.fsf@yahoo.com.cn>
>>>>>	zrr <beijing_2008_gold@yahoo.com.cn> wrote:

>    I pressed 'E' to expire the artile, but the article still be
>    regarded as not expired.  There is no mark symbol appeared and no
>    highlight on the current line.

I realized Gnus searches the unibyte strings "\200", "\201",
"\202" and "\203" in the multibyte buffer named " *gnus work*"
when entering into the summary mode.  Your change made Gnus
search multibyte strings and it fails.  OTOH, Emacs 21.3.50
doesn't fail it as follows:

(with-temp-buffer
  (set-buffer-multibyte t)
  (insert (string-as-unibyte "\200"))
  (goto-char (point-min))
  (search-forward (string-as-multibyte "\200") nil t))
 => 2 (02, 0x2) = ?\C-b

Probably, possible solution will be to withdraw your change or
to use string-as-unibyte.  Please note that you should use
mm-string-as-unibyte instead of string-as-unibyte since Gnus
supports XEmacs as well as Emacs.

Best regards,



  reply	other threads:[~2004-10-15  5:43 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-14 15:51 [BUG]What does this mean:"Mention that multibyte characters don't work as marks."? zrr
2004-10-14 17:24 ` [BUG]What does this mean:"Mention that multibyte characters Reiner Steib
2004-10-14 18:33   ` zrr
2004-10-14 17:44 ` [BUG]What does this mean:"Mention that multibyte characters don't work as marks."? Xavier Maillard
2004-10-14 18:41   ` [BUG]What does this mean:"Mention that multibyte characters zrr
2004-10-14 21:33     ` Xavier Maillard
2004-10-15  5:43       ` Katsumi Yamaoka [this message]
2004-10-15 14:12         ` Katsumi Yamaoka
2004-10-15 14:45           ` zrr
2004-10-15 14:51           ` Reiner Steib
2004-10-15 18:49             ` Derek
2004-10-17 23:18               ` Katsumi Yamaoka
2004-10-19  5:41                 ` Katsumi Yamaoka
2004-10-19  8:41                   ` zrr
2004-10-20  5:36                   ` Katsumi Yamaoka
2004-10-27 11:55                   ` Katsumi Yamaoka
2004-10-27 23:56                     ` Katsumi Yamaoka
2004-10-15 16:19           ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b9ypt3k5yfh.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).