5ee674363623678393bb186b1f5fdfd981ee743f
braney
  Mon Aug 17 10:35:26 2026 -0700
hgTracks: default multiRegionButtonTop TRUE in config.c too, refs #37977

Two places read multiRegionButtonTop through MULTI_REGION_CFG_BUTTON_TOP: the
top-bar Multi-region button in hgTracks.c and the "Show all" checkbox in the
multi-region dialog in config.c.  Kate put the checkbox under this flag on
purpose in 8ae222adb54.  Then e1f7896a08f turned the flag on by default in
2022 and changed only the hgTracks.c read, so on a machine that does not set
the flag the button moved to the top bar while the checkbox stayed hidden.
It has been hidden for four years, although the cart variable it sets is read
unconditionally at hgTracks.c:11115, so the feature works for anyone who can
reach the variable another way.

The hg.conf catalog row carried this as an open defect, so its note is
rewritten and its recorded default now matches the tree.

diff --git src/hg/hgTracks/config.c src/hg/hgTracks/config.c
index 67ce31d969e..fecdf3b03bf 100644
--- src/hg/hgTracks/config.c
+++ src/hg/hgTracks/config.c
@@ -1009,31 +1009,31 @@
 	{
 	struct lineFile *lf = lineFileMayOpen(multiRegionsBedUrl, TRUE);
 	char *line;
 	int lineSize;
 	while (lineFileNext(lf, &line, &lineSize))
 	    {
 	    dyStringPrintf(dyMultiRegionsBedInput, "%s\n", line);
 	    }
 	lineFileClose(&lf);
 	}
     }
 hPrintf("<TEXTAREA NAME='multiRegionsBedInput' ID='multiRegionsBedInput' rows='4' cols='58' style='white-space: pre;'>%s</TEXTAREA>",
     dyMultiRegionsBedInput->string);
 
 // option to set viewing window to show all regions.  This id also known to JS.
-if (cfgOptionBooleanDefault(MULTI_REGION_CFG_BUTTON_TOP, FALSE))
+if (cfgOptionBooleanDefault(MULTI_REGION_CFG_BUTTON_TOP, TRUE))
     {
     boolean isChecked = cartUsualBoolean(cart, MULTI_REGION_BED_WIN_FULL, FALSE);
     hPrintf("&nbsp;&nbsp");
     cgiMakeCheckBoxUtil(MULTI_REGION_BED_WIN_FULL, isChecked, 
                             "If unchecked, when regions are changed here the view is zoomed in and does not display all regions", 
                             MULTI_REGION_BED_WIN_FULL);
     hPrintf("Show all");
     hPrintf("</TD></TR>\n");
 }
 
 /* The AllChroms option will be released in future
 if (emGeneTable && sqlTableExists(conn, emGeneTable))
     {
     hPrintf("<TR><TD>");
     cgiMakeRadioButton("virtModeType", "singleTrans", sameWord("singleTrans", virtModeType));