From: Reiner Steib <4uce.02.r.steib@gmx.net>
Subject: Re: disable C-u g but not g in group buffer
Date: Tue, 28 Jan 2003 12:48:19 +0100 [thread overview]
Message-ID: <v9d6mh8ph8.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <87k7gpll9a.fsf@jidanni.org>
On Tue, Jan 28 2003, Dan Jacobson wrote:
> Well, as I often accidentally hit C-u g when meaning to hit C-u RET,
> I need to disable C-u g, but not g. How shall I do this. If I
> accidentally type C-u g my computer goes nuts.
--8<---------------cut here---------------start------------->8---
(defun rs-gnus-group-get-new-news (&optional arg)
"Get newly arrived articles.
If ARG is a number, it specifies which levels you are interested in
re-scanning. If ARG is non-nil and not a number, this will force
\"hard\" re-reading of the active files from all servers.
Like `gnus-group-get-new-news' but require confirmation for re-reading active
files."
(interactive "P")
(when (or (not arg)
(numberp arg)
(y-or-n-p
"Really re-reading of the active files from all servers? "))
(gnus-group-get-new-news arg)))
(define-key gnus-group-mode-map [(g)] 'rs-gnus-group-get-new-news)
--8<---------------cut here---------------end--------------->8---
I guess the same could be done with defadvice, but I'm not too
familiar with this.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- PGP key available via WWW http://rsteib.home.pages.de/
parent reply other threads:[~2003-01-28 11:48 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <87k7gpll9a.fsf@jidanni.org>]
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=v9d6mh8ph8.fsf@marauder.physik.uni-ulm.de \
--to=4uce.02.r.steib@gmx.net \
--cc=reiner.steib@gmx.de \
/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).