LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Marco Daniel <[log in to unmask]>
Fri, 1 Jun 2012 12:47:03 +0200
text/plain (43 lines)
Hi,

If you use the command \DeclareDocumentCommand and the command name 
already exists, you will get the warning "LaTeX warning 
"xparse/redefine-command" " initialized by

\msg_kernel_warning:nnxx { xparse } { redefine-command }


I think most package authors will use this command. (e.g. fontspec)

Based on this fact you will get a lot of warnings. In my opinion 
warnings become ineffectually.

So I suggest to use \msg_kernel_info:nnxx { xparse } { redefine-command }

What do you think?


xparse.sty l. 105-119
xparse.dtx l. 873-887


\cs_new_protected:Npn \xparse_declare_cmd_aux:Nnn #1#2
   {
     \cs_if_exist:NTF #1
       {
         \msg_kernel_info:nnxx { xparse } { redefine-command }
           { \token_to_str:N #1 } { \tl_to_str:n {#2} }
       }
       {
         \msg_kernel_info:nnxx { xparse } { define-command }
           { \token_to_str:N #1 } { \tl_to_str:n {#2} }
       }
     \prop_put:Nnn \l_xparse_command_arg_specs_prop {#1} {#2}
     \bool_set_false:N \l_xparse_environment_bool
     \xparse_declare_cmd_internal:Nnn #1 {#2}
   }


best regards
Marco

ATOM RSS1 RSS2