GNU bug report logs - #11534
24.0.97; `dired-get-marked-files' does not behave as documented

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Mon, 21 May 2012 18:33:02 UTC

Severity: minor

Found in version 24.0.97

Fixed in version 24.4

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 11534 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 11534 <at> debbugs.gnu.org
Subject: Re: bug#11534: 24.0.97;
 `dired-get-marked-files' does not behave as documented
Date: Sun, 09 Feb 2014 23:14:07 -0800
"Drew Adams" <drew.adams <at> oracle.com> 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/




This bug report was last modified 11 years and 187 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.