about summary refs log tree commit diff stats
path: root/src/LYOptions.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1999-01-18 12:35:47 -0500
committerThomas E. Dickey <dickey@invisible-island.net>1999-01-18 12:35:47 -0500
commitd97a65137382daf2f896a947ba680c095f7ab664 (patch)
tree6db3daec0d5c2f909ba586adff0ddc2ad96d84d9 /src/LYOptions.c
parenta2e9461739dd215db90a5cee2c22a74e5f57d151 (diff)
downloadlynx-snapshots-d97a65137382daf2f896a947ba680c095f7ab664.tar.gz
snapshot of project "lynx", label v2-8-2dev_14
Diffstat (limited to 'src/LYOptions.c')
-rw-r--r--src/LYOptions.c155
1 files changed, 75 insertions, 80 deletions
diff --git a/src/LYOptions.c b/src/LYOptions.c
index ed8dab58..d4b627e3 100644
--- a/src/LYOptions.c
+++ b/src/LYOptions.c
@@ -3986,26 +3986,6 @@ PUBLIC int gen_options ARGS1(
     PutOptValues(fp0, emacs_keys, bool_values);
     EndSelect(fp0);
 
-    /* Execution links: SELECT */
-#ifdef ALLOW_USERS_TO_CHANGE_EXEC_WITHIN_OPTIONS
-    PutLabel(fp0, gettext("Execution links"));
-    BeginSelect(fp0, exec_links_string);
-#ifndef NEVER_ALLOW_REMOTE_EXEC
-    PutOptValues(fp0, local_exec
-			? EXEC_ALWAYS
-			: (local_exec_on_local_files
-				? EXEC_LOCAL
-				: EXEC_NEVER),
-		exec_links_values);
-#else
-    PutOptValues(fp0, local_exec_on_local_files
-			? EXEC_LOCAL
-			: EXEC_NEVER,
-		exec_links_values);
-#endif /* !NEVER_ALLOW_REMOTE_EXEC */
-    EndSelect(fp0);
-#endif /* ALLOW_USERS_TO_CHANGE_EXEC_WITHIN_OPTIONS */
-
     /* Keypad Mode: SELECT */
     PutLabel(fp0, gettext("Keypad mode"));
     BeginSelect(fp0, keypad_mode_string);
@@ -4109,6 +4089,19 @@ PUBLIC int gen_options ARGS1(
     PutOptValues(fp0, vi_keys, bool_values);
     EndSelect(fp0);
 
+    /* Display Character Set: SELECT */
+    PutLabel(fp0, gettext("Display character set"));
+    BeginSelect(fp0, display_char_set_string);
+    for (i = 0; LYchar_set_names[i]; i++) {
+	char temp[10];
+	size_t len = strlen(LYchar_set_names[i]);
+	if (len > cset_len)
+	   cset_len = len;
+	sprintf(temp, "%d", i);
+	PutOption(fp0, i==current_char_set, temp, LYchar_set_names[i]);
+    }
+    EndSelect(fp0);
+
     /* X Display: INPUT */
     PutLabel(fp0, gettext("X Display"));
     PutTextInput(fp0, x_display_string, NOTEMPTY(x_display), text_len, "");
@@ -4118,8 +4111,48 @@ PUBLIC int gen_options ARGS1(
      */
     fprintf(fp0,"\n  <em>%s</em>\n", gettext("Document Layout"));
 
-    /* HTML error tolerance: SELECT */
-    PutLabel(fp0, gettext("HTML error tolerance"));
+    /* Assume Character Set: SELECT */
+    /* if (user_mode==ADVANCED_MODE) */
+    {
+	int curval;
+	curval = UCLYhndl_for_unspec;
+
+	/*
+	 * FIXME: If bogus value in lynx.cfg, then in old way, that is the
+	 * string that was displayed.  Now, user will never see that.  Good
+	 * or bad?  I don't know.  MRC
+	 */
+	if (curval == current_char_set) {
+	    /* ok, LYRawMode, so use UCAssume_MIMEcharset */
+	    curval = safeUCGetLYhndl_byMIME(UCAssume_MIMEcharset);
+	}
+	PutLabel(fp0, gettext("Assumed document character set"));
+	BeginSelect(fp0, assume_char_set_string);
+	for (i = 0; i < LYNumCharsets; i++) {
+	    PutOption(fp0, i==curval,
+		      LYCharSet_UC[i].MIMEname,
+		      LYCharSet_UC[i].MIMEname);
+	}
+	EndSelect(fp0);
+    }
+
+    /* Raw Mode: ON/OFF */
+    if (LYHaveCJKCharacterSet)
+	/*
+	 * Since CJK people hardly mixed with other world
+	 * we split the header to make it more readable:
+	 * "CJK mode" for CJK display charsets, and "Raw 8-bit" for others.
+	 */
+	PutLabel(fp0, gettext("CJK mode"));
+    else
+	PutLabel(fp0, gettext("Raw 8-bit"));
+
+    BeginSelect(fp0, raw_mode_string);
+    PutOptValues(fp0, LYRawMode, bool_values);
+    EndSelect(fp0);
+
+    /* HTML error recovery: SELECT */
+    PutLabel(fp0, gettext("HTML error recovery"));
     BeginSelect(fp0, DTD_recovery_string);
     PutOptValues(fp0, Old_DTD, DTD_type_values);
     EndSelect(fp0);
@@ -4185,64 +4218,6 @@ PUBLIC int gen_options ARGS1(
     }
 
     /*
-     * Character Set Options
-     */
-    fprintf(fp0,"\n  <em>%s</em>\n", gettext("Character Set Options"));
-
-    /* Assume Character Set: SELECT */
-    /* if (user_mode==ADVANCED_MODE) */
-    {
-	int curval;
-	curval = UCLYhndl_for_unspec;
-
-	/*
-	 * FIXME: If bogus value in lynx.cfg, then in old way, that is the
-	 * string that was displayed.  Now, user will never see that.  Good
-	 * or bad?  I don't know.  MRC
-	 */
-	if (curval == current_char_set) {
-	    /* ok, LYRawMode, so use UCAssume_MIMEcharset */
-	    curval = safeUCGetLYhndl_byMIME(UCAssume_MIMEcharset);
-	}
-	PutLabel(fp0, gettext("Assumed document character set"));
-	BeginSelect(fp0, assume_char_set_string);
-	for (i = 0; i < LYNumCharsets; i++) {
-	    PutOption(fp0, i==curval,
-		      LYCharSet_UC[i].MIMEname,
-		      LYCharSet_UC[i].MIMEname);
-	}
-	EndSelect(fp0);
-    }
-
-    /* Display Character Set: SELECT */
-    PutLabel(fp0, gettext("Display character set"));
-    BeginSelect(fp0, display_char_set_string);
-    for (i = 0; LYchar_set_names[i]; i++) {
-	char temp[10];
-	size_t len = strlen(LYchar_set_names[i]);
-	if (len > cset_len)
-		cset_len = len;
-	sprintf(temp, "%d", i);
-	PutOption(fp0, i==current_char_set, temp, LYchar_set_names[i]);
-    }
-    EndSelect(fp0);
-
-    /* Raw Mode: ON/OFF */
-    if	(LYHaveCJKCharacterSet)
-	/*
-	 * Since CJK people hardly mixed with other world
-	 * we split the header to make it more readable:
-	 * "CJK mode" for CJK display charsets, and "Raw 8-bit" for others.
-	 */
-	PutLabel(fp0, gettext("CJK mode"));
-    else
-	PutLabel(fp0, gettext("Raw 8-bit"));
-
-    BeginSelect(fp0, raw_mode_string);
-    PutOptValues(fp0, LYRawMode, bool_values);
-    EndSelect(fp0);
-
-    /*
      * File Management Options
      */
     fprintf(fp0,"\n  <em>%s</em>\n", DIRED_MENU_TITLE);
@@ -4269,6 +4244,26 @@ PUBLIC int gen_options ARGS1(
 	EndSelect(fp0);
     }
 
+    /* Execution links: SELECT */
+#ifdef ALLOW_USERS_TO_CHANGE_EXEC_WITHIN_OPTIONS
+    PutLabel(fp0, gettext("Execution links"));
+    BeginSelect(fp0, exec_links_string);
+#ifndef NEVER_ALLOW_REMOTE_EXEC
+    PutOptValues(fp0, local_exec
+		      ? EXEC_ALWAYS
+		      : (local_exec_on_local_files
+			  ? EXEC_LOCAL
+			  : EXEC_NEVER),
+	       exec_links_values);
+#else
+    PutOptValues(fp0, local_exec_on_local_files
+		      ? EXEC_LOCAL
+		      : EXEC_NEVER,
+	       exec_links_values);
+#endif /* !NEVER_ALLOW_REMOTE_EXEC */
+    EndSelect(fp0);
+#endif /* ALLOW_USERS_TO_CHANGE_EXEC_WITHIN_OPTIONS */
+
     /*
      * Headers transferred to remote server
      */
.mu?h=main&id=b96af395b9af2ff9df94b3e82213171f30827c8d'>b96af395 ^
f192d655 ^
b96af395 ^
f192d655 ^
1ead3562 ^
77d5b5d6 ^
760f683f ^
b96af395 ^
192d59d3 ^

ce87c19e ^

b96af395 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45