Package: elinks
Version: 0.3.20020825-1
Author: Guillem Jover <guillem@hadrons.org>
Status: fixed
Debbug: 160508
Description:
 Create the lua bookmark if it does not exist.

--- bm.lua	2002-09-11 13:44:25.000000000 +0200
+++ bm.lua.orig	2002-01-29 01:32:13.000000000 +0100
@@ -106,6 +106,8 @@
 
 -- Write bookmarks to disk.
 function bm_save_bookmarks (filename)
+    if bm_dont_save then return end
+
     function esc (str)
 	return gsub (str, "([^-%w \t_@#:/'().])",
 		     function (s) 
@@ -140,6 +142,10 @@
     if type (tmp) == 'table' then
 	bm_bookmarks = tmp
 	bm_sort_bookmarks ()
+	bm_dont_save = nil
+    else
+	_ALERT ("Error loading "..filename)
+	bm_dont_save = 1
     end
 end
 
