> @errael commented on this pull request.
> 
> > @@ -3570,6 +3571,17 @@ getloclist({nr} [, {what}])                          
> > *getloclist()*
>                       :echo getloclist(5, {'filewinid': 0})
>  
>  
> +getmaps()                                            *getmaps()*
> +             Returns a |List| of all mappings. Each List item is a |Dict|
> +             as defined by |maparg()|. For a given mapping, the Dict from
> +             getmaps() is identical to the dict from |maparg()|.
> 
> If overloading functions is philosophically undesirable, `mapset(null,
> null, dict)` is a possibility.

Using different types for the same argument might be unusual, but we
already have several functions do that.

What if one uses "mapset(null, true, dict)", would the abbreviation flag
in "dict" overrule the {abbr} argument?  For backwards compatibility we
should. For the first argument {mode} this is already documented.

I think using "mapset(dict)" is the simplest, and it might very well
become the most common use.

-- 
"I can't complain, but sometimes I still do."   (Joe Walsh)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220425183016.B9CD71C13E0%40moolenaar.net.

Raspunde prin e-mail lui