newsticker-start: Recursive laod error

classic Classic list List threaded Threaded
35 messages Options
12
Reply | Threaded
Open this post in threaded view
|

newsticker-start: Recursive laod error

Sascha Wilde-2
Starting CVS Emacs with

emacs -Q -D

starting newsticker:

M-x newsticker-start

I get:

newsticker--set-customvar: Recursive load:
"/vol1/opt/cvs-emacs/share/emacs/22.0.50/lisp/net/newsticker.elc",
"/vol1/opt/cvs-emacs/share/emacs/22.0.50/lisp/net/newsticker.elc",
"/vol1/opt/cvs-emacs/share/emacs/22.0.50/lisp/net/newsticker.elc",
"/vol1/opt/cvs-emacs/share/emacs/22.0.50/lisp/net/newsticker.elc",
"/vol1/opt/cvs-emacs/share/emacs/22.0.50/lisp/net/newsticker.elc"

cheers
sascha
--
>++++++[<+++++++++++>-]<+.>+++[<++++++>-]<.---.---------.++++++.++++.---------
-.+++++++++++.+++++.>+++++++[<-------->-]<-.>++++++[<+++++++>-]<+.--.+++..----
---.-.>++++++[<------>-]<.>++++[<+++++++++++++>-]<.------------.---.>++++++[<-
----->-]<-.>+++++[<+++++++>-]<.--.>+++[<++++++>-]<+.>++++++++[<--------->-]<--.


_______________________________________________
Emacs-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/emacs-devel
Reply | Threaded
Open this post in threaded view
|

Re: newsticker-start: Recursive laod error

Xavier Maillard-2
   From: Sascha Wilde <[hidden email]>

   Starting CVS Emacs with

   emacs -Q -D

   starting newsticker:

   M-x newsticker-start

It works like a charm here on Debian SID (Emacs-snapshot package).

Xavier


_______________________________________________
Emacs-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/emacs-devel
Reply | Threaded
Open this post in threaded view
|

Re: newsticker-start: Recursive laod error

Lennart Borgman
Xavier Maillard wrote:

>   From: Sascha Wilde <[hidden email]>
>
>   Starting CVS Emacs with
>
>   emacs -Q -D
>
>   starting newsticker:
>
>   M-x newsticker-start
>
>It works like a charm here on Debian SID (Emacs-snapshot package).
>
>Xavier
>  
>
On w32, todays CVS I get:

Loading newsticker...
Loading subst-ksc...done
Loading subst-gb2312...done
Loading subst-big5...done
Loading subst-jis...done
Loading newsticker... [3 times]
newsticker--set-customvar: Recursive load:
"d:/emacs/051210/emacs/lisp/net/newsticker.elc",
"d:/emacs/051210/emacs/lisp/net/newsticker.elc",
"d:/emacs/051210/emacs/lisp/net/newsticker.elc",
"d:/emacs/051210/emacs/lisp/net/newsticker.elc",
"d:/emacs/051210/emacs/lisp/net/newsticker.elc"



_______________________________________________
Emacs-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/emacs-devel
Reply | Threaded
Open this post in threaded view
|

Re: newsticker-start: Recursive laod error

Eli Zaretskii
In reply to this post by Xavier Maillard-2
> From: Xavier Maillard <[hidden email]>
> Date: Sat, 10 Dec 2005 09:55:02 +0100
> Cc: [hidden email]
>
>    From: Sascha Wilde <[hidden email]>
>
>    Starting CVS Emacs with
>
>    emacs -Q -D
>
>    starting newsticker:
>
>    M-x newsticker-start
>
> It works like a charm here on Debian SID (Emacs-snapshot package).

What version of Emacs-snapshot is that (i.e., on which date was the
CVS tree snapshotted)?  With today's CVS, I see this problem on both
Debian GNU/Linux and on MS-Windows.  Here's the full backtrace that I
get on a Debian box if I bind debug-on-error to t:

