Gnus development mailing list
 help / color / mirror / Atom feed
* a bug with gnus-summary-refer-article?
@ 2016-01-10 21:21 Alan Schmitt
  2016-01-12  8:00 ` Alan Schmitt
  0 siblings, 1 reply; 8+ messages in thread
From: Alan Schmitt @ 2016-01-10 21:21 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 1366 bytes --]

Hello,

I think I found a bug with `gnus-summary-refer-article'. If I fetch an
article that comes from another group, it gets inserted in the summary
with a number of -1. During the call to `gnus-summary-mark-article', the
following is done

(setq mark (gnus-request-update-mark gnus-newsgroup-name article mark))

which results in mark being nil. This in turn makes the comparisons such
as

(= mark gnus-unread-mark)

fail with a "Wrong type argument: number-or-marker-p, nil".

Here is a trimmed-down backtrace:

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  =(nil 32)
  ...
  gnus-summary-mark-article(-1 82)
  gnus-summary-mark-read-and-unread-as-read()
  run-hooks(gnus-mark-article-hook)
  apply(run-hooks gnus-mark-article-hook)
  gnus-run-hooks(gnus-mark-article-hook)
  gnus-article-prepare(-1 nil)
  gnus-summary-display-article(-1 nil)
  gnus-summary-select-article(nil nil nil -1)
  (progn (gnus-summary-select-article nil nil nil number) (throw (quote found) t))
  ...
  gnus-summary-refer-article("52947012.308@cse.gu.se")
  call-interactively(gnus-summary-refer-article nil nil)
  command-execute(gnus-summary-refer-article)

Is this a known bug?

Thanks,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Athmospheric CO₂ (Updated December 28, 2015, Mauna Loa Obs.): 402.60 ppm

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-01-13 14:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-10 21:21 a bug with gnus-summary-refer-article? Alan Schmitt
2016-01-12  8:00 ` Alan Schmitt
2016-01-13  0:50   ` Katsumi Yamaoka
2016-01-13  8:49     ` Alan Schmitt
2016-01-13  9:10       ` Katsumi Yamaoka
2016-01-13  9:30         ` Katsumi Yamaoka
2016-01-13 10:33           ` Alan Schmitt
2016-01-13 14:01             ` Alan Schmitt

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