X-Loop: help-debbugs@HIDDEN Subject: bug#76176: 30.0.93; Suggested command: narrow-to-thing-at-point Resent-From: Phil Sainty <psainty@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 10 Feb 2025 12:35:01 +0000 Resent-Message-ID: <handler.76176.B.173919086321358 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 76176 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 76176 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.173919086321358 (code B ref -1); Mon, 10 Feb 2025 12:35:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Feb 2025 12:34:23 +0000 Received: from localhost ([127.0.0.1]:49451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1thSzW-0005YQ-MQ for submit <at> debbugs.gnu.org; Mon, 10 Feb 2025 07:34:22 -0500 Received: from lists.gnu.org ([2001:470:142::17]:36262) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <psainty@HIDDEN>) id 1thSzT-0005Y6-KN for submit <at> debbugs.gnu.org; Mon, 10 Feb 2025 07:34:20 -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 <psainty@HIDDEN>) id 1thSzM-0002aw-Gf for bug-gnu-emacs@HIDDEN; Mon, 10 Feb 2025 07:34:12 -0500 Received: from smtp-2.orcon.net.nz ([60.234.4.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <psainty@HIDDEN>) id 1thSzJ-0005zA-SA for bug-gnu-emacs@HIDDEN; Mon, 10 Feb 2025 07:34:12 -0500 Received: from [10.253.37.70] (port=35674 helo=webmail.orcon.net.nz) by smtp-2.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from <psainty@HIDDEN>) id 1thSz6-0003nY-5n for bug-gnu-emacs@HIDDEN; Tue, 11 Feb 2025 01:33:56 +1300 Received: from ip-139-180-103-232.as55850.net ([139.180.103.232]) via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Tue, 11 Feb 2025 01:33:56 +1300 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_046f838a80b46c0b61f956d15370d277" Date: Tue, 11 Feb 2025 01:33:56 +1300 From: Phil Sainty <psainty@HIDDEN> Message-ID: <1796e05117f7f56a70710418a77c69f0@HIDDEN> X-Sender: psainty@HIDDEN User-Agent: Orcon Webmail X-GeoIP: -- Received-SPF: pass client-ip=60.234.4.43; envelope-from=psainty@HIDDEN; helo=smtp-2.orcon.net.nz X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.3 (/) --=_046f838a80b46c0b61f956d15370d277 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed This command occurred to me today as a useful way to leverage the thing-at-point machinery. I've put together the attached implementation as a first pass, based on what I could glean of the current thing-at-point functionality. I didn't see any existing ways of listing known/valid things. If I'm gathering this correctly, it might be useful to separate that bit out into another function. What do you think? -Phil --=_046f838a80b46c0b61f956d15370d277 Content-Transfer-Encoding: base64 Content-Type: text/x-lisp; name=narrow-to-thing-at-point.el Content-Disposition: attachment; filename=narrow-to-thing-at-point.el; size=1877 KHJlcXVpcmUgJ3RoaW5nYXRwdCkKKHJlcXVpcmUgJ2NsLWxpYikKCihkZWZpbmUta2V5IGN0bC14 LW1hcCAibnQiICduYXJyb3ctdG8tdGhpbmctYXQtcG9pbnQpCgooZGVmdW4gbmFycm93LXRvLXRo aW5nLWF0LXBvaW50ICh0aGluZykKICAiTmFycm93IHRvIFRISU5HIGF0IHBvaW50LiAgSW50ZXJh Y3RpdmVseSwgb2J0YWluIGEgdmFsaWQgVEhJTkcgdXNpbmcKYHJlYWQtdGhpbmctYXQtcG9pbnQt dGhpbmcnLiAgV2l0aCBhIHByZWZpeCBhcmd1bWVudCwgc2VsZWN0IHRoZSB0aGluZwpmcm9tIGFs bCBrbm93biB0aGluZ3MuIgogIChpbnRlcmFjdGl2ZSAobGlzdCAocmVhZC10aGluZy1hdC1wb2lu dC10aGluZyBuaWwgY3VycmVudC1wcmVmaXgtYXJnKSkpCiAgKGlmLWxldCAoKGJvdW5kcyAoYm91 bmRzLW9mLXRoaW5nLWF0LXBvaW50IHRoaW5nKSkpCiAgICAgIChuYXJyb3ctdG8tcmVnaW9uIChj YXIgYm91bmRzKSAoY2RyIGJvdW5kcykpCiAgICAodXNlci1lcnJvciAiTm8gJXMgYXQgcG9pbnQi IHRoaW5nKSkpCgooZGVmdW4gcmVhZC10aGluZy1hdC1wb2ludC10aGluZyAoJm9wdGlvbmFsIHBy b21wdCBhbGwpCiAgIlJldHVybiBhIFwidGhpbmdcIiBzdWl0YWJsZSBmb3IgYHRoaW5nLWF0LXBv aW50Jy4KVGVzdCB0aGUga25vd24gXCJ0aGluZ3NcIiB0byBzZWUgd2hpY2ggYXJlIHZhbGlkLiAg SWYgb25seSBvbmUgdGhpbmcgaXMKdmFsaWQgYXQgcG9pbnQsIHJldHVybiBpdHMgc3ltYm9sLiAg SWYgbW9yZSB0aGFuIG9uZSB0aGluZyBpcyB2YWxpZCwKUFJPTVBUIHRoZSB1c2VyIHRvIGNob29z ZSBmcm9tIHRoZSB2YWxpZCBvcHRpb25zLiAgSWYgQUxMIGlzIG5vbi1uaWwsCmNob29zZSBmcm9t IGFsbCBrbm93biBcInRoaW5nc1wiIHdpdGhvdXQgdGVzdGluZyB0aGVpciB2YWxpZGl0eS4iCiAg KGxldCogKChhbGx0aGluZ3MgKGNsLWRlbGV0ZS1kdXBsaWNhdGVzCiAgICAgICAgICAgICAgICAg ICAgIChuY29uYwogICAgICAgICAgICAgICAgICAgICAgKGNsLWxvb3AgZm9yIHN5bSBiZWluZyB0 aGUgc3ltYm9scwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKG9yIChnZXQgc3lt ICd0aGluZy1hdC1wb2ludCkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAo Z2V0IHN5bSAnYm91bmRzLW9mLXRoaW5nLWF0LXBvaW50KSkKICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIGNvbGxlY3Qgc3ltKQogICAgICAgICAgICAgICAgICAgICAgKG1hcGNhciAjJ2Nh ciB0aGluZy1hdC1wb2ludC1wcm92aWRlci1hbGlzdCkpKSkKICAgICAgICAgKHRoaW5ncyAoaWYg YWxsCiAgICAgICAgICAgICAgICAgICAgIGFsbHRoaW5ncwogICAgICAgICAgICAgICAgICAgKGNs LWxvb3AgZm9yIHN5bSBpbiBhbGx0aGluZ3MKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlm IChib3VuZHMtb2YtdGhpbmctYXQtcG9pbnQgc3ltKQogICAgICAgICAgICAgICAgICAgICAgICAg ICAgY29sbGVjdCBzeW0pKSkpCiAgICAoY29uZCAoKG51bGwgdGhpbmdzKSAodXNlci1lcnJvciAi Tm8gdGhpbmcgYXQgcG9pbnQiKSkKICAgICAgICAgICgoZXFsIDEgKGxlbmd0aCB0aGluZ3MpKSAo Y2FyIHRoaW5ncykpCiAgICAgICAgICAodCAoaW50ZXJuIChjb21wbGV0aW5nLXJlYWQKICAgICAg ICAgICAgICAgICAgICAgIChmb3JtYXQgKG9yIHByb21wdCAiTmFycm93IHRvIHRoaW5nIChkZWZh dWx0ICVzKTogIikKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGNhciB0aGluZ3MpKQog ICAgICAgICAgICAgICAgICAgICAgdGhpbmdzIG5pbCA6cmVxdWlyZS1tYXRjaCBuaWwgbmlsCiAg ICAgICAgICAgICAgICAgICAgICAoc3ltYm9sLW5hbWUgKGNhciB0aGluZ3MpKSkpKSkpKQo= --=_046f838a80b46c0b61f956d15370d277--
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Phil Sainty <psainty@HIDDEN> Subject: bug#76176: Acknowledgement (30.0.93; Suggested command: narrow-to-thing-at-point) Message-ID: <handler.76176.B.173919086321358.ack <at> debbugs.gnu.org> References: <1796e05117f7f56a70710418a77c69f0@HIDDEN> X-Gnu-PR-Message: ack 76176 X-Gnu-PR-Package: emacs Reply-To: 76176 <at> debbugs.gnu.org Date: Mon, 10 Feb 2025 12:35:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 76176 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 76176: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D76176 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
Received: (at control) by debbugs.gnu.org; 11 Feb 2025 07:11:16 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 11 02:11:16 2025 Received: from localhost ([127.0.0.1]:53848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1thkQN-0007C5-TR for submit <at> debbugs.gnu.org; Tue, 11 Feb 2025 02:11:16 -0500 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]:42087) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>) id 1thkQL-0007Bm-RX for control <at> debbugs.gnu.org; Tue, 11 Feb 2025 02:11:14 -0500 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5dccaaca646so10220628a12.0 for <control <at> debbugs.gnu.org>; Mon, 10 Feb 2025 23:11:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739257867; x=1739862667; darn=debbugs.gnu.org; h=to:subject:message-id:date:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=9lfsTtGqoBgeOuO/YwyvE0DlIY/nv/bTJ0pbZuO37a4=; b=D+T/q9zUPTUIngrZUT8zXHTWV8Hlu6KDy1WQizjO3Y3EODzGnc5O30+EfnbTkqExLP 1bIM0vApPD5ZMmG/+1jP8WzExy1DpTxJneTVtfvEXoaji7MpfuXZVsnCy99cdvQ39Vgi i7PZPcu2xbuI2oHP3LidILS6h6B3ueSTMQSaCFJDNqaGoNDvJRMuUlofVwjimAItD6gq cDP0N6WXzt2wQcMgu/hEWUghtiuQiiF/8MCJjQQa6xWWYRTuVnK9ml02uZuSMiXMlTWX VVaa13iI0M/8fB2n0YYdgYOfUh2zThy501dfcGi+SEqvS6Q3zFMa6Y02lw/zWZCU+flF 7K5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739257867; x=1739862667; h=to:subject:message-id:date:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=9lfsTtGqoBgeOuO/YwyvE0DlIY/nv/bTJ0pbZuO37a4=; b=VBQ7CTK13MygASDQvFp/exAqcdmp2HGZ3unJDcVwgfXTPjLUsnT2y31OwTasCwaylv ozdIXNeohoYBrwnJo4PAr+Axt+28zFzU81mRbxs3KRamhsHEGBaCatJRrLsa9kgCenWB ZQcTT3RM1duIOk3AFLBJeQPuBo1jpUvLTaQ8gNHo8Wfgv6zoH21O6zqnvbzXrKSB3epb N5khhSwz3Z6ih4tWF6VCc/4c/+oAwg8YbjsNk1i59l388q3ZSnl3QwjG3ujc1H/CDtRw TZR2TWxgHQq8x0OALitAQ9x1zqNnrX8ho6MPMd3wYehy3TesolshCPYGCDYXQ00SusOb Ay2A== X-Gm-Message-State: AOJu0Yw4at7YsfuojvRVIn7sdC0X9ZKoonrifGGm4OfFfXAmxCbkwHrS RwQQxYflJwrqJrFZJlxg4uRHMajKWJTETbP3gmP3cHSwvliAy5luOoTwPApQd2UnLfw3f1SBUFc 0CyCPYxbp6g5Q3y3eg+SYKAVESrTRdqxv9Eo= X-Gm-Gg: ASbGncv2HKmRARsFPrLiktpGbraLqukdqKAr11PPfp2A37oOag5/mnLp4TgV5gH90xf c4dZFewaiYRt+sRx0dpSfD/1vcxoD/9a5oc0Q5Ly5S5VsK8mLhXoMUPCFa6FHqNpD5xkplzkd7g == X-Google-Smtp-Source: AGHT+IG23XyYEesJzX1U8WBpfmkFwdx4BYps8dV1so774h+fIZ5l6TBWgRrWBHh9Eo32RPb9TocHZpKCYDe5oDfELZQ= X-Received: by 2002:a05:6402:2786:b0:5de:8457:a71d with SMTP id 4fb4d7f45d1cf-5de9b901076mr2138091a12.9.1739257866798; Mon, 10 Feb 2025 23:11:06 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 10 Feb 2025 23:11:05 -0800 From: Stefan Kangas <stefankangas@HIDDEN> MIME-Version: 1.0 Date: Mon, 10 Feb 2025 23:11:05 -0800 X-Gm-Features: AWEUYZm8SSi_txaPSlSRXCTWHJLsrZSwlcJxGcRZr-U6bRebIC5UtuokBo7MPzc Message-ID: <CADwFkmk-z8sVjXsX-VuZOZucy9+0PBk162mR8NNDAHfeba-_Hg@HIDDEN> Subject: control message for bug #76176 To: control <at> debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) severity 76176 wishlist quit
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.