Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Re: Location of .gnus init file
       [not found] <mailman.19522.1423412112.1147.info-gnus-english@gnu.org>
@ 2015-02-09  3:53 ` Ed C.
  2015-02-09  4:45   ` Ed C.
                     ` (2 more replies)
       [not found] ` <mailman.19569.1423474015.1147.info-gnus-english@gnu.org>
  1 sibling, 3 replies; 10+ messages in thread
From: Ed C. @ 2015-02-09  3:53 UTC (permalink / raw)
  To: info-gnus-english

Rainer Thiel <r.thiel@uni-jena.de> writes:

> I am keeping my home directory ~/ synchronized through several machines
> and am trying to place the .gnus init file elsewhere than in ~/.  This
> works fine when I put
>
>    > (setq gnus-init-file "C:/Emacs-local/.gnus.d/.gnus.el")
>    > (setq gnus-directory "C:/Emacs-local/.gnus.d/")
>    > (setq gnus-home-directory "C:/Emacs-local/.gnus.d/")
>    > (setq gnus-startup-file (concat gnus-home-directory ".newsrc"))
>
> in my .emacs init file.  In this case, emacs/gnus reads .gnus.el from
> C:/Emacs-local/.gnus.d/ and writes/reads .newsrc and .newsrc.eld to/from
> this very directory, as expected.
>
> So far, so good.  As I'd prefer to configure gnus on a machine-dependent
> basis, I tried to put the code cited above in my site-start.el.  This
> does not have the desired effect, though.
>
> Can someone please tell me why, and what I could do?
>
> Many thanks in advance
>
> Rainer

According to this:

https://www.gnu.org/software/emacs/manual/html_node/eintr/Site_002dwide-Init.html

maybe you should put it in default.el, which .emacs won't overwrite.
Worth a try.

Question: Why does sort not work on articles when thread view is toggled
off? Also is there a variable that assures that the most recently posted
article will always be at top of summary buffer? I would like this behavior for
all groups.

Ed



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

