[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Search]
w3-preview-this-buffer
- To: emacspeak@xxxxxxxxxxx
- Subject: w3-preview-this-buffer
- From: Peter Rayner <peter.rayner@xxxxxxxxxxx>
- Date: Fri, 21 Jul 2006 22:46:01 +0200
- Delivered-To: priestdo@xxxxxxxxxxx
- Delivered-To: emacspeak@xxxxxxxxxxx
- List-Help: <mailto:emacspeak-request@xxxxxxxxxxx?subject=help>
- List-Post: <mailto:emacspeak@xxxxxxxxxxx>
- List-Subscribe: <mailto:emacspeak-request@xxxxxxxxxxx?subject=subscribe>
- List-Unsubscribe: <mailto:emacspeak-request@xxxxxxxxxxx?subject=unsubscribe>
- Old-Return-Path: <peter.rayner@xxxxxxxxxxx>
- Reply-To: peter.rayner@xxxxxxxxxxx
- Resent-Date: Fri, 21 Jul 2006 16:42:40 -0400 (EDT)
- Resent-From: emacspeak@xxxxxxxxxxx
- Resent-Message-ID: <Fxa2g.A.xj.AxTwEB@xxxxxxxxxxx>
- Resent-Sender: emacspeak-request@xxxxxxxxxxx
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@xxxxxxxxxxx
-----------------------------------------------------------------------------
To unsubscribe from the emacspeak list or change your address on the
emacspeak list send mail to "emacspeak-request@xxxxxxxxxxx" with a
subject of "unsubscribe" or "help"
Emacspeak Files |
Subscribe |
Unsubscribe | Search