From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: Overriding self-insert-command doesn't work Date: Mon, 12 Mar 2007 21:25:40 -0400 Organization: Symantec Message-ID: 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 X-Trace: sea.gmane.org 1173750002 18936 80.91.229.12 (13 Mar 2007 01:40:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Mar 2007 01:40:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 13 02: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 1HQvzV-00052o-JO for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Mar 2007 02:39:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HQw0D-00012c-OV for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Mar 2007 20:40:37 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Mon, 12 Mar 2007 20:25:40 -0500 Original-Newsgroups: gnu.emacs.help Mail-Copies-To: nobody User-Agent: MT-NewsWatcher/3.5.2 (PPC Mac OS X) X-Copies-To: never Original-Lines: 28 Original-NNTP-Posting-Host: 24.34.108.171 Original-X-Trace: sv3-pKZ72Cq/OHcYGPHo/uR132BC4+UJ8tvumat4CcjiV3pyp4BkXhrM9gKOWXyT7RGwxjEKBMK6MP0UD01!9gLgJ5fp/w5Gof7YN+ycVuw1gzQxJD7EiAVGyYWHUrfa9X1srwwaj65e7qbKw7zIMIINBzHgRe+G!gQNPOYAtBO0oGpZy++qLFGSTesZcFVvgDgoOIgbeLQ== Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.34 Original-Xref: shelby.stanford.edu gnu.emacs.help:146309 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:41913 Archived-At: In article <1173724258.067960.37960@s48g2000cws.googlegroups.com>, "spamfilteraccount@gmail.com" wrote: > 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? When C functions call other C functions they use the normal C linker, they don't go through the Lisp interpreter. It would be possible for them to do this, but it would require extra coding and would probably have performance implications. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me *** *** PLEASE don't copy me on replies, I'll read them in the group ***