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: execute after char/string Date: Thu, 27 Nov 2008 15:31:22 -0500 Organization: A noiseless patient Spider Message-ID: References: <9dddf442-089c-495a-af1c-072cc80ad2b0@n33g2000pri.googlegroups.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1227818491 23290 80.91.229.12 (27 Nov 2008 20:41:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Nov 2008 20:41:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 27 21:42:33 2008 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 1L5ngy-0003NT-7a for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Nov 2008 21:42:28 +0100 Original-Received: from localhost ([127.0.0.1]:47279 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L5nfo-00069S-J8 for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Nov 2008 15:41:16 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder.erje.net!news.motzarella.org!motzarella.org!news.motzarella.org!barmar Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-X-Trace: news.motzarella.org U2FsdGVkX18z96swR1oa4OTUJtECmag+V40kKquno+LLecDxQQXpwA5Ws10Z0Wvjnk57n+4AhVDPk8AKBF0mfqG4CFr4aJp9J9xBaCYHjFVZEF2hjU+W2C8HuFgkM5zH75MRGKe9M9I= Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Thu, 27 Nov 2008 20:31:22 +0000 (UTC) X-Auth-Sender: U2FsdGVkX19pF6dBEIWsxUM8/w6M2OgjBoCvOILzcsg= Cancel-Lock: sha1:fYB9ZigUl83QXPIfRIyDTq7r17Y= User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Mail-Copies-To: nobody Original-Xref: news.stanford.edu gnu.emacs.help:164835 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:60163 Archived-At: In article <9dddf442-089c-495a-af1c-072cc80ad2b0@n33g2000pri.googlegroups.com>, Steve Chow wrote: > is there a way I can execute a function/macro after I've inserted a > character or string? In this case I'd like execute a function after > typing . or -> in c-mode. I tried using global-set-key but then of > course it won't let me enter those characters into the buffer. See after-change-functions. -- 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 ***