<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12px"><div id="yui_3_16_0_ym19_1_1463063865778_3061"><br></div><div id="yui_3_16_0_ym19_1_1463063865778_3061">Hello,</div><div id="yui_3_16_0_ym19_1_1463063865778_3061"><br></div><div id="yui_3_16_0_ym19_1_1463063865778_3061" dir="ltr">I am a somewhat experienced Vim user that jumped the Emacs Evil bandwagon - still learning the ropes (emacs, elisp, evil).</div><div id="yui_3_16_0_ym19_1_1463063865778_3061" dir="ltr">First, I'd like to offer my thanks to the authors for this beautiful emacs plugin that is called evil - it is a great plugin!</div><div id="yui_3_16_0_ym19_1_1463063865778_3061" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1463063865778_3061" dir="ltr">Now, to the question: is there any implementation for *generic* comment text-objects ("ic", "ac") ? I mean, something that can deal with comments such as multi-line blocks in C, that can also have " *" &nbsp;at the beginning of intermediate lines, and can even select the block of text "inside" such comment blocks (without end, skip or intermediate delimiters).</div><div id="yui_3_16_0_ym19_1_1463063865778_3061" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1463063865778_3061" dir="ltr">&nbsp;- I searched this mailing list and the only mention to something like this was in 2011, but those functions are no more available in Evil, and there was also a reply indicating that it didn't work too good anyway.</div><div id="yui_3_16_0_ym19_1_1463063865778_3061" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1463063865778_3061" dir="ltr">- One method, based on syntax, is available using 'smartparens' with the 'evil-cleverparens' plugin, but - with C multiblocks, it fails to stop before the comment-end separator.</div><div id="yui_3_16_0_ym19_1_1463063865778_3061" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1463063865778_3061" dir="ltr">- I also tried to define such a text-object, looking through Evil's source code, by using the defined "evil-comment" *thing* with "evil-select-inner-object" (or similar, I'm don't have an Emacs at hand), but in my tests, the inner version selected the comments including separators, while the 'an-object' version had errors such as "don't know how to compute bounds" or something like that.</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463063865778_3542"><br id="yui_3_16_0_ym19_1_1463063865778_3543"></div><div id="yui_3_16_0_ym19_1_1463063865778_3061" dir="ltr">I did "some" digging and found out that one can use syntax, font-locking *and* (or) `newcomment.el` (comment-start, comment-end etc. ...) as methods of searching for comment bounds.&nbsp;</div><div id="yui_3_16_0_ym19_1_1463063865778_3061" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1463063865778_3061" dir="ltr">So, to put the question more clearly: is there anybody working on this (or a more general framework, for more "things", not only comments), but something that deals with the above methods (syntax, newcomment.el, font-locking) in the most generic (i.e., in my book, the most reliable) way?</div><div id="yui_3_16_0_ym19_1_1463063865778_3061" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1463063865778_3061" dir="ltr">Thanks,</div><div id="yui_3_16_0_ym19_1_1463063865778_3061" dir="ltr">Laser</div><div id="yui_3_16_0_ym19_1_1463063865778_3061" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1463063865778_3061" dir="ltr"><br></div></div></body></html>