Try to use @sc{} in a menu, and "makeinfo --no-headers" will output a
bogus warning about all-uppercase argument.  Here's a patch:

1999-10-15  Eli Zaretskii  <[EMAIL PROTECTED]>

        * makeinfo/cmds.c (cm_sc): Don't print the warning about
        all-uppercase argument in menus under --no-headers.

--- makeinfo/cmds.c~0   Sun Sep 19 18:39:34 1999
+++ makeinfo/cmds.c     Fri Oct 15 19:09:42 1999
@@ -588,11 +588,15 @@ cm_sc (arg, start_pos, end_pos)
     }
   else
     {
-      int all_upper = 1;
+      int all_upper;
 
       if (html)
         start_pos += sizeof (small_tag) + 2 - 1; /* skip <small> */
 
+      /* Avoid the warning below if there's no text inside @sc{}, or
+         when processing menus under --no-headers.  */
+      all_upper = start_pos < end_pos;
+
       while (start_pos < end_pos)
         {
           unsigned char c = output_paragraph[start_pos];

Reply via email to