From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Harald =?UTF-8?Q?J=C3=B6rg?= Newsgroups: gmane.emacs.bugs Subject: bug#66050: Making perl-mode.el obsolete Date: Mon, 25 Sep 2023 08:40:24 +0000 Message-ID: <87pm26r6h3.fsf@oook.m.uunet.de> References: <4963b74f-7723-c473-afe3-2c3f84324217@gmail.com> <87jzsfw6t8.fsf@oook.m.uunet.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15852"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Corwin Brust , 66050@debbugs.gnu.org, Mauro Aranda , rms@gnu.org, Stefan Kangas To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 25 10:40:59 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 1qkh9G-0003qo-6B for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Sep 2023 10:40:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qkh99-0004zk-Vc; Mon, 25 Sep 2023 04:40:51 -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 1qkh97-0004zO-Ra for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2023 04:40:49 -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 1qkh97-0007tS-JN for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2023 04:40:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qkh9J-0007D4-Qo for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2023 04:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Harald =?UTF-8?Q?J=C3=B6rg?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Sep 2023 08:41:01 +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.169563124727688 (code B ref 66050); Mon, 25 Sep 2023 08:41:01 +0000 Original-Received: (at 66050) by debbugs.gnu.org; 25 Sep 2023 08:40:47 +0000 Original-Received: from localhost ([127.0.0.1]:44111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkh94-0007CW-SM for submit@debbugs.gnu.org; Mon, 25 Sep 2023 04:40:47 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:36353) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkh92-0007CI-B9 for 66050@debbugs.gnu.org; Mon, 25 Sep 2023 04:40:45 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 54FEB24002A for <66050@debbugs.gnu.org>; Mon, 25 Sep 2023 10:40:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1695631226; bh=P9JPzPC+1pgn06o2SRUxzJwp8BHE8K/WJeczjPpTMII=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=bkff8EGocw0SJZr8HfgniOo7I6QjJKBgLy0x0dOE2KjU43w7epZC82LEpHa6q5t0b yNwUWl6rgQQ6h86kDVUmr61NwM4oT1MurbajLLHArMncPuK6gfY43lpHK/fG4r+o/e xuJwqLa848DLCcjKC33r5t+hNu1H5bsHb4Yo07Djjk/Y+S/TfBn3cGeYkig3THkSZd vH+skzhP1QeKg6bUb7cQT6okN8FoU84+hbCzv2sX1eAn572DN9D1I8lhrbkBCyEGSg NUgh8mhnTyO8Crs3B6vTYRRhUgM6Yl9DMDXwRP5tulei8Cx+aXgti8fbXnwHZhRRo3 oKHYY6OIkE2rQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RvGXm6p7mz6txT; Mon, 25 Sep 2023 10:40:24 +0200 (CEST) In-Reply-To: (Stefan Monnier's message of "Sun, 24 Sep 2023 18:54:11 -0400") 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:271307 Archived-At: Stefan Monnier writes: >>> 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. >> >> I consider the behavior of perl-mode to be a bug. > > The behavior looks right to me, tho I haven't checked the code if it's > by accident (i.e. because of a bug in `perl-mode`) or not. I was wrong (as explained in my reply to Mauro). Sorry for the confusion! > [...] >> The message is technically correct, and generally I consider the ability >> of cperl-mode to locate syntax errors useful. But I understand that it >> can be annoying while you're typing (I myself don't see these messages >> because I use paredit-mode, but I understand that not everyone wants >> this electricity). I guess that a way to optionally suppress these >> messages can be found. > > I think the way we usually solve these tensions is to replace those > error messages with some kind of highlighting (and if necessary > `help-echo` properties to help the user figure out what this > highlighting is for). > > E.g. in ELisp mode, a non-terminated string results in a string-highlight > that bleeds into the subsequent code. And an argument wrongly placed on > the same line as something already indented within a subexpression as > in: > > (foo arg1 > (some sub > expression) badarg2) > > gets a `font-lock-warning-face` together with a `help-echo`. Thanks for this suggestion! This would be an improvement to cperl-mode in general. I didn't know about the help-echo property! -- Cheers, haj