From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: Behavior of Gnus when called from an hyperlink Date: Sun, 18 Jul 2010 00:15:42 +0200 Message-ID: <87wrstn4a9.fsf@mundaneum.com> References: <87r5jrcx9g.fsf@mundaneum.com> <8763138nna.fsf@thinkpad.tsdh.de> <87ocev5pn3.fsf@mundaneum.com> <87fx071fsg.fsf@mundaneum.com> <23582.1277735944@gamaville.dokosmarshall.org> <87vd936wiq.fsf@mundaneum.com> <87eifr3t52.fsf@thinkpad.tsdh.de> <87vd8gcu6k.fsf@mundaneum.com> <87oce7j26i.fsf@thinkpad.tsdh.de> <87fwzjfyf8.fsf@mundaneum.com> <878w5bkxx7.fsf@mundaneum.com> <87hbjyzicz.fsf@thinkpad.tsdh.de> <13292.1279382554@gamaville.dokosmarshall.org> <87zkxpanh1.fsf@mundaneum.com> <23154.1279399784@gamaville.dokosmarshall.org> <87zkxpg5cg.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Nick, Tassilo, > Nick Dokos wrote: >> =3D?utf-8?Q?S=3DC3=3DA9bastien_Vauban?=3D wrote: >> >>> - (funcall nnimap-request-head >>> "<871vbxzo6.fsf-pwAqS3aGAJQybS5Ee8rs3A@public.gmane.org>" "INBOX.mc" >>> "mc") results... after 5 mins... in ("INBOX.mc" . 28606) >>> >>> What does the jury thinks of that? >> >> You've got a few more layers of elisp to go through. >> >> You should edebug-defun the function nnimap-request-article-part in >> nnimap.el and keep going. > > Just to keep you informed, elp-instrumented nnimap, and got this: > > nnimap-request-head 3 256.166102 85.388= 700 > nnimap-request-article-part 3 256.166004 85.388= 668 > nnimap-request-group 2 12.306432000 6.15321= 600 > > Your function `nnimap-request-article-part' seems the culprit, then. Progressing, slowly. Not understanding everything from what I do... The function `nnimap-request-article-part' gets called several times. --8<---------------cut here---------------start------------->8--- (defun nnimap-request-article-part (article part prop &optional group server to-buffer detail) (when (nnimap-possibly-change-group group server) (let ((article (if (stringp article) (car-safe (imap-search (format "HEADER Message-Id \"%s\"" article) nnimap-server-buffer)) article))) (when article ;; [...] --8<---------------cut here---------------end--------------->8--- The first couple of times happen quickly, with `article' 140579, then 14058= 0, then 140581. After that, (real) things happen: --8<---------------cut here---------------start------------->8--- IMAP split moved mc:INBOX:140581 to INBOX.scorpios nnimap: Updating info for nnimap+mc:INBOX.mc...done Retrieving newsgroup: nnimap+mc:INBOX.mc... nnimap: Updating info for nnimap+mc:INBOX.mc...done Fetching headers for nnimap+mc:INBOX.mc...done Scoring...done Making sparse threads...done Sorting threads...done Generating summary...done No more unread articles --8<---------------cut here---------------end--------------->8--- and I have the top buffer displaying the subject of the linked article I'm after. Already something... What follows is stepping another time in the function `nnimap-request-article-part', this time with `article' "<871vbrxzo6.fsf-pwAqS3aGAJQybS5Ee8rs3A@public.gmane.org>" (not a number anymore). I'm then directed in the "then" part of the "if-then-else" (testing if `article' is a string or not). And, then, what stops me for 5 mins is the `imap-search' call. I guess I will have to dive that side (not now -- going to sleep). Don't kn= ow if that gives hints yet, or not... Thanks for your help, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode