Gnus development mailing list
 help / color / mirror / Atom feed
* Emacs 22.1 windows port, gnus and $HOME issues
@ 2007-06-04 17:07 Shanks N
  2007-06-04 20:50 ` Reiner Steib
  0 siblings, 1 reply; 6+ messages in thread
From: Shanks N @ 2007-06-04 17:07 UTC (permalink / raw)
  To: ding


On windows, the latest Emacs release seems to use 

c:/Documents and settings/<user>/Application Data/ as the home path.
Fair enough, as it keeps users on 1 machine from trampling on each
other. 

But this seems to mess with gnus in that I don't know all the
variables which need to be changed to point to the existing setup.

I have 0.6 in c:/gnu/elisp/nognus.6/, my Mail and News in c:/Mail and
c:/News.

All the other files are currently under c:/ i.e.

c:/.gnus.el
c:/.newsrc.eld

etc.

I'm the only user of the system.  I thought making a simple
redirection for _emacs and .gnus.el would solve the problem.  

It did partly.

one line (load-file "c:/_Emacs") as the _emacs file in the user/app
data seemed to sort out the Emacs init file issues at least.

What should I do for Gnus?  

In Emacs 22, it creates the Mail, News and eld file under user app
folder while I want it to use the existing one under c:/

regards,
Shanks

-- 




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

* Re: Emacs 22.1 windows port, gnus and $HOME issues
  2007-06-04 17:07 Emacs 22.1 windows port, gnus and $HOME issues Shanks N
@ 2007-06-04 20:50 ` Reiner Steib
  2007-06-05 15:14   ` Shanks N
  0 siblings, 1 reply; 6+ messages in thread
From: Reiner Steib @ 2007-06-04 20:50 UTC (permalink / raw)
  To: ding

On Mon, Jun 04 2007, Shanks N wrote:

> On windows, the latest Emacs release seems to use 
>
> c:/Documents and settings/<user>/Application Data/ as the home path.
[...]
> I have 0.6 in c:/gnu/elisp/nognus.6/, my Mail and News in c:/Mail and
> c:/News.
[...]
> c:/.gnus.el
> c:/.newsrc.eld
[...]
> What should I do for Gnus?  
>
> In Emacs 22, it creates the Mail, News and eld file under user app
> folder while I want it to use the existing one under c:/

There are several options (recommended options listed first):

(1) Move the (Gnus) files and directories from
    c:\ to ...\<user>\Application Data\

(2) Set the environment variable HOME to C:\, the Emacs will use this
    instead of ...\<user>\Application Data\

(3) Set gnus-home-directory to "c:/" in .emacs (or _emacs): Gnus will
    (modulo bugs?) use the files and directories from there.

(4) Set `gnus-directory', `message-directory', ... to your preferred
    directories.

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




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

* Re: Emacs 22.1 windows port, gnus and $HOME issues
  2007-06-04 20:50 ` Reiner Steib
@ 2007-06-05 15:14   ` Shanks N
  2007-06-05 16:37     ` Reiner Steib
  0 siblings, 1 reply; 6+ messages in thread
From: Shanks N @ 2007-06-05 15:14 UTC (permalink / raw)
  To: ding

Reiner Steib <reinersteib+gmane@imap.cc> writes:

> On Mon, Jun 04 2007, Shanks N wrote:
>

[...]

>
> There are several options (recommended options listed first):
>
> (1) Move the (Gnus) files and directories from
>     c:\ to ...\<user>\Application Data\
>
> (2) Set the environment variable HOME to C:\, the Emacs will use this
>     instead of ...\<user>\Application Data\
>
> (3) Set gnus-home-directory to "c:/" in .emacs (or _emacs): Gnus will
>     (modulo bugs?) use the files and directories from there.
>
> (4) Set `gnus-directory', `message-directory', ... to your preferred
>     directories.
>

This is what I had to plug in after a few runs of gnus-no-server in
the _Emacs. 

(setq load-path (cons "c:/gnu/elisp/ngnus-0.6/lisp" load-path))
(require 'gnus-load)
(require 'info)
(setq Info-default-directory-list 
      (cons "c:/gnu/elisp/ngnus-0.6/texi" Info-default-directory-list))
(setq gnus-home-directory "c:/")
(setq gnus-directory "c:/")
(setq nnml-directory "c:/Mail")
(setq nndraft-directory "C:/Mail/drafts/")
(setq bbdb-file "c:/.bbdb")
(setq message-directory "c:/Mail")
(setq gnus-article-save-directory "c:/News")
(setq gnus-agent-directory "c:/News/agent")
(setq gnus-cache-directory "c:/News/cache")
(setq mail-default-directory "c:/Mail")

Hopefully, this is all that is required and you can see this post. :)


BTW, after launching gnus-no-server, doing an apropos-variable with
'-directory' did not show any nnfolder variables.  Is there a reason
for that?  I don't use nnfolder on this machine but nnml.

regards,
Shanks

-- 




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

* Re: Emacs 22.1 windows port, gnus and $HOME issues
  2007-06-05 15:14   ` Shanks N
@ 2007-06-05 16:37     ` Reiner Steib
  2007-06-06 14:53       ` Shanks N
  0 siblings, 1 reply; 6+ messages in thread
From: Reiner Steib @ 2007-06-05 16:37 UTC (permalink / raw)
  To: ding

On Tue, Jun 05 2007, Shanks N wrote:

> Reiner Steib <reinersteib+gmane@imap.cc> writes:
>> There are several options (recommended options listed first):
>>
>> (1) Move the (Gnus) files and directories from
>>     c:\ to ...\<user>\Application Data\
>>
>> (2) Set the environment variable HOME to C:\, the Emacs will use this
>>     instead of ...\<user>\Application Data\
>>
>> (3) Set gnus-home-directory to "c:/" in .emacs (or _emacs): Gnus will
>>     (modulo bugs?) use the files and directories from there.
>>
>> (4) Set `gnus-directory', `message-directory', ... to your preferred
>>     directories.
>
> This is what I had to plug in after a few runs of gnus-no-server in
> the _Emacs. 
>
> (setq load-path (cons "c:/gnu/elisp/ngnus-0.6/lisp" load-path))
> (require 'gnus-load)
> (require 'info)
> (setq Info-default-directory-list 
>       (cons "c:/gnu/elisp/ngnus-0.6/texi" Info-default-directory-list))
> (setq gnus-home-directory "c:/")

If you choose option (3) i.e. `gnus-home-directory', the setting the
following variables (option (4)) should not be necessary:

> (setq gnus-directory "c:/")
> (setq nnml-directory "c:/Mail")
> (setq nndraft-directory "C:/Mail/drafts/")
> (setq message-directory "c:/Mail")
> (setq gnus-article-save-directory "c:/News")
> (setq gnus-agent-directory "c:/News/agent")
> (setq gnus-cache-directory "c:/News/cache")

Not used in Gnus:

> (setq mail-default-directory "c:/Mail")

Probably necessary for BBDB:

> (setq bbdb-file "c:/.bbdb")

> BTW, after launching gnus-no-server, doing an apropos-variable with
> '-directory' did not show any nnfolder variables.  Is there a reason
> for that?  I don't use nnfolder on this machine but nnml.

If you don't load nnfolder.el[c], the nnfolder variable aren't
defined.

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




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

* Re: Emacs 22.1 windows port, gnus and $HOME issues
  2007-06-05 16:37     ` Reiner Steib
@ 2007-06-06 14:53       ` Shanks N
  2007-06-11 16:12         ` Shanks N
  0 siblings, 1 reply; 6+ messages in thread
From: Shanks N @ 2007-06-06 14:53 UTC (permalink / raw)
  To: ding

Reiner Steib <reinersteib+gmane@imap.cc> writes:

> On Tue, Jun 05 2007, Shanks N wrote:
>
>> Reiner Steib <reinersteib+gmane@imap.cc> writes:
>>> There are several options (recommended options listed first):
>>>
>>> (1) Move the (Gnus) files and directories from
>>>     c:\ to ...\<user>\Application Data\
>>>
>>> (2) Set the environment variable HOME to C:\, the Emacs will use this
>>>     instead of ...\<user>\Application Data\
>>>
>>> (3) Set gnus-home-directory to "c:/" in .emacs (or _emacs): Gnus will
>>>     (modulo bugs?) use the files and directories from there.
>>>
>>> (4) Set `gnus-directory', `message-directory', ... to your preferred
>>>     directories.
>>

[...]

>> (setq gnus-home-directory "c:/")
>
> If you choose option (3) i.e. `gnus-home-directory', the setting the
> following variables (option (4)) should not be necessary:


But it didn't work!  The agent,drafts and marks folder are created in C:/
while it was under News folder previously.  As a matter of abundant
caution, I set all the variables.

>
>> (setq gnus-directory "c:/")
>> (setq nnml-directory "c:/Mail")
>> (setq nndraft-directory "C:/Mail/drafts/")
>> (setq message-directory "c:/Mail")
>> (setq gnus-article-save-directory "c:/News")
>> (setq gnus-agent-directory "c:/News/agent")
>> (setq gnus-cache-directory "c:/News/cache")
>

[...]

>
> Probably necessary for BBDB:
>
>> (setq bbdb-file "c:/.bbdb")

That is correct.


[...]

> If you don't load nnfolder.el[c], the nnfolder variable aren't
> defined.
>

Ahh, thanks.

shanks

-- 






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

* Re: Emacs 22.1 windows port, gnus and $HOME issues
  2007-06-06 14:53       ` Shanks N
@ 2007-06-11 16:12         ` Shanks N
  0 siblings, 0 replies; 6+ messages in thread
From: Shanks N @ 2007-06-11 16:12 UTC (permalink / raw)
  To: ding

Shanks N <shanks.n@gmail.com> writes:

> Reiner Steib <reinersteib+gmane@imap.cc> writes:
>
>> On Tue, Jun 05 2007, Shanks N wrote:
>>
>>> Reiner Steib <reinersteib+gmane@imap.cc> writes:
>>>> There are several options (recommended options listed first):
>>>>
>>>> (1) Move the (Gnus) files and directories from
>>>>     c:\ to ...\<user>\Application Data\
>>>>
>>>> (2) Set the environment variable HOME to C:\, the Emacs will use this
>>>>     instead of ...\<user>\Application Data\
>>>>
>>>> (3) Set gnus-home-directory to "c:/" in .emacs (or _emacs): Gnus will
>>>>     (modulo bugs?) use the files and directories from there.
>>>>
>>>> (4) Set `gnus-directory', `message-directory', ... to your preferred
>>>>     directories.
>>>

[...]

It appears that _emacs is not read if it's there in C:\.  It *has* to
be .emacs under C:\.  But in App Data/  _emacs||.emacs are read with
Emacs 22.1.

I've filed a bug report about this bug.gnu.Emacs.  There is a
discussion underway about how this should be treated.  You can follow
it here.

http://groups.google.com/group/gnu.emacs.bug/browse_thread/thread/39c1fe8199161f6c/7edb001198d1254e#7edb001198d1254e 

Net result as of date; in Emacs 22.1 _emacs under C:\ is not read,
*only* .emacs.

regards,
Shanks

-- 




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

end of thread, other threads:[~2007-06-11 16:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-04 17:07 Emacs 22.1 windows port, gnus and $HOME issues Shanks N
2007-06-04 20:50 ` Reiner Steib
2007-06-05 15:14   ` Shanks N
2007-06-05 16:37     ` Reiner Steib
2007-06-06 14:53       ` Shanks N
2007-06-11 16:12         ` Shanks N

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