emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Re: Behavior of Gnus when called from an hyperlink


From: Nick Dokos
Subject: Re: [Orgmode] Re: Behavior of Gnus when called from an hyperlink
Date: Sat, 17 Jul 2010 12:02:34 -0400

Tassilo Horn <address@hidden> wrote:

> Sébastien Vauban <address@hidden>
> writes:
> 
> Hi Sébastien,
> 
> > When stepping with SPC, the "arrow mark" (in the left fringe) stayed 5
> > mins on line 487:
> >
> > --8<---------------cut here---------------start------------->8---
> >      ;; Use `head' function.
> >      ((fboundp head)
> >       (setq res (funcall head article (gnus-group-real-name group)
> >>                        (nth 1 gnus-command-method))))
> >                                                     ^
> >                                                  cursor after first paren
> > --8<---------------cut here---------------end--------------->8---
> >
> > If I understand well, it wasted all the time evaluating
> >
> > --8<---------------cut here---------------start------------->8---
> >     (nth 1 gnus-command-method)
> > --8<---------------cut here---------------end--------------->8---
> >
> > I can't understand anything from the above... Someone does?
> 
> Not really.  Picking the second element out of a list must not take 5
> minutes!  What's the value of `gnus-command-method' when this happens?
> One SPC before the hang, that variable is evaluated and its contents are
> printed to *Messages*.
> 
> For example, checking with an org-gnus link to an article in a gmane
> group, the value of `gnus-command-method' at that time was
> 
>   (nntp "Gmane" (nntp-address "news.gmane.org"))
> 
> here, and picking out "Gmane" took no time at all...
> 

[For some reason, I didn't receive Seb's more recent messsages, so I'm
replying to Tassilo's message to try to keep the reply in the thread.
I hope it works.]

Seb,

try single stepping to that point and evaluate the various expressions
that enter into the computation. For example,

> >      ;; Use `head' function.
> >      ((fboundp head)
> >       (setq res (funcall head article (gnus-group-real-name group)
> >>                        (nth 1 gnus-command-method))))

put the cursor after the closing paren of the (nth 1 gnus-command-method)
form and type C-x C-e, after the closing paren of (gnus-group-real-name group)
and do the same and after the closing paren of the (funcall ...) and do the
same. Also perhaps after the head variable (between head and article) and
do the same. Tassilo is right of course that (nth 1 gnus-command-method)
should be trivial (unless nth has been redefined somehow and is trying to
prove the Riemann hypothesis instead :-) ) -- but the cursor might be off
by one and it's really the funcall that's taking all the time.

HTH,
Nick



reply via email to

[Prev in Thread] Current Thread [Next in Thread]