From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/1993 Path: news.gmane.org!not-for-mail From: Reiner Steib <4uce.02.r.steib@gmx.net> Newsgroups: gmane.emacs.gnus.user Subject: Re: disable C-u g but not g in group buffer Date: Tue, 28 Jan 2003 12:48:19 +0100 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: <87k7gpll9a.fsf@jidanni.org> Reply-To: reiner.steib@gmx.de NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138668583 13465 80.91.229.2 (31 Jan 2006 00:49:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:49:43 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:30:01 2006 Original-Newsgroups: gnu.emacs.gnus X-Face: /U7=m^"/-Dn61mAl{g9e3>\G5Tp,oEX|V)g2I1hBk\ML;)7A?6cmB-y7y?'NA^J<=oz7syB =(McAwIHgLX!.B?R3X}98d@?>CrT094KLWh]WU4gDpnL/")MS(XoQTv`Oq225uL>+;CpPXo$N5e>N> $tPd-gbB^F{gQS#1ase]XO~D4p4M"3+F-7~u]dy3I?Pb8RO*H-EFeWDUf?Rf,d]pv\Jvh2Cht!A=im yKAS2Z%Ao^;}W/qzMvMm Mail-Copies-To: nobody User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.1 (i386-suse-linux) Cancel-Lock: sha1:AR93wACtn+dyZZaww4D7M9JTdU4= Original-NNTP-Posting-Host: theotp5.physik.uni-ulm.de Original-X-Trace: news.uni-ulm.de 1043756612 theotp5.physik.uni-ulm.de (28 Jan 2003 13:23:32 +0100) Original-Path: quimby.gnus.org!newsfeed1.e.nsc.no!nsc.no!nextra.com!uio.no!feed.news.nacamar.de!news.belwue.de!news.uni-ulm.de!theotp5.physik.uni-ulm.de!not-for-mail Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:2133 Original-Lines: 32 X-Gnus-Article-Number: 2133 Tue Jan 17 17:30:01 2006 Xref: news.gmane.org gmane.emacs.gnus.user:1993 Archived-At: 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/