From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joost Kremers Subject: Re: malformed function Date: Wed, 11 Jul 2018 11:35:14 +0200 Message-ID: <877em2aze5.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdBWv-0000Lp-Us for emacs-orgmode@gnu.org; Wed, 11 Jul 2018 05:35:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdBWs-0000Bm-SQ for emacs-orgmode@gnu.org; Wed, 11 Jul 2018 05:35:25 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:33293) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fdBWs-0000BO-H7 for emacs-orgmode@gnu.org; Wed, 11 Jul 2018 05:35:22 -0400 In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: hymie! Cc: emacs-orgmode@gnu.org On Mon, Jul 09 2018, hymie! wrote: > Greetings. > > I know this is technically Technically and practically. ;-) > an emacs problem and not an Orgmode problem, > but maybe you guys will see the error that I can't find. A better place to ask would probably be the mailing list=20 help-gnu-emacs, but: > I have two different machines. One is a Linux machine running > Orgmode 9.1.13 under Emacs 25.3.1 , and one is a Windows 10=20 > machine > running Orgmode 9.1.13 under Emacs 24.5.1 . Both have the same=20 > .emacs > file as far as I can tell. Try diff or ediff to make sure. > The Linux machine is getting this error: > > Warning (bytecomp): =E2=80=98(extract-window (line) (let ((start > (get-text-property 1 (quote time-of-day) line)) (dur=20 > (get-text-property > 1 (quote duration) line))) (cond ((and start dur) (cons start > (org-time-from-minutes (+ dur (org-time-to-minutes start)))))=20 > (start > start) (t nil))))=E2=80=99 is a malformed function That means that the entire s-expr (extract-window ... nil)))) is=20 being interpreted as a function, which is caused by the fact that=20 it is the first element of the list ((extract-window ... nil)))))=20 (note extra pair of parens). Since such an s-expr cannot be a=20 function, you get an error. The fact that it is interpreted as a function indicates that the=20 byte compiler doesn't know that `flet' is a macro, which in turn=20 indicates that you haven't loaded the required library. Note that the documentation for `flet' says that it has been=20 obsolete since Emacs 24.3 and that you should be using `cl-flet'=20 instead (or `cl-letf', but that doesn't seem to be what you want).=20 So best thing to do is to replace `flet' with `cl-flet' and then=20 add `(require 'cl-lib)' somewhere at the top of your init file,=20 and you should be good to go. Why you're only getting this error on one machine isn't entirely=20 clear to me. It could be that something changed between Emacs 24=20 and 25 that causes this, it could be that you're loading a package=20 on the Windows machine that loads cl or cl-lib and that you don't=20 use on Emacs. HTH --=20 Joost Kremers Life has its moments