GNU bug report logs - #32365
Interactive Highlighting: prefix arg as subexp selector

Previous Next

Package: emacs;

Reported by: Grégory Mounié <Gregory.Mounie <at> imag.fr>

Date: Fri, 3 Aug 2018 21:52:02 UTC

Severity: wishlist

Tags: fixed, patch

Merged with 32362

Fixed in version 27.1

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Grégory Mounié <Gregory.Mounie <at> imag.fr>
To: 32365 <at> debbugs.gnu.org
Subject: bug#32365: Interactive Highlighting: prefix arg as subexp selector
Date: Fri, 3 Aug 2018 23:50:47 +0200
[Message part 1 (text/plain, inline)]
 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)
[0001-Interactive-Highlighting-prefix-argument-to-select-s.patch (text/x-patch, attachment)]

This bug report was last modified 6 years and 281 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.