Gnus development mailing list
 help / color / mirror / Atom feed
* gnus-load problem
@ 2003-05-06 13:34 Jake Colman
  2003-05-06 13:41 ` Andrew McDermott
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Jake Colman @ 2003-05-06 13:34 UTC (permalink / raw)



I just upgraded from a beta release to the official 5.10.1 release.  I added

  (add-hook 'dired-mode-hook 'turn-on-gnus-dired-mode)

to my .gnus file but when I enter dired-mode I get an error that
turn-on-gnus-dired-mode is undefined.  If I manually eval the autoload in
gnus-load.el, it all works.  From this I deduced that I needed to (require
'gnus-load) after I added gnus-5.10.1 to my load-path.  When I require the
file I get an error 'already loaded'.  

What gives?

...Jake

-- 
Jake Colman                     

Principia Partners LLC                  Phone: (201) 209-2467
Harborside Financial Center               Fax: (201) 946-0320
902 Plaza Two                          E-mail: colman@ppllc.com
Jersey City, NJ 07311                  www.principiapartners.com



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

* Re: gnus-load problem
  2003-05-06 13:34 gnus-load problem Jake Colman
@ 2003-05-06 13:41 ` Andrew McDermott
  2003-05-06 14:03   ` Jake Colman
  2003-05-06 16:40 ` Kai Großjohann
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 14+ messages in thread
From: Andrew McDermott @ 2003-05-06 13:41 UTC (permalink / raw)
  Cc: ding


Jake Colman <colman@ppllc.com> writes:

> I just upgraded from a beta release to the official 5.10.1 release.  I added
>
>   (add-hook 'dired-mode-hook 'turn-on-gnus-dired-mode)

