From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: [ANN] Exporter for taskjuggler Date: Tue, 8 Jun 2010 18:05:40 +0200 Message-ID: <3B7F4AEF-CEBE-456E-8672-0C1A4D0EC6B7@gmail.com> References: <87ljdarxpw.fsf@saadawi.sbszh.ch> <874ojbgmi8.fsf@stats.ox.ac.uk> <87wrw3dag8.fsf@saadawi.sbszh.ch> <87k4s21r6m.fsf@saadawi.sbszh.ch> <871vchubgh.fsf@saadawi.sbszh.ch> <8EB5419B-3737-401F-978F-50FB69580BB4@gmail.com> <87wru9slcj.fsf@saadawi.sbszh.ch> <87sk4xsjtw.fsf@saadawi.sbszh.ch> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=44700 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OM1JD-0008LN-EE for emacs-orgmode@gnu.org; Tue, 08 Jun 2010 12:05:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OM1JB-0002ei-Mb for emacs-orgmode@gnu.org; Tue, 08 Jun 2010 12:05:47 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:51677) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OM1JB-0002eb-H3 for emacs-orgmode@gnu.org; Tue, 08 Jun 2010 12:05:45 -0400 Received: by fxm14 with SMTP id 14so3517365fxm.0 for ; Tue, 08 Jun 2010 09:05:44 -0700 (PDT) In-Reply-To: <87sk4xsjtw.fsf@saadawi.sbszh.ch> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Christian Egli Cc: emacs-orgmode@gnu.org On Jun 8, 2010, at 4:03 PM, Christian Egli wrote: > Christian Egli writes: > >>> In org-export-as-taskjuggler-and-open: >>> org-taskjuggler.el:330:6:Warning: start-process-shell-command called >>> with 4 >>> arguments, but accepts only 3 >> >> This I cannot reproduce using the command command you gave. Is this >> maybe only a problem in newer Emacs versions? I'm using Emacs 23.1.1 > > Digging some more I found the following in > http://www.gnu.org/software/emacs/NEWS.23.2: > >> *** start-process-shell-command and start-file-process-shell-command >> now only take a single `command' argument. > > i.e. Emacs 23.2 has a different api for start-process-shell-command. > > I'm not quite sure how to deal with this. Should I add a wrapper > function in org-compat (say "org-start-process-shell-command") that > checks for emacs version > 23.2 and calls start-process-shell-command > accordingly? One possibility is to check for versions. Better is maybe to do it =20 like this (condition-case nil (org-no-warnings (start-process-shell-command with four different args)) (error (start-process-shell-command with three args)) Thill try one version, and if that given an error, try the other one. To get rid of the compiler warning, wrap the call into org-no-warnings. - Carsten > > Christian > --=20 > Christian Egli > Swiss Library for the Blind, Visually Impaired and Print Disabled > Grubenstrasse 12, CH-8045 Z=FCrich, Switzerland > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten