From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#68762: 30.0.50; thing-at-point for an e-mail adress stops at "." Date: Mon, 29 Jan 2024 10:05:17 +0100 Message-ID: <874jewy0fm.fsf@gmail.com> References: <87sf2izyzi.fsf@titusmueller.de> <86le8a7h9n.fsf@gnu.org> <86mssq53va.fsf@gnu.org> 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="27971"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , mail@titusmueller.de, philipk@posteo.net, 68762@debbugs.gnu.org To: Eshel Yaron Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 29 10:06:13 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 1rUNan-00076g-4S for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Jan 2024 10:06:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUNaV-0000gy-D4; Mon, 29 Jan 2024 04:05:55 -0500 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 1rUNaU-0000gg-8Q for bug-gnu-emacs@gnu.org; Mon, 29 Jan 2024 04:05:54 -0500 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 1rUNaT-0002Qo-Vj for bug-gnu-emacs@gnu.org; Mon, 29 Jan 2024 04:05:53 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rUNab-0007Yz-LV for bug-gnu-emacs@gnu.org; Mon, 29 Jan 2024 04:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Jan 2024 09:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68762 X-GNU-PR-Package: emacs Original-Received: via spool by 68762-submit@debbugs.gnu.org id=B68762.170651913729035 (code B ref 68762); Mon, 29 Jan 2024 09:06:01 +0000 Original-Received: (at 68762) by debbugs.gnu.org; 29 Jan 2024 09:05:37 +0000 Original-Received: from localhost ([127.0.0.1]:59040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUNaD-0007YF-8S for submit@debbugs.gnu.org; Mon, 29 Jan 2024 04:05:37 -0500 Original-Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:49262) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUNaA-0007Xw-0c for 68762@debbugs.gnu.org; Mon, 29 Jan 2024 04:05:35 -0500 Original-Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-40ef6454277so6358975e9.2 for <68762@debbugs.gnu.org>; Mon, 29 Jan 2024 01:05:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706519119; x=1707123919; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=N/2o8dTaUw4KNxsXh2LVEDMcO6Kk47VtS7xE4EKu4Mc=; b=VsL8Yi447VgiKtfxVulqwue65bXLrtehqGm/Py4QlZQJOZWbFK8J8rjS2+pb3oVBWP B27swPt15GgtD7gJpHFVdLNPtBduPCaPfohhdVbAmsEr/yHMloqSTrtN46ss0pdt0vKb zhZiCMgUbqVHSgLdruTgmbgZSosXI2NMrj6762yBJdIrQX7dhYClzv0Jshe05kEd+cYW 0NA3CQq8MLxQzeBPnSFqZoUxoug8rgalg+4mJOZTxX5POAxoqk2mqT537dBsBUjlbogr 3dWH20DQwScrbh9Kb3sxB4deQFLqcysCiO9S31s6GzHYc/xsAqNc336vyLWikraPFDL7 LuLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706519119; x=1707123919; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=N/2o8dTaUw4KNxsXh2LVEDMcO6Kk47VtS7xE4EKu4Mc=; b=JiIsQuQm9BDiPlSFSZv+ACjrbanfu/WJ6k/kJqiWfFd6WQuTAqJvAUA1OpibPz88rv Z8oFtYonArbtWHvC8fYnkVLtNWYu1ieV9mbPLA2iiMZNgCU2lQGqdxWqNAdye5NpVeZg p2FYtj/338g+QVWaYS0lFm+ZnVwaOzNOzu3saCon6Fv228z0pdaiYJgs9iX1UiPXRkQ7 GDCYnbyPs0ziVZ6y/gtUhlPr1TVfsAlAuCd2LkpSl10u+5yNyOZhHgp+UxnooEjbAzyC OOnWiAt7fRdhCzAa5qfrFkJFMBqc2luExW7S9PQkLZCW8wFVQ3EwZyISpdoDVDsqlxPD cvKg== X-Gm-Message-State: AOJu0YxUTsMEH63YHXSYjonb35dWA6LUouLffqQLC7koJxjXxDcjGuv2 XX8clnBgUH1akULEVxoMz/GrbEuTquLeoKGwGo1Z1DVmMK1MdZnr811tGgGp X-Google-Smtp-Source: AGHT+IHH2U5IFk9tl99tO6uFrMqNq9VKEsfEb8o+FQPO/BWf46Bannjvys2KEeT3ey2WlB5QjYTjJA== X-Received: by 2002:a05:600c:4282:b0:40e:bf77:8152 with SMTP id v2-20020a05600c428200b0040ebf778152mr4247658wmc.5.1706519119357; Mon, 29 Jan 2024 01:05:19 -0800 (PST) Original-Received: from rltb ([2a01:e0a:3f3:fb50:4ec9:5294:3ee2:a1ea]) by smtp.gmail.com with ESMTPSA id f7-20020a05600c4e8700b0040e4914f28dsm13369087wmq.18.2024.01.29.01.05.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 01:05:18 -0800 (PST) In-Reply-To: (Eshel Yaron's message of "Sun, 28 Jan 2024 08:47:49 +0100") 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:279122 Archived-At: >>>>> On Sun, 28 Jan 2024 08:47:49 +0100, Eshel Yaron s= aid: Eshel> Eli Zaretskii writes: >>> From: Eshel Yaron >>> Cc: Titus M=C3=BCller , Philip Kaludercic >>> , 68762@debbugs.gnu.org >>> Date: Sun, 28 Jan 2024 06:58:19 +0100 >>>=20 >>> FWIW, AFAICT this is introduced by 03cfede8f0 (which fixed Bug#6151= 9). >>>=20 >>> I think the real issue resides in `thing-at-point-looking-at`, thou= gh: >>> It stops extending the match backwards when it first encounters a >>> non-match. The following change solves this for me, and keeps all = the >>> tests happy: >>=20 >> Thanks. Can you describe the main ideas of the change? Eshel> Sure: the current implementation searches forward first, and the= n back, Eshel> until it finds a match that contains point. It then extends the= match Eshel> backward character by character until it reaches a non-match. M= y change Eshel> reverses the direction: start from some position before point an= d search Eshel> forward until you find a match that contains point. This works = better Eshel> since "matching a regular expression at a given spot always work= s from Eshel> beginning to end" (from Info node "(elisp) Regexp Search"). >> Robert, any comments? Not really. It would be nice if the test suite could be extended to catch this. Robert --=20