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

w3m-local-find-file-regexps parens



In the current cvs w3m-local-find-file-regexps ends up with

    "\\.html?\\|shtml?\\|txt\\|xhtml?\\'"

but I wonder if there's meant to be some parens around the alternatives
so the \\. is required for all of them, as shown in the docstring, and
for example so that the following doesn't match (whereas it currently
does)

    (string-match (cdr w3m-local-find-file-regexps) "etxt")
--- w3m.el	18 Apr 2009 08:47:39 +1000	1.1436
+++ w3m.el	18 Apr 2009 08:55:29 +1000	
@@ -1746,7 +1746,8 @@
 				    (and (w3m-image-type-available-p 'xbm)
 					 '("xbm"))
 				    (and (w3m-image-type-available-p 'xpm)
-					 '("xpm"))))
+					 '("xpm")))
+                            t) ;; with surrounding parens
 		"\\'"))
   "*Cons of two regexps matching and not matching with local file names.
 If a url of the `file:' scheme in which you entered matches the first