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-SORTED (at last!) Date: Sun, 6 Sep 2009 04:49:51 -0700 (PDT) Message-ID: <25316992.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> <25312500.post@talk.nabble.com> <60980647A112445C948583D156804EA2@us.oracle.com> <25313460.post@talk.nabble.com> <25315933.post@talk.nabble.com> 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 1252237832 25526 80.91.229.12 (6 Sep 2009 11:50:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Sep 2009 11:50:32 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 06 13:50:25 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 1MkGGE-0006pq-Lp for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Sep 2009 13:50:23 +0200 Original-Received: from localhost ([127.0.0.1]:40435 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MkGGE-0006ol-3o for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Sep 2009 07:50:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MkGFr-0006n5-Ca for help-gnu-emacs@gnu.org; Sun, 06 Sep 2009 07:49:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MkGFm-0006kt-HK for Help-gnu-emacs@gnu.org; Sun, 06 Sep 2009 07:49:58 -0400 Original-Received: from [199.232.76.173] (port=37461 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MkGFm-0006kq-B3 for Help-gnu-emacs@gnu.org; Sun, 06 Sep 2009 07:49:54 -0400 Original-Received: from kuber.nabble.com ([216.139.236.158]:52421) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MkGFl-00050k-Os for Help-gnu-emacs@gnu.org; Sun, 06 Sep 2009 07:49:54 -0400 Original-Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MkGFj-0004XQ-IZ for Help-gnu-emacs@gnu.org; Sun, 06 Sep 2009 04:49:51 -0700 In-Reply-To: <25315933.post@talk.nabble.com> 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:67904 Archived-At: Hi all Thanks for all your help- I have finally fixed this! Now (at last) I can preview local .html files in my Internet Explorer browser (from the menu & C-c C-v comand). I commented out of my.emacs most of the entries I had tried previously (including the defun entry that I was developing with ken-93). I then used M-x cutomize-group [ret] browse-url to check browse url group states & after some more editing of my .emacs I now have the Browse Url Browser Function set at >browse-url-default-windows-browser< (default I suppose) & finally it works!! Wow- that took some time to fix!- (this shows the problems with adding other code to .emacs to fix a problem-some of it works & some doesn't & you have to be a good detective/editor to find out which is which & know what all this elisp code means!- Well I'm learning...slowly!). Many thanks to all who helped-now I better start doing some html editing & not spending my time fixing emacs...except I still need to tune up chess.el module-does this emacs fiddling ever stop? I must see the doctor about it M-x doctor -LOL!) regards rpd wrote: > > Hi Drew > > Thanks for your reply. > (I am trying to preview a local .html file in my Internet Explorer > browser) > > I do not understand this > 'M-: < command you give? > When I try this (& combinations of) in the minibuffer I get 'no-match' > > Is that really the command? (I did an internet search for it & couldn't > find it). > > Anyway I have not been able to try this yet as I cannot enter the command: > > `M-: (w32-shell-execute nil "c:/my/file.htm")' > > Can you please explain/clarify this for me? > Many thanks, regards > > > Drew Adams wrote: >> >>> Thanks for your reply. >>> I have tried so many ways to get to preview .html in Internet Explorer >>> browser including w32-browser.el and unfortunately nothing >>> has yet worked >>> >>> Vista works normally such as if I click >>> a local directory .html file it opens in Internet Explorer >>> but I cannot get >>> this function to work in Emacs! (the closest I get is opening w3 >>> browser-text browser only). >>> >>> Have you any idea what the problem with this is? Thanks >> >> As I said, I haven't followed this thread. I'm also no expert on this >> stuff. >> >> Are you trying to open your browser on a Web page (URL) somewhere on the >> Web, or >> are you trying to preview a local (or remote, if you know the machine >> etc.) HTML >> file in your Web browser? I thought it was the latter. >> >> If the former, then you probably need to use a URL and a command such as >> `browse-url'. But someone else will be able to help you more with that. >> >> If the latter, then w32-browser.el should do what you need. >> >> All it does is call function `w32-shell-execute' on the file name (or >> punt to >> `find-file' in case of error). That function is an Emacs built-in. Try >> it: `M-: >> (w32-shell-execute nil "c:/my/file.htm")', assuming your file is at >> "c:/my/file.htm" and you have your Windows file associations set up so >> that >> *.htm files open with your Web browser. That should work. >> >> I don't use Vista, and I've about exhausted my knowledge of this area. >> ;-) Hope >> someone else can help you out. >> >> >> >> >> > > -- View this message in context: http://www.nabble.com/html-browser-preview-help-tp25273542p25316992.html Sent from the Emacs - Help mailing list archive at Nabble.com.