From: Thien-Thi Nguyen <ttn@gnuvola.org>
To: Nordlöw <per.nordlow@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Checking if cursor is inside a comment
Date: Fri, 18 Jul 2008 10:59:22 +0200 [thread overview]
Message-ID: <87bq0vk1p1.fsf@ambire.localdomain> (raw)
In-Reply-To: <2b227bd6-aceb-4298-8c25-ddaa25f9dcc1@j1g2000prb.googlegroups.com> ("Nordlöw"'s message of "Fri, 18 Jul 2008 00:10:38 -0700 (PDT)")
() Nordlöw <per.nordlow@gmail.com>
() Fri, 18 Jul 2008 00:10:38 -0700 (PDT)
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?
Perhaps you can use `hs-inside-comment-p', which would require you to
enable/configure hideshow (not difficult, but not "out of the box").
What is the most clever way of doing this?
It depends on how you conceptualize "clever".
thi
next prev parent reply other threads:[~2008-07-18 8:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-18 7:10 Checking if cursor is inside a comment Nordlöw
2008-07-18 8:59 ` Thien-Thi Nguyen [this message]
2008-07-18 19:06 ` Johan Bockgård
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bq0vk1p1.fsf@ambire.localdomain \
--to=ttn@gnuvola.org \
--cc=help-gnu-emacs@gnu.org \
--cc=per.nordlow@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.