GNU bug report logs -
#4727
23.1; `multi-isearch-(files|buffers)(-regexp)'
Previous Next
Full log
View this message in rfc822 format
> 1. The doc strings of `multi-isearch-files(-regexp)' need to say that
> each of the FILES elements must be an absolute file name. I was trying
> to make it work with relative names, and I wasted a lot of time
> debugging. It was only when the debugger finally got to comparing
> `buffer-file-name' with the FILES element that I saw the problem.
>
> 2. Why not let these functions accept either absolute or relative file
> names? If relative, they should be interpreted relative to
> `default-directory'.
Using relative file names will make these functions unreliable and
non-deterministic. For instance, when you create a list of file names
in subdirectories relative to the current directory '("./dir1/file1"
"./dir2/file2") and multi-isearch visits file1 in the first subdir dir1,
then going to the next file "./dir2/file2" relative to the base dir
will fail in dir1.
However, we could convert relative file names to internal absolute
file names before starting multi-file Isearch. So you will be able
to specify file names relative to the default directory where
multi-file Isearch was started.
> 3. Similarly, for `multi-isearch-buffers(-regexp)':
>
> a. The doc strings need to say explicitly that the BUFFERS must be
> live buffers, not their names.
>
> b. Why should the BUFFERS need to be buffers - why not also allow
> buffer names?
>
> The code is unnecessarily restrictive/brittle.
Similarly, we could convert buffer names to internal live buffers
before starting multi-buffer Isearch.
--
Juri Linkov
http://www.jurta.org/emacs/
This bug report was last modified 15 years and 236 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.