Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Re: disable C-u g but not g in group buffer
       [not found] <87k7gpll9a.fsf@jidanni.org>
@ 2003-01-28 11:48 ` Reiner Steib
  0 siblings, 0 replies; only message in thread
From: Reiner Steib @ 2003-01-28 11:48 UTC (permalink / raw)


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/


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-28 11:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <87k7gpll9a.fsf@jidanni.org>
2003-01-28 11:48 ` disable C-u g but not g in group buffer Reiner Steib

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