]> git.eshelyaron.com Git - emacs.git/commitdiff
Prevent infinite loop on entering wdired-mode
authorStephen Berman <stephen.berman@gmx.net>
Tue, 16 Jul 2019 09:04:56 +0000 (11:04 +0200)
committerStephen Berman <stephen.berman@gmx.net>
Tue, 16 Jul 2019 09:04:56 +0000 (11:04 +0200)
* lisp/wdired.el (wdired-preprocess-symlinks): Remove unneeded use
of beginning-of-line, which also triggers an infinite loop in a
find-dired buffer that doesn't end with a newline (see discussion
in bug#35609).

lisp/wdired.el

index 0ccaaaca74bf44d43f7c1e16e70486a6a95d044f..44f083bb7fb4ad8b9e4834bad33b7538ea691a17 100644 (file)
@@ -677,8 +677,7 @@ says how many lines to move; default is one line."
                                 'rear-nonsticky '(read-only))
              (put-text-property (match-beginning 1)
                                 (match-end 1) 'read-only nil)))
-        (forward-line)
-       (beginning-of-line)))))
+        (forward-line)))))
 
 
 (defun wdired-get-previous-link (&optional old move)