From: Tino Calancha <tino.calancha@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 27631@debbugs.gnu.org, "Tino Calancha" <tino.calancha@gmail.com>,
"Michael Albinus" <michael.albinus@gmx.de>,
"積丹尼 Dan Jacobson" <jidanni@jidanni.org>
Subject: bug#27631: dired a/*/b
Date: Fri, 4 Aug 2017 14:12:32 +0900 (JST) [thread overview]
Message-ID: <alpine.DEB.2.20.1708041402400.1935@calancha-pc> (raw)
In-Reply-To: <jwvr2ws1wu0.fsf-monnier+emacs@gnu.org>
On Thu, 3 Aug 2017, Stefan Monnier wrote:
>> Part of the complexity of the original patch is to provide this new
>> feature in _tramp_ connections as well; your patch does the thing
>> well (see patch below) in the local machine but it fails in remote ones.
>
> I didn't adjust the Tramp code accordingly, indeed. My patch probably
> also fails for ls-lisp (aka Windows). Both of those will need
> corresponding adjustments.
> My point is that it seems like we can get the same end-result without
> changing the structure.
Maybe that's the reason why this feature didn't exit before: people found
it wasn't straight to implemented it for everything: local and remote
connections, external or emulated 'ls'.
Now we have it, but you are very welcome to rewrite it so that it fits in
the original structure. I am volunteer to be the patch tester!
>> @@ -1100,7 +1100,7 @@ dired-readin-insert
>> (while (not (file-directory-p dir))
>> (setq dir (directory-file-name dir))
>> (let ((n (file-name-nondirectory dir)))
>> - (setq file-list (mapcar (lambda (f) (concat n "/" f)) file-list)))
>> + (setq file-list (mapcar (lambda (f) (concat n (and (not (string= "" f)) "/") f)) file-list)))
>> (setq dir (file-name-directory dir)))
>> (setq default-directory dir))
>> (if (and (equal "" (file-name-nondirectory dir))
>
> `n` represents a directory name, so isn't it OK to have "<n>/" rather
> than "<n>"? Or is the above tweak purely cosmetic?
No cosmetic, i need it, otherwise i get an error if i eval the form:
(dired (expand-file-name "lisp/*.el" source-directory))
Debugger entered--Lisp error: (file-missing "Reading directory" "No such file or directory" "*.el/")
access-file("*.el/" "Reading directory")
insert-directory("*.el/" "--dired -al" t nil)
dired-insert-directory("/home/calancha/soft/emacs-master/lisp/" "-al" ("*.el/") t t)
dired-readin-insert()
dired-readin()
dired-internal-noselect("~/soft/emacs-master/lisp/*.el" nil)
dired-noselect("/home/calancha/soft/emacs-master/lisp/*.el" nil)
dired("/home/calancha/soft/emacs-master/lisp/*.el")
eval((dired (expand-file-name "lisp/*.el" source-directory)) nil)
elisp--eval-last-sexp(nil)
eval-last-sexp(nil)
funcall-interactively(eval-last-sexp nil)
call-interactively(eval-last-sexp nil nil)
command-execute(eval-last-sexp)
next prev parent reply other threads:[~2017-08-04 5:12 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-09 18:42 bug#27631: dired a/*/b 積丹尼 Dan Jacobson
2017-07-13 5:52 ` Tino Calancha
2017-08-02 17:30 ` Stefan Monnier
2017-08-02 17:49 ` Eli Zaretskii
2017-08-03 1:25 ` Stefan Monnier
2017-08-03 4:38 ` Tino Calancha
2017-08-03 15:48 ` Stefan Monnier
2017-08-04 5:12 ` Tino Calancha [this message]
2017-07-13 13:15 ` 積丹尼 Dan Jacobson
2017-07-13 15:13 ` Tino Calancha
2017-07-14 8:40 ` Eli Zaretskii
2017-07-25 15:19 ` Tino Calancha
2017-07-26 7:36 ` Michael Albinus
2017-07-28 7:50 ` Tino Calancha
2017-07-28 9:23 ` Michael Albinus
2017-07-28 9:34 ` Tino Calancha
2017-07-28 11:23 ` Michael Albinus
2017-07-28 12:00 ` Michael Albinus
2017-07-29 12:20 ` Tino Calancha
2017-07-29 20:39 ` Michael Albinus
2017-07-30 2:20 ` Tino Calancha
2017-07-30 11:13 ` Michael Albinus
2017-07-29 8:30 ` Eli Zaretskii
2017-07-29 12:03 ` Tino Calancha
2017-07-14 9:30 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.20.1708041402400.1935@calancha-pc \
--to=tino.calancha@gmail.com \
--cc=27631@debbugs.gnu.org \
--cc=jidanni@jidanni.org \
--cc=michael.albinus@gmx.de \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).