* error in gnus-summary-insert-line: gnus-put-text-property has invalid offsets
@ 2008-09-10 17:54 Ted Zlatanov
2008-09-10 23:10 ` Katsumi Yamaoka
0 siblings, 1 reply; 4+ messages in thread
From: Ted Zlatanov @ 2008-09-10 17:54 UTC (permalink / raw)
To: ding
I started getting these errors today with a fresh CVS Gnus when entering
any group:
Debugger entered--Lisp error: (args-out-of-range 50 51)
gnus-put-text-property(50 51 gnus-position t)
(if gnus-position (gnus-put-text-property gnus-position (1+ gnus-position) (quote gnus-position) t))
(let (gnus-position) (progn (insert ...) (if ... ...)) (gnus-put-text-property (point) (progn ... ... ... ...) gnus-mouse-face-prop gnus-mouse-face) (progn (insert " " gnus-tmp-subject-or-nil " \n") (if ... ...)) (if gnus-position (gnus-put-text-property gnus-position ... ... t)))
eval((let (gnus-position) (progn (insert ...) (if ... ...)) (gnus-put-text-property (point) (progn ... ... ... ...) gnus-mouse-face-prop gnus-mouse-face) (progn (insert " " gnus-tmp-subject-or-nil " \n") (if ... ...)) (if gnus-position (gnus-put-text-property gnus-position ... ... t))))
gnus-summary-insert-line([0 "" "" "05 Apr 2001 23:33:09 +0400" "" "" 0 0 "" nil] 0 nil t 90 t nil "" nil 1)
gnus-update-summary-mark-positions()
gnus-summary-mode("mygroup")
gnus-summary-setup-buffer("mygroup")
gnus-summary-read-group-1("mygroup" 1 t nil nil nil)
gnus-summary-read-group("mygroup" 1 t nil nil nil nil)
gnus-group-read-group(1 t)
gnus-group-select-group(1)
gnus-topic-select-group(1)
call-interactively(gnus-topic-select-group nil nil)
Interestingly, if I quit the debug output and then retry, it works.
Does anyone know what is causing this? The ChangeLog looks like
gnus-sum.el wasn't updated recently. I'm using Emacs from CVS as well.
Thanks
Ted
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: error in gnus-summary-insert-line: gnus-put-text-property has invalid offsets
2008-09-10 17:54 error in gnus-summary-insert-line: gnus-put-text-property has invalid offsets Ted Zlatanov
@ 2008-09-10 23:10 ` Katsumi Yamaoka
2008-09-11 12:52 ` Ted Zlatanov
0 siblings, 1 reply; 4+ messages in thread
From: Katsumi Yamaoka @ 2008-09-10 23:10 UTC (permalink / raw)
To: ding
>>>>> Ted Zlatanov wrote:
> I started getting these errors today with a fresh CVS Gnus when entering
> any group:
> Debugger entered--Lisp error: (args-out-of-range 50 51)
> gnus-put-text-property(50 51 gnus-position t)
[...]
> gnus-summary-insert-line([0 "" "" "05 Apr 2001 23:33:09 +0400" "" "" 0 0 "" nil] 0 nil t 90 t nil "" nil 1)
[...]
> Interestingly, if I quit the debug output and then retry, it works.
I don't know why it works then, though.
> Does anyone know what is causing this? The ChangeLog looks like
> gnus-sum.el wasn't updated recently. I'm using Emacs from CVS as well.
I guess the format spec registered in the ~/.newsrc.eld file has
been changed; it might have happened when you tried modifying
gnus-spec.el.
Cf. http://news.gmane.org/group/gmane.emacs.gnus.general/thread=67228
There might have been something wrong in the patch I posted.
The format spec that is computed from `gnus-summary-line-format'
will not be updated unless the value of `gnus-summary-line-format'
is changed or evaluating the form:
(gnus-update-format-specifications t 'summary)
Could you try this? (Performing this should be always safe.)
If it does the trick, you had better do it for `group' as well:
(gnus-update-format-specifications t 'group)
Regards,
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: error in gnus-summary-insert-line: gnus-put-text-property has invalid offsets
2008-09-10 23:10 ` Katsumi Yamaoka
@ 2008-09-11 12:52 ` Ted Zlatanov
2008-09-15 17:44 ` Ted Zlatanov
0 siblings, 1 reply; 4+ messages in thread
From: Ted Zlatanov @ 2008-09-11 12:52 UTC (permalink / raw)
To: ding
On Thu, 11 Sep 2008 08:10:47 +0900 Katsumi Yamaoka <yamaoka@jpl.org> wrote:
KY> I guess the format spec registered in the ~/.newsrc.eld file has
KY> been changed; it might have happened when you tried modifying
KY> gnus-spec.el.
KY> Cf. http://news.gmane.org/group/gmane.emacs.gnus.general/thread=67228
KY> There might have been something wrong in the patch I posted.
KY> The format spec that is computed from `gnus-summary-line-format'
KY> will not be updated unless the value of `gnus-summary-line-format'
KY> is changed or evaluating the form:
KY> (gnus-update-format-specifications t 'summary)
KY> Could you try this? (Performing this should be always safe.)
KY> If it does the trick, you had better do it for `group' as well:
KY> (gnus-update-format-specifications t 'group)
That didn't do anything. The spec, and why it's cached in the newsrc
file, are a mystery to me. I comitted a patch to trap errors on setting
that property, since the error is harmless (but we do generate a
gnus-message warning about it).
The error *may* be due to my tinkering with the format, plus maybe my
special summary prepare hook:
(add-hook 'gnus-summary-prepare-hook
(lambda () (set-display-table-slot buffer-display-table
'selective-display
(string-to-vector tzz-mark-threads))))
which marks threads with "...>>>" (actually Unicode characters, but same
idea). I don't know for sure, and trapping errors seems to work for
now, but I'm worried about errors I don't understand :)
Ted
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: error in gnus-summary-insert-line: gnus-put-text-property has invalid offsets
2008-09-11 12:52 ` Ted Zlatanov
@ 2008-09-15 17:44 ` Ted Zlatanov
0 siblings, 0 replies; 4+ messages in thread
From: Ted Zlatanov @ 2008-09-15 17:44 UTC (permalink / raw)
To: ding
On Thu, 11 Sep 2008 07:52:41 -0500 Ted Zlatanov <tzz@lifelogs.com> wrote:
TZ> The error *may* be due to my tinkering with the format, plus maybe my
TZ> special summary prepare hook:
TZ> (add-hook 'gnus-summary-prepare-hook
TZ> (lambda () (set-display-table-slot buffer-display-table
TZ> 'selective-display
TZ> (string-to-vector tzz-mark-threads))))
TZ> which marks threads with "...>>>" (actually Unicode characters, but same
TZ> idea). I don't know for sure, and trapping errors seems to work for
TZ> now, but I'm worried about errors I don't understand :)
I saw a seemingly related issue on emacs-devel and mentioned this one to
Kenichi Handa. We'll see if that bears any fruit...
Ted
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-09-15 17:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-10 17:54 error in gnus-summary-insert-line: gnus-put-text-property has invalid offsets Ted Zlatanov
2008-09-10 23:10 ` Katsumi Yamaoka
2008-09-11 12:52 ` Ted Zlatanov
2008-09-15 17:44 ` Ted Zlatanov
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).