help-gnu-emacs
[Top][All Lists]
Advanced

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

RE: html browser preview help-SORTED (at last!)


From: rpd
Subject: RE: html browser preview help-SORTED (at last!)
Date: Sun, 6 Sep 2009 04:49:51 -0700 (PDT)

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]