From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.help Subject: Re: Checking if cursor is inside a comment Date: Fri, 18 Jul 2008 21:06:20 +0200 Message-ID: References: <2b227bd6-aceb-4298-8c25-ddaa25f9dcc1@j1g2000prb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1216410051 3340 80.91.229.12 (18 Jul 2008 19:40:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Jul 2008 19:40:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 18 21:41:39 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 1KJvpd-0002e1-Fn for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Jul 2008 21:41:33 +0200 Original-Received: from localhost ([127.0.0.1]:44702 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJvok-0002MV-PB for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Jul 2008 15:40:38 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder.erje.net!feeder2.news.saunalahti.fi!newsfeed2.funet.fi!newsfeed3.funet.fi!newsfeed1.funet.fi!newsfeeds.funet.fi!uio.no!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 10 Original-NNTP-Posting-Host: remote5.student.chalmers.se Original-X-Trace: quimby.gnus.org 1216408002 12612 129.16.29.83 (18 Jul 2008 19:06:42 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Fri, 18 Jul 2008 19:06:42 +0000 (UTC) Mail-Copies-To: never User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:IOi4f35emETCb7mfei8NlCu3Whs= Original-Xref: news.stanford.edu gnu.emacs.help:160360 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:55708 Archived-At: Nordlöw writes: > Is there a general or mode-specific (c-mode for my application) way of > checking whether the cursor is currently placed inside a comment or > not? (nth 4 (syntax-ppss)) -- Johan Bockgård