help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checking if cursor is inside a comment


From: Johan Bockgård
Subject: Re: Checking if cursor is inside a comment
Date: Fri, 18 Jul 2008 21:06:20 +0200
User-agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux)

Nordlöw <per.nordlow@gmail.com> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]