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

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

bug#32365: Interactive Highlighting: prefix arg as subexp selector


From: Grégory Mounié
Subject: bug#32365: Interactive Highlighting: prefix arg as subexp selector
Date: Fri, 3 Aug 2018 23:50:47 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0


 Dear Maintainers,

 I propose to use the prefix argument in Interactive Highlighting.
 (the interactive function highlight-regexp)

 Without prefix all should stay identical.

The numeric argument give the subexpression number of the regexp that is highlighted by font_lock or overlay.

 This allows to highlight

  - the 80th char of every line  C-u 1 M-s h r  and regexp ^.\{79\}\(.\)

- the 6th column of a clean CSV file C-u 1 M-s h r and regexp ^\(?:[^,]*,\)\{5\}\([^,]*\),

(clean CSV == with enough coma as you get multi-line matching with this regexp)

 I am not fluent with interactive stuff.
 I am not sure either how to treat errors.

 Have a nice day.
 Grégory Mounié


PS: Sorry for generating noise with my previous patch (BUG: 32362)

Attachment: 0001-Interactive-Highlighting-prefix-argument-to-select-s.patch
Description: Text Data


reply via email to

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