lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev [patch] Add jumpfile setting to .lynxrc


From: Andrew Kuchling
Subject: lynx-dev [patch] Add jumpfile setting to .lynxrc
Date: Mon, 20 Jul 1998 16:55:05 -0400 (EDT)

I've just installed Lynx where it will be used by a few people, and
found it annoying that there was no way to have a per-user jump file.
The following little patch was written hurriedly, but seems to work;
it adds a "jumpfile=/usr/whatever" setting to the .lynxrc file.
Does this patch seem correct?  If so, I'll make the required
documentation patches as well, and resubmit it for inclusion in the
next snapshot.

-- 
A.M. Kuchling                   http://starship.skyport.net/crew/amk/
Men fear death as children fear to go in the dark; and as that natural fear in
children is increased by tales, so is the other.
    -- Francis Bacon, "Of Death"


--- LYJump.c    1998/07/20 20:51:47     1.1
+++ LYJump.c    1998/07/20 20:52:42
@@ -95,11 +95,11 @@
     }
 
     /*
-     * config is JUMPFILE:path[:optional_key[:optional_prompt]]
+     * config is JUMPFILE[: or =]path[:optional_key[:optional_prompt]]
      *
      * Skip JUMPFILE.
      */
-    cp = strtok(config, ":\n");
+    cp = strtok(config, "=:\n");
     if (!cp) {
        FREE(jtp);
        return FALSE;
--- LYrcFile.c  1998/07/20 20:25:45     1.1
+++ LYrcFile.c  1998/07/20 20:50:38
@@ -475,11 +475,16 @@
                local_exec_on_local_files=FALSE;
 #endif /* ALLOW_USERS_TO_CHANGE_EXEC_WITHIN_OPTIONS */
 
+       } else if ((cp = LYstrstr(line_buffer, "jumpfile")) != NULL &&
+                  cp-line_buffer < number_sign) {
+           if (!LYJumpInit(line_buffer))
+              CTRACE(tfp, "Failed to register %s\n", cp);
        } /* end of if */
 
     } /* end of while */
 
     fclose(fp);
 } /* big end */
 
 PUBLIC int save_rc NOPARAMS

reply via email to

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