Debugger entered--Lisp error: (error "Recursive load" "/home/e/eliz/emacs.cvs/e\
macs/lisp/net/newsticker.elc" "/home/e/eliz/emacs.cvs/emacs/lisp/net/newsticker\
.elc" "/home/e/eliz/emacs.cvs/emacs/lisp/net/newsticker.elc" "/home/e/eliz/emac\
s.cvs/emacs/lisp/net/newsticker.elc" "/home/e/eliz/emacs.cvs/emacs/lisp/net/new\
sticker.elc")
  newsticker-running-p()
  newsticker--set-customvar(newsticker-display-interval 0.3)
  custom-initialize-reset(newsticker-display-interval 0.3)
  custom-declare-variable(newsticker-display-interval 0.3 ("/home/e/eliz/emacs.\
cvs/emacs/lisp/net/newsticker.elc" . 20340) :type number :set newsticker--set-c\
ustomvar :group newsticker-ticker)
  newsticker-running-p()
  newsticker--set-customvar(newsticker-retrieval-interval 3600)
  custom-initialize-reset(newsticker-retrieval-interval 3600)
  custom-declare-variable(newsticker-retrieval-interval 3600 ("/home/e/eliz/ema\
cs.cvs/emacs/lisp/net/newsticker.elc" . 7476) :type (choice :tag "Interval" (co\
nst :tag "No automatic retrieval" 0) (const :tag "Hourly" 3600) (const :tag "Da\
ily" 86400) (const :tag "Weekly" 604800) (integer :tag "Interval")) :set newsti\
cker--set-customvar :group newsticker-feed)
  newsticker-running-p()
  newsticker--set-customvar(newsticker-url-list nil)
  custom-initialize-reset(newsticker-url-list nil)
  custom-declare-variable(newsticker-url-list nil ("/home/e/eliz/emacs.cvs/emac\
s/lisp/net/newsticker.elc" . 4994) :type (repeat (list :tag "News feed" (string\
 :tag "Label") (string :tag "URI") (choice :tag "Start" ... ...) (choice :tag "\
Interval" ... ... ... ... ...) (choice :tag "Wget Arguments" ... ...))) :set ne\
wsticker--set-customvar :group newsticker-feed)
  newsticker-running-p()
  newsticker-running-p()
  newsticker--set-customvar(newsticker-url-list-defaults (("Emacs Wiki" "http:/\
/www.emacswiki.org/cgi-bin/wiki.pl?action=rss" nil 3600)))
  custom-initialize-reset(newsticker-url-list-defaults (quote (("Emacs Wiki" "h\
ttp://www.emacswiki.org/cgi-bin/wiki.pl?action=rss" nil 3600))))
  custom-declare-variable(newsticker-url-list-defaults (quote (("Emacs Wiki" "h\
ttp://www.emacswiki.org/cgi-bin/wiki.pl?action=rss" nil 3600))) ("/home/e/eliz/\
emacs.cvs/emacs/lisp/net/newsticker.elc" . 4481) :type (set (list :tag "CNET Ne\
ws.com" (const "CNET News.com") (const "http://export.cnet.com/export/feeds/new\
s/rss/1,11176,,00.xml")) (list :tag "Debian Security Advisories" (const "Debian\
 Security Advisories") (const "http://www.debian.org/security/dsa.en.rdf")) (li\
st :tag "Debian Security Advisories - Long format" (const "Debian Security Advi\
sories - Long format") (const "http://www.debian.org/security/dsa-long.en.rdf")\
) (list :tag "Emacs Wiki" (const "Emacs Wiki") (const "http://www.emacswiki.org\
/cgi-bin/wiki.pl?action=rss") (const nil) (const 3600)) (list :tag "Freshmeat.n\
et" (const "Freshmeat.net") (const "http://freshmeat.net/backend/fm.rdf")) (lis\
t :tag "Kuro5hin.org" (const "Kuro5hin.org") (const "http://www.kuro5hin.org/ba\
ckend.rdf")) (list :tag "LWN (Linux Weekly News)" (const "LWN (Linux Weekly New\s)") (const "http://lwn.net/headlines/rss")) (list :tag "NewsForge" (const "New\sForge") (const "http://newsforge.com/index.rss")) (list :tag "NY Times: Techno\
logy" (const "NY Times: Technology") (const "http://partners.userland.com/nytRs\
s/technology.xml")) (list :tag "NY Times" (const "NY Times") (const "http://par\
tners.userland.com/nytRss/nytHomepage.xml")) (list :tag "Quote of the day" (con\
st "Quote of the day") (const "http://www.quotationspage.com/data/qotd.rss") (c\
onst "07:00") (const 86400)) (list :tag "The Register" (const "The Register") (\
const "http://www.theregister.co.uk/tonys/slashdot.rdf")) (list :tag "slashdot"\
 (const "slashdot") (const "http://slashdot.org/index.rss") (const nil) (const \
3600)) (list :tag "Wired News" (const "Wired News") (const "http://www.wired.co\
m/news_drop/netcenter/netcenter.rdf")) (list :tag "Heise News (german)" (const \
"Heise News (german)") (const "http://www.heise.de/newsticker/heise.rdf")) (lis\
t :tag "Tagesschau (german)" (const "Tagesschau (german)") (const "http://www.t\
agesschau.de/newsticker.rdf") (const nil) (const 1800)) (list :tag "Telepolis (\
german)" (const "Telepolis (german)") (const "http://www.heise.de/tp/news.rdf")\
)) :set newsticker--set-customvar :group newsticker-feed)
  execute-extended-command(nil)
  call-interactively(execute-extended-command)


