dired-aux fix for bug#8131.
authorStephen Berman <stephen.berman@gmx.net>
Mon, 28 Feb 2011 01:31:20 +0000 (17:31 -0800)
committerGlenn Morris <rgm@gnu.org>
Mon, 28 Feb 2011 01:31:20 +0000 (17:31 -0800)
* lisp/dired-aux.el (dired-update-file-line): Fix 2010-11-09 change.

lisp/ChangeLog
lisp/dired-aux.el

index b577bac..5c44f82 100644 (file)
@@ -1,3 +1,8 @@
+2011-02-28  Stephen Berman  <stephen.berman@gmx.net>
+
+       * dired-aux.el (dired-update-file-line):
+       Fix 2010-11-09 change.  (Bug#8131)
+
 2011-02-28  Eli Zaretskii  <eliz@gnu.org>
 
        * international/mule-cmds.el (set-default-coding-systems): Use the
index 986c9ed..c533c81 100644 (file)
@@ -1025,9 +1025,9 @@ See Info node `(emacs)Subdir switches' for more details."
   ;; Keeps any marks that may be present in column one (doing this
   ;; here is faster than with dired-add-entry's optional arg).
   ;; Does not update other dired buffers.  Use dired-relist-entry for that.
-  (let ((char (following-char))
-       (opoint (line-beginning-position))
-       (buffer-read-only))
+  (let* ((opoint (line-beginning-position))
+        (char (char-after opoint))
+        (buffer-read-only))
     (delete-region opoint (progn (forward-line 1) (point)))
     (if file
        (progn