comparison lisp/w3/FAQ @ 134:34a5b81f86ba r20-2b1

Import from CVS: tag r20-2b1
author cvs
date Mon, 13 Aug 2007 09:30:11 +0200
parents d2f30a177268
children 6608ceec7cf8
comparison
equal deleted inserted replaced
133:b27e67717092 134:34a5b81f86ba
13 have a recent version of GNUS installed in a non-standard place. 13 have a recent version of GNUS installed in a non-standard place.
14 14
15 Make sure that you can load the custom library when compiling 15 Make sure that you can load the custom library when compiling
16 emacs. Set the environment variable WIDGETDIR to where your custom 16 emacs. Set the environment variable WIDGETDIR to where your custom
17 library lives (ie: ~/lisp/gnus/lisp) 17 library lives (ie: ~/lisp/gnus/lisp)
18
19 Q: I like being warned about invalid HTML on my own pages, but how can
20 I make Emacs/W3 stop telling me almost everything on the Web is
21 invalid?
22 A: You can use the 'file preparation hook', which is run before any
23 parsing is done.
24
25 (defun my-w3-file-prepare-hook ()
26 (setq w3-debug-html
27 (if (or (string= (url-type url-current-object) "file")
28 (string-match ".*\\.some\\.domain\\.name"
29 (or (url-host url-current-object) "")))
30 'style
31 nil)))
32 (add-hook 'w3-file-prepare-hook 'my-w3-file-prepare-hook)
33
34 This will turn on stylistic warnings for any local HTML files or
35 files loaded from the `*.some.domain.name' domain.
18 36
19 Courtesy of greg stark <gsstark@mit.edu> 37 Courtesy of greg stark <gsstark@mit.edu>
20 Q: How do i get Shift-Tab to go backwards on a text terminal or XTerm? 38 Q: How do i get Shift-Tab to go backwards on a text terminal or XTerm?
21 aka: I hate the new text widgets, I can't go through the links with n and b 39 aka: I hate the new text widgets, I can't go through the links with n and b
22 I can go forward using TAB but how do i go backward on a terminal? 40 I can go forward using TAB but how do i go backward on a terminal?