From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.help Subject: Re: Overriding self-insert-command doesn't work Date: Mon, 12 Mar 2007 20:30:09 +0100 Organization: disorganized Message-ID: <87hcsquuny.fsf@localhorst.mine.nu> References: <1173545783.896059.199250@j27g2000cwj.googlegroups.com> <1173720205.260602.147770@q40g2000cwq.googlegroups.com> <1173724258.067960.37960@s48g2000cws.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1173728349 24253 80.91.229.12 (12 Mar 2007 19:39:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Mar 2007 19:39:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 12 20:38:57 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HQqM9-0003CX-An for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Mar 2007 20:38:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HQqMp-0007DL-Ul for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Mar 2007 14:39:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HQqMc-0007DG-1e for help-gnu-emacs@gnu.org; Mon, 12 Mar 2007 15:39:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HQqMZ-0007D4-NK for help-gnu-emacs@gnu.org; Mon, 12 Mar 2007 15:39:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HQqMZ-0007D1-Ha for help-gnu-emacs@gnu.org; Mon, 12 Mar 2007 14:39:19 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HQqLs-0004Qu-6V for help-gnu-emacs@gnu.org; Mon, 12 Mar 2007 15:38:36 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HQqLc-0008NA-Dr for help-gnu-emacs@gnu.org; Mon, 12 Mar 2007 20:38:20 +0100 Original-Received: from e178038007.adsl.alicedsl.de ([85.178.38.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Mar 2007 20:38:20 +0100 Original-Received: from david.hansen by e178038007.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Mar 2007 20:38:20 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 13 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: e178038007.adsl.alicedsl.de Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) Cancel-Lock: sha1:x3Ibu33FtyP1bMOMgT13nZ85Zo0= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41908 Archived-At: On 12 Mar 2007 11:30:58 -0700 "spamfilteraccount@gmail.com" wrote: > > I mean if you know ways other than advising to change the definition > of self-insert-command transpararently then I'm all ears. I don't know what you wanna do but maybe: (define-key map [remap self-insert-command] #'my-version-of-self-insert) or add some function to `after-change-functions'. The first one requires emacs 22 (AFAIK). David