GNU bug report logs -
#22694
25.0.91; dired-mark-files-containing-regexp read file disk
Previous Next
Reported by: Tino Calancha <f92capac <at> gmail.com>
Date: Tue, 16 Feb 2016 12:45:02 UTC
Severity: wishlist
Found in version 25.0.91
Done: Tino Calancha <f92capac <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Let me argue more about why i found more useful if we change the current
behaviour:
Let's suppose the following case:
1) An user submit several hundred of jobs to a batch server.
2) The output consist of just log files (1 per job) which are written
under the submission directory until the jobs succeded of fail.
When the job fails, the logfile contains the word 'aborting'.
3) To resubmit the failed jobs, the user may put all logfiles together in a
dired buffer using `find-name-dired'. From time to time, he/she call
`dired-mark-files-containing-regexp' using 'aborting' as regexp: from this,
he/she obtain directly the list of failed jobs...
4) ...But if the user has opened some of the logfiles from failed jobs, the word
'aborting' may not be in the buffer (the user need to revert it first), so the
list of failed jobs at 3) will not be exhaustive. This behaviour is not
consistent with the doc. string of the function:
"Mark all files with contents containing REGEXP for use in later commands.
A prefix argument means to unmark them instead.
`.' and `..' are never marked."
- As mentioned in 4) this function may not mark all files containing
REGEXP and this is not obvious unless you read the source code.
- Just from the doc. string i would expect this function behaves as in
the patch within this thread.
- Using the buffer when available seems like an optimization but
in fact it's not because it may produce different results.
I suggest in order of preference:
A) Apply the patch in this thread: then, the funcion behaves as described in the doc. string.
B) Modify the doc. string to account for the case when there are buffers visiting the files.
This bug report was last modified 9 years and 15 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.