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 10:36:48 +0200 Message-ID: <9710545.eNJFYEL58v@3-191.divsi.unimi.it> References: <3686989.dWV9SEqChM@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="40553"; 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 10:39:14 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 1sFV7y-000ALT-Dm for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Jun 2024 10:39:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFV7a-0006UA-8h; Fri, 07 Jun 2024 04:38:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sFV7X-0006TX-O0 for bug-gnu-emacs@gnu.org; Fri, 07 Jun 2024 04:38: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 1sFV7X-0007K0-3e for bug-gnu-emacs@gnu.org; Fri, 07 Jun 2024 04:38:47 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sFV7l-0006k2-U3 for bug-gnu-emacs@gnu.org; Fri, 07 Jun 2024 04:39:01 -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 08:39:01 +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.171774949325783 (code B ref 71380); Fri, 07 Jun 2024 08:39:01 +0000 Original-Received: (at 71380) by debbugs.gnu.org; 7 Jun 2024 08:38:13 +0000 Original-Received: from localhost ([127.0.0.1]:35767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFV6y-0006hm-Gn for submit@debbugs.gnu.org; Fri, 07 Jun 2024 04:38:12 -0400 Original-Received: from mail-ej1-f44.google.com ([209.85.218.44]:44503) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFV6x-0006hO-24 for 71380@debbugs.gnu.org; Fri, 07 Jun 2024 04:38:11 -0400 Original-Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a68b5f18fc5so211144566b.1 for <71380@debbugs.gnu.org>; Fri, 07 Jun 2024 01:37:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717749410; x=1718354210; 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=K4IGzudpFWVTdPbqxtryVNnDgcmx/TQJrD0QtozSBiI=; b=nZue0Oygl4X+rEY4PdFjhdrdCR+2gJoUN8clvfmXPoLoSQAUEDecAybwEQvvjkPJaj Le9T/DDqxKahOKkxlIQ2tWzVXc9byeTiw1UR+Gyx0SS+wW8l7x0HDQKYCPgJ7xnbfjDp GKRS2mAnyk5t1p9V7Rj+i1OXmSlo/RMTTBtLk00DfR14AmLRhkTwAgnwbOy+1RYWi+xP rh17HwJGgy0fu9qU2uollC19tW+nGIxEU+51bHb44kL2WW50yQg50UMuxdEYGHNEzXLG KQBCb92r3WxA/4GkVli3uzS1bvCgZn6PRj4W2Nq6RHG+tyGFqKQAiAEp6HpTlFEubzzc 0e4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717749410; x=1718354210; 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=K4IGzudpFWVTdPbqxtryVNnDgcmx/TQJrD0QtozSBiI=; b=wlCVIHUS2YaKh6oRgE1rOmhL/PLzgDUvZYoI8Ha92wtPX5IML6gS/PM0Mg6iJVVJXX Af3CQbH0PMsmoyXCt6SaPrsSlJx5Wl02UQemhOE1W46zOUgEsVGHBQ7xHqQP/j13A+NM lpF49lo8K5lK8EBomS9cptS6JTsbQ1WtMRmSFnYT78nPkEhfs3D5zrkQieGg/dLj4BcI gNUudJR7ZMuwWnJ18SfoClshGq98JFPItF/FZZe9btWBW/B2YuO15kMABKRXnPENawT/ FzV5MgRp2HhtFxDiBkYcERpJTjTuKmMu67z10EFHT5DxN3wsLvzrqHofX5z/QLku7Q66 aJhw== X-Gm-Message-State: AOJu0Yy6HieUZK07L+0rcn8QOSTEPcEE5WbXt4AeCA5RCMzDDEHKxk/Q b6Y8k8QeW8sGOdBuAq4rQ2X+GwjhtzmyrzqcVOhseDE1t/yHz/cs X-Google-Smtp-Source: AGHT+IHRIFUFjdhU08lbhn5chSoxXYFqYcv8L19SzgE/p2lkvLBzGCtbQXVu/v/mbAaN5lOLwtXCXg== X-Received: by 2002:a17:906:32c7:b0:a52:3583:b9d0 with SMTP id a640c23a62f3a-a6cd560fb20mr126285566b.3.1717749409725; Fri, 07 Jun 2024 01:36:49 -0700 (PDT) Original-Received: from 3-191.divsi.unimi.it (3-191.divsi.unimi.it. [159.149.3.191]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6c80581b47sm215400866b.11.2024.06.07.01.36.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 01:36:49 -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:286749 Archived-At: Ciao Andrea,=20 I think the warning is due to html-ts-mode. It checks whether or not the pa= rser exists, but even if it does not exist it tries to create it: =2E.. (unless (treesit-ready-p 'html) (error =E2=80=9CTree-sitter for HTML isn't available=E2=80=9D)) (treesit-parser-create 'html) =2E... I fixed it by replacing =E2=80=9Cunless=E2=80=9D with =E2=80=9Cif=E2=80=9D = =2E.. Do I open another bug for this patch? Ok for the ";; Maintainer".=20 Go ahead and bother me! :D V. In data gioved=C3=AC 6 giugno 2024 16:54:12 CEST, Andrea Corallo ha scritto: > Vincenzo Pupillo writes: >=20 > > Hi,=20 > > I would like to submit php-ts-mode.=20 > > This major mode this major mode, in addition to font-lock for PHP imple= ments the following features: > > * font-lock for html, javascript, css and phpdoc. > > * six different indentation styles (PSR, PEAR, Zend, Drupal, Wordpress,= Symfony). > > * Imenu > > * Flymake > > * Which-function > > * a helper function to simplify the installation of parsers, in version= s used to develop major-mode > > * PHP built-in server support > > * Shell interaction: execute PHP code in an inferior PHP process. > > > > > > I completed the assignment process in March 2023. > > Thank you. > > > > Vincenzo >=20 > Ciao Vincenzo, >=20 > applying the patch to the tree and building I see this warning is > introduced on my machine. >=20 > 'Warning (treesit): Cannot activate tree-sitter, because language grammar= for html is unavailable (not-found):' >=20 > Also, maybe you want to add ";; Maintainer:" as well with your name so > we know who to bother in case? :) >=20 > Andrea >=20