; Another fix for recent 'dired-readin-insert' change
* lisp/dired.el (dired-readin-insert): Restore point after searching for Dired buffer entry of 'ls' error file (bug#80499).
This commit is contained in:
@@ -1628,14 +1628,17 @@ wildcards, erases the buffer, and builds the subdir-alist anew
|
||||
(let ((tmpbuf (dired-find-buffer-nocreate temporary-file-directory)))
|
||||
(when tmpbuf
|
||||
(with-current-buffer tmpbuf
|
||||
(widen)
|
||||
(goto-char (point-min))
|
||||
(when (search-forward (file-name-base dired--ls-error-file) nil t)
|
||||
;; The call chain of `dired-remove-entry' requires non-nil
|
||||
;; `dired-subdir-alist', but here it is nil, so we set it.
|
||||
(let ((dired-subdir-alist `((,temporary-file-directory
|
||||
. ,(point-min-marker)))))
|
||||
(dired-remove-entry dired--ls-error-file)))))))))
|
||||
(save-excursion
|
||||
(without-restriction
|
||||
(goto-char (point-min))
|
||||
(when (search-forward
|
||||
(file-name-base dired--ls-error-file) nil t)
|
||||
;; The call chain of `dired-remove-entry' requires
|
||||
;; non-nil `dired-subdir-alist', but here it is nil,
|
||||
;; so we set it.
|
||||
(let ((dired-subdir-alist `((,temporary-file-directory
|
||||
. ,(point-min-marker)))))
|
||||
(dired-remove-entry dired--ls-error-file)))))))))))
|
||||
|
||||
(defun dired-align-file (beg end)
|
||||
"Align the fields of a file to the ones of surrounding lines.
|
||||
|
||||
Reference in New Issue
Block a user