Re: 04-map.patch

2001-05-13 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> grep { delete $clean_files{"$infobase.$_"} } @syncodeindexes; Akim> This last one (not patched), I'm not sure how to write it elegantly. Won't s/grep/map work here? I think we should adopt a rule of only using grep where we u

Re: 04-map.patch

2001-05-13 Thread Akim Demaille
-my %clean_files; -grep { $clean_files{"$infobase.$_"} = 1} @clean_suffixes; +# FIXME: I don't understand why, but I can't use "$infobase.$_" => 1. +my %clean_files = map { "$infobase" . ".$_" => 1 } @clean_suffixes; grep { delete $clean_files{"$infobase.$_"} } @syncodein

Re: 04-map.patch

2001-05-12 Thread Tom Tromey
Akim> * automake.in (&scan_texinfo_file, &handle_dist, &handle_gettext) Akim> (&handle_footer, &handle_factored_dependencies, &handle_emacs_lisp) Akim> (&am_primary_prefixes): Use `map' rather than `grep'. Definitely! I think we should use map instead of grep in the future too. Tom

04-map.patch

2001-05-12 Thread Akim Demaille
Index: ChangeLog from Akim Demaille <[EMAIL PROTECTED]> * automake.in (&scan_texinfo_file, &handle_dist, &handle_gettext) (&handle_footer, &handle_factored_dependencies, &handle_emacs_lisp) (&am_primary_prefixes): Use `map' rather than `grep'. Index: automake.in --- auto