From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "spamfilteraccount@gmail.com" Newsgroups: gmane.emacs.help Subject: Re: Overriding self-insert-command doesn't work Date: 12 Mar 2007 11:30:58 -0700 Organization: http://groups.google.com Message-ID: <1173724258.067960.37960@s48g2000cws.googlegroups.com> References: <1173545783.896059.199250@j27g2000cwj.googlegroups.com> <1173720205.260602.147770@q40g2000cwq.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1173724800 9297 80.91.229.12 (12 Mar 2007 18:40:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Mar 2007 18:40:00 +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 19:39:54 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 1HQpR0-0000lN-Lj for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Mar 2007 19:39:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HQpRg-0000rL-W7 for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Mar 2007 13:40:33 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!s48g2000cws.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: 81.183.147.79 Original-X-Trace: posting.google.com 1173724280 22369 127.0.0.1 (12 Mar 2007 18:31:20 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 12 Mar 2007 18:31:20 +0000 (UTC) In-Reply-To: <1173720205.260602.147770@q40g2000cwq.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.10 (Windows NT 5.1; U; en),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: s48g2000cws.googlegroups.com; posting-host=81.183.147.79; posting-account=b98TkQ0AAAD7PsllN8gfWGRoPOPWdnv4 Original-Xref: shelby.stanford.edu gnu.emacs.help:146303 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:41907 Archived-At: On Mar 12, 6:23 pm, "Robert Thorpe" wrote: > > The command "self-insert-command" is inbuilt to Emacs. It is part of > the static binary executable and is called directly by other parts of > that executable. Changing it cannot change this version. That's not very nice, is it? Regardless of whether it's built-in, implemented in C, it should behave as a proper lisp symbol. I don't see why built-in functions should have to call the internal implementation of self-insert-command directly rather than invoking the function in the symbol's function slot. Isn't it a bug? > > I know about advising, so please don't recommend other ways to > > accomplish this. > > OK. I mean if you know ways other than advising to change the definition of self-insert-command transpararently then I'm all ears.