From: Dieter Wilhelm <dieter@duenenhof-wilhelm.de>
Cc: help-gnu-emacs@gnu.org
Subject: best practise: hiding not defined symbols? [was: problems starting windows compiled help files with start-process]
Date: Sun, 10 Dec 2006 00:01:47 +0100 [thread overview]
Message-ID: <87zm9wd678.fsf_-_@hans.local.net> (raw)
In-Reply-To: <uirgycy8j.fsf@gmail.com> (Mathias Dahl's message of "Wed\, 29 Nov 2006 12\:02\:04 +0100")
Mathias Dahl <brakjoller@gmail.com> writes:
> Dieter Wilhelm <dieter@duenenhof-wilhelm.de> writes:
>
>> I'd like to be able to open a windows (on XP) compiled help file
>> (.chm). It works well with `shell-process' in just giving the shell
>> the .chm file as argument. But I can't get it to run with
>> start-process. Probably I need to call a viewer for this file. I
>> googled around and found that the internet explorer is supposed to
>> act as "viewer" for these help files. The next hurdle is where to
>> find the executable, I can't find iexplorer.exe or iexplore.exe on
>> my disk.
>
> Have you tried using `w32-shell-execute'?
>
> (w32-shell-execute "Open" "blabla.chm")
>
> /Mathias
Thanks again, now I've a conditional:
(cond
(ansys-is-unix-system
(start-process "ansys-help" nil ansys-help))
((string= system-type "windows-nt")
(w32-shell-execute "Open" ansys-help)))
This works fine but when trying to byte-compile I get a warning in the
following manner:
w32-shell-execute is not known to be defined under Linux
Can/should I somehow hide the w32-* stuff when compiling under a Unix
system and how?
--
Best wishes
H. Dieter Wilhelm
Darmstadt, Germany
prev parent reply other threads:[~2006-12-09 23:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1267.1164765489.2155.help-gnu-emacs@gnu.org>
2006-11-29 11:02 ` problems starting windows compiled help files with start-process Mathias Dahl
2006-11-30 1:16 ` Dieter Wilhelm
2006-11-30 1:29 ` Lennart Borgman
2006-11-30 4:29 ` Eli Zaretskii
2006-11-30 6:52 ` cvs best practise [was: problems starting windows compiled help files with start-process] Dieter Wilhelm
2006-11-30 19:49 ` Eli Zaretskii
2006-12-01 0:34 ` cvs best practise Dieter Wilhelm
2006-12-09 23:01 ` Dieter Wilhelm [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zm9wd678.fsf_-_@hans.local.net \
--to=dieter@duenenhof-wilhelm.de \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).