emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "M-x locate" regression


From: Luc Teirlinck
Subject: Re: "M-x locate" regression
Date: Mon, 7 Nov 2005 00:09:52 -0600 (CST)

The following small patch to dired.el seems to fix both the locate and
the find{-grep}-dired problems you reported.  I will still do some
further checking.  Maybe there are better solutions than the one below
(but the one below does seem to work).

===File ~/dired.el-diff=====================================
*** dired.el    23 Oct 2005 10:06:08 -0500      1.329
--- dired.el    06 Nov 2005 22:29:27 -0600      
***************
*** 2403,2408 ****
--- 2403,2410 ----
                      ;; if we get here, removing worked
                      (setq succ (1+ succ))
                      (message "%s of %s deletions" succ count)
+                     (delete-region (progn (beginning-of-line) (point))
+                                    (progn (forward-line 1) (point)))
                      (dired-fun-in-all-buffers
                       (file-name-directory fn) (file-name-nondirectory fn)
                       (function dired-delete-entry) fn))
============================================================




reply via email to

[Prev in Thread] Current Thread [Next in Thread]