Subject: bug#11534: 24.0.97; `dired-get-marked-files' does not behave as documented

From: Lars Ingebrigtsen <[email-masked]>
Date: Sun, 09 Feb 2014 23:14:07 -0800

"Drew Adams" <[email-masked]> writes:

> emacs -Q
>
> Put point on any file line.
>
> M-: (dired-get-marked-files)
>
> It returns the name of that line's file.
>
> But the doc string says this about argument ARG, which is nil in this
> case:
>
> Optional second argument ARG, if non-nil, specifies files near
>  point instead of marked files.  It usually comes from the prefix
>  argument.
>   If ARG is an integer, use the next ARG files.
>   Any other non-nil value means to use the current file instead.
>
> It does not explicitly say anything about what happens when ARG is nil
> (and no files are marked).  But a reader could reasonably assume that
> none of what happens when ARG is non-nil would happen.

I've removed " non-nil" so that the documentation says what it does.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/