unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#13152: 24.2.90; [REGRESSION] dired-get-marked-files changed
@ 2012-12-12  2:23 Leo
  2012-12-12  2:47 ` Glenn Morris
  2012-12-12  9:29 ` Juri Linkov
  0 siblings, 2 replies; 29+ messages in thread
From: Leo @ 2012-12-12  2:23 UTC (permalink / raw)
  To: 13152

1. Eval
(progn
  (require 'dired-x)
  (setq dired-guess-shell-alist-user
        '(("." (let ((files (dired-get-marked-files t current-prefix-arg)))
                 (message "%S" (current-buffer))
                 (dired-guess-default files))))))

2. In a dired buffer, run `!' (dired-do-shell-command) twice
   first without marking any file then with some files marked

You should get an error when files are marked. You'll notice in the
second run, the current-buffer has changed to ' *Marked Files*'.

Note in previous versions of Emacs, dired-get-marked-files throws an
error when run in a non-dired buffer, but in 24.2.90 it returns '(nil).

Leo





^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2013-01-18 18:40 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-12  2:23 bug#13152: 24.2.90; [REGRESSION] dired-get-marked-files changed Leo
2012-12-12  2:47 ` Glenn Morris
2012-12-12  5:30   ` Leo
2012-12-12  8:13     ` Glenn Morris
2012-12-12  9:29 ` Juri Linkov
2012-12-12 11:32   ` Leo
2012-12-12 23:11     ` Juri Linkov
2012-12-13  1:20       ` Leo
2012-12-14  0:46         ` Juri Linkov
2012-12-14  3:05           ` Leo
2012-12-14 10:26             ` martin rudalics
2012-12-14 10:43               ` Leo
2012-12-14 10:58                 ` martin rudalics
2012-12-14 10:26           ` martin rudalics
2012-12-15 10:59             ` Juri Linkov
2013-01-04  3:49               ` Leo Liu
2013-01-04  3:46             ` Leo Liu
2013-01-04  7:08               ` martin rudalics
2013-01-07  2:38                 ` Leo Liu
2013-01-07  7:43                   ` martin rudalics
2013-01-08 11:02                   ` Leo Liu
2013-01-08 22:27                     ` Glenn Morris
2013-01-08 22:35                       ` Glenn Morris
2013-01-09  1:15                         ` Leo Liu
2013-01-09 11:07                         ` Leo Liu
2013-01-10  0:50                           ` Juri Linkov
2013-01-10  1:04                             ` Leo Liu
2013-01-18 18:40                           ` Leo Liu
2013-01-09  1:19                       ` Leo Liu

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).