From: rpd <richard@dickinson350.freeserve.co.uk>
To: Help-gnu-emacs@gnu.org
Subject: Re: html browser preview help
Date: Sat, 5 Sep 2009 14:27:27 -0700 (PDT) [thread overview]
Message-ID: <25312500.post@talk.nabble.com> (raw)
In-Reply-To: <4AA29BDC.3060304@eku.edu>
Hi Tyler
Thanks for your reply-but your advice doesn't work properly for me (it does
open a browser window but this opens at my homepage & does not preview the
html file/buffer I have open for editing).
This is driving my crazy trying to fix (as I have spent a lot of time today
with this- I even installed w3m & can now view html buffer files with that
BUT that is only a text browser!! I want to see preview in a full browser!).
I have adjusted the code ken-93 gave with his latest advice & when I use it
it opens a blank page Internet Explorer (I guess I need to add the code
that points to the current file buffer but I do not know how to do that).
Anyway here is this latest defun code:
; Windows explorer to go to the file in the current buffer
(defun browse-file-url-ie (url &optional new-window)
"Open the current file, the file associated with the current buffer,
in a new IE tab."
(interactive "i")
(unless
(string= ""
(shell-command-to-string
(concat " start about:blank 'openURL(file://"
buffer-file-name
")'")))
(message " Opening in IE new tab: " buffer-file-name)))
(setq browse-url-browser-function 'browse-file-url-ie)
Please can someone give me more help to fix this? I look forward to helpful
replies, thanks
Tyler Smith-3 wrote:
>
> rpd wrote:
>> I still need some help to get to preview html files in my Internet
>> Explorer
>> browser.
>>
>> ken-93 helped me with some code (which opens Firefox browser) which I
>> have
>> tried to adapt to do
>> this for Internet Explorer but it isn't working. I am using
>> html-helper-mode
>>
>>
>
> Have you tried browse-url-of-buffer? It's normally bound to C-c C-v, and
> on Vista it sends the file you are editing to your default browser, no
> further configurations or code necessary.
>
> Cheers,
>
> Tyler
>
>
>
>
>
--
View this message in context: http://www.nabble.com/html-browser-preview-help-tp25273542p25312500.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
next prev parent reply other threads:[~2009-09-05 21:27 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-03 10:47 html browser preview help rpd
2009-09-03 13:48 ` ken
2009-09-03 20:42 ` rpd
2009-09-03 21:14 ` ken
2009-09-03 22:32 ` rpd
2009-09-04 23:10 ` rpd
2009-09-05 17:11 ` Tyler Smith
2009-09-05 21:27 ` rpd [this message]
2009-09-05 21:44 ` Drew Adams
2009-09-06 0:13 ` rpd
2009-09-06 1:19 ` Tyler Smith
2009-09-06 9:15 ` rpd
2009-09-06 1:39 ` Drew Adams
2009-09-06 9:22 ` rpd
2009-09-06 11:49 ` html browser preview help-SORTED (at last!) rpd
2009-09-06 14:17 ` html browser preview help Drew Adams
[not found] ` <mailman.6097.1252228975.2239.help-gnu-emacs@gnu.org>
2009-09-06 9:50 ` Xah Lee
2009-09-06 9:56 ` Xah Lee
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=25312500.post@talk.nabble.com \
--to=richard@dickinson350.freeserve.co.uk \
--cc=Help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.