From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steve Chow Newsgroups: gmane.emacs.help Subject: execute after char/string Date: Thu, 27 Nov 2008 12:19:19 -0800 (PST) Organization: http://groups.google.com Message-ID: <9dddf442-089c-495a-af1c-072cc80ad2b0@n33g2000pri.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1227825727 10696 80.91.229.12 (27 Nov 2008 22:42:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Nov 2008 22:42:07 +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 23:43:12 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 1L5pZk-00082q-9K for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Nov 2008 23:43:08 +0100 Original-Received: from localhost ([127.0.0.1]:57246 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L5pYa-0005gD-MB for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Nov 2008 17:41:56 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!n33g2000pri.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 4 Original-NNTP-Posting-Host: 24.84.172.92 Original-X-Trace: posting.google.com 1227817160 18018 127.0.0.1 (27 Nov 2008 20:19:20 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 27 Nov 2008 20:19:20 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: n33g2000pri.googlegroups.com; posting-host=24.84.172.92; posting-account=URymuwoAAACLkm8nQSiGLGbOK3dtrKIe User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.4) Gecko/2008111922 Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008100320 ,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:164834 X-Mailman-Approved-At: Thu, 27 Nov 2008 17:41:37 -0500 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:60166 Archived-At: 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.