Hey all, By default lynx creates a 'lynx_bookmarks.html' file. This then shows up in one's directory listings, though I rarely need to be reminded of its existence.
I feel it would be nice if it were hidden by default. The attached patch implements that; I would be very grateful if it or something similar were applied to the next release. Patch is against 2.8.8dev16. Thanks, -tom
From b05efcc066ac615b8abc69b7717e2efc71842e39 Mon Sep 17 00:00:00 2001 From: Tom Fogal <[email protected]> Date: Mon, 12 Aug 2013 14:13:12 +0200 Subject: [PATCH] Add a leading dot to "lynx_bookmarks.html". Prevents it from cluttering up one's $HOME. --- lynx.cfg | 4 ++-- lynx_help/Lynx_users_guide.html | 4 ++-- src/LYMain.c | 2 +- src/LYUtils.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lynx.cfg b/lynx.cfg index acb3e3f..65db8d0 100644 --- a/lynx.cfg +++ b/lynx.cfg @@ -1546,7 +1546,7 @@ DEFAULT_INDEX_FILE:http://scout.wisc.edu/ # It will be prepended by the user's home directory. # NOTE that a file ending in .html or other suffix mapped to text/html # should be used to ensure its treatment as HTML. The built-in default -# is lynx_bookmarks.html. On both Unix and VMS, if a subdirectory off of +# is .lynx_bookmarks.html. On both Unix and VMS, if a subdirectory off of # the HOME directory is desired, the path should begin with "./" (e.g., # ./BM/lynx_bookmarks.html), but the subdirectory must already exist. # Lynx will create the bookmark file, if it does not already exist, on @@ -1558,7 +1558,7 @@ DEFAULT_INDEX_FILE:http://scout.wisc.edu/ # (see below), via the 'o'ptions menu, and can save those definitions # in the .lynxrc file. # -#DEFAULT_BOOKMARK_FILE:lynx_bookmarks.html +#DEFAULT_BOOKMARK_FILE:.lynx_bookmarks.html .h2 MULTI_BOOKMARK_SUPPORT # If MULTI_BOOKMARK_SUPPORT is set TRUE, and BLOCK_MULTI_BOOKMARKS (see diff --git a/lynx_help/Lynx_users_guide.html b/lynx_help/Lynx_users_guide.html index b703bfa..911de5d 100644 --- a/lynx_help/Lynx_users_guide.html +++ b/lynx_help/Lynx_users_guide.html @@ -767,7 +767,7 @@ (E)ditor : emacs (D)ISPLAY variable : aixtest.cc.ukans.edu:0.0 - mu(L)ti-bookmarks: OFF B)ookmark file: lynx_bookmarks.html + mu(L)ti-bookmarks: OFF B)ookmark file: .lynx_bookmarks.html (F)TP sort criteria : By Filename (P)ersonal mail address : [email protected] (S)earching type : CASE INSENSITIVE @@ -894,7 +894,7 @@ However, if you've specified a subdirectory (e.g., ./BM/lynx_bookmarks.html), that subdirectory must already exist. Note that on VMS you should use the URL syntax for the - filepath (e.g., <em>not</em> [.BM]lynx_bookmarks.html).</p> + filepath (e.g., <em>not</em> [.BM].lynx_bookmarks.html).</p> </dd> <dt>Cookies</dt> diff --git a/src/LYMain.c b/src/LYMain.c index 3c01234..75dad6b 100644 --- a/src/LYMain.c +++ b/src/LYMain.c @@ -2140,7 +2140,7 @@ int main(int argc, */ if (isEmpty(bookmark_page)) { temp = NULL; - HTSprintf0(&temp, "lynx_bookmarks%s", HTML_SUFFIX); + HTSprintf0(&temp, ".lynx_bookmarks%s", HTML_SUFFIX); set_default_bookmark_page(temp); FREE(temp); } diff --git a/src/LYUtils.c b/src/LYUtils.c index 88fbf27..6c00d52 100644 --- a/src/LYUtils.c +++ b/src/LYUtils.c @@ -5542,7 +5542,7 @@ char *LYTildeExpand(char **pathname, /* * This function appends fname to the home path and returns the full path and * filename. The fname string can be just a filename (e.g., - * "lynx_bookmarks.html"), or include a subdirectory off the home directory, in + * ".lynx_bookmarks.html"), or include a subdirectory off the home directory, in * which case fname should begin with "./" (e.g., ./BM/lynx_bookmarks.html) Use * LYPathOffHomeOK() to check and/or fix up fname before calling this function. * On VMS, the resultant full path and filename are converted to VMS syntax. - -- 1.8.1.2
_______________________________________________ Lynx-dev mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lynx-dev
