From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.help Subject: Re: Ert batch-mode error Date: Mon, 6 Apr 2020 18:55:26 -0400 Message-ID: References: <087407fd-d0a3-af4e-938d-522f0cdb698b@easy-emacs.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="27574"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs mailing list To: =?UTF-8?Q?Andreas_R=C3=B6hler?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 07 00:56:26 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jLafK-00070y-RH for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 07 Apr 2020 00:56:26 +0200 Original-Received: from localhost ([::1]:38806 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLafJ-0005W0-Sc for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 06 Apr 2020 18:56:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48064) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLaef-0005Th-80 for help-gnu-emacs@gnu.org; Mon, 06 Apr 2020 18:55:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jLaee-0000LB-BB for help-gnu-emacs@gnu.org; Mon, 06 Apr 2020 18:55:45 -0400 Original-Received: from mail-oi1-x22f.google.com ([2607:f8b0:4864:20::22f]:41528) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jLaee-0000Js-4t for help-gnu-emacs@gnu.org; Mon, 06 Apr 2020 18:55:44 -0400 Original-Received: by mail-oi1-x22f.google.com with SMTP id k9so14667879oia.8 for ; Mon, 06 Apr 2020 15:55:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=8Q5o2YcriC+kv+x2/qiSZCsSAPfAyqaTdNbxdzDMQQQ=; b=Pl+jAC81F+qwlv5/4nYDieD1AkyTSkyaH2nFsVopBFPXYwaimXJeDHM39ZtrFXIDDD Rb0gICl5VVnfjMd/KnEby+vThQc86YSdjzx9mqQRsR5yWwKwljeYwrY9iNAZIkDgmEbX ILfGoY0i4QGwUhvDucBQf/Se0rrcopCUKYWJLhXKrkg31uwK+0uhPE15aOVnPw4UT18p OFT6VbkzGzLVFhGjw8Q8U5/B9Frf+cVxzPFBQY4j1n9yiAWP2oUKEKifTOWjMyPK6GE2 xyWG93R4+AKBvoGjwr0PRriBamM+rE3rbuwmCI7cjq/6Wizoxmlz3+LvWdtLSlMzzULt Czug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=8Q5o2YcriC+kv+x2/qiSZCsSAPfAyqaTdNbxdzDMQQQ=; b=rCbKyXLd+7nO0i+enZ8mto9/SRY6O5WdgincyRQPz4Womz4mL01fmM55L2PSy0vMeT Jx6kF6DWWx76tGoc8g02cYlglidIPGq1gBHfZzhlXwEgviYTLHzgt2w6D4gtU0Fty0QK LaHyY/hOHM5x6RaMjeSMKuWpzMI1CWRaJcJiSzu7qOPYjO+lu8ax5eFq/etjRR9Wc6iG SGiggUnBaVUMQgAB+QLZPZ9LUeNRG+2Hlh6/1uMCdLB1yIsJvQbN7uMkfTcg1qEEUOs3 3Wrd/cuu0gVugj84m3Nc2y4LxDh6AvsRV02PPrts8t8PpI+En2WyhP6JMv43VLzN0WAf wDRw== X-Gm-Message-State: AGi0PuZrLF1eKgPBJOFn/m/mab6hYzkVIKTCKGaCWMf5Ix0PLrX+Cdrt gOvRh/uCrOZ2RPFmDc+9Q0xtPQPWYG8jk8TsLyoACSvd X-Google-Smtp-Source: APiQypLpLgd2WlbJTP4EOFRBxtrWDW4B9zgBgi9xaV3thj7/PhGIwVP39Dl7giVMj9GscG0Y6XXl/kqrsaEJ58yHzfY= X-Received: by 2002:aca:3dd7:: with SMTP id k206mr1312326oia.87.1586213742717; Mon, 06 Apr 2020 15:55:42 -0700 (PDT) In-Reply-To: <087407fd-d0a3-af4e-938d-522f0cdb698b@easy-emacs.de> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::22f X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:122757 Archived-At: On Mon, 6 Apr 2020 at 05:05, Andreas R=C3=B6hler wrote: > (syntactic-close-test-with-python-buffer > So the error occurs only in batch-mode. This macro tries calls font-lock-fontity-region, perhaps the problem is that font-lock mode doesn't activate in batch mode (although it's not clear to me why your should depend on font-lock). I wrote yas--with-font-locked-temp-buffer for some yasnippet tests to deal with similar problems. https://github.com/joaotavora/yasnippet/blob/0.14.0/yasnippet-tests.el#L856= -L874