From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: SameerDS Newsgroups: gmane.emacs.help Subject: Re: inserting code based on syntactic information in cc-mode Date: Mon, 23 Nov 2009 03:03:59 -0800 (PST) Organization: http://groups.google.com Message-ID: <8fea3c3e-d6a5-4c74-803a-c1a27d6fd984@u18g2000pro.googlegroups.com> References: <877hthed3h.fsf@galatea.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1259102213 25775 80.91.229.12 (24 Nov 2009 22:36:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Nov 2009 22:36:53 +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 Nov 24 23:36:47 2009 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 1ND406-0002Hq-Gc for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Nov 2009 23:36:46 +0100 Original-Received: from localhost ([127.0.0.1]:51636 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ND406-0000kM-6G for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Nov 2009 17:36:46 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!u18g2000pro.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: 59.162.23.19 Original-X-Trace: posting.google.com 1258974239 32699 127.0.0.1 (23 Nov 2009 11:03:59 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 23 Nov 2009 11:03:59 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: u18g2000pro.googlegroups.com; posting-host=59.162.23.19; posting-account=9lo_eQoAAACfsIyHE_E4yJ4DVkC1bdwh User-Agent: G2/1.0 X-HTTP-Via: 1.1 netmon.iitb.ac.in (squid/3.0.STABLE20) X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20091109 Ubuntu/9.04 (jaunty) Shiretoko/3.5.5, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:174973 X-Mailman-Approved-At: Tue, 24 Nov 2009 17:34:16 -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:70100 Archived-At: On Nov 23, 3:42=A0pm, p...@informatimago.com (Pascal J. Bourguignon) wrote: > > Type: C-h f c-show-syntactic-information RET > then: C-x o TAB RET > > Read the source, and learn what lisp function is called to get the syntax= . ** snip ** > so you could define your own wrapper function: I didn't know one can reach the source this way. Will have to go through the code to be really sure I know what I am doing, though! -- Sameer. http://sameer.sbuddhe.net/