find-dired.el
Luc Teirlinck <teirllm <at> dms.auburn.edu>
2004-06-01 02:43:10 GMT
Below is the latest version of my patch to find-dired.el. It needs
the patch to dired-aux.el, that I will send somewhat later, to
function properly.
One remaining problem with *Locate* and *Find* buffers is that if one
does `l' _on the very first line_, the directory will update in a
way that makes sense for Dired, but not for *Locate* or *Find*
buffers. The effect can easily be undone using dired-undo, usually
bound to C-_ and C-x u. Everything continues to work after that.
Doing `l' on the main directory is not a very usual thing to do.
After my patch to dired-aux, `l' and `C-u l' seem to work perfectly
on subdirectories. The "l in the first line problem" already occurred
prior to my patch for *Locate* buffers. It did not occur for *Find*
buffers, but the only reason for that is that neither `i' nor `l'
worked at all for *Find* buffers due to a bug I fixed.
The only solution around the "l on the first line problem" seems to be
to define separate `locate-do-redisplay' and `find-dired-do-redisplay'
functions, whose only difference with `dired-do-redisplay' would be
that they throw an error on the first line. I do not believe that is
worth the trouble, since an inadvertent `l' on the first line, can
easily be undone with dired-undo.
===File ~/find-dired-diff===================================
diff -c /home/teirllm/stored/find-dired.old.el /home/teirllm/emacscvsdir/emacs/lisp/find-dired.el
*** /home/teirllm/stored/find-dired.old.el Sat May 29 15:55:43 2004
--- /home/teirllm/emacscvsdir/emacs/lisp/find-dired.el Fri May 28 11:38:32 2004
***************
*** 54,59 ****
--- 54,67 ----
(Continue reading)