Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
To: info-gnus-english@gnu.org
Subject: Re: gnous-group feature and eval-after-load
Date: Wed, 09 May 2007 20:14:15 +0200	[thread overview]
Message-ID: <v9d519j24o.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <87bqgus9z5.fsf@moley.org>

On Wed, May 09 2007, Sebastian Tennant wrote:

> Hi Gnus folk,
>
> I have the following in my .gnus:
>
>   (eval-after-load 'gnus-group
>     (progn
>       (define-key gnus-group-mode-map "q" 'bury-buffer)
>       (define-key gnus-group-mode-map "Q" 'gnus-group-exit)
>       ...
>       ))

Since you can't use Gnus without loading gnus-group.elc, there's no
point in using eval-after-load.  I'd suggest...

(require 'gnus-group)
(define-key gnus-group-mode-map "q" 'bury-buffer)
(define-key gnus-group-mode-map "Q" 'gnus-group-exit)

> However, the above key bindings only come into effect the _second_
> time I load gnus in an emacs session...
>
> Any ideas why?

I don't know.  I'd suggest to add
  (message "in eval-after-load gnus-group")
and look into the *Messages* buffer.

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

      reply	other threads:[~2007-05-09 18:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-09  7:59 Sebastian Tennant
2007-05-09 18:14 ` Reiner Steib [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v9d519j24o.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).