annotate lisp/w3/w3-hot.el @ 70:131b0175ea99 r20-0b30

Import from CVS: tag r20-0b30
author cvs
date Mon, 13 Aug 2007 09:02:59 +0200
parents e04119814345
children 1ce6082ce73f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
1 ;;; w3-hot.el --- Main functions for emacs-w3 on all platforms/versions
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
2 ;; Author: wmperry
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
3 ;; Created: 1996/07/26 05:22:59
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
4 ;; Version: 1.5
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
5 ;; Keywords: faces, help, comm, news, mail, processes, mouse, hypermedia
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
6
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
8 ;;; Copyright (c) 1993 - 1996 by William M. Perry (wmperry@cs.indiana.edu)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 ;;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
10 ;;; This file is not part of GNU Emacs, but the same permissions apply.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;;; GNU Emacs is free software; you can redistribute it and/or modify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ;;; it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ;;; the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ;;; any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;;; GNU Emacs is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 ;;; GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ;;; You should have received a copy of the GNU General Public License
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
23 ;;; along with GNU Emacs; see the file COPYING. If not, write to
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
24 ;;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 ;;; Structure for hotlists
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 ;;; (
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 ;;; ("name of item1" . "http://foo.bar.com/") ;; A single item in hotlist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 ;;; ("name of item2" . ( ;; A sublist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 ;;; ("name of item3" . "http://www.ack.com/")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 ;;; ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 ;;; ) ; end of hotlist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 (require 'w3-vars)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 ;;; Hotlist Handling Code
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 (defvar w3-html-bookmarks nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
44 (defun w3-hotlist-break-shit ()
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
45 (let ((todo '(w3-hotlist-apropos
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
46 w3-hotlist-delete
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
47 w3-hotlist-rename-entry
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
48 w3-hotlist-append
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
49 w3-use-hotlist
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
50 w3-hotlist-add-document
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
51 w3-hotlist-add-document-at-point
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
52 ))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
53 (cur nil))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
54 (while todo
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
55 (setq cur (car todo)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
56 todo (cdr todo))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
57 (fset cur
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
58 (`
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
59 (lambda (&rest ignore)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
60 (error "Sorry, `%s' does not work with html bookmarks"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
61 (quote (, cur)))))))))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
62
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 (defun w3-read-html-bookmarks (fname)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 "Import an HTML file into the Emacs-w3 format."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 (interactive "fBookmark file: ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 (if (not (file-readable-p fname))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 (error "Can not read %s..." fname))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 (save-excursion
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 (set-buffer (get-buffer-create " *bookmark-work*"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 (erase-buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 (insert-file-contents fname)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 (let* ((w3-debug-html nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 (bkmarks nil)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
74 (parse (w3-parse-buffer (current-buffer) t)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 (setq parse w3-last-parse-tree
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 bkmarks (nreverse (w3-grok-html-bookmarks parse))
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
77 w3-html-bookmarks bkmarks)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
78 (w3-hotlist-break-shit))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 (eval-when-compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 (defvar cur-stack nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 (defvar cur-title nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 (defmacro push-new-menu ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 '(setq cur-stack (cons (list "") cur-stack)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 (defmacro push-new-item (title href)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 (` (setcar cur-stack (cons (vector (, title) (list 'w3-fetch (, href)) t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 (car cur-stack)))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 ;;(` (setcar cur-stack (cons (cons (, title) (, href)) (car cur-stack)))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 (defmacro finish-submenu ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 '(let ((x (nreverse (car cur-stack))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 (and x (setcar x (car cur-title)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 (setq cur-stack (cdr cur-stack)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 cur-title (cdr cur-title))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 (if cur-stack
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 (setcar cur-stack (cons x (car cur-stack)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 (setq cur-stack (list x)))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 (defun w3-grok-html-bookmarks-internal (tree)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 (let (node tag content args)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 (while tree
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 (setq node (car tree)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 tree (cdr tree)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 tag (and (listp node) (nth 0 node))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 args (and (listp node) (nth 1 node))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 content (and (listp node) (nth 2 node)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 (cond
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 ((eq tag 'title)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 (setq cur-title (list (w3-normalize-spaces (car content))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 (w3-grok-html-bookmarks-internal content))
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
113 ((memq tag '(dl ol ul))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 (push-new-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 (w3-grok-html-bookmarks-internal content)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 (finish-submenu))
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
117 ((and (memq tag '(dt li))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 (stringp (car content)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 (setq cur-title (cons (w3-normalize-spaces (car content))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 cur-title)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 ((and (eq tag 'a)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 (stringp (car-safe content))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 (cdr-safe (assq 'href args)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 (push-new-item (w3-normalize-spaces (car-safe content))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 (cdr-safe (assq 'href args))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 (content
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 (w3-grok-html-bookmarks-internal content))))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 (defun w3-grok-html-bookmarks (chunk)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 (let (
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 cur-title
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 cur-stack
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 (w3-grok-html-bookmarks-internal chunk)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 (reverse (car cur-stack))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 (defun w3-hotlist-apropos (regexp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 "Show hotlist entries matching REGEXP."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 (interactive "sW3 Hotlist Apropos (regexp): ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 (or w3-setup-done (w3-do-setup))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 (let ((save-buf (get-buffer "Hotlist")) ; avoid killing this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 (w3-hotlist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 (apply
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 'nconc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 (mapcar
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 (function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 (lambda (entry)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 (if (or (string-match regexp (car entry))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 (string-match regexp (car (cdr entry))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 (list entry))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 w3-hotlist))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 (if (not w3-hotlist)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 (message "No w3-hotlist entries match \"%s\"" regexp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 (and save-buf (save-excursion
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 (set-buffer save-buf)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 (rename-buffer (concat "Hotlist during " regexp))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 (unwind-protect
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 (progn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 (w3-show-hotlist)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 (rename-buffer (concat "Hotlist \"" regexp "\""))
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
161 (setq url-current-file (concat "hotlist/" regexp)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 (and save-buf (save-excursion
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 (set-buffer save-buf)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 (rename-buffer "Hotlist")))))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 (defun w3-hotlist-refresh ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 "Reload the default hotlist file into memory"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 (interactive)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
169 (w3-parse-hotlist)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
170 (if (fboundp 'w3-add-hotlist-menu) (w3-add-hotlist-menu)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 (defun w3-delete-from-alist (x alist)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 ;; Remove X from ALIST, return new alist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 (if (eq (assoc x alist) (car alist)) (cdr alist)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 (delq (assoc x alist) alist)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 (defun w3-hotlist-delete ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 "Deletes a document from your hotlist file"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 (interactive)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 (save-excursion
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 (if (not w3-hotlist) (message "No hotlist in memory!")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 (if (not (file-exists-p w3-hotlist-file))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 (message "Hotlist file %s does not exist." w3-hotlist-file)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 (let* ((completion-ignore-case t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 (title (car (assoc (completing-read "Delete Document: "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 w3-hotlist nil t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 w3-hotlist)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 (case-fold-search nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 (buffer (get-buffer-create " *HOTW3*")))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 (and (string= title "") (error "No document specified."))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 (set-buffer buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 (erase-buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 (insert-file-contents w3-hotlist-file)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 (goto-char (point-min))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 (if (re-search-forward (concat "^" (regexp-quote title) "\r*$")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 nil t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 (let ((make-backup-files nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 (version-control nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 (require-final-newline t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 (previous-line 1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 (beginning-of-line)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 (delete-region (point) (progn (forward-line 2) (point)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 (write-file w3-hotlist-file)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 (setq w3-hotlist (w3-delete-from-alist title w3-hotlist))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 (kill-buffer (current-buffer)))
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
206 (message "%s was not found in %s" title w3-hotlist-file))))))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
207 (and (fboundp 'w3-add-hotlist-menu) (funcall 'w3-add-hotlist-menu)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 (defun w3-hotlist-rename-entry (title)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 "Rename a hotlist item"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 (interactive (list (let ((completion-ignore-case t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 (completing-read "Rename entry: " w3-hotlist nil t))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 (cond ; Do the error handling first
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 ((string= title "") (error "No document specified!"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 ((not w3-hotlist) (error "No hotlist in memory!"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 ((not (file-exists-p (expand-file-name w3-hotlist-file)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 (error "Hotlist file %s does not exist." w3-hotlist-file))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 ((not (file-readable-p (expand-file-name w3-hotlist-file)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 (error "Hotlist file %s exists, but is unreadable." w3-hotlist-file)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 (save-excursion
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221 (let ((obj (assoc title w3-hotlist))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 (used (mapcar 'car w3-hotlist))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 (buff (get-buffer-create " *HOTW3*"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 (new nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 (while (or (null new) (member new used))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 (setq new (read-string "New name: ")))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 (set-buffer buff)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 (erase-buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 (insert-file-contents (expand-file-name w3-hotlist-file))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 (goto-char (point-min))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 (if (re-search-forward (regexp-quote title) nil t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 (let ((make-backup-files nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 (version-control nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 (require-final-newline t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 (previous-line 1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 (beginning-of-line)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 (delete-region (point) (progn (forward-line 2) (point)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 (insert (format "%s %s\n%s\n" (nth 1 obj) (current-time-string)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 new))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 (setq w3-hotlist (cons (list new (nth 1 obj))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 (w3-delete-from-alist title w3-hotlist)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 (write-file w3-hotlist-file)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 (kill-buffer (current-buffer))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 (if (and w3-running-FSF19 (not (eq 'tty (device-type))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 (progn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 (delete-menu-item '("Go"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 (w3-build-FSF19-menu))))
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
249 (message "%s was not found in %s" title w3-hotlist-file))))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
250 (and (fboundp 'w3-add-hotlist-menu) (funcall 'w3-add-hotlist-menu)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 (defun w3-hotlist-append (fname)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 "Append a hotlist to the one in memory"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 (interactive "fAppend hotlist file: ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 (let ((x w3-hotlist))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 (w3-parse-hotlist fname)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
257 (setq w3-hotlist (nconc x w3-hotlist))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
258 (and (fboundp 'w3-add-hotlist-menu) (funcall 'w3-add-hotlist-menu))))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
260 (defun w3-hotlist-parse-old-mosaic-format ()
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
261 (let (cur-link cur-alias)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
262 (while (re-search-forward "^\n" nil t) (replace-match ""))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
263 (goto-line 3)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
264 (while (not (eobp))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
265 (re-search-forward "^[^ ]*" nil t)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
266 (setq cur-link (buffer-substring (match-beginning 0) (match-end 0)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
267 (setq cur-alias (buffer-substring (progn
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
268 (forward-line 1)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
269 (beginning-of-line)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
270 (point))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
271 (progn
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
272 (end-of-line)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
273 (point))))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
274 (if (not (equal cur-alias ""))
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
275 (setq w3-hotlist (cons (list cur-alias cur-link) w3-hotlist)))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
276 (if (fboundp 'w3-add-hotlist-menu)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
277 (funcall 'w3-add-hotlist-menu)))))
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
278
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 (defun w3-parse-hotlist (&optional fname)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 "Read in the hotlist specified by FNAME"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 (if (not fname) (setq fname w3-hotlist-file))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 (setq w3-hotlist nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 (if (not (file-exists-p fname))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 (message "%s does not exist!" fname)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285 (let* ((old-buffer (current-buffer))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 (buffer (get-buffer-create " *HOTW3*"))
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
287 (case-fold-search t))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288 (set-buffer buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 (erase-buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
290 (insert-file-contents fname)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 (goto-char (point-min))
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
292 (cond
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
293 ((looking-at "ncsa-xmosaic-hotlist-format-1");; Old-style NCSA Mosaic
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
294 (w3-hotlist-parse-old-mosaic-format))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
295 ((or (looking-at "<!DOCTYPE") ; Some HTML style, including netscape
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
296 (re-search-forward "<a[ \n]+href" nil t))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
297 (w3-read-html-bookmarks fname))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
298 (t
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
299 (message "Cannot determine format of hotlist file: %s" fname)))
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
300 (set-buffer-modified-p nil)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
301 (kill-buffer buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
302 (set-buffer old-buffer))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
303
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304 ;;;###autoload
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305 (defun w3-use-hotlist ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
306 "Possibly go to a link in your W3/Mosaic hotlist.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
307 This is part of the emacs World Wide Web browser. It will prompt for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
308 one of the items in your 'hotlist'. A hotlist is a list of often
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309 visited or interesting items you have found on the World Wide Web."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310 (interactive)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311 (if (not w3-setup-done) (w3-do-setup))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
312 (if (not w3-hotlist) (message "No hotlist in memory!")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
313 (let* ((completion-ignore-case t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314 (url (car (cdr (assoc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315 (completing-read "Goto Document: " w3-hotlist nil t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
316 w3-hotlist)))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
317 (if (string= "" url) (error "No document specified!"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318 (w3-fetch url))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
319
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
320 (defun w3-hotlist-add-document-at-point (pref-arg)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
321 "Add the document pointed to by the hyperlink under point to the hotlist."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
322 (interactive "P")
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
323 (let ((url (w3-view-this-url t)) title)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
324 (or url (error "No link under point."))
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
325 (setq title (get-text-property (point) 'title))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
326 (if (and title
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
327 (marker-buffer (car title))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
328 (marker-buffer (cdr title)))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
329 (setq title (buffer-substring-no-properties (car title) (cdr title)))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
330 (setq title "None"))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
331 (w3-hotlist-add-document pref-arg title url)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
332 (and (fboundp 'w3-add-hotlist-menu) (funcall 'w3-add-hotlist-menu))))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
333
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
334 (defun w3-hotlist-add-document (pref-arg &optional the-title the-url)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
335 "Add this documents url to the hotlist"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
336 (interactive "P")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337 (save-excursion
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
338 (let* ((buffer (get-buffer-create " *HOTW3*"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339 (title (or the-title
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340 (and pref-arg (read-string "Title: "))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
341 (buffer-name)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342 (make-backup-files nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
343 (version-control nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
344 (require-final-newline t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
345 (url (or the-url (url-view-url t))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
346 (if (rassoc (list url) w3-hotlist)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
347 (error "That item already in hotlist, use w3-hotlist-rename-entry."))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
348 (set-buffer buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349 (erase-buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350 (setq w3-hotlist (cons (list title url) w3-hotlist)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
351 url (url-unhex-string url))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352 (if (not (file-exists-p w3-hotlist-file))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
353 (progn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
354 (message "Creating hotlist file %s" w3-hotlist-file)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355 (insert "ncsa-xmosaic-hotlist-format-1\nDefault\n\n")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
356 (backward-char 1))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
357 (progn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
358 (insert-file-contents w3-hotlist-file)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
359 (goto-char (point-max))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
360 (backward-char 1)))
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
361 (insert "\n" (url-hexify-string url) " " (current-time-string)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
362 "\n" title)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
363 (write-file w3-hotlist-file)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
364 (kill-buffer (current-buffer))))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 32
diff changeset
365 (and (fboundp 'w3-add-hotlist-menu) (funcall 'w3-add-hotlist-menu)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
366
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367 (provide 'w3-hot)