* Re: Location of .gnus init file
  2015-02-09  3:53 ` Location of .gnus init file Ed C.
@ 2015-02-09  4:45   ` Ed C.
  2015-02-09  9:29     ` Tassilo Horn
  2015-02-09  9:26   ` Tassilo Horn
  2015-02-16 21:44   ` Rainer Thiel
  2 siblings, 1 reply; 10+ messages in thread
From: Ed C. @ 2015-02-09  4:45 UTC (permalink / raw)
  To: info-gnus-english

Now I'm getting the group name instead of my name or alias in my answer
to Rainer. In my .gnus I have the following:

(setq gnus-posting-styles
 '(
   ((message-news-p)
    (address "btraven@nihilo.net")
    (name "btraven"))
   ((message-mail-p)
    (address "eminmn@sysmatrix.net")
    (name "Ed C.")) ) )

Shouldn't usenet postings show btraven and emails show Ed C?

Ed



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

* Re: Location of .gnus init file
  2015-02-09  3:53 ` Location of .gnus init file Ed C.
  2015-02-09  4:45   ` Ed C.
@ 2015-02-09  9:26   ` Tassilo Horn
  2015-02-16 21:44   ` Rainer Thiel
  2 siblings, 0 replies; 10+ messages in thread
From: Tassilo Horn @ 2015-02-09  9:26 UTC (permalink / raw)
  To: info-gnus-english

eminmn@sysmatrix.net (Ed C.) writes:

> Question: Why does sort not work on articles when thread view is
> toggled off?

There are two separate sorting variables in Gnus, one for threads
(`gnus-thread-sort-functions'), one for articles
(`gnus-article-sort-functions').

Probably, you've only customized the former to your likings.

Bye,
Tassilo



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

* Re: Location of .gnus init file
  2015-02-09  4:45   ` Ed C.
@ 2015-02-09  9:29     ` Tassilo Horn
  0 siblings, 0 replies; 10+ messages in thread
From: Tassilo Horn @ 2015-02-09  9:29 UTC (permalink / raw)
  To: info-gnus-english

eminmn@sysmatrix.net (Ed C.) writes:

> Now I'm getting the group name instead of my name or alias in my
> answer to Rainer.

Yes, this "=> receiver" notation is the default because Gnus thinks that
you know your name and email address and thus it is not interesting to
you.

See the manual:

,----[ (info "(gnus)To From Newsgroups") ]
| 3. The ‘gnus-ignored-from-addresses’ variable says when the ‘%f’
|      summary line spec returns the ‘To’, ‘Newsreader’ or ‘From’ header.
|      If this regexp matches the contents of the ‘From’ header, the value
|      of the ‘To’ or ‘Newsreader’ headers are used instead.
| 
|      To distinguish regular articles from those where the ‘From’ field
|      has been swapped, a string is prefixed to the ‘To’ or ‘Newsgroups’
|      header in the summary line.  By default the string is ‘-> ’ for
|      ‘To’ and ‘=> ’ for ‘Newsgroups’, you can customize these strings
|      with ‘gnus-summary-to-prefix’ and ‘gnus-summary-newsgroup-prefix’.
`----

Bye,
Tassilo


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: Location of .gnus init file
       [not found] ` <mailman.19569.1423474015.1147.info-gnus-english@gnu.org>
@ 2015-02-10  6:49   ` B. T. Raven
  2015-02-10  7:18     ` Tassilo Horn
  2015-02-10  8:33   ` btraven
  1 sibling, 1 reply; 10+ messages in thread
From: B. T. Raven @ 2015-02-10  6:49 UTC (permalink / raw)
  To: info-gnus-english

<mailman.19569.1423474015.1147.info-gnus-english@gnu.org>Tassilo HornMon, 09 Feb
2015 10:26:41 +0100
>
>eminmn@sysmatrix.net (Ed C.) writes:
>
>> Question: Why does sort not work on articles when thread view is
>> toggled off?
>
>There are two separate sorting variables in Gnus, one for threads
>(`gnus-thread-sort-functions'), one for articles
>(`gnus-article-sort-functions').
>
>Probably, you've only customized the former to your likings.
>
>Bye,
>Tassilo
>
>

Thank you, Tassilo. That explains everything except why most recent articles are
non sorted to top of buffer by default.

Ed


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

* Re: Location of .gnus init file
  2015-02-10  6:49   ` B. T. Raven
@ 2015-02-10  7:18     ` Tassilo Horn
  0 siblings, 0 replies; 10+ messages in thread
From: Tassilo Horn @ 2015-02-10  7:18 UTC (permalink / raw)
  To: info-gnus-english

B. T. Raven <btraven@nihil.net> writes:

> Thank you, Tassilo. That explains everything except why most recent
> articles are non sorted to top of buffer by default.

I think the default is to sort by article number.  AFAIK, that
corresponds to the order in which articles arrived at your newsserver
but not to the order in which people wrote and sent their postings
(although the order should at least be pretty similar).  Oh, and I think
by default articles are sorted from old to new, not the other way round.

So probably you'll be happy with

  (setq gnus-article-sort-functions
        '((not gnus-article-sort-by-number)
          (not gnus-article-sort-by-date)))

Bye,
Tassilo



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

* Re: Location of .gnus init file
       [not found] ` <mailman.19569.1423474015.1147.info-gnus-english@gnu.org>
  2015-02-10  6:49   ` B. T. Raven
@ 2015-02-10  8:33   ` btraven
  2015-02-11  7:07     ` Tassilo Horn
  1 sibling, 1 reply; 10+ messages in thread
From: btraven @ 2015-02-10  8:33 UTC (permalink / raw)
  To: info-gnus-english

Tassilo Horn <tsdh@gnu.org> writes:

> eminmn@sysmatrix.net (Ed C.) writes:
>
>> Question: Why does sort not work on articles when thread view is
>> toggled off?
>
> There are two separate sorting variables in Gnus, one for threads
> (`gnus-thread-sort-functions'), one for articles
> (`gnus-article-sort-functions').
>
> Probably, you've only customized the former to your likings.
>
> Bye,
> Tassilo

Okay now I think I know what's going on but I had to move my .gnus out
of gnus-init-file directory because something in it was causing pop3
retrieval of about 11000 kb of something (probably all my news server's
headers each time I invoked gnus. Now in .emacs in custom-set-variabel
paragraph I have this:

....
 '(gnus-article-sort-functions (quote ((not gnus-article-sort-by-date))))
 '(gnus-check-new-newsgroups nil)
 '(gnus-default-directory "c:\\emacs\\gnus")
 '(gnus-directory "c:\\gnus/News/")
 '(gnus-dribble-directory "c:\\emacs\\gnus")
 '(gnus-home-directory "c:\\emacs")
 '(gnus-read-active-file nil)
 '(gnus-save-all-headers nil)
 '(gnus-select-method (quote (nntp "news.newsguy.com")))
 '(gnus-thread-sort-functions (quote ((not gnus-thread-sort-by-date))))
....

I assume I can eventually move all these to my .gnus by stripping tic to
left of open paren and inserting setq to right, correct?

After screwing things up I now have on the last line of *Group* buffer
U   0:*gnu.emacs.gnus in unbolded font. How do I normalize that group
so that it is bolded font and with the number of all messages?


Thanks,

Ed

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

* Re: Location of .gnus init file
  2015-02-10  8:33   ` btraven
@ 2015-02-11  7:07     ` Tassilo Horn
  0 siblings, 0 replies; 10+ messages in thread
From: Tassilo Horn @ 2015-02-11  7:07 UTC (permalink / raw)
  To: info-gnus-english

btraven <btraven@nihilo.net> writes:

> Okay now I think I know what's going on but I had to move my .gnus out
> of gnus-init-file directory because something in it was causing pop3
> retrieval of about 11000 kb of something (probably all my news
> server's headers each time I invoked gnus. Now in .emacs in
> custom-set-variabel paragraph I have this:
>
> ....
>  '(gnus-article-sort-functions (quote ((not gnus-article-sort-by-date))))
>  '(gnus-check-new-newsgroups nil)
>  '(gnus-default-directory "c:\\emacs\\gnus")
>  '(gnus-directory "c:\\gnus/News/")
>  '(gnus-dribble-directory "c:\\emacs\\gnus")
>  '(gnus-home-directory "c:\\emacs")
>  '(gnus-read-active-file nil)
>  '(gnus-save-all-headers nil)
>  '(gnus-select-method (quote (nntp "news.newsguy.com")))
>  '(gnus-thread-sort-functions (quote ((not gnus-thread-sort-by-date))))
> ....
>
> I assume I can eventually move all these to my .gnus by stripping tic
> to left of open paren and inserting setq to right, correct?

No, not all.  The directory `gnus-*-directory' variables have to be set
*before* gnus loads, so these should stay in your ~/.emacs (either in
the customize section or as setqs).  But the others can move to your
~/.gnus.el.

BTW, the docs say that you should always have
`gnus-article-sort-by-number' in your `gnus-article-sort-functions' as a
fallback (first entry).  So you probably want to go with:

  (setq gnus-article-sort-functions
        '((not gnus-article-sort-by-number)
          (not gnus-article-sort-by-date)))

as I've written in my other mail.

> After screwing things up I now have on the last line of *Group* buffer
> U   0:*gnu.emacs.gnus in unbolded font. How do I normalize that group
> so that it is bolded font and with the number of all messages?

Did you try hitting `M-g' on the group?

Bye,
Tassilo



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

* Re: Location of .gnus init file
  2015-02-09  3:53 ` Location of .gnus init file Ed C.
  2015-02-09  4:45   ` Ed C.
  2015-02-09  9:26   ` Tassilo Horn
@ 2015-02-16 21:44   ` Rainer Thiel
  2 siblings, 0 replies; 10+ messages in thread
From: Rainer Thiel @ 2015-02-16 21:44 UTC (permalink / raw)
  To: info-gnus-english

eminmn@sysmatrix.net (Ed C.) writes:

> According to this:
>
> https://www.gnu.org/software/emacs/manual/html_node/eintr/Site_002dwide-Init.html
>
> maybe you should put it in default.el, which .emacs won't overwrite.
> Worth a try.

Thank you, this works perfectly well.  Not that I understand what in my
.emacs overwrites any relevant settings, but for now it is good to have
a way to make it work.

Many thanks again

Rainer
-- 
Prof. Dr. Rainer Thiel
Institut für Altertumswissenschaften
07737 Jena, Germany (EU)
r.thiel@uni-jena.de


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Location of .gnus init file
@ 2015-02-07 22:43 Rainer Thiel
  0 siblings, 0 replies; 10+ messages in thread
From: Rainer Thiel @ 2015-02-07 22:43 UTC (permalink / raw)
  To: info-gnus-english

I am keeping my home directory ~/ synchronized through several machines
and am trying to place the .gnus init file elsewhere than in ~/.  This
works fine when I put

   > (setq gnus-init-file "C:/Emacs-local/.gnus.d/.gnus.el")
   > (setq gnus-directory "C:/Emacs-local/.gnus.d/")
   > (setq gnus-home-directory "C:/Emacs-local/.gnus.d/")
   > (setq gnus-startup-file (concat gnus-home-directory ".newsrc"))

in my .emacs init file.  In this case, emacs/gnus reads .gnus.el from
C:/Emacs-local/.gnus.d/ and writes/reads .newsrc and .newsrc.eld to/from
this very directory, as expected.

So far, so good.  As I'd prefer to configure gnus on a machine-dependent
basis, I tried to put the code cited above in my site-start.el.  This
does not have the desired effect, though.

Can someone please tell me why, and what I could do?

Many thanks in advance

Rainer
-- 
Prof. Dr. Rainer Thiel
Institut für Altertumswissenschaften
07737 Jena, Germany (EU)
r.thiel@uni-jena.de


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

end of thread, other threads:[~2015-02-16 21:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.19522.1423412112.1147.info-gnus-english@gnu.org>
2015-02-09  3:53 ` Location of .gnus init file Ed C.
2015-02-09  4:45   ` Ed C.
2015-02-09  9:29     ` Tassilo Horn
2015-02-09  9:26   ` Tassilo Horn
2015-02-16 21:44   ` Rainer Thiel
     [not found] ` <mailman.19569.1423474015.1147.info-gnus-english@gnu.org>
2015-02-10  6:49   ` B. T. Raven
2015-02-10  7:18     ` Tassilo Horn
2015-02-10  8:33   ` btraven
2015-02-11  7:07     ` Tassilo Horn
2015-02-07 22:43 Rainer Thiel

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