emacs-wiki-discuss
[Top][All Lists]
Advanced

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

[emacs-wiki-discuss] remember-url for w3m


From: vrtprj.com
Subject: [emacs-wiki-discuss] remember-url for w3m
Date: Thu, 01 Jul 2004 21:54:52 +0200
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Started to use remember with bibl-mode again. Now that I use mainly w3m for
the web remember-url didn't work anymore for me. Here is a slightly
adapted version for w3m:

(defun remember-w3m-url ()
  "Remember a URL in `bibl-mode' that is being visited with w3m.
w3m version of remember-url from remember-bibl.el. bibl-mode and 
emacs-w3m are, of course, required."
  (interactive)
  (save-excursion
    (let ((url w3m-current-url)
          (name 
                          (if (eq w3m-current-title nil) 
                                        (read-string "Title: ") 
                                 (w3m-current-title)))
          (keywords (read-string "Keywords: "))
          (desc (read-string "Description: ")))
      (bibl-visit-create)
      (insert name)
      (forward-line 1) (end-of-line)
      (insert keywords)
      (forward-line 1) (end-of-line)
      (insert desc)
      (forward-line 1) (end-of-line)
      (insert url)
      (bibl-tidy-record)
      (save-buffer)
      (bury-buffer))))

        
- -- 
Rainer Volz
Virtuelle Projekte -- www.vrtprj.de
Virtual Projects   -- www.vrtprj.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQFA5GwFenjtlV2FwvQRAkPpAKCPmGEQ4F+ZnZJHYngXyLj67q4tKACgibH9
AWNCvHRu7JUd0IjtBCPzpI0=
=CJl2
-----END PGP SIGNATURE-----





reply via email to

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