[bug #58197] "find" fails to optimize "-path /usr/foo -o -path /usr/bar" to "-regex '/usr/\(foo\|bar\)'"

2023-07-21 Thread Spencer Baugh
Follow-up Comment #5, bug #58197 (project findutils): regex-opt only works for fixed strings. If you have further Emacs-specific ideas you can reply to https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64735 let's try to keep this thread for strategies that would work for any find user.

[bug #58197] "find" fails to optimize "-path /usr/foo -o -path /usr/bar" to "-regex '/usr/\(foo\|bar\)'"

2023-07-21 Thread James Youngman
Follow-up Comment #4, bug #58197 (project findutils): I think for rgrep the most obvious improvement is to use the existing Emacs LISP function regex-opt on the list of extensions to generate a more efficient find command-line. ___ Reply