bug#81530: Problems with both replace-match and substring
Sean Whitton <[email protected]> Mon, 03 Aug 2026 17:06:59 +0100
| Newsgroups | gmane.emacs.bugs |
|---|---|
| Message-ID | <[email protected]> |
Sean MacLennan [01/Aug 1:46am -04] wrote: > I am having problems with a function to pretty print filenames. It > basically just removes the current directory, or removes the home > directory if it can. > > It works great in testing, but does not work in place. I have tried > with a fairly new (updated Thursday) 32.0.50 and the stock 29.3 from > Ubuntu. And, yes, I tried -Q in both cases. > > I have attached a test program and a sample text file in the correct > format. Put the sample file somewhere in a directory under your home > directory. The program massages the file to produce something that will > work for your setup. > > If I run it with out-of-place, it works. I have two examples in the > program. But if I run it as part of the "real" code, it gives me an > `Args out of range: 0,10`, which is the length of my home directory. > > The code shows substring, I also tried replace-match. I have no idea > what I am doing wrong. I am not doing anything complex. Really just > converting a coverity output file into something that works with > `next-error`. > > You can set do-pretty to nil if you want to see that it works without > the pretty-print-fname function. > > If you need any more information or want me to try something I can. What is the claimed bug? -- Sean Whitton