unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Thien-Thi Nguyen <ttn@gnu.org>
To: Marcin Borkowski <mbork@mbork.pl>
Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: How to check whether the current line is a comment-only one?
Date: Thu, 18 Aug 2016 16:43:50 +0200	[thread overview]
Message-ID: <8760qyf87t.fsf@zigzag.favinet> (raw)
In-Reply-To: <87vayyppop.fsf@mbork.pl> (Marcin Borkowski's message of "Thu, 18 Aug 2016 08:16:22 +0200")

[-- Attachment #1: Type: text/plain, Size: 668 bytes --]

() Marcin Borkowski <mbork@mbork.pl>
() Thu, 18 Aug 2016 08:16:22 +0200

   predicate function to determine whether the line the point is
   in is entirely a comment line?  I'd prefer this function to
   work in various modes (for Elisp mode, it's trivial; for C,
   less so).

Aside from the other suggestions, see also ‘hs-inside-comment-p’
(from hideshow.el).

-- 
Thien-Thi Nguyen -----------------------------------------------
 (defun responsep (type via)
   (case type
     (technical (eq 'mailing-list via))
     ...))                              748E A0E8 1CB8 A748 9BFA
--------------------------------------- 6CE4 6703 2224 4C80 7502

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

      parent reply	other threads:[~2016-08-18 14:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-18  6:16 How to check whether the current line is a comment-only one? Marcin Borkowski
2016-08-18  7:44 ` Stefan Monnier
2016-08-18 14:11   ` Marcin Borkowski
2016-08-18 11:39 ` Kaushal Modi
2016-08-18 14:09   ` Marcin Borkowski
2016-08-18 14:43 ` Thien-Thi Nguyen [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8760qyf87t.fsf@zigzag.favinet \
    --to=ttn@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    --cc=mbork@mbork.pl \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).