From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: Re: define-key .. whats wrong here? Date: Thu, 26 Jun 2003 18:01:17 -0700 Organization: Still searching... Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1056676037 26075 80.91.224.249 (27 Jun 2003 01:07:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 27 Jun 2003 01:07:17 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 27 03:07:14 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Vhhq-0006mC-00 for ; Fri, 27 Jun 2003 03:07:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Vhdx-0008FN-SR for gnu-help-gnu-emacs@m.gmane.org; Thu, 26 Jun 2003 21:03:13 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19VhdU-0007UA-QQ for help-gnu-emacs@gnu.org; Thu, 26 Jun 2003 21:02:44 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19Vhd3-0006O5-II for help-gnu-emacs@gnu.org; Thu, 26 Jun 2003 21:02:18 -0400 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Vhcp-0005aP-Np for help-gnu-emacs@gnu.org; Thu, 26 Jun 2003 21:02:03 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19Vhc2-00061K-00 for ; Fri, 27 Jun 2003 03:01:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19Vhbo-0005yL-00 for ; Fri, 27 Jun 2003 03:01:00 +0200 Original-Lines: 21 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:PB+R7bDYXveZ68PH1kYHF9JC4tU= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11263 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11263 Harry Putnam writes: >>>From .gnus.el > (fset 'delall > [?M ?P ?b ?B backspace ?y]) > (define-key gnus-summary-mode-map "D" 'delall) > > (fset 'sendto_spam1 > [?M ?P ?b ?B ?m ?\C-a ?\C-k ?n ?n ?m ?l ?: ?s ?p ?a ?m ?1 return]) > (define-key gnus-summary-mode-map "\C-ss" 'send2_spam1) Looked like it might just be a stupid naming error sendto != send2 But I cleaned that up by redoing the macro renaming and reinserting in .gnus.el. Then a full restart. Still pressing C-h k C-c s In summary mode shows that emacs doesn't know about this keyboard definition However C-h w sendto_spam1 is known and reports the key binding as C-c s. Also M-x sendto_spam1 runs the macro.