Mercurial > hg > xemacs-beta
diff 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 |
line wrap: on
line diff
--- a/lisp/w3/FAQ Mon Aug 13 09:29:37 2007 +0200 +++ b/lisp/w3/FAQ Mon Aug 13 09:30:11 2007 +0200 @@ -16,6 +16,24 @@ emacs. Set the environment variable WIDGETDIR to where your custom library lives (ie: ~/lisp/gnus/lisp) +Q: I like being warned about invalid HTML on my own pages, but how can + I make Emacs/W3 stop telling me almost everything on the Web is + invalid? +A: You can use the 'file preparation hook', which is run before any + parsing is done. + + (defun my-w3-file-prepare-hook () + (setq w3-debug-html + (if (or (string= (url-type url-current-object) "file") + (string-match ".*\\.some\\.domain\\.name" + (or (url-host url-current-object) ""))) + 'style + nil))) + (add-hook 'w3-file-prepare-hook 'my-w3-file-prepare-hook) + + This will turn on stylistic warnings for any local HTML files or + files loaded from the `*.some.domain.name' domain. + Courtesy of greg stark <gsstark@mit.edu> Q: How do i get Shift-Tab to go backwards on a text terminal or XTerm? aka: I hate the new text widgets, I can't go through the links with n and b