[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] change dired--find-possibly-alternative-file behaviour.
From: |
Eli Zaretskii |
Subject: |
Re: [PATCH] change dired--find-possibly-alternative-file behaviour. |
Date: |
Sun, 26 Feb 2023 07:26:06 +0200 |
> From: Felix <felix.dick@web.de>
> Date: Sat, 25 Feb 2023 20:43:57 +0100
>
> diff --git a/lisp/dired.el b/lisp/dired.el
> index 76499d0f520..620508bef4f 100644
> --- a/lisp/dired.el
> +++ b/lisp/dired.el
> @@ -2728,7 +2728,8 @@ dired-find-file
> (defun dired--find-possibly-alternative-file (file)
> "Find FILE, but respect `dired-kill-when-opening-new-dired-buffer'."
> (if (and dired-kill-when-opening-new-dired-buffer
> - (file-directory-p file))
> + (file-directory-p file)
> + (= (length (get-buffer-window-list)) 1))
> (progn
> (set-buffer-modified-p nil)
> (dired--find-file #'find-alternate-file file))
What if get-buffer-window-list returns nil?
- [PATCH] change dired--find-possibly-alternative-file behaviour., Felix, 2023/02/25
- Re: [PATCH] change dired--find-possibly-alternative-file behaviour.,
Eli Zaretskii <=
- Re: [PATCH] change dired--find-possibly-alternative-file behaviour., Felix, 2023/02/26
- Re: [PATCH] change dired--find-possibly-alternative-file behaviour., Eli Zaretskii, 2023/02/26
- Re: [PATCH] change dired--find-possibly-alternative-file behaviour., Felix, 2023/02/26
- Re: [PATCH] change dired--find-possibly-alternative-file behaviour., Eli Zaretskii, 2023/02/26
- Re: [PATCH] change dired--find-possibly-alternative-file behaviour., Felix, 2023/02/26
- Re: [PATCH] change dired--find-possibly-alternative-file behaviour., Felix, 2023/02/26
- Re: [PATCH] change dired--find-possibly-alternative-file behaviour., Eli Zaretskii, 2023/02/26
- Re: [PATCH] change dired--find-possibly-alternative-file behaviour., Felix, 2023/02/26
- Re: [PATCH] change dired--find-possibly-alternative-file behaviour., Eli Zaretskii, 2023/02/28
- Re: [PATCH] change dired--find-possibly-alternative-file behaviour., Eli Zaretskii, 2023/02/26