GNU bug report logs -
#2028
23.0.60; (1) dired-guess-default should remove duplicates (2) doc string
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Sat, 24 Jan 2009 18:50:03 UTC
Severity: minor
Tags: fixed
Fixed in version 24.1
Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
"Drew Adams" <drew.adams <at> oracle.com> writes:
> `dired-guess-default' returns a list of default shell commands
> appropriate for its input, FILES. It should remove duplicates from
> this list before returning it.
Ok; done.
> Also, the doc string is:
>
> "Guess a shell commands for FILES. Return command or list of commands.
> See `dired-guess-shell-alist-user'."
>
> This is not correct grammatically. Suggestion:
>
> "Return a shell command, or a list of such, appropriate for FILES.
> See `dired-guess-shell-alist-user'."
I've changed it to something like that.
> BTW (I didn't check the code - just a naive question): Why do we
> return sometimes a single command instead of a singleton list of that
> command? What is gained by this added complexity? Is there some
> calling code that *must* receive a command and not a list of commands?
I'm guessing somebody extended the function at some point.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
This bug report was last modified 14 years and 12 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.