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

w3-preview-this-buffer



In trying to track down the error I mentioned last night I noticed
that w3-preview-this-buffer had stopped working for me.  This is WWW p4.0pre.47, URL Exp
taken from the gnu cvs under emacs-22.050 and emacspeak from cvs.  the
problem is that that www is not a recognised url-type by the url
package.  the info page on defining a new url-type is blank so until I
can work this out from the source I wrote the following trivial
work-around.  

(defun w3-preview-this-buffer ()
  "See what this buffer will look like when its formatted as HTML.
HTML is the HyperText Markup Language used by the World Wide Web to
specify formatting for text.  More information on HTML can be found at
ftp.w3.org:/pub/www/doc."
  (interactive)
  (setq w3-preview-file (make-temp-file "w3-preview" nil ".html"))
  (write-region (point-min) (point-max)  w3-preview-file nil)
  (w3-open-local w3-preview-file))

I suspect the above should be achieved with a "let" form so that
w3-preview-file is local  but I was screwing up the syntax for longer
than I had free to work on the problem.  Instruction in lisp syntax
always welcome ...
cheers
Peter


-- 
Peter Rayner: LSCE/IPSL, Laboratoire CEA-CNRS-UVSQ
address: Bat. 701 LSCE - CEA de Saclay
Orme des Merisiers, 91191 Gif/Yvette
work: +33  (1) 69 08 88 11;	mobile: +33 (6) 75 46 56 52;	 fax: +33 (1) 69 08 77 16
mail-to: peter.rayner@cea.fr

-----------------------------------------------------------------------------
To unsubscribe from the emacspeak list or change your address on the
emacspeak list send mail to "emacspeak-request@cs.vassar.edu" with a
subject of "unsubscribe" or "help"


Emacspeak Files | Subscribe | Unsubscribe | Search