* Bug? Are multibyte marks (e.g. gnus-unseen-mark) allowed?
@ 2004-01-07 21:09 Reiner Steib
2004-01-08 17:47 ` Jesper Harder
0 siblings, 1 reply; 2+ messages in thread
From: Reiner Steib @ 2004-01-07 21:09 UTC (permalink / raw)
Hi,
I've changed `gnus-unseen-mark' to some Latin-1 char and found that
`o' (gnus-summary-save-article) no longer works.
To reproduce:
(setq gnus-unseen-mark 2231) ;; or use `?·' (middle dot)
(setq gnus-default-article-saver (lambda (&optional n) n))
Enter a group with unseen article and hit `o' on an unseen article.
Here's the backtrace:
Debugger entered--Lisp error: (error "Characters \
in subst-char-in-region have different byte-lengths")
subst-char-in-region(85 86 2231 83)
gnus-summary-update-mark(83 replied)
gnus-summary-update-secondary-mark(1714)
gnus-summary-set-saved-mark(1714)
gnus-summary-save-article(nil)
call-interactively(gnus-summary-save-article)
This is the relevant line in `gnus-summary-update-mark':
;; Replace the old mark with the new mark.
(subst-char-in-region (point) (1+ (point)) (char-after) mark)
;; ^^^^^^^^^^^^
_If_ `gnus-*-mark' must not be multibyte, we should document it.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- PGP key available via WWW http://rsteib.home.pages.de/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Bug? Are multibyte marks (e.g. gnus-unseen-mark) allowed?
2004-01-07 21:09 Bug? Are multibyte marks (e.g. gnus-unseen-mark) allowed? Reiner Steib
@ 2004-01-08 17:47 ` Jesper Harder
0 siblings, 0 replies; 2+ messages in thread
From: Jesper Harder @ 2004-01-08 17:47 UTC (permalink / raw)
Reiner Steib <4.uce.03.r.s@nurfuerspam.de> writes:
> I've changed `gnus-unseen-mark' to some Latin-1 char and found that
> `o' (gnus-summary-save-article) no longer works.
>
> _If_ `gnus-*-mark' must not be multibyte, we should document it.
I think multibyte should be allowed.
But my naive fix (delete-char, insert-char instead of
subst-char-in-region) had some unintended side effects.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-01-08 17:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-07 21:09 Bug? Are multibyte marks (e.g. gnus-unseen-mark) allowed? Reiner Steib
2004-01-08 17:47 ` Jesper Harder
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).