From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rpd Newsgroups: gmane.emacs.help Subject: Re: html browser preview help Date: Sat, 5 Sep 2009 14:27:27 -0700 (PDT) Message-ID: <25312500.post@talk.nabble.com> References: <25273542.post@talk.nabble.com> <4A9FC945.8070703@mousecar.com> <25283740.post@talk.nabble.com> <4AA031B3.1060908@mousecar.com> <25285280.post@talk.nabble.com> <25303306.post@talk.nabble.com> <4AA29BDC.3060304@eku.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1252186131 27303 80.91.229.12 (5 Sep 2009 21:28:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Sep 2009 21:28:51 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 05 23:28:44 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mk2oO-0005ej-4F for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Sep 2009 23:28:44 +0200 Original-Received: from localhost ([127.0.0.1]:59282 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mk2oN-00060P-Hq for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Sep 2009 17:28:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mk2nI-0005n9-JR for help-gnu-emacs@gnu.org; Sat, 05 Sep 2009 17:27:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mk2nC-0005mT-Uw for Help-gnu-emacs@gnu.org; Sat, 05 Sep 2009 17:27:35 -0400 Original-Received: from [199.232.76.173] (port=43088 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mk2nC-0005mQ-PU for Help-gnu-emacs@gnu.org; Sat, 05 Sep 2009 17:27:30 -0400 Original-Received: from kuber.nabble.com ([216.139.236.158]:40091) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mk2nC-0007C6-64 for Help-gnu-emacs@gnu.org; Sat, 05 Sep 2009 17:27:30 -0400 Original-Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Mk2n9-0006EB-B8 for Help-gnu-emacs@gnu.org; Sat, 05 Sep 2009 14:27:27 -0700 In-Reply-To: <4AA29BDC.3060304@eku.edu> X-Nabble-From: richard@dickinson350.freeserve.co.uk X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67895 Archived-At: 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.