texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[8363] avoid @item_LINE in error messages


From: gavinsmith0123
Subject: [8363] avoid @item_LINE in error messages
Date: Sun, 21 Oct 2018 07:50:22 -0400 (EDT)

Revision: 8363
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=8363
Author:   gavin
Date:     2018-10-21 07:50:22 -0400 (Sun, 21 Oct 2018)
Log Message:
-----------
avoid @item_LINE in error messages

Modified Paths:
--------------
    trunk/tp/Texinfo/XS/parsetexi/handle_commands.c

Modified: trunk/tp/Texinfo/XS/parsetexi/handle_commands.c
===================================================================
--- trunk/tp/Texinfo/XS/parsetexi/handle_commands.c     2018-10-21 10:43:55 UTC 
(rev 8362)
+++ trunk/tp/Texinfo/XS/parsetexi/handle_commands.c     2018-10-21 11:50:22 UTC 
(rev 8363)
@@ -1,6 +1,5 @@
 /* handle_commands.c -- what to do when a command name is first read */
-/* Copyright 2010, 2011, 2012, 2013, 2014, 2015, 2016
-   Free Software Foundation, Inc.
+/* Copyright 2010-2018 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -680,7 +679,8 @@
       start_empty_line_after_command (current, &line, misc);
     }
 
-  mark_and_warn_invalid (cmd, invalid_parent, misc);
+  mark_and_warn_invalid (cmd == CM_item_LINE ? CM_item : cmd,
+                         invalid_parent, misc);
 
   if (misc)
     register_global_command (misc);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]