From unknown Sat Aug 16 13:42:36 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#68762 <68762@debbugs.gnu.org> To: bug#68762 <68762@debbugs.gnu.org> Subject: Status: 30.0.50; thing-at-point for an e-mail adress stops at "." Reply-To: bug#68762 <68762@debbugs.gnu.org> Date: Sat, 16 Aug 2025 20:42:36 +0000 retitle 68762 30.0.50; thing-at-point for an e-mail adress stops at "." reassign 68762 emacs submitter 68762 Titus M=C3=BCller severity 68762 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 27 11:36:41 2024 Received: (at submit) by debbugs.gnu.org; 27 Jan 2024 16:36:41 +0000 Received: from localhost ([127.0.0.1]:55793 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTlfa-0005YQ-Ff for submit@debbugs.gnu.org; Sat, 27 Jan 2024 11:36:41 -0500 Received: from lists.gnu.org ([2001:470:142::17]:55164) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTikf-0008Au-5T for submit@debbugs.gnu.org; Sat, 27 Jan 2024 08:29:44 -0500 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 1rTikS-00062j-1x for bug-gnu-emacs@gnu.org; Sat, 27 Jan 2024 08:29:28 -0500 Received: from post.beforesunrise.de ([45.83.104.230]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rTikN-0005Wi-0a for bug-gnu-emacs@gnu.org; Sat, 27 Jan 2024 08:29:27 -0500 X-Virus-Scanned: amavisd-new at beforesunrise.de Received: from Zenbook-Titus.post.beforesunrise.de (unknown [176.2.140.236]) by post.beforesunrise.de (Postfix) with ESMTPSA id 1577CF6 for ; Sat, 27 Jan 2024 14:29:07 +0100 (CET) Authentication-Results: post.beforesunrise.de; spf=pass (sender IP is 176.2.140.236) smtp.mailfrom=mail@titusmueller.de smtp.helo=Zenbook-Titus.post.beforesunrise.de Received-SPF: pass (post.beforesunrise.de: connection is authenticated) X-Virus-Scanned: amavisd-new at beforesunrise.de User-agent: mu4e 1.10.6; emacs 30.0.50 From: Titus =?utf-8?Q?M=C3=BCller?= To: bug-gnu-emacs@gnu.org Subject: 30.0.50; thing-at-point for an e-mail adress stops at "." Date: Sat, 27 Jan 2024 14:25:08 +0100 X-Debbugs-Cc: Message-ID: <87sf2izyzi.fsf@titusmueller.de> MIME-Version: 1.0 Content-Type: text/plain X-PPP-Message-ID: <170636215385.12173.13458346447746677695@post.beforesunrise.de> X-PPP-Vhost: titusmueller.de Received-SPF: pass client-ip=45.83.104.230; envelope-from=mail@titusmueller.de; helo=post.beforesunrise.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 27 Jan 2024 11:36:37 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) When I use (thing-at-point 'email) and point is on an e-mail adress like my.name@website.com, thing-at-point only gets name@website.com and loses the first part before the "." character. This happens after I upgraded from 29.1 to emacs 30.0.50. Thank you for looking into this! Best regards Titus In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.18.0) of 2024-01-23 built on Zenbook-Titus Repository revision: 13c7249105ec0d1a070c6d4e9f73f3c21d905bc8 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101007 System Description: Ubuntu 23.10 Configured using: 'configure --prefix=/usr/local --without-compress-install --with-native-compilation --with-mailutils --with-xml2 --with-x-toolkit=gtk3 --with-xwidgets --with-rsvg' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XIM XINPUT2 XPM XWIDGETS GTK3 ZLIB Important settings: value of $LC_MONETARY: de_DE.UTF-8 value of $LC_NUMERIC: de_DE.UTF-8 value of $LC_TIME: de_DE.UTF-8 value of $LANG: de_DE.UTF-8 locale-coding-system: utf-8-unix Major mode: Outline Minor modes in effect: dired-recent-mode: t dired-hist-mode: t treemacs-icons-dired-mode: t treemacs-filewatch-mode: t treemacs-follow-mode: t treemacs-git-mode: t treemacs-fringe-indicator-mode: t mu4e-column-faces-mode: t mu4e-modeline-mode: t emms-mode-line-mode: t emms-playing-time-display-mode: t emms-playing-time-mode: t marginalia-mode: t vertico-multiform-mode: t vertico-mode: t undo-fu-session-global-mode: t undo-fu-session-mode: t point-history-mode: t recentf-mode: t delete-selection-mode: t org-super-agenda-mode: t typo-mode: t display-time-mode: t spacious-padding-mode: t override-global-mode: t olivetti-mode: t buffer-face-mode: t global-subword-mode: t subword-mode: t save-place-mode: t savehist-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t minibuffer-regexp-mode: t line-number-mode: t global-visual-line-mode: t visual-line-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t abbrev-mode: t Load-path shadows: ~/.emacs.d/themes/doom-solarized-light-theme hides /home/titus/.emacs.d/elpa/doom-themes-20230221.610/doom-solarized-light-theme ~/.emacs.d/themes/doom-themes hides /home/titus/.emacs.d/elpa/doom-themes-20230221.610/doom-themes ~/.emacs.d/themes/doom-themes-base hides /home/titus/.emacs.d/elpa/doom-themes-20230221.610/doom-themes-base /home/titus/.emacs.d/lisp/iflipb/iflipb hides /home/titus/.emacs.d/elpa/iflipb-20220612.858/iflipb /home/titus/.emacs.d/elpa/transient-20231030.1943/transient hides /usr/local/share/emacs/30.0.50/lisp/transient /home/titus/.emacs.d/elpa/bind-key-20221209.2013/bind-key hides /usr/local/share/emacs/30.0.50/lisp/bind-key /home/titus/.emacs.d/elpa/use-package-20221209.2013/use-package-ensure hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-ensure /home/titus/.emacs.d/elpa/use-package-20221209.2013/use-package hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package /home/titus/.emacs.d/elpa/use-package-20221209.2013/use-package-delight hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-delight /home/titus/.emacs.d/elpa/use-package-20221209.2013/use-package-jump hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-jump /home/titus/.emacs.d/elpa/use-package-20221209.2013/use-package-core hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-core /home/titus/.emacs.d/elpa/use-package-20221209.2013/use-package-lint hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-lint /home/titus/.emacs.d/elpa/use-package-20221209.2013/use-package-diminish hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-diminish /home/titus/.emacs.d/elpa/use-package-20221209.2013/use-package-bind-key hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-bind-key /home/titus/.emacs.d/elpa/org-9.6.17/ob-sass hides /usr/local/share/emacs/30.0.50/lisp/org/ob-sass /home/titus/.emacs.d/elpa/org-9.6.17/ob-R hides /usr/local/share/emacs/30.0.50/lisp/org/ob-R /home/titus/.emacs.d/elpa/org-9.6.17/ol-mhe hides /usr/local/share/emacs/30.0.50/lisp/org/ol-mhe /home/titus/.emacs.d/elpa/org-9.6.17/ol-eshell hides /usr/local/share/emacs/30.0.50/lisp/org/ol-eshell /home/titus/.emacs.d/elpa/org-9.6.17/ob-ruby hides /usr/local/share/emacs/30.0.50/lisp/org/ob-ruby /home/titus/.emacs.d/elpa/org-9.6.17/org-archive hides /usr/local/share/emacs/30.0.50/lisp/org/org-archive /home/titus/.emacs.d/elpa/org-9.6.17/ob-lisp hides /usr/local/share/emacs/30.0.50/lisp/org/ob-lisp /home/titus/.emacs.d/elpa/org-9.6.17/org-element hides /usr/local/share/emacs/30.0.50/lisp/org/org-element /home/titus/.emacs.d/elpa/org-9.6.17/ol-w3m hides /usr/local/share/emacs/30.0.50/lisp/org/ol-w3m /home/titus/.emacs.d/elpa/org-9.6.17/org-colview hides /usr/local/share/emacs/30.0.50/lisp/org/org-colview /home/titus/.emacs.d/elpa/org-9.6.17/org-pcomplete hides /usr/local/share/emacs/30.0.50/lisp/org/org-pcomplete /home/titus/.emacs.d/elpa/org-9.6.17/oc-natbib hides /usr/local/share/emacs/30.0.50/lisp/org/oc-natbib /home/titus/.emacs.d/elpa/org-9.6.17/ol-bibtex hides /usr/local/share/emacs/30.0.50/lisp/org/ol-bibtex /home/titus/.emacs.d/elpa/org-9.6.17/org-fold-core hides /usr/local/share/emacs/30.0.50/lisp/org/org-fold-core /home/titus/.emacs.d/elpa/org-9.6.17/org-goto hides /usr/local/share/emacs/30.0.50/lisp/org/org-goto /home/titus/.emacs.d/elpa/org-9.6.17/ob-groovy hides /usr/local/share/emacs/30.0.50/lisp/org/ob-groovy /home/titus/.emacs.d/elpa/org-9.6.17/org-num hides /usr/local/share/emacs/30.0.50/lisp/org/org-num /home/titus/.emacs.d/elpa/org-9.6.17/ob-octave hides /usr/local/share/emacs/30.0.50/lisp/org/ob-octave /home/titus/.emacs.d/elpa/org-9.6.17/ob-css hides /usr/local/share/emacs/30.0.50/lisp/org/ob-css /home/titus/.emacs.d/elpa/org-9.6.17/org-id hides /usr/local/share/emacs/30.0.50/lisp/org/org-id /home/titus/.emacs.d/elpa/org-9.6.17/org-feed hides /usr/local/share/emacs/30.0.50/lisp/org/org-feed /home/titus/.emacs.d/elpa/org-9.6.17/ob-lob hides /usr/local/share/emacs/30.0.50/lisp/org/ob-lob /home/titus/.emacs.d/elpa/org-9.6.17/ol-eww hides /usr/local/share/emacs/30.0.50/lisp/org/ol-eww /home/titus/.emacs.d/elpa/org-9.6.17/ox-publish hides /usr/local/share/emacs/30.0.50/lisp/org/ox-publish /home/titus/.emacs.d/elpa/org-9.6.17/org-footnote hides /usr/local/share/emacs/30.0.50/lisp/org/org-footnote /home/titus/.emacs.d/elpa/org-9.6.17/org-version hides /usr/local/share/emacs/30.0.50/lisp/org/org-version /home/titus/.emacs.d/elpa/org-9.6.17/org-entities hides /usr/local/share/emacs/30.0.50/lisp/org/org-entities /home/titus/.emacs.d/elpa/org-9.6.17/ob-dot hides /usr/local/share/emacs/30.0.50/lisp/org/ob-dot /home/titus/.emacs.d/elpa/org-9.6.17/ox-texinfo hides /usr/local/share/emacs/30.0.50/lisp/org/ox-texinfo /home/titus/.emacs.d/elpa/org-9.6.17/ol-irc hides /usr/local/share/emacs/30.0.50/lisp/org/ol-irc /home/titus/.emacs.d/elpa/org-9.6.17/org-mouse hides /usr/local/share/emacs/30.0.50/lisp/org/org-mouse /home/titus/.emacs.d/elpa/org-9.6.17/ol-doi hides /usr/local/share/emacs/30.0.50/lisp/org/ol-doi /home/titus/.emacs.d/elpa/org-9.6.17/ob-plantuml hides /usr/local/share/emacs/30.0.50/lisp/org/ob-plantuml /home/titus/.emacs.d/elpa/org-9.6.17/ob-shell hides /usr/local/share/emacs/30.0.50/lisp/org/ob-shell /home/titus/.emacs.d/elpa/org-9.6.17/ob-tangle hides /usr/local/share/emacs/30.0.50/lisp/org/ob-tangle /home/titus/.emacs.d/elpa/org-9.6.17/org-inlinetask hides /usr/local/share/emacs/30.0.50/lisp/org/org-inlinetask /home/titus/.emacs.d/elpa/org-9.6.17/org-loaddefs hides /usr/local/share/emacs/30.0.50/lisp/org/org-loaddefs /home/titus/.emacs.d/elpa/org-9.6.17/ob-js hides /usr/local/share/emacs/30.0.50/lisp/org/ob-js /home/titus/.emacs.d/elpa/org-9.6.17/ob-ocaml hides /usr/local/share/emacs/30.0.50/lisp/org/ob-ocaml /home/titus/.emacs.d/elpa/org-9.6.17/org-capture hides /usr/local/share/emacs/30.0.50/lisp/org/org-capture /home/titus/.emacs.d/elpa/org-9.6.17/org-macs hides /usr/local/share/emacs/30.0.50/lisp/org/org-macs /home/titus/.emacs.d/elpa/org-9.6.17/ob-fortran hides /usr/local/share/emacs/30.0.50/lisp/org/ob-fortran /home/titus/.emacs.d/elpa/org-9.6.17/ob-screen hides /usr/local/share/emacs/30.0.50/lisp/org/ob-screen /home/titus/.emacs.d/elpa/org-9.6.17/ob-haskell hides /usr/local/share/emacs/30.0.50/lisp/org/ob-haskell /home/titus/.emacs.d/elpa/org-9.6.17/ol-rmail hides /usr/local/share/emacs/30.0.50/lisp/org/ol-rmail /home/titus/.emacs.d/elpa/org-9.6.17/ob-scheme hides /usr/local/share/emacs/30.0.50/lisp/org/ob-scheme /home/titus/.emacs.d/elpa/org-9.6.17/ob-exp hides /usr/local/share/emacs/30.0.50/lisp/org/ob-exp /home/titus/.emacs.d/elpa/org-9.6.17/ob-forth hides /usr/local/share/emacs/30.0.50/lisp/org/ob-forth /home/titus/.emacs.d/elpa/org-9.6.17/oc-biblatex hides /usr/local/share/emacs/30.0.50/lisp/org/oc-biblatex /home/titus/.emacs.d/elpa/org-9.6.17/ob-processing hides /usr/local/share/emacs/30.0.50/lisp/org/ob-processing /home/titus/.emacs.d/elpa/org-9.6.17/ox-beamer hides /usr/local/share/emacs/30.0.50/lisp/org/ox-beamer /home/titus/.emacs.d/elpa/org-9.6.17/ox-html hides /usr/local/share/emacs/30.0.50/lisp/org/ox-html /home/titus/.emacs.d/elpa/org-9.6.17/ob-table hides /usr/local/share/emacs/30.0.50/lisp/org/ob-table /home/titus/.emacs.d/elpa/org-9.6.17/ol-man hides /usr/local/share/emacs/30.0.50/lisp/org/ol-man /home/titus/.emacs.d/elpa/org-9.6.17/ox-man hides /usr/local/share/emacs/30.0.50/lisp/org/ox-man /home/titus/.emacs.d/elpa/org-9.6.17/ol-info hides /usr/local/share/emacs/30.0.50/lisp/org/ol-info /home/titus/.emacs.d/elpa/org-9.6.17/ob-emacs-lisp hides /usr/local/share/emacs/30.0.50/lisp/org/ob-emacs-lisp /home/titus/.emacs.d/elpa/org-9.6.17/org-refile hides /usr/local/share/emacs/30.0.50/lisp/org/org-refile /home/titus/.emacs.d/elpa/org-9.6.17/ob-java hides /usr/local/share/emacs/30.0.50/lisp/org/ob-java /home/titus/.emacs.d/elpa/org-9.6.17/ob-sed hides /usr/local/share/emacs/30.0.50/lisp/org/ob-sed /home/titus/.emacs.d/elpa/org-9.6.17/ob-comint hides /usr/local/share/emacs/30.0.50/lisp/org/ob-comint /home/titus/.emacs.d/elpa/org-9.6.17/org-cycle hides /usr/local/share/emacs/30.0.50/lisp/org/org-cycle /home/titus/.emacs.d/elpa/org-9.6.17/ob-C hides /usr/local/share/emacs/30.0.50/lisp/org/ob-C /home/titus/.emacs.d/elpa/org-9.6.17/ob-perl hides /usr/local/share/emacs/30.0.50/lisp/org/ob-perl /home/titus/.emacs.d/elpa/org-9.6.17/ox-koma-letter hides /usr/local/share/emacs/30.0.50/lisp/org/ox-koma-letter /home/titus/.emacs.d/elpa/org-9.6.17/ox-md hides /usr/local/share/emacs/30.0.50/lisp/org/ox-md /home/titus/.emacs.d/elpa/org-9.6.17/org-keys hides /usr/local/share/emacs/30.0.50/lisp/org/org-keys /home/titus/.emacs.d/elpa/org-9.6.17/org hides /usr/local/share/emacs/30.0.50/lisp/org/org /home/titus/.emacs.d/elpa/org-9.6.17/ob-eval hides /usr/local/share/emacs/30.0.50/lisp/org/ob-eval /home/titus/.emacs.d/elpa/org-9.6.17/ob-sqlite hides /usr/local/share/emacs/30.0.50/lisp/org/ob-sqlite /home/titus/.emacs.d/elpa/org-9.6.17/ob-latex hides /usr/local/share/emacs/30.0.50/lisp/org/ob-latex /home/titus/.emacs.d/elpa/org-9.6.17/ob-sql hides /usr/local/share/emacs/30.0.50/lisp/org/ob-sql /home/titus/.emacs.d/elpa/org-9.6.17/org-compat hides /usr/local/share/emacs/30.0.50/lisp/org/org-compat /home/titus/.emacs.d/elpa/org-9.6.17/ol-bbdb hides /usr/local/share/emacs/30.0.50/lisp/org/ol-bbdb /home/titus/.emacs.d/elpa/org-9.6.17/org-list hides /usr/local/share/emacs/30.0.50/lisp/org/org-list /home/titus/.emacs.d/elpa/org-9.6.17/org-table hides /usr/local/share/emacs/30.0.50/lisp/org/org-table /home/titus/.emacs.d/elpa/org-9.6.17/org-src hides /usr/local/share/emacs/30.0.50/lisp/org/org-src /home/titus/.emacs.d/elpa/org-9.6.17/org-duration hides /usr/local/share/emacs/30.0.50/lisp/org/org-duration /home/titus/.emacs.d/elpa/org-9.6.17/ob-lilypond hides /usr/local/share/emacs/30.0.50/lisp/org/ob-lilypond /home/titus/.emacs.d/elpa/org-9.6.17/org-lint hides /usr/local/share/emacs/30.0.50/lisp/org/org-lint /home/titus/.emacs.d/elpa/org-9.6.17/org-tempo hides /usr/local/share/emacs/30.0.50/lisp/org/org-tempo /home/titus/.emacs.d/elpa/org-9.6.17/ox-ascii hides /usr/local/share/emacs/30.0.50/lisp/org/ox-ascii /home/titus/.emacs.d/elpa/org-9.6.17/org-clock hides /usr/local/share/emacs/30.0.50/lisp/org/org-clock /home/titus/.emacs.d/elpa/org-9.6.17/org-persist hides /usr/local/share/emacs/30.0.50/lisp/org/org-persist /home/titus/.emacs.d/elpa/org-9.6.17/org-protocol hides /usr/local/share/emacs/30.0.50/lisp/org/org-protocol /home/titus/.emacs.d/elpa/org-9.6.17/org-agenda hides /usr/local/share/emacs/30.0.50/lisp/org/org-agenda /home/titus/.emacs.d/elpa/org-9.6.17/ob-awk hides /usr/local/share/emacs/30.0.50/lisp/org/ob-awk /home/titus/.emacs.d/elpa/org-9.6.17/oc-csl hides /usr/local/share/emacs/30.0.50/lisp/org/oc-csl /home/titus/.emacs.d/elpa/org-9.6.17/ob-eshell hides /usr/local/share/emacs/30.0.50/lisp/org/ob-eshell /home/titus/.emacs.d/elpa/org-9.6.17/ol hides /usr/local/share/emacs/30.0.50/lisp/org/ol /home/titus/.emacs.d/elpa/org-9.6.17/ob-core hides /usr/local/share/emacs/30.0.50/lisp/org/ob-core /home/titus/.emacs.d/elpa/org-9.6.17/org-attach hides /usr/local/share/emacs/30.0.50/lisp/org/org-attach /home/titus/.emacs.d/elpa/org-9.6.17/org-faces hides /usr/local/share/emacs/30.0.50/lisp/org/org-faces /home/titus/.emacs.d/elpa/org-9.6.17/ob-makefile hides /usr/local/share/emacs/30.0.50/lisp/org/ob-makefile /home/titus/.emacs.d/elpa/org-9.6.17/ox hides /usr/local/share/emacs/30.0.50/lisp/org/ox /home/titus/.emacs.d/elpa/org-9.6.17/org-fold hides /usr/local/share/emacs/30.0.50/lisp/org/org-fold /home/titus/.emacs.d/elpa/org-9.6.17/ox-org hides /usr/local/share/emacs/30.0.50/lisp/org/ox-org /home/titus/.emacs.d/elpa/org-9.6.17/org-ctags hides /usr/local/share/emacs/30.0.50/lisp/org/org-ctags /home/titus/.emacs.d/elpa/org-9.6.17/org-macro hides /usr/local/share/emacs/30.0.50/lisp/org/org-macro /home/titus/.emacs.d/elpa/org-9.6.17/ob-ref hides /usr/local/share/emacs/30.0.50/lisp/org/ob-ref /home/titus/.emacs.d/elpa/org-9.6.17/ob hides /usr/local/share/emacs/30.0.50/lisp/org/ob /home/titus/.emacs.d/elpa/org-9.6.17/ob-org hides /usr/local/share/emacs/30.0.50/lisp/org/ob-org /home/titus/.emacs.d/elpa/org-9.6.17/org-attach-git hides /usr/local/share/emacs/30.0.50/lisp/org/org-attach-git /home/titus/.emacs.d/elpa/org-9.6.17/ob-calc hides /usr/local/share/emacs/30.0.50/lisp/org/ob-calc /home/titus/.emacs.d/elpa/org-9.6.17/ox-odt hides /usr/local/share/emacs/30.0.50/lisp/org/ox-odt /home/titus/.emacs.d/elpa/org-9.6.17/org-crypt hides /usr/local/share/emacs/30.0.50/lisp/org/org-crypt /home/titus/.emacs.d/elpa/org-9.6.17/oc-bibtex hides /usr/local/share/emacs/30.0.50/lisp/org/oc-bibtex /home/titus/.emacs.d/elpa/org-9.6.17/ol-docview hides /usr/local/share/emacs/30.0.50/lisp/org/ol-docview /home/titus/.emacs.d/elpa/org-9.6.17/ob-matlab hides /usr/local/share/emacs/30.0.50/lisp/org/ob-matlab /home/titus/.emacs.d/elpa/org-9.6.17/ob-julia hides /usr/local/share/emacs/30.0.50/lisp/org/ob-julia /home/titus/.emacs.d/elpa/org-9.6.17/ob-clojure hides /usr/local/share/emacs/30.0.50/lisp/org/ob-clojure /home/titus/.emacs.d/elpa/org-9.6.17/ob-python hides /usr/local/share/emacs/30.0.50/lisp/org/ob-python /home/titus/.emacs.d/elpa/org-9.6.17/ob-lua hides /usr/local/share/emacs/30.0.50/lisp/org/ob-lua /home/titus/.emacs.d/elpa/org-9.6.17/ox-latex hides /usr/local/share/emacs/30.0.50/lisp/org/ox-latex /home/titus/.emacs.d/elpa/org-9.6.17/org-habit hides /usr/local/share/emacs/30.0.50/lisp/org/org-habit /home/titus/.emacs.d/elpa/org-9.6.17/org-plot hides /usr/local/share/emacs/30.0.50/lisp/org/org-plot /home/titus/.emacs.d/elpa/org-9.6.17/ob-gnuplot hides /usr/local/share/emacs/30.0.50/lisp/org/ob-gnuplot /home/titus/.emacs.d/elpa/org-9.6.17/org-indent hides /usr/local/share/emacs/30.0.50/lisp/org/org-indent /home/titus/.emacs.d/elpa/org-9.6.17/org-datetree hides /usr/local/share/emacs/30.0.50/lisp/org/org-datetree /home/titus/.emacs.d/elpa/org-9.6.17/ox-icalendar hides /usr/local/share/emacs/30.0.50/lisp/org/ox-icalendar /home/titus/.emacs.d/elpa/org-9.6.17/ol-gnus hides /usr/local/share/emacs/30.0.50/lisp/org/ol-gnus /home/titus/.emacs.d/elpa/org-9.6.17/org-mobile hides /usr/local/share/emacs/30.0.50/lisp/org/org-mobile /home/titus/.emacs.d/elpa/org-9.6.17/ob-maxima hides /usr/local/share/emacs/30.0.50/lisp/org/ob-maxima /home/titus/.emacs.d/elpa/org-9.6.17/oc hides /usr/local/share/emacs/30.0.50/lisp/org/oc /home/titus/.emacs.d/elpa/org-9.6.17/org-timer hides /usr/local/share/emacs/30.0.50/lisp/org/org-timer /home/titus/.emacs.d/elpa/org-9.6.17/ob-ditaa hides /usr/local/share/emacs/30.0.50/lisp/org/ob-ditaa /home/titus/.emacs.d/elpa/org-9.6.17/oc-basic hides /usr/local/share/emacs/30.0.50/lisp/org/oc-basic Features: (shadow emacsbug network-stream url-http url-gw nsm url-auth gnus-cite smiley url-cache shr-color mm-archive mail-extr textsec uni-scripts idna-mapping ucs-normalize uni-confusable textsec-check qp org-ql-find org-ql-completing-read org-ql-search org-ql-view transient ov crm compile consult-imenu consult-dir consult-org consult goto-chg cus-start org-superstar org-indent oc-basic ol-eww eww url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect ol-docview doc-view image-mode exif ol-bibtex bibtex ol-bbdb ol-w3m ol-doi org-link-doi dired-recent dired-hist vertico-grid iflipb dired-narrow dired-open dired-hacks-utils dired-x wdired diredfl dired-aux treemacs-icons-dired treemacs treemacs-header-line treemacs-compatibility treemacs-mode treemacs-bookmarks treemacs-tags xref project treemacs-interface treemacs-persistence treemacs-filewatch-mode filenotify treemacs-follow-mode treemacs-rendering treemacs-annotations treemacs-async treemacs-workspaces treemacs-dom treemacs-visuals treemacs-fringe-indicator treemacs-scope pulse treemacs-faces treemacs-icons treemacs-themes treemacs-core-utils pfuture treemacs-logging treemacs-customization treemacs-macros misearch multi-isearch shortdoc vertico-directory help-fns radix-tree org-auto-tangle ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html table ox-ascii ox-publish ox async jka-compr org-ql peg org-duration dired-toggle-sudo gnus-dired mu4e-column-faces org-contacts org-capture mu4e mu4e-org mu4e-notification notifications mu4e-main mu4e-view gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum gnus-group gnus-undo gnus-start gnus-dbus gnus-cloud nnimap nnmail mail-source utf7 nnoo gnus-spec gnus-int gnus-range gnus-win gnus nnheader range mu4e-headers mu4e-compose mu4e-draft mu4e-actions smtpmail mu4e-search mu4e-lists mu4e-bookmarks mu4e-mark mu4e-message shr pixel-fill kinsoku url-file svg dom flow-fill mule-util mu4e-contacts mu4e-update mu4e-folders mu4e-context mu4e-query-items mu4e-server mu4e-modeline mu4e-vars mu4e-helpers mu4e-config mu4e-window ido message sendmail yank-media puny rfc822 mml mml-sec epa epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev gmm-utils mu4e-obsolete inline switch-buffer-functions hl-line ct hsluv color request mailheader mail-utils pass f f-shortdoc imenu password-store with-editor server auth-source-pass emms-mpris pcase dbus emms-librefm-stream xml emms-librefm-scrobbler emms-playlist-limit emms-i18n emms-score emms-stream-info emms-metaplaylist-mode emms-bookmarks emms-cue emms-mode-line-icon emms-browser sort emms-volume emms-volume-sndioctl emms-volume-mixerctl emms-volume-pulse emms-volume-amixer emms-playlist-sort emms-last-played emms-player-xine emms-player-mpd tq emms-lyrics emms-url emms-streams emms-show-all emms-tag-editor emms-tag-tracktag emms-mark emms-mode-line emms-cache emms-info-native emms-info-native-spc emms-info-native-mp3 emms-info-native-ogg emms-info-native-opus emms-info-native-flac emms-info-native-vorbis bindat emms-info-exiftool emms-info-tinytag emms-info-metaflac emms-info-opusinfo emms-info-ogginfo emms-playlist-mode emms-player-vlc emms-player-mpv emms-playing-time emms-player-mplayer emms-player-simple emms-source-playlist emms-source-file thingatpt locate dired dired-loaddefs emms-history emms-info-mp3info emms-info emms-later-do emms-setup emms emms-compat derived ob-gnuplot orderless marginalia vertico-multiform vertico compat ls-lisp undo-fu-session display-line-numbers bookmark text-property-search point-history popwin recentf tree-widget delsel org-super-agenda ts ht s dash org-habit org-agenda org-element org-persist org-id avl-tree generator org-refile org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete org-list org-footnote org-faces org-entities disp-table noutline outline ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs advice find-func cal-menu calendar cal-loaddefs org-version org-compat org-macs hydra lv typo time spacious-padding mixed-pitch use-package-ensure modus-vivendi-tritanopia-theme modus-operandi-tritanopia-theme modus-vivendi-deuteranopia-theme modus-operandi-deuteranopia-theme modus-vivendi-tinted-theme modus-operandi-tinted-theme modus-vivendi-theme modus-operandi-theme cus-edit pp cus-load wid-edit modus-themes edmacro kmacro use-package-bind-key bind-key easy-mmode use-package-core olivetti face-remap cap-words superword subword comp comp-cstr cl-extra warnings icons comp-run comp-common saveplace tramp-sh tramp rx trampver tramp-integration files-x tramp-message help-mode tramp-compat xdg shell pcomplete comint ansi-osc ring parse-time iso8601 time-date format-spec ansi-color tramp-loaddefs savehist finder-inf all-the-icons-autoloads biome-autoloads consult-autoloads deft-autoloads diredfl-autoloads doom-themes-autoloads emms-autoloads google-translate-autoloads goto-last-change-autoloads marginalia-autoloads olivetti-autoloads orderless-autoloads async-autoloads org-contacts-autoloads org-ql-autoloads org-super-agenda-autoloads org-superstar-autoloads org-web-tools-autoloads esxml-autoloads kv-autoloads org-autoloads ov-autoloads pass-autoloads password-store-autoloads pdf-tools-autoloads peg-autoloads plz-autoloads popup-autoloads spacious-padding-autoloads tablist-autoloads transient-autoloads undo-fu-session-autoloads vertico-autoloads info compat-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads xwidget-internal dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk x-toolkit xinput2 x multi-tty move-toolbar make-network-process native-compile emacs) Memory information: ((conses 16 4417324 369181) (symbols 48 63254 42) (strings 32 802022 39380) (string-bytes 1 13189284) (vectors 16 106559) (vector-slots 8 2113101 186917) (floats 8 1030 15805) (intervals 56 169453 4765) (buffers 976 35)) From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 27 13:39:36 2024 Received: (at 68762) by debbugs.gnu.org; 27 Jan 2024 18:39:37 +0000 Received: from localhost ([127.0.0.1]:55907 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTnaa-0000bi-JN for submit@debbugs.gnu.org; Sat, 27 Jan 2024 13:39:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTnaX-0000bT-7q for 68762@debbugs.gnu.org; Sat, 27 Jan 2024 13:39:34 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rTnaI-0000Iw-LV; Sat, 27 Jan 2024 13:39:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=aeVo2VsbCxozUnQyGjPz4s+iLHpSiumCKSWkZWeXzhQ=; b=YwqsMo6Fjk2zgmAivPYn Oa6TcAm7KwEs3Wix4EbfnL7iXzsi+JX3iW/Vz0qadv18WTEGPOU7frLhH+bp+0uBI2QCU2aPE8XQa H8l/R9REJ37mAq3ZT+EfB5ImeTj1j8Vq63yZtH7ovCxQLloupZNS9UQ56Sb2euhd8rGvxcM2xkzxn Gd2eKr/xdyr4vrMKHD4qtk/XvUeMReWzRjBFmpYWbY5Un7NIlFcSzki7FeQlbUQMinGolyASVoQaG 2zkM4UqKq+pi4m/OZLinCmRQxBQAHEdMUtqIf7dC03nybjwVxu2/rVuT8kLHs0JmwP90QT+9JKafw smyCeo5Qcmkf4w==; Date: Sat, 27 Jan 2024 20:39:16 +0200 Message-Id: <86le8a7h9n.fsf@gnu.org> From: Eli Zaretskii To: Titus =?iso-8859-1?Q?M=FCller?= ,Philip Kaludercic In-Reply-To: <87sf2izyzi.fsf@titusmueller.de> (message from Titus =?iso-8859-1?Q?M=FCller?= on Sat, 27 Jan 2024 14:25:08 +0100) Subject: Re: bug#68762: 30.0.50; thing-at-point for an e-mail adress stops at "." References: <87sf2izyzi.fsf@titusmueller.de> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68762 Cc: 68762@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Titus Müller > Date: Sat, 27 Jan 2024 14:25:08 +0100 > > > When I use (thing-at-point 'email) and point is on an e-mail adress like my.name@website.com, thing-at-point only gets name@website.com and loses the first part before the "." character. This happens after I upgraded from 29.1 to emacs 30.0.50. Philip, is this because of the changes in commit ff20898dad? Could you please look into this? From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 28 00:58:33 2024 Received: (at 68762) by debbugs.gnu.org; 28 Jan 2024 05:58:33 +0000 Received: from localhost ([127.0.0.1]:56295 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTyBc-0003Do-N7 for submit@debbugs.gnu.org; Sun, 28 Jan 2024 00:58:33 -0500 Received: from mail.eshelyaron.com ([107.175.124.16]:54340 helo=eshelyaron.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTyBZ-0003Dg-R0 for 68762@debbugs.gnu.org; Sun, 28 Jan 2024 00:58:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1706421501; bh=z9Zuax1xa2jKOxCECGd1uWzYZfWtb1eB3aM7F97J+lM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=WM16UXZroYXKWktl6hpWS2xQlNlgms0jc/yXw1dKlYgpjQ7FMWIH/jaTFmtJrubIt kCbU6AkSclme6bAYCpSRcLH6cLqrdPjzN2+f4cJfkCVsU46zi0Pse37M0ZinIz0uVp /xevxTSh8KJ6HDn2COH+EWpHjAva9BKhJEZknPnpUh74Yi1gn3t3ZNlUlOXoVEF7sq ltjdN/WICLeUOkv6DZTkvhwomGIgbwbwA5uWD9Z2ZBn8nvCGUFg0eS2gL0zwaSLRBv xT37DsEdZDqUAPJuJt1sPaHOvjjtFP8W4y2y81goWQGXH72naIMiAnnCjl9SsP+Y9Q tFHiDvl2Zk1wQ== From: Eshel Yaron To: Eli Zaretskii Subject: Re: bug#68762: 30.0.50; thing-at-point for an e-mail adress stops at "." In-Reply-To: <86le8a7h9n.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 27 Jan 2024 20:39:16 +0200") References: <87sf2izyzi.fsf@titusmueller.de> <86le8a7h9n.fsf@gnu.org> X-Hashcash: 1:20:240128:mail@titusmueller.de::VP9ITWcPx9d8hKBd:LUW X-Hashcash: 1:20:240128:philipk@posteo.net::7ZxGQcE0bcXyKSHp:1DA X-Hashcash: 1:20:240128:eliz@gnu.org::PvnDDgWIC0PIC9Nq:6DH6 X-Hashcash: 1:20:240128:68762@debbugs.gnu.org::/ud7qHza584rLzDi:2o7L Date: Sun, 28 Jan 2024 06:58:19 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68762 Cc: Philip Kaludercic , Titus =?utf-8?Q?M=C3=BCller?= , 68762@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> From: Titus M=C3=BCller >> Date: Sat, 27 Jan 2024 14:25:08 +0100 >> >> >> When I use (thing-at-point 'email) and point is on an e-mail adress >> like my.name@website.com, thing-at-point only gets name@website.com >> and loses the first part before the "." character. This happens >> after I upgraded from 29.1 to emacs 30.0.50. > > Philip, is this because of the changes in commit ff20898dad? > > Could you please look into this? FWIW, AFAICT this is introduced by 03cfede8f0 (which fixed Bug#61519). I think the real issue resides in `thing-at-point-looking-at`, though: 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: diff --git a/lisp/thingatpt.el b/lisp/thingatpt.el index 323d3d1cf6c..6f7532f9b0f 100644 --- a/lisp/thingatpt.el +++ b/lisp/thingatpt.el @@ -621,34 +621,22 @@ thing-at-point-looking-at back from point." (save-excursion (let ((old-point (point)) - (forward-bound (and distance (+ (point) distance))) - (backward-bound (and distance (- (point) distance))) - match prev-pos new-pos) - (and (looking-at regexp) - (>=3D (match-end 0) old-point) - (setq match (point))) - ;; Search back repeatedly from end of next match. - ;; This may fail if next match ends before this match does. - (re-search-forward regexp forward-bound 'limit) - (setq prev-pos (point)) - (while (and (setq new-pos (re-search-backward regexp backward-bound = t)) - ;; Avoid inflooping with some regexps, such as "^", - ;; matching which never moves point. - (< new-pos prev-pos) - (or (> (match-beginning 0) old-point) - (and (looking-at regexp) ; Extend match-end past search start - (>=3D (match-end 0) old-point) - (setq match (point)))))) - (if (not match) nil - (goto-char match) - ;; Back up a char at a time in case search skipped - ;; intermediate match straddling search start pos. - (while (and (not (bobp)) - (progn (backward-char 1) (looking-at regexp)) - (>=3D (match-end 0) old-point) - (setq match (point)))) - (goto-char match) - (looking-at regexp))))) + prev-point match) + (goto-char (if distance + (max (point-min) (- old-point distance)) + (point-min))) + (while (and (setq prev-point (point)) + (setq match + (re-search-forward regexp + (and distance + (min (point-max) + (+ old-point distance= ))) + t)) + (< (match-end 0) old-point)) + (unless (< prev-point (point)) + (forward-char))) + (and match (<=3D (match-beginning 0) old-point (match-end 0)))))) + ;; Email addresses (defvar thing-at-point-email-regexp From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 28 02:11:57 2024 Received: (at 68762) by debbugs.gnu.org; 28 Jan 2024 07:11:57 +0000 Received: from localhost ([127.0.0.1]:56400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTzKe-00064r-U7 for submit@debbugs.gnu.org; Sun, 28 Jan 2024 02:11:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38480) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTzKb-00064Y-8q for 68762@debbugs.gnu.org; Sun, 28 Jan 2024 02:11:56 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rTzKM-0003Ts-QJ; Sun, 28 Jan 2024 02:11:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=rEvJZYubDss2Jybe65RVpktomltw0nwWuzdLGbUJ45w=; b=R0onGtkva7uoM6AN22ZJ d+5z7unxTCwLY6ByFqqnrbKC5tgJu+xXo5ROBvt4STJoQfjk53asO6OpW8R4/Bl7kgVqCHZycp/eS HBENYzGR6iULNf2J30KwPpGrEYtLRD/GkkOfuOseKlDYzStzU++lrR8LNciMRDIxgJ/oJ95JZXKJM nOOPtY/ftY7ZozlOjaOBmm8I+5CsLdIgUpE9YC2ueu9JsVmIF4yN3LYGt2fbChv8mSN6UgWV2ctJ6 LTNlAGxr4Z/2ui0wOhP3vAAu7QeZ2FUGqxJ7NXJuUqkNoL325DMg4rN8g9yMFP27W2pPv6bm/wEG8 rAQD/5hErHbf9w==; Date: Sun, 28 Jan 2024 09:11:37 +0200 Message-Id: <86mssq53va.fsf@gnu.org> From: Eli Zaretskii To: Eshel Yaron , Robert Pluim In-Reply-To: (message from Eshel Yaron on Sun, 28 Jan 2024 06:58:19 +0100) Subject: Re: bug#68762: 30.0.50; thing-at-point for an e-mail adress stops at "." References: <87sf2izyzi.fsf@titusmueller.de> <86le8a7h9n.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68762 Cc: philipk@posteo.net, mail@titusmueller.de, 68762@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Eshel Yaron > Cc: Titus Müller , Philip Kaludercic > , 68762@debbugs.gnu.org > Date: Sun, 28 Jan 2024 06:58:19 +0100 > > FWIW, AFAICT this is introduced by 03cfede8f0 (which fixed Bug#61519). > > I think the real issue resides in `thing-at-point-looking-at`, though: > 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: Thanks. Can you describe the main ideas of the change? Robert, any comments? From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 28 02:48:04 2024 Received: (at 68762) by debbugs.gnu.org; 28 Jan 2024 07:48:04 +0000 Received: from localhost ([127.0.0.1]:56496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTztb-00075Q-Sy for submit@debbugs.gnu.org; Sun, 28 Jan 2024 02:48:04 -0500 Received: from mail.eshelyaron.com ([107.175.124.16]:36146 helo=eshelyaron.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTztX-00074z-Lk for 68762@debbugs.gnu.org; Sun, 28 Jan 2024 02:48:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1706428071; bh=gSc2B2HVOoPlVXXXzTyK2GOgybdmqVmXkiQ+On9enM8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=nlBKfl+qWFArTab0tHqNN2Bo6FXHxqAvG1Q8hbcBCjv+jG7VTGejyeDwStNJbLALh RWndDEmdKqAHJvo5hiMYnskzxqSZ1GosnhAHcvVywvWT8cjH1brWQFuBg/cejJ/89g 8QdjMhguMHqPxd1eDzZ8/+JYp1jjERqJ06r0WZMDJ6JSf10bg3jT0yUIMTo8lbMhWj 7Yk7wJnCChNXBgQ+hTZl3Y+IihRG4NxTTJCyWtiK10GHZKOA83BwUDvtsL9SC2Ct37 fJDoZaUJW7eZ9Pu8gFE6qA2D4KO8ly4A+QxpllFeaNPER2gOQlvtQmLnWVzYI8a5tW rxSgcxiyDJWXw== From: Eshel Yaron To: Eli Zaretskii Subject: Re: bug#68762: 30.0.50; thing-at-point for an e-mail adress stops at "." In-Reply-To: <86mssq53va.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 28 Jan 2024 09:11:37 +0200") References: <87sf2izyzi.fsf@titusmueller.de> <86le8a7h9n.fsf@gnu.org> <86mssq53va.fsf@gnu.org> Date: Sun, 28 Jan 2024 08:47:49 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68762 Cc: Robert Pluim , mail@titusmueller.de, philipk@posteo.net, 68762@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 >> >> FWIW, AFAICT this is introduced by 03cfede8f0 (which fixed Bug#61519). >> >> I think the real issue resides in `thing-at-point-looking-at`, though: >> 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: > > Thanks. Can you describe the main ideas of the change? Sure: the current implementation searches forward first, and then back, until it finds a match that contains point. It then extends the match backward character by character until it reaches a non-match. My change reverses the direction: start from some position before point and search forward until you find a match that contains point. This works better since "matching a regular expression at a given spot always works from beginning to end" (from Info node "(elisp) Regexp Search"). > Robert, any comments? From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 28 03:44:25 2024 Received: (at 68762) by debbugs.gnu.org; 28 Jan 2024 08:44:25 +0000 Received: from localhost ([127.0.0.1]:56554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rU0m5-00005I-Vq for submit@debbugs.gnu.org; Sun, 28 Jan 2024 03:44:25 -0500 Received: from post.beforesunrise.de ([45.83.104.230]:56930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTpdx-0004uA-VT for 68762@debbugs.gnu.org; Sat, 27 Jan 2024 15:51:17 -0500 X-Virus-Scanned: amavisd-new at beforesunrise.de Received: from Zenbook-Titus.post.beforesunrise.de (p5b282a0c.dip0.t-ipconnect.de [91.40.42.12]) by post.beforesunrise.de (Postfix) with ESMTPSA id 8AA9A9D; Sat, 27 Jan 2024 21:50:56 +0100 (CET) Authentication-Results: post.beforesunrise.de; spf=pass (sender IP is 91.40.42.12) smtp.mailfrom=mail@titusmueller.de smtp.helo=Zenbook-Titus.post.beforesunrise.de Received-SPF: pass (post.beforesunrise.de: connection is authenticated) X-Virus-Scanned: amavisd-new at beforesunrise.de References: <87sf2izyzi.fsf@titusmueller.de> <86le8a7h9n.fsf@gnu.org> User-agent: mu4e 1.10.6; emacs 30.0.50 From: Titus =?utf-8?Q?M=C3=BCller?= To: Eli Zaretskii Subject: Re: bug#68762: 30.0.50; thing-at-point for an e-mail adress stops at "." Date: Sat, 27 Jan 2024 21:42:26 +0100 In-reply-to: <86le8a7h9n.fsf@gnu.org> Message-ID: <87mssqsdoz.fsf@titusmueller.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-PPP-Message-ID: <170638866514.8480.1775080045102098591@post.beforesunrise.de> X-PPP-Vhost: titusmueller.de X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68762 X-Mailman-Approved-At: Sun, 28 Jan 2024 03:44:20 -0500 Cc: Philip Kaludercic , 68762@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Thank you so much. It only happens when point is on the part after the "." character in my.nam= e@website.com. If point is on "my", all of the mail address is received by = thing-at-point. (And 68762@debbugs.gnu.org is no problem at all, so it only= concerns "." characters before the @ symbol.) If I can be of any help, do a test or something else, please tell me. I'm n= o programmer though, regrettably. Thank you for all your wonderful emacs-work! Titus ----- Urspr=C3=BCngliche Nachricht vom 27.01.2024 ----- >> From: Titus M=C3=BCller >> Date: Sat, 27 Jan 2024 14:25:08 +0100 >>=20 >>=20 >> When I use (thing-at-point 'email) and point is on an e-mail adress >> like my.name@website.com, thing-at-point only gets name@website.com >> and loses the first part before the "." character. This happens >> after I upgraded from 29.1 to emacs 30.0.50. > > Philip, is this because of the changes in commit ff20898dad? > > Could you please look into this? From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 29 04:05:37 2024 Received: (at 68762) by debbugs.gnu.org; 29 Jan 2024 09:05:37 +0000 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 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 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) 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) From: Robert Pluim To: Eshel Yaron Subject: Re: bug#68762: 30.0.50; thing-at-point for an e-mail adress stops at "." In-Reply-To: (Eshel Yaron's message of "Sun, 28 Jan 2024 08:47:49 +0100") References: <87sf2izyzi.fsf@titusmueller.de> <86le8a7h9n.fsf@gnu.org> <86mssq53va.fsf@gnu.org> Date: Mon, 29 Jan 2024 10:05:17 +0100 Message-ID: <874jewy0fm.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68762 Cc: Eli Zaretskii , mail@titusmueller.de, philipk@posteo.net, 68762@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> 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 From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 29 07:41:22 2024 Received: (at 68762) by debbugs.gnu.org; 29 Jan 2024 12:41:22 +0000 Received: from localhost ([127.0.0.1]:59237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUQwz-0007px-J3 for submit@debbugs.gnu.org; Mon, 29 Jan 2024 07:41:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUQww-0007pk-VI for 68762@debbugs.gnu.org; Mon, 29 Jan 2024 07:41:20 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rUQwi-00028N-IQ; Mon, 29 Jan 2024 07:41:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=BYm8CKbDYLMT0XLMd5a6ZdcwwivdFVmTDlRdp5TvbTw=; b=AXzUpCqSMDaC I5rYgbX7NGxvoZS/sOc0/OR51Ni8bRfYYBNQji06YLLdIQwRA5/7E6IAWHF1gXgjyB64eBwkTZijn 3xbYVrzNeKHNT51hqCEoum8/gAVpsalV+tGHTd74D5gWzYR6pTVMQNYa6oFiizfTvYbfeqGqmlUGF bjQjNaaTA2UZHJyAoUqqJyjSudc3e7Q7aS2cmwJlhE3ggrCKquWlpDGf7y4K4jD9mmsMjWcqf1gT3 yalSJpJ+tTpPX9XckqSphLiOsHogInShhqMypR183X0d11MHiCvCusv25w2xg1+2SMDF/jImRd+em /lUUI2T+8bdfmLlKJp9cjQ==; Date: Mon, 29 Jan 2024 14:41:02 +0200 Message-Id: <86ede048ip.fsf@gnu.org> From: Eli Zaretskii To: Robert Pluim In-Reply-To: <874jewy0fm.fsf@gmail.com> (message from Robert Pluim on Mon, 29 Jan 2024 10:05:17 +0100) Subject: Re: bug#68762: 30.0.50; thing-at-point for an e-mail adress stops at "." References: <87sf2izyzi.fsf@titusmueller.de> <86le8a7h9n.fsf@gnu.org> <86mssq53va.fsf@gnu.org> <874jewy0fm.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68762 Cc: philipk@posteo.net, mail@titusmueller.de, me@eshelyaron.com, 68762@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Robert Pluim > Cc: Eli Zaretskii , mail@titusmueller.de, > philipk@posteo.net, 68762@debbugs.gnu.org > Date: Mon, 29 Jan 2024 10:05:17 +0100 > > >>>>> On Sun, 28 Jan 2024 08:47:49 +0100, Eshel Yaron said: > > >> Robert, any comments? > > Not really. It would be nice if the test suite could be extended to > catch this. Agreed. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 01 05:27:14 2024 Received: (at 68762) by debbugs.gnu.org; 1 Feb 2024 10:27:14 +0000 Received: from localhost ([127.0.0.1]:40305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVUHq-0005vv-9L for submit@debbugs.gnu.org; Thu, 01 Feb 2024 05:27:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVUHm-0005vf-3q for 68762@debbugs.gnu.org; Thu, 01 Feb 2024 05:27:13 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVUHW-0003TG-3X; Thu, 01 Feb 2024 05:26:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=VCZa91H2ByHNpPqqXJOgyexWB+9BZLTGtV6yMvNQ0Cc=; b=WcHQ7wH3Ngs8 jRCOxKaejEU1GbTBNCJWiwCqJHPxf+OUXnmFpQ2EusWC3jwnuLjhaChD5+ex9xh+IujSKZgHF3oVA sEmWQATVfmLa1SlLAWYstCZbqD99CLLqqumEvsUTWGSI0e2pG78XZEbCndC0HfSxmSxJta8nVrVBx JCKKJ75ZPTloNRZlJ5e1frEPWh9Jw5eZGXaqh7DdaeezWsyNgMWdJi7qB6jg+qdPB2fNfo3LzCY95 jb2Jogo0fy2sS62wSwCyQJ5d5a+XEpel/Al4M7RBwhSow9MPmzv/TF91wGeKGQdBuuigflR5/TcOv NPKQGsTsUel3N/DZ/YRoZQ==; Date: Thu, 01 Feb 2024 12:26:50 +0200 Message-Id: <86sf2czdhx.fsf@gnu.org> From: Eli Zaretskii To: me@eshelyaron.com In-Reply-To: <86ede048ip.fsf@gnu.org> (message from Eli Zaretskii on Mon, 29 Jan 2024 14:41:02 +0200) Subject: Re: bug#68762: 30.0.50; thing-at-point for an e-mail adress stops at "." References: <87sf2izyzi.fsf@titusmueller.de> <86le8a7h9n.fsf@gnu.org> <86mssq53va.fsf@gnu.org> <874jewy0fm.fsf@gmail.com> <86ede048ip.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68762 Cc: rpluim@gmail.com, mail@titusmueller.de, philipk@posteo.net, 68762@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: philipk@posteo.net, mail@titusmueller.de, me@eshelyaron.com, > 68762@debbugs.gnu.org > Date: Mon, 29 Jan 2024 14:41:02 +0200 > From: Eli Zaretskii > > > From: Robert Pluim > > Cc: Eli Zaretskii , mail@titusmueller.de, > > philipk@posteo.net, 68762@debbugs.gnu.org > > Date: Mon, 29 Jan 2024 10:05:17 +0100 > > > > >>>>> On Sun, 28 Jan 2024 08:47:49 +0100, Eshel Yaron said: > > > > >> Robert, any comments? > > > > Not really. It would be nice if the test suite could be extended to > > catch this. > > Agreed. Eshel, would you like to add some tests for this? TIA From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 01 06:10:51 2024 Received: (at 68762) by debbugs.gnu.org; 1 Feb 2024 11:10:51 +0000 Received: from localhost ([127.0.0.1]:40371 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVUy3-0001Ud-A5 for submit@debbugs.gnu.org; Thu, 01 Feb 2024 06:10:51 -0500 Received: from mail.eshelyaron.com ([107.175.124.16]:37692 helo=eshelyaron.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVUy1-0001UU-1I for 68762@debbugs.gnu.org; Thu, 01 Feb 2024 06:10:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1706785838; bh=28MIvbym+wu5y8IYO2HeHhqRMBaPRxObHHJZjUWUPFI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=xE4OiIx7Xazdvep4LSFgYDMDAH+ocVOXDIwYtE/ZHwfpgFDaETJfV6hoQ5hd6kYoJ DYcYwSJ5fmYAggnGMPolB+gue3UDWrudOr4O92pnUUxzUH1sZhRb+2SeOzi0O6VrXq RxfZJp9Zbffi0lZfXpH6Qow2oRIc7/0rtLQi6NVdsXfPobwGzcARAx/6157xyGpXAh jVzgLFcXKepNlHkw746zc/Qr2D36B5D8arJUVCyv4dPPd0BptnF+PVaQMzB+Y0LOTt 1dUfzipM+beSZeGy/7oR/LPPkCmf/1K3DVPK1bml2vEERj0+4i4Sx0MgZXg1550fuc XbHggfPcHqf1Q== From: Eshel Yaron To: Eli Zaretskii Subject: Re: bug#68762: 30.0.50; thing-at-point for an e-mail adress stops at "." In-Reply-To: <86sf2czdhx.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 01 Feb 2024 12:26:50 +0200") References: <87sf2izyzi.fsf@titusmueller.de> <86le8a7h9n.fsf@gnu.org> <86mssq53va.fsf@gnu.org> <874jewy0fm.fsf@gmail.com> <86ede048ip.fsf@gnu.org> <86sf2czdhx.fsf@gnu.org> Date: Thu, 01 Feb 2024 12:10:35 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68762 Cc: rpluim@gmail.com, mail@titusmueller.de, philipk@posteo.net, 68762@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Hi, Eli Zaretskii writes: >> Cc: philipk@posteo.net, mail@titusmueller.de, me@eshelyaron.com, >> 68762@debbugs.gnu.org >> Date: Mon, 29 Jan 2024 14:41:02 +0200 >> From: Eli Zaretskii >> >> > From: Robert Pluim >> > Cc: Eli Zaretskii , mail@titusmueller.de, >> > philipk@posteo.net, 68762@debbugs.gnu.org >> > Date: Mon, 29 Jan 2024 10:05:17 +0100 >> > >> > >>>>> On Sun, 28 Jan 2024 08:47:49 +0100, Eshel Yaron said: >> > >> > >> Robert, any comments? >> > >> > Not really. It would be nice if the test suite could be extended to >> > catch this. >> >> Agreed. > > Eshel, would you like to add some tests for this? Sure, I'm attaching below a patch with a slightly cleaner implementation and a couple of tests. Note that this is a complete rewrite of a function that mostly haven't changed since 1997, so please give it a close look before installing, in case there's some use case that didn't occur to me and isn't covered by the existing tests. Best, Eshel --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Ensure-thing-at-point-looking-at-finds-full-match.patch >From 1f39f91adc9883e66191457789577173639b7d69 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Wed, 31 Jan 2024 21:37:18 +0100 Subject: [PATCH] ; Ensure 'thing-at-point-looking-at' finds full match * lisp/thingatpt.el (thing-at-point-looking-at): Regexp-search from the beginning forward, instead of the other way around. * test/lisp/thingatpt-tests.el (thing-at-point-test-data): Add tests. (Bug#68762) --- lisp/thingatpt.el | 43 +++++++++++------------------------- test/lisp/thingatpt-tests.el | 2 ++ 2 files changed, 15 insertions(+), 30 deletions(-) diff --git a/lisp/thingatpt.el b/lisp/thingatpt.el index 323d3d1cf6c..b532bafff82 100644 --- a/lisp/thingatpt.el +++ b/lisp/thingatpt.el @@ -619,36 +619,19 @@ thing-at-point-looking-at Optional argument DISTANCE limits search for REGEXP forward and back from point." - (save-excursion - (let ((old-point (point)) - (forward-bound (and distance (+ (point) distance))) - (backward-bound (and distance (- (point) distance))) - match prev-pos new-pos) - (and (looking-at regexp) - (>= (match-end 0) old-point) - (setq match (point))) - ;; Search back repeatedly from end of next match. - ;; This may fail if next match ends before this match does. - (re-search-forward regexp forward-bound 'limit) - (setq prev-pos (point)) - (while (and (setq new-pos (re-search-backward regexp backward-bound t)) - ;; Avoid inflooping with some regexps, such as "^", - ;; matching which never moves point. - (< new-pos prev-pos) - (or (> (match-beginning 0) old-point) - (and (looking-at regexp) ; Extend match-end past search start - (>= (match-end 0) old-point) - (setq match (point)))))) - (if (not match) nil - (goto-char match) - ;; Back up a char at a time in case search skipped - ;; intermediate match straddling search start pos. - (while (and (not (bobp)) - (progn (backward-char 1) (looking-at regexp)) - (>= (match-end 0) old-point) - (setq match (point)))) - (goto-char match) - (looking-at regexp))))) + (let* ((old (point)) + (beg (if distance (max (point-min) (- old distance)) (point-min))) + (end (and distance (min (point-max) (+ old distance)))) + prev match) + (save-excursion + (goto-char beg) + (while (and (setq prev (point) + match (re-search-forward regexp end t)) + (< (match-end 0) old)) + ;; Avoid inflooping when `regexp' matches the empty string. + (unless (< prev (point)) (forward-char)))) + (and match (<= (match-beginning 0) old (match-end 0))))) + ;; Email addresses (defvar thing-at-point-email-regexp diff --git a/test/lisp/thingatpt-tests.el b/test/lisp/thingatpt-tests.el index ba51f375cc6..56bc4fdc9dc 100644 --- a/test/lisp/thingatpt-tests.el +++ b/test/lisp/thingatpt-tests.el @@ -92,6 +92,8 @@ thing-at-point-test-data ("1@example.com" 1 email "1@example.com") ;; email addresses user portion containing dots ("foo.bar@example.com" 1 email "foo.bar@example.com") + ("foo.bar@example.com" 5 email "foo.bar@example.com") + (" fo.ba@example.com" 6 email "fo.ba@example.com") (".foobar@example.com" 1 email nil) (".foobar@example.com" 2 email "foobar@example.com") ;; email addresses domain portion containing dots and dashes -- 2.42.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 08 06:47:38 2024 Received: (at 68762-done) by debbugs.gnu.org; 8 Feb 2024 11:47:39 +0000 Received: from localhost ([127.0.0.1]:59270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rY2sU-0001lF-Gb for submit@debbugs.gnu.org; Thu, 08 Feb 2024 06:47:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47998) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rY2sS-0001l3-QQ for 68762-done@debbugs.gnu.org; Thu, 08 Feb 2024 06:47:37 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rY2s8-0008KL-Ek; Thu, 08 Feb 2024 06:47:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=apxAokHraBHSa4UOftbPMfIzGvPpEfTFV+lFFXMFAuU=; b=M/LMj409jJVy Yae5/oBOd0FOCsvp0LOP4MRulWOdFs80/5Js0aad+U4jGVqIWGHPwxj72af9SxJ9LKeTSqCCBKUFC B3YQ/jcAbRiLmMOW8fJQfpP0IozYsO3oe1vubaQUz8VRAgY4njq7oB/lYecdR4nGNQBRg8Q4CXOnC lLNS7Sw0U2flPMNzE0+VeaTj00TvPMKFGqPsDz2zGbSEa11eAWQ3cWht5iaVrxXT5p3noCV0yGMnq o5yZTyMoDqu0f2GyyqfU2cD1COrWBwlhN/YuXpXuOFgV6ZvJxPKdIjRkbLKCvfLBCYJHrpzuj202n FYGAhW5OZ7H+BVWbdgDaNw==; Date: Thu, 08 Feb 2024 13:47:14 +0200 Message-Id: <86wmrfw531.fsf@gnu.org> From: Eli Zaretskii To: Eshel Yaron In-Reply-To: (message from Eshel Yaron on Thu, 01 Feb 2024 12:10:35 +0100) Subject: Re: bug#68762: 30.0.50; thing-at-point for an e-mail adress stops at "." References: <87sf2izyzi.fsf@titusmueller.de> <86le8a7h9n.fsf@gnu.org> <86mssq53va.fsf@gnu.org> <874jewy0fm.fsf@gmail.com> <86ede048ip.fsf@gnu.org> <86sf2czdhx.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68762-done Cc: 68762-done@debbugs.gnu.org, rpluim@gmail.com, mail@titusmueller.de, philipk@posteo.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Eshel Yaron > Cc: rpluim@gmail.com, philipk@posteo.net, mail@titusmueller.de, > 68762@debbugs.gnu.org > Date: Thu, 01 Feb 2024 12:10:35 +0100 > > > Eshel, would you like to add some tests for this? > > Sure, I'm attaching below a patch with a slightly cleaner implementation > and a couple of tests. > > Note that this is a complete rewrite of a function that mostly haven't > changed since 1997, so please give it a close look before installing, in > case there's some use case that didn't occur to me and isn't covered by > the existing tests. Thanks, I boldly went ahead and installed this on master. Closing. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 10 11:49:04 2024 Received: (at 68762-done) by debbugs.gnu.org; 10 Feb 2024 16:49:04 +0000 Received: from localhost ([127.0.0.1]:54050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYqXH-0000k5-UM for submit@debbugs.gnu.org; Sat, 10 Feb 2024 11:49:04 -0500 Received: from mail.eshelyaron.com ([107.175.124.16]:36884 helo=eshelyaron.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYqXF-0000ja-HA for 68762-done@debbugs.gnu.org; Sat, 10 Feb 2024 11:49:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1707583725; bh=Gn1X+PXKJHXMj408e49VFYbERNu6QnXSfFmQnuWDgak=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=XFreU4Ob1sEr+5mhzixd7Hw9kbXGc1/gcQVDHI1INIja1ox9gf/MsFOjnDJcBALCN 5ib6pQ6Pd+3dI63WPkOeo0rVnXdIwLbcOhP/SHJuPqWi2+ACBZJE18ZE+svQgcEGU6 5x6Q3uv4K5GYPpMKeRDGHX8AiZmrj3+Xgc3RqaLArsz7+V7ZBOuCvRM7wVqgm0UNsi rGIvXb810bNR0vWndtwkGh2Zxb9uzsGTYjskpXGeQtXY2VQRYM+2MC4dwBl3Wc3iiW mLhraCEkHzC5y/Yfs01MAEKfUzoPKGdLa0AKHN+gcJt4eAbZ7Ey3LyRBn6g2Sh2Q1c RZzHWESafoefg== From: Eshel Yaron To: Eli Zaretskii Subject: Re: bug#68762: 30.0.50; thing-at-point for an e-mail adress stops at "." In-Reply-To: <86wmrfw531.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 08 Feb 2024 13:47:14 +0200") References: <87sf2izyzi.fsf@titusmueller.de> <86le8a7h9n.fsf@gnu.org> <86mssq53va.fsf@gnu.org> <874jewy0fm.fsf@gmail.com> <86ede048ip.fsf@gnu.org> <86sf2czdhx.fsf@gnu.org> <86wmrfw531.fsf@gnu.org> Date: Sat, 10 Feb 2024 17:48:42 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68762-done Cc: 68762-done@debbugs.gnu.org, rpluim@gmail.com, mail@titusmueller.de, philipk@posteo.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> From: Eshel Yaron >> Cc: rpluim@gmail.com, philipk@posteo.net, mail@titusmueller.de, >> 68762@debbugs.gnu.org >> Date: Thu, 01 Feb 2024 12:10:35 +0100 >> >> > Eshel, would you like to add some tests for this? >> >> Sure, I'm attaching below a patch with a slightly cleaner implementation >> and a couple of tests. >> >> Note that this is a complete rewrite of a function that mostly haven't >> changed since 1997, so please give it a close look before installing, in >> case there's some use case that didn't occur to me and isn't covered by >> the existing tests. > > Thanks, I boldly went ahead and installed this on master. Closing. Thanks. I've found an edge case that my implementation didn't handle correctly. I'm not sure it affects any of the actual uses of this function, but nevertheless I pushed a small fix along with a another test case in 939187fd7a0. Best, Eshel From unknown Sat Aug 16 13:42:36 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 10 Mar 2024 11:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator