From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vincenzo Pupillo Newsgroups: gmane.emacs.bugs Subject: bug#71380: 30.0.50; Submitting php-ts-mode, new major mode for php Date: Fri, 07 Jun 2024 19:02:52 +0200 Message-ID: <4870586.OV4Wx5bFTl@fedora> References: <3686989.dWV9SEqChM@3-191.divsi.unimi.it> <9710545.eNJFYEL58v@3-191.divsi.unimi.it> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35952"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71380@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 07 23:31:26 2024 Return-path: Envelope-to: geb-bug-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 1sFhBG-0009HM-LY for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Jun 2024 23:31:26 +0200 Original-Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFd1F-0001K3-9W; Fri, 07 Jun 2024 13:04:49 -0400 Original-Received: from [2001:470:142:3::10] (helo=eggs.gnu.org) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sFd1D-0001Jv-Fc for bug-gnu-emacs@gnu.org; Fri, 07 Jun 2024 13:04:47 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sFd1D-0003oD-8d for bug-gnu-emacs@gnu.org; Fri, 07 Jun 2024 13:04:47 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sFd1S-0002Oq-1z for bug-gnu-emacs@gnu.org; Fri, 07 Jun 2024 13:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vincenzo Pupillo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Jun 2024 17:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71380 X-GNU-PR-Package: emacs Original-Received: via spool by 71380-submit@debbugs.gnu.org id=B71380.17177798569086 (code B ref 71380); Fri, 07 Jun 2024 17:05:02 +0000 Original-Received: (at 71380) by debbugs.gnu.org; 7 Jun 2024 17:04:16 +0000 Original-Received: from localhost ([127.0.0.1]:43160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFd0i-0002MR-CQ for submit@debbugs.gnu.org; Fri, 07 Jun 2024 13:04:16 -0400 Original-Received: from mail-wr1-f45.google.com ([209.85.221.45]:52443) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFd0h-0002M2-4W for 71380@debbugs.gnu.org; Fri, 07 Jun 2024 13:04:15 -0400 Original-Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-35e4aaa0f33so2294129f8f.0 for <71380@debbugs.gnu.org>; Fri, 07 Jun 2024 10:03:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717779773; x=1718384573; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HHc3jXKiij6MPdircibDgM8lCkIouSxXMHMbRwRNnjs=; b=SgXLmauEcIGfAnbNnN/Mb02xPS9NuKN5bmwa0ggN0QgRDqMw9hIHBV5NXrUreC3oXu z9N6R1o4w8jqjVAnrl9FRPeAeKzfnvoQkYpD4w6WFvdDvmjaHTo2MWfM1gGyDjFySJ8z 7VIHA3lqwtzYob/ARZAE0FchEjhoEhngZjIjFvI/3PcxHsLr2/nOecRhVduu/djI02UD 2CWfPa8kWaDK39WEiWYceUWD+Xq389OVKdzX32pMdDPrWrynxPJgVyPh3Lwh3aZ+20YS ZkNWeydiKAAiEsb/85U9pi0Nda50e7clLG448VjQ8bJeYhzdbdF2yqbeD0IMj20ZauJl p40w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717779773; x=1718384573; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HHc3jXKiij6MPdircibDgM8lCkIouSxXMHMbRwRNnjs=; b=tKvu3a9tUQaDy5rbu4Cux2Ooy+E4Di4kBq1DoQkOxvDNU9bDQUZzpI6I8Ahz9i76/z 5UMZN1vnMYjE79iv1SOGFVro4Kjx6WMihZplQESu5uk0FxmZqjcCsYl0X2L2wtXl1Ms8 OHlNtxbr+9EVRDx15HLHNyndc+xy21lZWB23bFcWrTb3ol7QDoG7k5eTTTM2c9pLQBkv 92EI5smW/vVcFHez+quEj7h1IudB2vZURd9SbvdS1KsQavlkESV/Sq7ZcUdgWm9ALi1u nKVBlGTIy3w3EDU69SSVOvKhTLy4yJWAJxt4B6o55rBE2tqHJTEsjDqyXwuxSJMkT8j3 Eh8w== X-Gm-Message-State: AOJu0YyoPSNZ2B7Wm0zMbpVc3TRycJiWHPGmYPZTqbG0VivbbhY7o3PF KZJdJMBPwpmUeW+afrnl22mrKcMt+/lWfe2A2qn8Sy5yig/sjwVP X-Google-Smtp-Source: AGHT+IH6KaNhPvOEn+C/+I/0D5y1RdtuwjMeUnJ82eMezTVMhfwz+bEJMKNgTJLFNWHqapNGOrRa1g== X-Received: by 2002:a5d:5744:0:b0:35f:e4d:f3dc with SMTP id ffacd0b85a97d-35f0e4df6e3mr812453f8f.9.1717779773337; Fri, 07 Jun 2024 10:02:53 -0700 (PDT) Original-Received: from fedora.localnet (2-230-139-124.ip202.fastwebnet.it. [2.230.139.124]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35ef5fc1c77sm4323931f8f.95.2024.06.07.10.02.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 10:02:53 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:286779 Archived-At: In data venerd=C3=AC 7 giugno 2024 15:39:04 CEST, Andrea Corallo ha scritto: > Vincenzo Pupillo writes: > > Ciao Andrea, > > I think the warning is due to html-ts-mode. It checks whether or not the > > parser exists, but even if it does not exist it tries to create it: ... > >=20 > > (unless (treesit-ready-p 'html) > > =20 > > (error =E2=80=9CTree-sitter for HTML isn't available=E2=80=9D)) > > =20 > > (treesit-parser-create 'html) >=20 > What is not clear to me is why we should run this while compiling > php-ts-mode. I don't know. Maybe because there is a '(require 'html-ts-mode)' ? > > .... > >=20 > > I fixed it by replacing =E2=80=9Cunless=E2=80=9D with =E2=80=9Cif=E2=80= =9D ... > > Do I open another bug for this patch? >=20 > But in that case one could activate html-ts-mode even with no parser? =F0= =9F=A4=94 >=20 I don't think so. Because if the parser is not there, the rest of the code = is=20 not executed. I don't know the details, but all '*-ts modes' do this. > > Ok for the ";; Maintainer". > > Go ahead and bother me! :D > : > :D >=20 > Thanks >=20 > Andrea Ciao Vincenzo