[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev Proposed patch (DOS related)
From: |
Doug Kaufman |
Subject: |
lynx-dev Proposed patch (DOS related) |
Date: |
Thu, 8 Oct 1998 07:58:04 -0700 (PDT) |
I am having trouble understanding the logic behind the display of
lynx.cfg in LYReadCFG.c. It seems to try to display a lynx.cfg file,
either at the site specified in userdefs.h (for VMS and those using
configure) or in the helpfile directory (for DOS and Win32), instead
of the active lynx.cfg. I am not sure that there is a reason to
believe that such a duplicate file might exist if the active lynx.cfg
is in a different location. "lynx_cfg_file" must point to a lynx
configuration file or lynx exits with an error message in LYMain.c. I
would propose the following patch to view the active lynx.cfg instead.
I don't see where this breaks anything. (Patch is against pre.6)
Doug
*** lynx2-8-1/src/LYGlobalDefs.h Wed Sep 30 14:06:48 1998
--- lynx2-8-1/src/LYGlobalDefs.h.new Thu Oct 8 07:37:06 1998
***************
*** 24,30 ****
#define DOWNLOAD_OPTIONS_HELP "Lynx_users_guide.html#RemoteSource"
#define HISTORY_PAGE_HELP "keystrokes/history_help.html"
#define LIST_PAGE_HELP "keystrokes/follow_help.html"
- #define LYNXCFG_HELP "lynx.cfg"
#define OPTIONS_HELP "keystrokes/option_help.html"
#define PRINT_OPTIONS_HELP "keystrokes/print_help.html"
#define UPLOAD_OPTIONS_HELP "Lynx_users_guide.html#DirEd"
--- 24,29 ----
*** lynx2-8-1/src/LYReadCFG.c Wed Sep 30 14:06:48 1998
--- lynx2-8-1/src/LYReadCFG.c.new Thu Oct 8 07:18:10 1998
***************
*** 1237,1255 ****
LYforce_no_cache = TRUE; /* don't cache this doc */
- #if defined(HAVE_CONFIG_H) || defined(VMS)
- StrAllocCopy(temp, LYNX_CFG_FILE);
- #else
- StrAllocCopy(temp, helpfilepath); /* FIXME: no absolute path */
- StrAllocCat(temp, LYNXCFG_HELP); /* for lynx.cfg on DOS/Win32 */
- #endif /* HAVE_CONFIG_H */
-
BeginInternalPage (fp0, LYNXCFG_TITLE, NULL);
fprintf(fp0, "<pre>\n");
fprintf(fp0, "<em>This is read from your lynx.cfg file,\n");
fprintf(fp0, "please \"read\" distribution's <a href=\"%s\">lynx.cfg",
! temp);
fprintf(fp0, "</a> for more comments.</em>\n\n");
fprintf(fp0, " #<em>Your primary configuration %s</em>\n",
--- 1237,1248 ----
LYforce_no_cache = TRUE; /* don't cache this doc */
BeginInternalPage (fp0, LYNXCFG_TITLE, NULL);
fprintf(fp0, "<pre>\n");
fprintf(fp0, "<em>This is read from your lynx.cfg file,\n");
fprintf(fp0, "please \"read\" distribution's <a href=\"%s\">lynx.cfg",
! lynx_cfg_file);
fprintf(fp0, "</a> for more comments.</em>\n\n");
fprintf(fp0, " #<em>Your primary configuration %s</em>\n",
__
Doug Kaufman
Internet: address@hidden (preferred)
address@hidden
- lynx-dev Proposed patch (DOS related),
Doug Kaufman <=
- Re: lynx-dev Proposed patch (DOS related), Leonid Pauzner, 1998/10/09
- Re: lynx-dev Proposed patch (DOS related), Nelson Henry Eric, 1998/10/09
- Re: lynx-dev Proposed patch (DOS related), Nelson Henry Eric, 1998/10/09
- Re: lynx-dev Proposed patch (DOS related), Leonid Pauzner, 1998/10/10
- Re: lynx-dev Proposed patch (DOS related), Nelson Henry Eric, 1998/10/10
- Re: lynx-dev Proposed patch (DOS related), Leonid Pauzner, 1998/10/10
- Re: lynx-dev Proposed patch (DOS related), Nelson Henry Eric, 1998/10/11
- Re: lynx-dev Proposed patch (DOS related), dickey, 1998/10/12