texinfo-commits
[Top][All Lists]
Advanced

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

[5830] following references in footnote windows


From: Gavin D. Smith
Subject: [5830] following references in footnote windows
Date: Thu, 18 Sep 2014 13:45:54 +0000

Revision: 5830
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5830
Author:   gavin
Date:     2014-09-18 13:45:52 +0000 (Thu, 18 Sep 2014)
Log Message:
-----------
following references in footnote windows

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2014-09-16 18:11:42 UTC (rev 5829)
+++ trunk/ChangeLog     2014-09-18 13:45:52 UTC (rev 5830)
@@ -1,3 +1,9 @@
+2014-09-18  Gavin Smith  <address@hidden>
+
+       * info/session.c (info_select_reference): When following a reference
+       in a footnotes window, try to switch to a window containing a node
+       from the file.
+
 2014-09-16  Gavin Smith  <address@hidden>
 
        * info/indices.c (info_index_apropos): Mark apropos node with

Modified: trunk/info/session.c
===================================================================
--- trunk/info/session.c        2014-09-16 18:11:42 UTC (rev 5829)
+++ trunk/info/session.c        2014-09-18 13:45:52 UTC (rev 5830)
@@ -2105,6 +2105,24 @@
       return 0;
     }
 
+  /* If in a footnotes window, try to switch to a window containing a
+     node from the file. */
+  if ((window->node->flags & N_IsInternal)
+      && !strcmp (window->node->nodename, "*Footnotes*"))
+        {
+          WINDOW *w;
+
+          for (w = windows; w; w = windows->next)
+            {
+              if (!strcmp (w->node->fullpath, window->node->fullpath)
+                  && !(w->flags & W_TempWindow))
+                {
+                  /* Switch to this window. */
+                  active_window = window = w;
+                  break;
+                }
+            }
+        }
   info_set_node_of_window (window, node);
 
   if (entry->line_number > 0)




reply via email to

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