_______________________________________________
Emacs-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/emacs-devel
Reply | Threaded
Open this post in threaded view
|

Re: newsticker-start: Recursive laod error

Robert J. Chassell
In reply to this post by Lennart Borgman
Today's GNU Emacs CVS snapshot, Sat, 2005 Dec 10  11:04 UTC
GNU Emacs 22.0.50.51 (i686-pc-linux-gnu, GTK+ Version 2.6.10)
started with

     ./emacs/src/emacs -Q -D

Recursive load error with newsticker-start:

    Loading newsticker... [3 times]
    newsticker--set-customvar: Recursive load:
    "/usr/local/src/emacs/lisp/net/newsticker.elc",
    "/usr/local/src/emacs/lisp/net/newsticker.elc",
    "/usr/local/src/emacs/lisp/net/newsticker.elc",
    "/usr/local/src/emacs/lisp/net/newsticker.elc",
    "/usr/local/src/emacs/lisp/net/newsticker.elc"

--
    Robert J. Chassell                        
    [hidden email]                         GnuPG Key ID: 004B4AC8
    http://www.rattlesnake.com                  http://www.teak.cc


_______________________________________________
Emacs-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/emacs-devel
Reply | Threaded
Open this post in threaded view
|

Re: newsticker-start: Recursive laod error

