GNU bug report logs -
#13152
24.2.90; [REGRESSION] dired-get-marked-files changed
Previous Next
Reported by: Leo <sdl.web <at> gmail.com>
Date: Wed, 12 Dec 2012 02:25:01 UTC
Severity: minor
Found in version 24.2.90
Done: Leo Liu <sdl.web <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
>> I see no problems with this.
>
> See dired-guess-shell-alist-user, COMMAND can be an expression which is
> eval'd in different contexts (buffers) and that is a problem.
Actually I meant there is no bug because the documentation of
dired-guess-shell-alist-user says nothing about the current buffer.
But indeed you have a problem when trying to do undocumented things.
Without changing the source code you can reuse the existing variable
`files' dynamically bound in `dired-guess-shell-command' like:
(progn
(require 'dired-x)
(setq dired-guess-shell-alist-user
'(("." (progn
(message "%S" files)
(let (dired-guess-shell-alist-user)
(dired-guess-default files)))))))
This is bad practice but acceptable for ~/.emacs.
Regarding changing the current buffer in `dired-mark-pop-up'
where an expression is evaluated, I have doubts because
it might broke code that relies on the fact that the
selected window and the current buffer should be " *Marked Files*"
as it was in all older versions.
This bug report was last modified 12 years and 130 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.