texinfo-commits
[Top][All Lists]
Advanced

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

[6864] info as first non-option argument


From: Gavin D. Smith
Subject: [6864] info as first non-option argument
Date: Tue, 15 Dec 2015 14:48:23 +0000

Revision: 6864
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6864
Author:   gavin
Date:     2015-12-15 14:48:22 +0000 (Tue, 15 Dec 2015)
Log Message:
-----------
info as first non-option argument

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/info/info.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2015-12-15 14:08:40 UTC (rev 6863)
+++ trunk/ChangeLog     2015-12-15 14:48:22 UTC (rev 6864)
@@ -1,5 +1,10 @@
 2015-12-15  Gavin Smith  <address@hidden>
 
+       * doc/info.c (get_initial_file): Change "info" to "info-stnd" if 
+       given as first non-option argument.
+
+2015-12-15  Gavin Smith  <address@hidden>
+
        * Mention gettext and automake versions in NEWS.
 
 2015-12-15  Gavin Smith  <address@hidden>

Modified: trunk/info/info.c
===================================================================
--- trunk/info/info.c   2015-12-15 14:08:40 UTC (rev 6863)
+++ trunk/info/info.c   2015-12-15 14:48:22 UTC (rev 6864)
@@ -179,10 +179,9 @@
   /* If there are any more arguments, the initial file is the
      dir entry given by the first one. */
     {
-      /* If they say info -O info, we want to show them the invocation node
-         for standalone info; there's nothing useful in info.texi.  */
-      if (goto_invocation_p && (*argv)[0]
-          && mbscasecmp ((*argv)[0], "info") == 0)
+      /* If they say info info, show them info-stnd.texi.  (Get
+         info.texi with info -f info.) */
+      if ((*argv)[0] && mbscasecmp ((*argv)[0], "info") == 0)
         (*argv)[0] = "info-stnd";
 
       entry = lookup_dir_entry ((*argv)[0], 0);




reply via email to

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