From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mauro Aranda Newsgroups: gmane.emacs.bugs Subject: bug#66050: Making perl-mode.el obsolete Date: Thu, 21 Sep 2023 11:13:51 -0300 Message-ID: <4963b74f-7723-c473-afe3-2c3f84324217@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38684"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Cc: haj@posteo.de, 66050@debbugs.gnu.org, rms@gnu.org, monnier@iro.umontreal.ca To: Stefan Kangas , Corwin Brust Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 21 16:15:09 2023 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 1qjKSS-0009rC-KJ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Sep 2023 16:15:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjKSN-0008Hw-5B; Thu, 21 Sep 2023 10:15:03 -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 1qjKSC-00089V-DP for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 10:14:53 -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 1qjKSC-0002dV-5h for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 10:14:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjKSM-0006W0-50 for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 10:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Sep 2023 14:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66050 X-GNU-PR-Package: emacs Original-Received: via spool by 66050-submit@debbugs.gnu.org id=B66050.169530565324971 (code B ref 66050); Thu, 21 Sep 2023 14:15:02 +0000 Original-Received: (at 66050) by debbugs.gnu.org; 21 Sep 2023 14:14:13 +0000 Original-Received: from localhost ([127.0.0.1]:34552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjKRY-0006Ug-Om for submit@debbugs.gnu.org; Thu, 21 Sep 2023 10:14:13 -0400 Original-Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]:45157) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjKRX-0006US-AM for 66050@debbugs.gnu.org; Thu, 21 Sep 2023 10:14:12 -0400 Original-Received: by mail-pg1-x534.google.com with SMTP id 41be03b00d2f7-577fb90bb76so562031a12.2 for <66050@debbugs.gnu.org>; Thu, 21 Sep 2023 07:14:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695305635; x=1695910435; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=oaRKX5vDAaoztRW7w3t0q0xWsq2senS0UZ8DuKESdjw=; b=Q7QeTXrsM284QwOTnEJ72XGBytUxHoahU0AS61J5LamZul9plwhCxDxmurEs4vIO5K Z5/Q4+6zx6W+85n4/Stlrwd2pjlM85VvKaqyEidr/Jc9NdQp46iDu3pa0qhY0mc0w6rh zefgsUm+cn8HLQfbxAdPIZgGkMWfAocIuSqssr7Jhj1EWTMERqmXzKZ8gvpIxWZfXY2j YVwC2gHoilE1bGFzU/hvGc8/vSb+lskqiUqmqX3SzJGA6sBIog6UySlwd/jbuyVElQwS ZnsR/7BmTK4QE66h/bjkerfX5/3qNY1IKOk9TLWgwFWI+qcKEuI/3WhTcQlYWDgD+lHN aKsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695305635; x=1695910435; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oaRKX5vDAaoztRW7w3t0q0xWsq2senS0UZ8DuKESdjw=; b=Z9yLtMI+m90VKtcZANTWzxRk0paOxYLMIcqqO9UMItR9Itw5EzVMQpddMSGctmlzgc vXH19N6XOryUceeQdzBbBjRZemJNXWsZrhEytrxpM+RJLkollwtMUC5MHFueyv+ksNBm faHPq9DiQWLQpKWm1yRnAfH+wWV1acjmYRlVs5NpzMMKRpx+yrNwsgxnjDhMq3VHqKW3 2u380ViobZj5A0CyKIDE+xfiC15OAOGVkqI4MEsioyFV7V3HWHlZrr0O3Tf/rnKSCJKk hNANPDqZVR2Fj5Vl+7uSPZ56QdSyVWgs1v93HA16cocffyquCQDoQ+1JGZf37oOTFfIz Cgtg== X-Gm-Message-State: AOJu0YxFy2v4N86BdgeHCised8q4hMtlYtwV2UYTDl2Wz5do1gglm2r6 HLEZlAaacyHfbVS85pWOyfs= X-Google-Smtp-Source: AGHT+IGkWOUSTzNH2J19Nmll3k9q7s27YDnp2H6xl4lXnNIyLohU29sZa96djhflF18evo5nmmnoxg== X-Received: by 2002:a17:90b:60f:b0:271:9237:a07f with SMTP id gb15-20020a17090b060f00b002719237a07fmr5925593pjb.32.1695305635358; Thu, 21 Sep 2023 07:13:55 -0700 (PDT) Original-Received: from [192.168.0.234] ([152.168.142.156]) by smtp.gmail.com with ESMTPSA id fs16-20020a17090af29000b0026b4ca7f62csm1424993pjb.39.2023.09.21.07.13.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Sep 2023 07:13:54 -0700 (PDT) Content-Language: en-US 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:270994 Archived-At: > Corwin Brust writes: > >> On Wed, Sep 20, 2023 at 6:26 PM Stefan Kangas wrote: >>> >>> Richard Stallman writes: >>> >>>> If it is feasible to put conditionals in CPerl mode to make it behave >>>> like Perl mode -- or close enough that almost everyone is happy with >>>> it -- maybe then we could obsolete the current Perl mode. >>> >>> Agreed. Let's start with adding such options to cperl-mode. >> >> Does there already exist a list of cperl features/behaviors which >> perl-mode users find objectionable? > > I'm only aware of the list provided by Jens Schmidt upthread: > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=66050#16 What would be a good way of collecting this information? In addition to what Jens Schmidt said, I can add that: 1. If I have something like: my $some_code = ""; $some_code.= q( my $counter = 0; ); If I put point at column 0 of the line "my $counter", and hit TAB, I get indentation in perl-mode. I don't in cperl-mode. I tried to look into options for making this work but I couldn't find anything. 2. While I'm typing the above string, I get messages about string/RE not found: End of ‘q( ... )’ string/RE not found: (scan-error Unbalanced parentheses 1092 1874) End of ‘q( ... )’ string/RE not found: (scan-error Unbalanced parentheses 1092 1918) [2 times] End of ‘q( ... )’ string/RE not found: (scan-error Unbalanced parentheses 1092 1962) [2 times] That's annoying. So far, my settings for getting a perl-mode experience in cperl-mode, with emacs -Q: (taken from a custom file): '(cperl-highlight-variables-indiscriminately t) '(cperl-indent-level 4) '(cperl-indent-parens-as-block t) '(cperl-invalid-face 'default) '(cperl-array-face ((t (:inherit cperl-hash-face)))) '(cperl-hash-face ((t (:underline t :inherit font-lock-variable-name-face)))) '(cperl-nonoverridable-face ((t (:inherit default))))