From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Adam Porter Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Jumping to message by ID Date: Fri, 20 Oct 2023 18:44:09 -0500 Message-ID: <3c030877-1f91-462f-a075-6c3270cce5c6@alphapapa.net> References: <87y1fxyzl7.fsf@autistici.org> 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="16369"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: eliz@gnu.org, emacs-devel@gnu.org To: andrea.monaco@autistici.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 21 01:45:20 2023 Return-path: Envelope-to: ged-emacs-devel@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 1qtzB9-00041U-SU for ged-emacs-devel@m.gmane-mx.org; Sat, 21 Oct 2023 01:45:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtzAD-0000rp-Qj; Fri, 20 Oct 2023 19:44:22 -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 1qtzAB-0000rc-Um for emacs-devel@gnu.org; Fri, 20 Oct 2023 19:44:19 -0400 Original-Received: from silver.cherry.relay.mailchannels.net ([23.83.223.166]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtzA7-0002kW-Kz; Fri, 20 Oct 2023 19:44:19 -0400 X-Sender-Id: dreamhost|x-authsender|adam@alphapapa.net Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 3FBB642266; Fri, 20 Oct 2023 23:44:11 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a266.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id C5576422D8; Fri, 20 Oct 2023 23:44:10 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1697845450; a=rsa-sha256; cv=none; b=lSMeZPRGQyHaP9vArz+cFixT6AUHoKX0j5IjDMCAmJRjIgovDkUevduvw2WAZD5bAby4XU kbNSVzJOhelP+p1a8bLkvfmBNbb6yU6G3oDKlf8f9q6lykh6d1QeYxMfC9DDwvkZ8ldePB 3Gsvf3w7IYLyRhHmQxFNkwLg0RlZ/y7aa08kbvh3LyFv/BQ7ICPDTJkokXZpR02MBB856Y 4LWw8kn4O5IzmZehh6VCS1aUbudTlHQwP8gz8H4Pjvcy7a4GcqloBqI96D08guLcjrZfTM MTFwslm0HwW+iVeHxGAz0NovKYnKHdK34HqmOV+lwL1ZguaAC36GHwE7OzGmEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1697845450; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=rMxQnOGVTu9Jo4bKNFv0zM0x80v8Zd5PXDEelTOEqsg=; b=vSlRsRHoiQt9EfyTUtkDeFgnUZsCggsQtB475yN0N+jAGoL+kSmdClwePeadflHfOk6Hsu dwuK4SVnr3v0UIj+LhstgMPH1ao19l7YdSroT5oPOuR2z2eVTSkJSWglPontldEsDE4fpC hbVjajMvTZW/gtjqyfX4p8h6va7H96KyWsNE86tvaCWqkr/tResEDRwRoUqHaiTNF2lB3d SQttEwZGqc78ODM7w3grcLR9N9mm8VRJwfZp30kYPg6hWUEM8JJ0BY9v7s/WkEwCWT1NL8 wSoX2SxwnVJbQWnucFj7+g8vPHTAD1ti3IzOKw7hg0uJ+DOJ2jHoE+vy9+7Thg== ARC-Authentication-Results: i=1; rspamd-846f4b758b-9kvxl; auth=pass smtp.auth=dreamhost smtp.mailfrom=adam@alphapapa.net X-Sender-Id: dreamhost|x-authsender|adam@alphapapa.net X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|adam@alphapapa.net X-MailChannels-Auth-Id: dreamhost X-Shelf-Turn: 495f9c650f8cdcba_1697845451048_3077265445 X-MC-Loop-Signature: 1697845451048:25552698 X-MC-Ingress-Time: 1697845451048 Original-Received: from pdx1-sub0-mail-a266.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.126.222.37 (trex/6.9.2); Fri, 20 Oct 2023 23:44:11 +0000 Original-Received: from [10.43.1.250] (unknown [193.56.116.15]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: adam@alphapapa.net) by pdx1-sub0-mail-a266.dreamhost.com (Postfix) with ESMTPSA id 4SC1Q21NtQz4B; Fri, 20 Oct 2023 16:44:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alphapapa.net; s=dreamhost; t=1697845450; bh=rMxQnOGVTu9Jo4bKNFv0zM0x80v8Zd5PXDEelTOEqsg=; h=Date:To:Cc:Subject:From:Content-Type:Content-Transfer-Encoding; b=J/ufkFwQjf6kBfKTwSe+l+eDSP52TcdmUWIB9sz39+GDVp4DvglCyG9LaMQnbVaDQ pvP1xMeGbtO6Wjs3gcQdsRLB83OPOwNMOaMQB1dpOpRmBB3V3MJB2UvQBxRhwHdPiM bROOc55vCx+XYXMO9pRxspcavcdLq4PAUUwaWpE1u93CuXjJfxvlqI5gym3g8USxZ9 F6K6vq0KhpwORWGvtPGTqqzydKUENo7J8mKbvoySnzWVp4UmNT7vc7GzQ9e06gaDBW vABnya+WxyTxnttYUNWtxgrcnLEp4zUKCIWDbAhTTs5hePxrWFMfZd1vJi79aHdM8j txYH+2yPmwFtw== Content-Language: en-US In-Reply-To: <87y1fxyzl7.fsf@autistici.org> Received-SPF: neutral client-ip=23.83.223.166; envelope-from=adam@alphapapa.net; helo=silver.cherry.relay.mailchannels.net X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:311630 Archived-At: > What about rmail-match-email-address-around-point? Of course I'm > looking for message ids, but those have the same syntax as email > addresses and the latter are surely known to whoever reads my function. Friendly FYI: goto-address-find-address-at-point is a native-compiled Lisp function in ‘goto-addr.el’. (goto-address-find-address-at-point) Find e-mail address around or before point. Then search backwards to beginning of line for the start of an e-mail address. If no e-mail address found, return nil.