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

w3-preview-this-buffer



w3-preview-this-buffer stopped working a long time ago --- just
use browse-url-of-buffer and browse-url-of-region 

>>>>> "Peter" == Peter Rayner <peter.rayner@cea.fr> writes:
    Peter> In trying to track down the error I mentioned last
    Peter> night I noticed that w3-preview-this-buffer had
    Peter> stopped working for me.  This is WWW p4.0pre.47, URL
    Peter> Exp taken from the gnu cvs under emacs-22.050 and
    Peter> emacspeak from cvs.  the problem is that that www is
    Peter> not a recognised url-type by the url package.  the
    Peter> info page on defining a new url-type is blank so until
    Peter> I can work this out from the source I wrote the
    Peter> following trivial work-around.
    Peter> 
    Peter> (defun w3-preview-this-buffer () "See what this buffer
    Peter> will look like when its formatted as HTML.  HTML is
    Peter> the HyperText Markup Language used by the World Wide
    Peter> Web to specify formatting for text.  More information
    Peter> on HTML can be found at ftp.w3.org:/pub/www/doc."
    Peter> (interactive) (setq w3-preview-file (make-temp-file
    Peter> "w3-preview" nil ".html")) (write-region (point-min)
    Peter> (point-max) w3-preview-file nil) (w3-open-local
    Peter> w3-preview-file))
    Peter> 
    Peter> I suspect the above should be achieved with a "let"
    Peter> form so that w3-preview-file is local but I was
    Peter> screwing up the syntax for longer than I had free to
    Peter> work on the problem.  Instruction in lisp syntax
    Peter> always welcome ...  cheers Peter
    Peter> 
    Peter> 
    Peter> -- Peter Rayner: LSCE/IPSL, Laboratoire CEA-CNRS-UVSQ
    Peter> address: Bat. 701 LSCE - CEA de Saclay Orme des
    Peter> Merisiers, 91191 Gif/Yvette work: +33 (1) 69 08 88 11;
    Peter> mobile: +33 (6) 75 46 56 52; fax: +33 (1) 69 08 77 16
    Peter> mail-to: peter.rayner@cea.fr
    Peter> 
    Peter> -----------------------------------------------------------------------------
    Peter> To unsubscribe from the emacspeak list or change your
    Peter> address on the emacspeak list send mail to
    Peter> "emacspeak-request@cs.vassar.edu" with a subject of
    Peter> "unsubscribe" or "help"

-- 
Best Regards,
--raman

      
Email:  raman@users.sf.net
WWW:    http://emacspeak.sf.net/raman/
AIM:    emacspeak       GTalk: tv.raman.tv@gmail.com
PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:    irc://irc.freenode.net/#emacs

-----------------------------------------------------------------------------
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