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#24101: This bug is ... unfixable right now Date: Tue, 04 Jul 2023 16:16:05 +0000 Message-ID: <875y6zmz3u.fsf@oook.m.uunet.de> References: <8737mt48bw.fsf@zira.vinc17.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36175"; mail-complaints-to="usenet@ciao.gmane.io" To: 24101@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 04 18:17:22 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 1qGiiQ-0009A5-F5 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Jul 2023 18:17:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qGiiA-0003An-1K; Tue, 04 Jul 2023 12:17:06 -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 1qGii6-0003AV-TB for bug-gnu-emacs@gnu.org; Tue, 04 Jul 2023 12:17:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qGii6-00056U-KW for bug-gnu-emacs@gnu.org; Tue, 04 Jul 2023 12:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qGii6-00082Q-G8 for bug-gnu-emacs@gnu.org; Tue, 04 Jul 2023 12:17:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <8737mt48bw.fsf@zira.vinc17.org> Resent-From: Harald =?UTF-8?Q?J=C3=B6rg?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Jul 2023 16:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24101 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 24101-submit@debbugs.gnu.org id=B24101.168848737630827 (code B ref 24101); Tue, 04 Jul 2023 16:17:02 +0000 Original-Received: (at 24101) by debbugs.gnu.org; 4 Jul 2023 16:16:16 +0000 Original-Received: from localhost ([127.0.0.1]:36476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGihM-000818-0w for submit@debbugs.gnu.org; Tue, 04 Jul 2023 12:16:16 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:38189) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGihI-00080m-8E for 24101@debbugs.gnu.org; Tue, 04 Jul 2023 12:16:14 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 32A11240027 for <24101@debbugs.gnu.org>; Tue, 4 Jul 2023 18:16:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1688487366; bh=XlsV62s2uRyXy52tffWV9yUFq5GLH5ypKpjre04LY+g=; h=From:To:Subject:Date:Message-ID:MIME-Version:From; b=SJe0OY4FEOHk499vZK+QL+ftV4ij7Ink5vUEoAA/3q3RXsYbxcSaZPN6+Th7myLSn uhChN+LpqGPddGTSnsisFnr7tcR+hZr4HChNZhglPt/DzaWuzr5yzQj3G+2yt2tNrD 1cV9L2FWzJH9NMju4ZlDm+Pq08KqTRDfn3oGuhE85DHNwqcNwE98QuvMMxImNgLruN IwyffevYFGR/N8NZG0294QnESh9j8ud4Wwwwke7CNwDSm8ZoRJ88SlZnFlOIP6YFm1 RTGzdXG7kM157objzySbjGBzXVhHHacgX2MhmqwhbAZcY/zRii0J8KPKWP/0IzF5Jd qZvk5OGZlVEgw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QwSZs4w6gz9rxR for <24101@debbugs.gnu.org>; Tue, 4 Jul 2023 18:16:05 +0200 (CEST) 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:264594 Archived-At: On 2016-07-28 20:05, Vincent Lefevre wrote: > 1. Under X Window (so that Emacs uses its own interface), open > a file containing: > > # -*- mode: cperl -*- > > tr/ABCDE/12345/; > > 2. Double-click over "4". > > Only "2345" is selected, instead of "12345". The bug can still be reproduced in Emacs master (Emacs 30). Unfortunately, it can not be fixed due to an Emacs limitation. Background: cperl-mode treats the "match"-part and the "replacement"-part differently. To do that, cperl-mode uses the "generic strings" of Emacs. These need a delimiter character, but the middle "/" can not serve as a end delimiter for the match part _and_ a start delimiter of the replacement part. So cperl-mode "cheats" and makes the first character of the replacement part the start delimiter, and by doing this, it is no longer part of the following "word". Changing that would mean dropping significant features of cperl-mode. Therefore, this only happens for words which start immediately after the "/" which separates match- from replacement part. A workaround is to use paired delimiters, because in that case cperl-mode has two characters to use as end and start delimiter. Selecting by double-clicking (or calling word-at-point) gives the desired result. tr{ABCDE}{12345}; So, as of today I can still confirm the bug - but not fix it. -- Cheers, haj