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

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

Re: How to check whether the current line is a comment-only one?


From: Thien-Thi Nguyen
Subject: Re: How to check whether the current line is a comment-only one?
Date: Thu, 18 Aug 2016 16:43:50 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

() Marcin Borkowski <address@hidden>
() 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: signature.asc
Description: PGP signature


reply via email to

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