Ulf Jasper
In reply to this post by Eli Zaretskii
I've had the recursive load error about two weeks ago with the my own CVS
snapshot.  (It also occured with Debian's emacs-snapshot.)  Removing
loaddefs.el and building Emacs from scratch fixed it (i.e. something like
make distclean; rm lisp/loaddefs.el; make bootstrap).

It looks like this is not a newsticker but an autoload or makefile problem.

ulf


_______________________________________________
Emacs-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/emacs-devel
Reply | Threaded
Open this post in threaded view
|

Re: newsticker-start: Recursive laod error

Eli Zaretskii
> Date: Sat, 10 Dec 2005 15:28:40 +0100
> Cc: [hidden email], [hidden email], [hidden email]
> From: Ulf Jasper <[hidden email]>
>
> I've had the recursive load error about two weeks ago with the my own CVS
> snapshot.  (It also occured with Debian's emacs-snapshot.)  Removing
> loaddefs.el and building Emacs from scratch fixed it (i.e. something like
> make distclean; rm lisp/loaddefs.el; make bootstrap).

Not this time: I did a full bootstrap on the Debian box to build
today's CVS, and the problem is still there.


_______________________________________________
Emacs-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/emacs-devel
Reply | Threaded
Open this post in threaded view
|

Re: newsticker-start: Recursive laod error

Lennart Borgman
Eli Zaretskii wrote:

>>Date: Sat, 10 Dec 2005 15:28:40 +0100
>>Cc: [hidden email], [hidden email], [hidden email]
>>From: Ulf Jasper <[hidden email]>
>>
>>I've had the recursive load error about two weeks ago with the my own CVS
>>snapshot.  (It also occured with Debian's emacs-snapshot.)  Removing
>>loaddefs.el and building Emacs from scratch fixed it (i.e. something like
>>make distclean; rm lisp/loaddefs.el; make bootstrap).
>>    
>>
>
>Not this time: I did a full bootstrap on the Debian box to build
>today's CVS, and the problem is still there.
>  
>
And I have done a full bootstrap on w32 (as I always do) and I also
still see the problem.


_______________________________________________
Emacs-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/emacs-devel
Reply | Threaded
Open this post in threaded view
|

Re: newsticker-start: Recursive laod error

Xavier Maillard-2
In reply to this post by Eli Zaretskii
   From: Eli Zaretskii <[hidden email]>
   Cc: [hidden email], [hidden email]

   > From: Xavier Maillard <[hidden email]>
   > Date: Sat, 10 Dec 2005 09:55:02 +0100
   > Cc: [hidden email]
   >
   >    From: Sascha Wilde <[hidden email]>
   >
   >    Starting CVS Emacs with
   >
   >    emacs -Q -D
   >
   >    starting newsticker:
   >
   >    M-x newsticker-start
   >
   > It works like a charm here on Debian SID (Emacs-snapshot package).

   What version of Emacs-snapshot is that (i.e., on which date was the
   CVS tree snapshotted)?  With today's CVS, I see this problem on both
   Debian GNU/Linux and on MS-Windows.  Here's the full backtrace that I
   get on a Debian box if I bind debug-on-error to t:

Here it is:

ii  emacs-snapshot  20051207-1

Hope that helps.

Xavier


_______________________________________________
Emacs-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/emacs-devel
Reply | Threaded
Open this post in threaded view
|

Re: newsticker-start: Recursive laod error

Richard Stallman
In reply to this post by Lennart Borgman
    On w32, todays CVS I get:

    Loading newsticker...
    Loading subst-ksc...done
    Loading subst-gb2312...done
    Loading subst-big5...done
    Loading subst-jis...done
    Loading newsticker... [3 times]
    newsticker--set-customvar: Recursive load:
    "d:/emacs/051210/emacs/lisp/net/newsticker.elc",
    "d:/emacs/051210/emacs/lisp/net/newsticker.elc",

Since it fails for you, could you debug it?


_______________________________________________
Emacs-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/emacs-devel
Reply | Threaded
Open this post in threaded view
|

Re: newsticker-start: Recursive laod error

Xavier Maillard-2
Well I finally discovered why it did not fail here. That was due
to I was using version 1.5.

I just apt-get remove Emacs-goodies-el (debian package), deleted
all newsticker.el laying around and finally restarted Emacs.

With the version shipped in Emacs-snapshot (aka CVS), I have this:

Debugger entered--Lisp error: (error "Recursive load" "/usr/share/emacs/22.0.50/lisp/net/newsticker.elc" "/usr/share/emacs/22.0.50/lisp/net/newsticker.elc" "/usr/share/emacs/22.0.50/lisp/net/newsticker.elc" "/usr/share/emacs/22.0.50/lisp/net/newsticker.elc" "/usr/share/emacs/22.0.50/lisp/net/newsticker.elc")
  newsticker-running-p()
  newsticker--set-customvar(newsticker-hide-immortal-items-in-echo-area t)
  custom-initialize-reset(newsticker-hide-immortal-items-in-echo-area t)
  custom-declare-variable(newsticker-hide-immortal-items-in-echo-area t ("/usr/share/emacs/22.0.50/lisp/net/newsticker.elc" . 21378) :type boolean :set newsticker--set-customvar :group newsticker-ticker)
  newsticker-running-p()
  newsticker--set-customvar(newsticker-display-interval 0.3)
  custom-initialize-reset(newsticker-display-interval 0.3)
  custom-declare-variable(newsticker-display-interval 0.3 ("/usr/share/emacs/22.0.50/lisp/net/newsticker.elc" . 20385) :type number :set newsticker--set-customvar :group newsticker-ticker)
  newsticker-running-p()
  newsticker--set-customvar(newsticker-retrieval-interval 3600)
  custom-initialize-reset(newsticker-retrieval-interval 3600)
  custom-declare-variable(newsticker-retrieval-interval 3600 ("/usr/share/emacs/22.0.50/lisp/net/newsticker.elc" . 7521) :type (choice :tag "Interval" (const :tag "No automatic retrieval" 0) (const :tag "Hourly" 3600) (const :tag "Daily" 86400) (const :tag "Weekly" 604800) (integer :tag "Interval")) :set newsticker--set-customvar :group newsticker-feed)
  newsticker-running-p()
  newsticker--set-customvar(newsticker-url-list-defaults (("Emacs Wiki" "http://www.emacswiki.org/cgi-bin/wiki.pl?action=rss" nil 3600)))
  custom-initialize-reset(newsticker-url-list-defaults (quote (("Emacs Wiki" "http://www.emacswiki.org/cgi-bin/wiki.pl?action=rss" nil 3600))))
  custom-declare-variable(newsticker-url-list-defaults (quote (("Emacs Wiki" "http://www.emacswiki.org/cgi-bin/wiki.pl?action=rss" nil 3600))) ("/usr/share/emacs/22.0.50/lisp/net/newsticker.elc" . 4526) :type (set (list :tag "CNET News.com" (const "CNET News.com") (const "http://export.cnet.com/export/feeds/news/rss/1,11176,,00.xml")) (list :tag "Debian Security Advisories" (const "Debian Security Advisories") (const "http://www.debian.org/security/dsa.en.rdf")) (list :tag "Debian Security Advisories - Long format" (const "Debian Security Advisories - Long format") (const "http://www.debian.org/security/dsa-long.en.rdf")) (list :tag "Emacs Wiki" (const "Emacs Wiki") (const "http://www.emacswiki.org/cgi-bin/wiki.pl?action=rss") (const nil) (const 3600)) (list :tag "Freshmeat.net" (const "Freshmeat.net") (const "http://freshmeat.net/backend/fm.rdf")) (list :tag "Kuro5hin.org" (const "Kuro5hin.org") (const "http://www.kuro5hin.org/backend.rdf")) (list :tag "LWN (Linux Weekly News)" (const "LWN (Linux Weekly News)") (const "http://lwn.net/headlines/rss")) (list :tag "NewsForge" (const "NewsForge") (const "http://newsforge.com/index.rss")) (list :tag "NY Times: Technology" (const "NY Times: Technology") (const "http://partners.userland.com/nytRss/technology.xml")) (list :tag "NY Times" (const "NY Times") (const "http://partners.userland.com/nytRss/nytHomepage.xml")) (list :tag "Quote of the day" (const "Quote of the day") (const "http://www.quotationspage.com/data/qotd.rss") (const "07:00") (const 86400)) (list :tag "The Register" (const "The Register") (const "http://www.theregister.co.uk/tonys/slashdot.rdf")) (list :tag "slashdot" (const "slashdot") (const "http://slashdot.org/index.rss") (const nil) (const 3600)) (list :tag "Wired News" (const "Wired News") (const "http://www.wired.com/news_drop/netcenter/netcenter.rdf")) (list :tag "Heise News (german)" (const "Heise News (german)") (const "http://www.heise.de/newsticker/heise.rdf")) (list :tag "Tagesschau (german)" (const "Tagesschau (german)") (const "http://www.tagesschau.de/newsticker.rdf") (const nil) (const 1800)) (list :tag "Telepolis (german)" (const "Telepolis (german)") (const "http://www.heise.de/tp/news.rdf"))) :set newsticker--set-customvar :group newsticker-feed)
  execute-extended-command(nil)
  call-interactively(execute-extended-command)

Voila.


_______________________________________________
Emacs-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/emacs-devel
Reply | Threaded
Open this post in threaded view
|

Re: newsticker-start: Recursive laod error

Romain Francoise-2
In reply to this post by Sascha Wilde-2
Removing the autoload on `newsticker-running-p' fixes it for me: it's
called for each customizable variable via `newsticker--set-customvar',
and Emacs tries to autoload the file for each variable, apparently.

Why is `newsticker-running-p' autoloaded?  If newsticker.el isn't
loaded, it can't possibly be running!

Index: lisp/net/newsticker.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/net/newsticker.el,v
retrieving revision 1.8
diff -c -r1.8 newsticker.el
*** lisp/net/newsticker.el 4 Nov 2005 15:15:39 -0000 1.8
--- lisp/net/newsticker.el 11 Dec 2005 11:32:38 -0000
***************
*** 3081,3094 ****
  ;; ======================================================================
  ;;; Newsticker status
  ;; ======================================================================
- ;;;###autoload
  (defun newsticker-running-p ()
    "Check whether newsticker is running.
  Return t if newsticker is running, nil otherwise.  Newsticker is
  considered to be running if the newsticker timer list is not empty."
    (> (length newsticker--retrieval-timer-list) 0))
 
- ;;;###autoload
  (defun newsticker-ticker-running-p ()
    "Check whether newsticker's actual ticker is running.
  Return t if ticker is running, nil otherwise.  Newsticker is
--- 3081,3092 ----

--
Romain Francoise <[hidden email]> | The sea! the sea! the open
it's a miracle -- http://orebokech.com/ | sea! The blue, the fresh, the
                                        | ever free! --Bryan W. Procter



_______________________________________________
Emacs-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/emacs-devel
Reply | Threaded
Open this post in threaded view
|

Re: newsticker-start: Recursive laod error

Richard Stallman
In reply to this post by Lennart Borgman
    >Not this time: I did a full bootstrap on the Debian box to build
    >today's CVS, and the problem is still there.
    >  
    >
    And I have done a full bootstrap on w32 (as I always do) and I also
    still see the problem.

Can one of you debug it, then?
More people saying they see it won't fix it.
One person debugging it will fix it.


_______________________________________________
Emacs-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/emacs-devel
Reply | Threaded
Open this post in threaded view
|

Re: newsticker-start: Recursive laod error

Richard Stallman
In reply to this post by Xavier Maillard-2
Thanks for investigating. Does this fix it?

*** newsticker.el 05 Nov 2005 09:36:16 -0500 1.8
--- newsticker.el 11 Dec 2005 13:41:44 -0500
***************
*** 392,397 ****
--- 392,423 ----
  (defvar w3m-minor-mode-map)
 
  ;; ======================================================================
+ ;;; Newsticker status
+ ;; ======================================================================
+
+ (defvar newsticker--retrieval-timer-list nil
+   "List of timers for news retrieval.
+ This is an alist, each element consisting of (feed-name . timer)")
+
+ (defvar newsticker--display-timer nil
+   "Timer for newsticker display.")
+
+ ;;;###autoload
+ (defun newsticker-running-p ()
+   "Check whether newsticker is running.
+ Return t if newsticker is running, nil otherwise.  Newsticker is
+ considered to be running if the newsticker timer list is not empty."
+   (> (length newsticker--retrieval-timer-list) 0))
+
+ ;;;###autoload
+ (defun newsticker-ticker-running-p ()
+   "Check whether newsticker's actual ticker is running.
+ Return t if ticker is running, nil otherwise.  Newsticker is
+ considered to be running if the newsticker timer list is not
+ empty."
+   (timerp newsticker--display-timer))
+
+ ;; ======================================================================
  ;;; Customizables
  ;; ======================================================================
  (defgroup newsticker nil
***************
*** 1188,1198 ****
  ;; ======================================================================
  ;;; Internal variables
  ;; ======================================================================
- (defvar newsticker--display-timer nil
-   "Timer for newsticker display.")
- (defvar newsticker--retrieval-timer-list nil
-   "List of timers for news retrieval.
- This is an alist, each element consisting of (feed-name . timer)")
  (defvar newsticker--item-list nil
    "List of newsticker items.")
  (defvar newsticker--item-position 0
--- 1214,1219 ----
***************
*** 3077,3100 ****
          (newsticker--buffer-beginning-of-item)
          (let ((age (get-text-property (point) 'nt-age)))
            (and (memq  age '(new old obsolete)) t)))))
-
- ;; ======================================================================
- ;;; Newsticker status
- ;; ======================================================================
- ;;;###autoload
- (defun newsticker-running-p ()
-   "Check whether newsticker is running.
- Return t if newsticker is running, nil otherwise.  Newsticker is
- considered to be running if the newsticker timer list is not empty."
-   (> (length newsticker--retrieval-timer-list) 0))
-
- ;;;###autoload
- (defun newsticker-ticker-running-p ()
-   "Check whether newsticker's actual ticker is running.
- Return t if ticker is running, nil otherwise.  Newsticker is
- considered to be running if the newsticker timer list is not
- empty."
-   (timerp newsticker--display-timer))
 
  ;; ======================================================================
  ;;; local stuff
--- 3098,3103 ----


_______________________________________________
Emacs-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/emacs-devel
Reply | Threaded
Open this post in threaded view
|

Re: newsticker-start: Recursive laod error

Ulf Jasper
In reply to this post by Romain Francoise-2
On Sunday, 11 December 2005, 12:40 +0100, Romain Francoise wrote:
> Why is `newsticker-running-p' autoloaded?  If newsticker.el isn't
> loaded, it can't possibly be running!

`newsticker-running-p' is supposed to be a "public" function.  (I remember
that somebody was asking for that functionality.)  It is autoloaded for
convenience.  If it wasn't autoloaded you'd have to check whether
newsticker is loaded before checking whether it is running.


_______________________________________________
Emacs-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/emacs-devel
Reply | Threaded
Open this post in threaded view
|

Re: newsticker-start: Recursive laod error

Xavier Maillard-2
In reply to this post by Richard Stallman
   Thanks for investigating. Does this fix it?

That works beautifuly for me.

Thank you


_______________________________________________
Emacs-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/emacs-devel
Reply | Threaded
Open this post in threaded view
|

Re: newsticker-start: Recursive laod error

Thien-Thi Nguyen-3
In reply to this post by Ulf Jasper
Ulf Jasper <[hidden email]> writes:

> `newsticker-running-p' is supposed to be a "public" function.
> (I remember that somebody was asking for that functionality.)
> It is autoloaded for convenience.  If it wasn't autoloaded you'd
> have to check whether newsticker is loaded before checking
> whether it is running.

as a predicate,

  (= 0 (length LIST)) === LIST

this means you can elide `newsticker-running-p' entirely,
and put an autoload cookie on the variable.  the value before
loading (i.e., default value) is nil.

this allows state to be checked (with consistent results ;-)
whether or not newsticker.el is loaded, and reduces the number
of trivial functions by one.  (incf elegance)!

thi


_______________________________________________
Emacs-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/emacs-devel
Reply | Threaded
Open this post in threaded view
|

Re: newsticker-start: Recursive laod error

Thien-Thi Nguyen-3
Thien-Thi Nguyen <[hidden email]> writes:

>   (= 0 (length LIST)) === LIST

sorry, this is wrong.  it should read:

  (< 0 (length LIST)) === LIST

that is, an empty list has length 0, and is equivalent to nil.
anyway, the (valid) rest of the message relies on this property.

thi


_______________________________________________
Emacs-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/emacs-devel
Reply | Threaded
Open this post in threaded view
|

Re: newsticker-start: Recursive laod error

Stefan Monnier
> sorry, this is wrong.  it should read:

>   (< 0 (length LIST)) === LIST

Unless LIST is a string, of course,


        Stefan


_______________________________________________
Emacs-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/emacs-devel
Reply | Threaded
Open this post in threaded view
|

Re: newsticker-start: Recursive laod error

Thien-Thi Nguyen-3
Stefan Monnier <[hidden email]> writes:

> > sorry, this is wrong.  it should read:
>
> >   (< 0 (length LIST)) === LIST
>
> Unless LIST is a string, of course,

true, the property does not hold for strings or vectors.
i suppose if this state were to eventually be implemented
using those data types, then there would exist a problem
that a trivial function could be used to abstract away.
until that happens, occam sez: zonk the -p!

thi


_______________________________________________
Emacs-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/emacs-devel
12