some records lack a www field but have an ftp one instead
(and I keep ftp sites in URI, not in emacs format)
so "w" on such a record can provide a useful default.
patch appended.



2006-05-12  Sam Steingold  <[EMAIL PROTECTED]>

        * lisp/bbdb-w3.el (bbdb-www): use ftp note as the default when
        www is not present




-- 
Sam Steingold (http://www.podval.org/~sds) on Fedora Core release 5 (Bordeaux)
http://dhimmi.com http://memri.org http://thereligionofpeace.com
http://iris.org.il http://truepeace.org http://camera.org
Your mouse has moved - WinNT has to be restarted for this to take effect.


--- bbdb-w3.el  06 Jan 2002 17:09:16 -0500      1.9
+++ bbdb-w3.el  12 May 2006 11:02:51 -0400      
@@ -35,7 +35,9 @@
 Non-interactively, do all records if arg is nonnil."
   (interactive (list (bbdb-get-record "Visit (WWW): ")
                      (or current-prefix-arg 0)))
-  (browse-url (read-string "fetch: " (bbdb-get-field rec 'www which))))
+  (browse-url (read-string "fetch: "
+                           (or (bbdb-get-field rec 'www which)
+                               (bbdb-get-field rec 'ftp which)))))
 
 ;;;###autoload
 (defun bbdb-www-grab-homepage (record)



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to