From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dieter Wilhelm Newsgroups: gmane.emacs.help 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 Organization: The Church of Emacs Message-ID: <87zm9wd678.fsf_-_@hans.local.net> References: NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1165705346 11502 80.91.229.10 (9 Dec 2006 23:02:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 9 Dec 2006 23:02:26 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 10 00:02:25 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GtBD6-00058y-G3 for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Dec 2006 00:02:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GtBD6-00011j-5j for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Dec 2006 18:02:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GtBCu-00011e-Bc for help-gnu-emacs@gnu.org; Sat, 09 Dec 2006 18:02:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GtBCr-00011H-MK for help-gnu-emacs@gnu.org; Sat, 09 Dec 2006 18:02:11 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GtBCr-00011D-Ij for help-gnu-emacs@gnu.org; Sat, 09 Dec 2006 18:02:09 -0500 Original-Received: from [212.227.126.188] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GtBCq-0003fa-0v for help-gnu-emacs@gnu.org; Sat, 09 Dec 2006 18:02:08 -0500 Original-Received: from [84.167.67.132] (helo=duenenhof-wilhelm.de) by mrelayeu.kundenserver.de (node=mrelayeu0) with ESMTP (Nemesis), id 0MKwh2-1GtBCp0xUg-0006Le; Sun, 10 Dec 2006 00:02:07 +0100 Original-Received: by duenenhof-wilhelm.de (Postfix, from userid 1000) id 1BB677662B; Sun, 10 Dec 2006 00:01:48 +0100 (CET) Original-To: Mathias Dahl In-Reply-To: (Mathias Dahl's message of "Wed\, 29 Nov 2006 12\:02\:04 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) X-Provags-ID: kundenserver.de abuse@kundenserver.de login:d7ab225b98a136e1c2910381f940ecb9 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:39381 Archived-At: Mathias Dahl writes: > Dieter Wilhelm 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