I also saw this in the release notes and got the same error.  I
randomly tried:

    (require 'gnus-dired)

which seemed to do the trick.  Perhaps the release notes should be
amended if this is the _correct_ fix.

> to my .gnus file but when I enter dired-mode I get an error that
> turn-on-gnus-dired-mode is undefined.  If I manually eval the autoload in
> gnus-load.el, it all works.  From this I deduced that I needed to (require
> 'gnus-load) after I added gnus-5.10.1 to my load-path.  When I require the
> file I get an error 'already loaded'.  
>
> What gives?

-- 
andy



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

* Re: gnus-load problem
  2003-05-06 13:41 ` Andrew McDermott
@ 2003-05-06 14:03   ` Jake Colman
  0 siblings, 0 replies; 14+ messages in thread
From: Jake Colman @ 2003-05-06 14:03 UTC (permalink / raw)



Well it would seem that gnus-load is what is supposed to be loaded so that
all the autoloads are defined.  Yes, of course, I can simply load
gnus-dired.  But if I am missing gnus-dired then I might be missing other
things and gnus-load is supposed remove those worries but simply defining
autoloads for everything you might be using.

>>>>> "AM" == Andrew McDermott <andrew.mcdermott@windriver.com> writes:

   AM> I also saw this in the release notes and got the same error.  I
   AM> randomly tried:

   AM>     (require 'gnus-dired)

   AM> which seemed to do the trick.  Perhaps the release notes should be
   AM> amended if this is the _correct_ fix.


-- 
Jake Colman                     

Principia Partners LLC                  Phone: (201) 209-2467
Harborside Financial Center               Fax: (201) 946-0320
902 Plaza Two                          E-mail: colman@ppllc.com
Jersey City, NJ 07311                  www.principiapartners.com



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

* Re: gnus-load problem
  2003-05-06 13:34 gnus-load problem Jake Colman
  2003-05-06 13:41 ` Andrew McDermott
@ 2003-05-06 16:40 ` Kai Großjohann
  2003-05-06 21:10   ` Reiner Steib
  2003-05-06 21:19   ` Jake Colman
  2003-05-06 17:47 ` Jesper Harder
  2003-05-09  0:17 ` Gleb Arshinov
  3 siblings, 2 replies; 14+ messages in thread
From: Kai Großjohann @ 2003-05-06 16:40 UTC (permalink / raw)


Jake Colman <colman@ppllc.com> writes:

> to my .gnus file but when I enter dired-mode I get an error that
> turn-on-gnus-dired-mode is undefined.  If I manually eval the autoload in
> gnus-load.el, it all works.  From this I deduced that I needed to (require
> 'gnus-load) after I added gnus-5.10.1 to my load-path.  When I require the
> file I get an error 'already loaded'.  

I have (require 'gnus-load) in ~/.emacs.  (It's bad to put it in
~/.gnus, because at that time parts of Gnus are already loaded, so
it's too late to do loading setup...)
-- 
file-error; Data: (Opening input file no such file or directory ~/.signature)



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

* Re: gnus-load problem
  2003-05-06 13:34 gnus-load problem Jake Colman
  2003-05-06 13:41 ` Andrew McDermott
  2003-05-06 16:40 ` Kai Großjohann
@ 2003-05-06 17:47 ` Jesper Harder
  2003-05-06 18:01   ` Jake Colman
  2003-05-09  0:17 ` Gleb Arshinov
  3 siblings, 1 reply; 14+ messages in thread
From: Jesper Harder @ 2003-05-06 17:47 UTC (permalink / raw)


Jake Colman <colman@ppllc.com> writes:

> I just upgraded from a beta release to the official 5.10.1 release.  I added
>
>   (add-hook 'dired-mode-hook 'turn-on-gnus-dired-mode)
>
> to my .gnus file but when I enter dired-mode I get an error that
> turn-on-gnus-dired-mode is undefined.  If I manually eval the autoload in
> gnus-load.el, it all works.  From this I deduced that I needed to (require
> 'gnus-load) after I added gnus-5.10.1 to my load-path.  When I require the
> file I get an error 'already loaded'.  

I think it's an XEmacs bug.  It might work if you put this

       (setq features (delete 'gnus-autoloads features))

before (require 'gnus-load).



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

* Re: gnus-load problem
  2003-05-06 17:47 ` Jesper Harder
@ 2003-05-06 18:01   ` Jake Colman
  2003-05-06 20:42     ` Jesper Harder
  0 siblings, 1 reply; 14+ messages in thread
From: Jake Colman @ 2003-05-06 18:01 UTC (permalink / raw)



This works.  Can anyone tell me why?

>>>>> "JH" == Jesper Harder <harder@myrealbox.com> writes:

   JH> I think it's an XEmacs bug.  It might work if you put this

   JH>        (setq features (delete 'gnus-autoloads features))

   JH> before (require 'gnus-load).

-- 
Jake Colman                     

Principia Partners LLC                  Phone: (201) 209-2467
Harborside Financial Center               Fax: (201) 946-0320
902 Plaza Two                          E-mail: colman@ppllc.com
Jersey City, NJ 07311                  www.principiapartners.com



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

* Re: gnus-load problem
  2003-05-06 18:01   ` Jake Colman
@ 2003-05-06 20:42     ` Jesper Harder
  0 siblings, 0 replies; 14+ messages in thread
From: Jesper Harder @ 2003-05-06 20:42 UTC (permalink / raw)


Jake Colman <colman@ppllc.com> writes:

>>>>>> "JH" == Jesper Harder <harder@myrealbox.com> writes:
>
>    JH> I think it's an XEmacs bug.  It might work if you put this
>
>    JH>        (setq features (delete 'gnus-autoloads features))
>
>    JH> before (require 'gnus-load).
>
> This works.  Can anyone tell me why?

Because XEmacs inserts this line

  (if (featurep 'gnus-autoloads) (error "Already loaded"))

in gnus-load.el.  I have no idea why it does that -- Emacs doesn't.



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

* Re: gnus-load problem
  2003-05-06 16:40 ` Kai Großjohann
@ 2003-05-06 21:10   ` Reiner Steib
  2003-05-06 23:20     ` Karl Pflästerer
  2003-05-07  3:18     ` Jesper Harder
  2003-05-06 21:19   ` Jake Colman
  1 sibling, 2 replies; 14+ messages in thread
From: Reiner Steib @ 2003-05-06 21:10 UTC (permalink / raw)


On Tue, May 06 2003, Kai Großjohann wrote:

> Jake Colman <colman@ppllc.com> writes:
>> [...] From this I deduced that I needed to (require 'gnus-load)
>> after I added gnus-5.10.1 to my load-path.  When I require the file
>> I get an error 'already loaded'.

I think we should mention Jesper's suggestion...
(setq features (delete 'gnus-autoloads features))
(require 'gnus-load)
... in the instructions (for XEmacs only?).

> I have (require 'gnus-load) in ~/.emacs.  (It's bad to put it in
> ~/.gnus, because at that time parts of Gnus are already loaded, so
> it's too late to do loading setup...)

Really?  Isn't gnus-load (as all auto-loads) just a mapping between
say functions and required files.  So, if the load-path has been set
correctly, why can it be possible to load the wrong file?

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/




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

* Re: gnus-load problem
  2003-05-06 16:40 ` Kai Großjohann
  2003-05-06 21:10   ` Reiner Steib
@ 2003-05-06 21:19   ` Jake Colman
  2003-05-06 22:06     ` Benjamin Rutt
  1 sibling, 1 reply; 14+ messages in thread
From: Jake Colman @ 2003-05-06 21:19 UTC (permalink / raw)



Ooops.  My bad.  I said .gnus but I did not mean it.  I have it in my
~/.xemacs/init.el (XEmacs 21.4 does not use .emacs anymore) which is where
it belongs.  But, it didn't work...

>>>>> "KG" == Kai Großjohann <kai.grossjohann@gmx.net> writes:

   KG> I have (require 'gnus-load) in ~/.emacs.  (It's bad to put it in
   KG> ~/.gnus, because at that time parts of Gnus are already loaded, so
   KG> it's too late to do loading setup...)
   KG> -- 
   KG> file-error; Data: (Opening input file no such file or directory ~/.signature)

-- 
Jake Colman                     

Principia Partners LLC                  Phone: (201) 209-2467
Harborside Financial Center               Fax: (201) 946-0320
902 Plaza Two                          E-mail: colman@ppllc.com
Jersey City, NJ 07311                  www.principiapartners.com



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

* Re: gnus-load problem
  2003-05-06 21:19   ` Jake Colman
@ 2003-05-06 22:06     ` Benjamin Rutt
  2003-05-07 14:29       ` Jake Colman
  0 siblings, 1 reply; 14+ messages in thread
From: Benjamin Rutt @ 2003-05-06 22:06 UTC (permalink / raw)
  Cc: ding

Jake Colman <colman@ppllc.com> writes:

> Ooops.  My bad.  I said .gnus but I did not mean it.  I have it in my
> ~/.xemacs/init.el (XEmacs 21.4 does not use .emacs anymore) which is where
> it belongs.  But, it didn't work...

The following lines in your .gnus should always enable
gnus-dired-mode, end of story:

(require 'gnus-dired)
(add-hook 'dired-mode-hook 'turn-on-gnus-dired-mode)
-- 
Benjamin



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

* Re: gnus-load problem
  2003-05-06 21:10   ` Reiner Steib
@ 2003-05-06 23:20     ` Karl Pflästerer
  2003-05-07  3:18     ` Jesper Harder
  1 sibling, 0 replies; 14+ messages in thread
From: Karl Pflästerer @ 2003-05-06 23:20 UTC (permalink / raw)


On  6 May 2003, Reiner Steib <- 4.uce.03.r.s@nurfuerspam.de wrote:

> On Tue, May 06 2003, Kai Großjohann wrote:

> I think we should mention Jesper's suggestion...
> (setq features (delete 'gnus-autoloads features))
> (require 'gnus-load)
> ... in the instructions (for XEmacs only?).

I think there must be something other wrong. I had never such a problem.

>> I have (require 'gnus-load) in ~/.emacs.  (It's bad to put it in
>> ~/.gnus, because at that time parts of Gnus are already loaded, so
>> it's too late to do loading setup...)

I have it in my `init.el' without any problems.


bye
   KP

-- 
'Twas brillig, and the slithy toves
    Did gyre and gimble in the wabe;
  All mimsy were the borogoves,
   And the mome raths outgrabe.   "Lewis Carroll" "Jabberwocky"



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

* Re: gnus-load problem
  2003-05-06 21:10   ` Reiner Steib
  2003-05-06 23:20     ` Karl Pflästerer
@ 2003-05-07  3:18     ` Jesper Harder
  1 sibling, 0 replies; 14+ messages in thread
From: Jesper Harder @ 2003-05-07  3:18 UTC (permalink / raw)


Reiner Steib <4.uce.03.r.s@nurfuerspam.de> writes:


> I think we should mention Jesper's suggestion...
>
> (setq features (delete 'gnus-autoloads features))
> (require 'gnus-load)
>
> ... in the instructions (for XEmacs only?).

Hmm ... doing

  (unload-feature 'gnus-autoloads)

is probably the correct way.

Actually, something like it might be recommendable in Emacs too -- I
think I have occassionally had errors because I was picking up wrong
autoloads for Gnus 5.9 when browsing Custom groups.

Could `unload-feature' cure that?

But I don't know what it's called in Emacs (gnus-autoloads doesn't
exist).



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

* Re: gnus-load problem
  2003-05-06 22:06     ` Benjamin Rutt
@ 2003-05-07 14:29       ` Jake Colman
  0 siblings, 0 replies; 14+ messages in thread
From: Jake Colman @ 2003-05-07 14:29 UTC (permalink / raw)



My point was not how to solve the problem - I also know how to do that.  My
point was that (require 'gnus-load) does not seem to work!  If gnus-dired had
not yet been required, it implied to me that other stuff might also be
missing so it behooved me to (require 'gnus-load).  My posting was to report
that there is a problem with that.

>>>>> "BR" == Benjamin Rutt <rutt+news@cis.ohio-state.edu> writes:

   BR> The following lines in your .gnus should always enable
   BR> gnus-dired-mode, end of story:

   BR> (require 'gnus-dired)
   BR> (add-hook 'dired-mode-hook 'turn-on-gnus-dired-mode)

-- 
Jake Colman                     

Principia Partners LLC                  Phone: (201) 209-2467
Harborside Financial Center               Fax: (201) 946-0320
902 Plaza Two                          E-mail: colman@ppllc.com
Jersey City, NJ 07311                  www.principiapartners.com



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

* Re: gnus-load problem
  2003-05-06 13:34 gnus-load problem Jake Colman
                   ` (2 preceding siblings ...)
  2003-05-06 17:47 ` Jesper Harder
@ 2003-05-09  0:17 ` Gleb Arshinov
  3 siblings, 0 replies; 14+ messages in thread
From: Gleb Arshinov @ 2003-05-09  0:17 UTC (permalink / raw)


>>>>> "Jake" == Jake Colman <colman@ppllc.com> writes:

    Jake> From this I deduced that I needed to (require 'gnus-load)
    Jake> after I added gnus-5.10.1 to my load-path.  When I require
    Jake> the file I get an error 'already loaded'.

I was getting this until I removed old Gnus packages from XEmacs
package hierarchy.

Gleb



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

end of thread, other threads:[~2003-05-09  0:17 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-06 13:34 gnus-load problem Jake Colman
2003-05-06 13:41 ` Andrew McDermott
2003-05-06 14:03   ` Jake Colman
2003-05-06 16:40 ` Kai Großjohann
2003-05-06 21:10   ` Reiner Steib
2003-05-06 23:20     ` Karl Pflästerer
2003-05-07  3:18     ` Jesper Harder
2003-05-06 21:19   ` Jake Colman
2003-05-06 22:06     ` Benjamin Rutt
2003-05-07 14:29       ` Jake Colman
2003-05-06 17:47 ` Jesper Harder
2003-05-06 18:01   ` Jake Colman
2003-05-06 20:42     ` Jesper Harder
2003-05-09  0:17 ` Gleb Arshinov

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