From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.help Subject: Re: A true challenge for Emac and Elisp hackers - at Least I think so Date: 12 Oct 2005 19:13:44 +0300 Organization: SunSITE.dk - Supporting Open source Message-ID: <86u0fmemrr.fsf@flame.pc> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1129134173 21170 80.91.229.2 (12 Oct 2005 16:22:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 Oct 2005 16:22:53 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 12 18:22:46 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EPjLL-0005LG-2m for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Oct 2005 18:20:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EPjLK-0004Gu-9X for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Oct 2005 12:20:38 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news.code-werk.net!open-news-network.org!koehntopp.de!news.banetele.no!dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Lines: 18 Original-NNTP-Posting-Host: 62.103.39.226 Original-X-Trace: news.sunsite.dk DXC=d^En4>d8eY?4KInHL^Mj72:ak; I7eU]76nT6d; jI9i?Ll4]38MZ; m< Original-X-Complaints-To: staff@sunsite.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:134593 Original-To: help-gnu-emacs@gnu.org 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:30174 Archived-At: Slawomir Nowaczyk writes: > On Wed, 12 Oct 2005 15:29:54 +0200 > Matthieu Moy wrote: > #> Slawomir Nowaczyk writes: > #> > #> > 2) Write a function which does what you want and bind it to RET key > #> > *) the function should check if buffer name ends with *.c > #> > #> Better: bind this function only in c-mode and c++-mode. No test needed > #> in the command itself. > > Well, my system reports c++-mode for *.h files as well. Original > poster specifically asked the function to apply to *.c files only. That was probably a mis-statement of the original poster's intent, since it's not unheard of to have macros with real C or C++ code in header files too :)