unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#2028: 23.0.60; (1) dired-guess-default should remove duplicates (2) doc string
@ 2009-01-24 18:41 Drew Adams
  2011-07-11 13:39 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2009-01-24 18:41 UTC (permalink / raw)
  To: emacs-pretest-bug

`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.
 
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'."
 

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?
It seems like any calling code would need to be able to handle the
list case, including a singleton list, anyway.
 
 
 
In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
 of 2009-01-04 on LENNART-69DE564
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include
-fno-crossjumping'
 







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

* bug#2028: 23.0.60; (1) dired-guess-default should remove duplicates (2) doc string
  2009-01-24 18:41 bug#2028: 23.0.60; (1) dired-guess-default should remove duplicates (2) doc string Drew Adams
@ 2011-07-11 13:39 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-07-11 13:39 UTC (permalink / raw)
  To: Drew Adams; +Cc: 2028

"Drew Adams" <drew.adams@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/





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

end of thread, other threads:[~2011-07-11 13:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-24 18:41 bug#2028: 23.0.60; (1) dired-guess-default should remove duplicates (2) doc string Drew Adams
2011-07-11 13:39 ` Lars Magne Ingebrigtsen

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