From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86603 Path: news.gmane.org!not-for-mail From: Alan Schmitt Newsgroups: gmane.emacs.gnus.general Subject: Re: a bug with gnus-summary-refer-article? Date: Wed, 13 Jan 2016 15:01:03 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1452693744 27413 80.91.229.3 (13 Jan 2016 14:02:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Jan 2016 14:02:24 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M34830@lists.math.uh.edu Wed Jan 13 15:02:12 2016 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aJM03-00036i-Ap for ding-account@gmane.org; Wed, 13 Jan 2016 15:02:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.85) (envelope-from ) id 1aJLzC-0004o9-RX; Wed, 13 Jan 2016 08:01:18 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1aJLz9-0004nd-JT for ding@lists.math.uh.edu; Wed, 13 Jan 2016 08:01:15 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1aJLz5-0006Kj-Lh for ding@lists.math.uh.edu; Wed, 13 Jan 2016 08:01:15 -0600 Original-Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]) by quimby.gnus.org with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.80) (envelope-from ) id 1aJLz2-0007V3-WE for ding@gnus.org; Wed, 13 Jan 2016 15:01:09 +0100 X-IronPort-AV: E=Sophos;i="5.22,289,1449529200"; d="asc'?scan'208";a="197106512" Original-Received: from charm-wifi.irisa.fr (HELO charm-ecran.irisa.fr) ([131.254.66.86]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 13 Jan 2016 15:01:03 +0100 In-Reply-To: (Alan Schmitt's message of "Wed, 13 Jan 2016 11:33:48 +0100") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (darwin) X-Spam-Score: -7.1 (-------) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:86603 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2016-01-13 11:33, Alan Schmitt writes: > The `gnus-request-update-mark' function works well for nnimap (as there > is no corresponding function, so the initial mark is returned), but it > seems to be problematic with nnir. I cannot edebug it further because > `nnir-request-update-mark' is a deffoo, and I don=E2=80=99t know how to d= ebug > those. Using the lisp debugger I think I=E2=80=99ve found the crux of the problem,= the function `nnir-request-update-mark' from nnir.el returns nil when the article number is negative. I see two way to solve the issue: =2D return the original mark when the article is a negative number (which is basically what nnimap does) The code would then be this: #+begin_src emacs-lisp (deffoo nnir-request-update-mark (group article mark) (let ((artgroup (nnir-article-group article)) (artnumber (nnir-article-number article))) (if (and artgroup artnumber) (gnus-request-update-mark artgroup artnumber mark) mark))) #+end_src =2D allow the call to `gnus-request-update-mark' to return nil, but then protect the remainder of the code in that case I=E2=80=99ll update the bug report with this information. Thoughts? Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Athmospheric CO=E2=82=82 (Updated January 12, 2016, Mauna Loa Obs.): 401.82= ppm --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCgAGBQJWlligAAoJEAQNCjtO0uXHFzgIAJXg0kWywy8qwJTbS2VHenna puSjj9eSGg5CWzG7qgnmM/xn0rSnOe6GoPT5RKXLfR/yBCaVwhaDATeBPsdClPva ZqWets8JRb8+qeBpEqQOZrW3V9vlZz/qXn6frV9y0jyeT6O4ZM1fEEYVnwd74jhG E1/mX26J0/QpaKRyJXpqUxH22u6NhliDoIXvZNxVgo01Sny3yRzzkiYPyuCaS3+3 J4miEs3iiMfYIyzwPQ0fKqsegoIL6eetBLvolv2s2h1PwYujRfP4Lz+OEZUJ59w0 +C5hyffWXqaqmLRmuzYVu0hF/1R5fVFMIFrLkVT7iaWSeTI9eX/p+SyQOk3mNYg= =hHWX -----END PGP SIGNATURE----- --=-=-=--