From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id wCkwMYJGSWU0pAAA9RJhRA:P1 (envelope-from ) for ; Mon, 06 Nov 2023 21:03:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id wCkwMYJGSWU0pAAA9RJhRA (envelope-from ) for ; Mon, 06 Nov 2023 21:03:14 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2ECF0118A3 for ; Mon, 6 Nov 2023 21:02:59 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="h8habnh/"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1699300979; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=R4mqtOsyI5WOj8miEJztl/UnvjDLtCZcZCAJtogOSlQ=; b=eDYWELGgeZLXcCGW+aUyVIcR2aThWQkWkjHOH9rv/bOrXLbNBXxroWh6D83ucrjxvsnoez tddYGp2qOCHfuBg86FBnM+2VnZjBXH/hbYJBpssRg1pSRhEiVpXDsOojI5rfepAnB+w5L4 NE53VuqRCrlJ6ExqDwm+jONTKLDP1rBXFDRVz998EhNqnZavaMRKg/Wx3QJx2PzHh9t/GJ SAQ3mTY658BQqoU4o9LasKzT3W8Qv0Kt8/tP0ehdFpSMR6uMFEeUFeMBOQrPhXm0Cp6/fQ tl16ipujEvqmnkISy57jDZFP9ME3jAyNrPgV3jJEsUKRN897sannY7s4VdVK8A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="h8habnh/"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1699300979; a=rsa-sha256; cv=none; b=GHKl0L8PWdIJGUKCd18CCJUFFaXnSL4DzJP5K0BiOmx06mSwRvqgM6Z5PNQthr7xQpxtWC fpQGoQ6RrhLwE8nSLT+3CTppn5boQEB+8s6L7qpboKxB+wIrU6lSbinSzGYhGleBtACzzM PYsOkyVROW0Yow5QsvtGbWP9YDnK9N6t3eDyFfE/IG6yx7JYc/zOipKaX+l9mHPW+9JSYt CS4SghuCLPFpdIgASquI1lI2d3GpM2VcDNHoyk5ZYgCLR1vKyryMmOt6FF5ovL3llUJ/mf dKXV5/UDqIn0i0cCzgHzDTAWROQE6H3kPvPLNKmDZEDUK3Oj03tY6enkQK9SWA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r05jN-0005CS-5F; Mon, 06 Nov 2023 14:57:53 -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 1r05i2-00027h-V9 for emacs-orgmode@gnu.org; Mon, 06 Nov 2023 14:56:31 -0500 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r05hy-0006yk-Na for emacs-orgmode@gnu.org; Mon, 06 Nov 2023 14:56:28 -0500 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1cc5b6d6228so31676655ad.2 for ; Mon, 06 Nov 2023 11:56:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699300585; x=1699905385; darn=gnu.org; h=content-transfer-encoding:in-reply-to:references:to:from :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=R4mqtOsyI5WOj8miEJztl/UnvjDLtCZcZCAJtogOSlQ=; b=h8habnh/EM9tlSWWBXmywRhH11fZ/S7gUHbW1PhD8mF4CTiF8aA9pC6B+9Q+mjKg0h hDAlhFk0jdS74oWXwNuwP71tEIKnuPV1rSv8nMYPfLuGBMWWBkUkJxkXM9/8wLp/CDrq 4vkp0XFrpE2pCdBwCtLK3lRkyPvJHrestVdRcBIpR4mn09Dd3/jlmi06pO0vDquo84dj 5zy2yr1zHwWjbAGd1+6G63N1buwcOe66wl4TzYojP46AJtu9GT9uqsxAK1mwJOtFjp4k zmQyMpVn4OFZUt+vnMHeDv90aEZp7J4stry8D/dnEuT6D5VBOYJuS27Td96rbEnENrSw JrGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699300585; x=1699905385; h=content-transfer-encoding:in-reply-to:references:to:from :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=R4mqtOsyI5WOj8miEJztl/UnvjDLtCZcZCAJtogOSlQ=; b=YulNDqjZy2eWUiywRsZW23/hPQt5a4vpJ520alXLRBuH+9/CY9ViAgK9t3xexLPL4l iYtD38lOpR0ycblv3m4hEcu0oC0jb3r1iGHNJo8WTCvfZq1Lrb7k37sQ0q/2Ggal7DXT WLYmOIyUOPFWIhFyIrrres5iaZe3dkWy1aBXAe1zyC0ekEo2M0jX46aS55d3uq5+9DSX v8d08hqSYCMnIya6kH+EgjSkizR53rB9gv1P64n5nFaSw23P9PNcGhWDPJvR85wsu+NE ZlhpLEQJW4JoQr9su6wvAnjTBBGyO8kGUduXRcBCWEJVygShoOy9TbgHUYSyVMTST/jI Lsbg== X-Gm-Message-State: AOJu0Yx6NBTZJ0tAPyXk/QseSdt1Tpu5tD5pdB9kKDhToPzJN50nMYdF vxjKGlwN5Dx0pG10Vx7uWxNHyV1TUSE= X-Google-Smtp-Source: AGHT+IHXIpdBjA2QFzo+SkSMQ1wDtdDIsqcrmpyX71VaxV6ZpGnePZBDNRto47aTrl8e4oCsFPgaGw== X-Received: by 2002:a17:902:ea01:b0:1cc:47a6:12b8 with SMTP id s1-20020a170902ea0100b001cc47a612b8mr25038907plg.46.1699300584684; Mon, 06 Nov 2023 11:56:24 -0800 (PST) Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id l12-20020a170903120c00b001c746b986e5sm6272737plh.45.2023.11.06.11.56.24 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Nov 2023 11:56:24 -0800 (PST) Message-ID: <07a64e9b-79f4-431c-abe7-a0ec643b774c@gmail.com> Date: Mon, 6 Nov 2023 11:56:23 -0800 MIME-Version: 1.0 Subject: Re: [PATCH] Add support for 'thing-at-point' to get URL at point Content-Language: en-US From: Jim Porter To: emacs-orgmode@gnu.org References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=jporterbugs@gmail.com; helo=mail-pl1-x631.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.55 X-Spam-Score: -6.55 X-Migadu-Queue-Id: 2ECF0118A3 X-Migadu-Scanner: mx13.migadu.com X-TUID: KwdBQcPT4LVm On 11/6/2023 11:45 AM, Jim Porter wrote: > This is similar to Emacs bug#66752[1]. It would be nice if > "(thing-at-point 'url)" would return the URL when point is over an Org > link. With this, it's easier to write a function that copies (or browses > to) the URL at point without coding so many special cases. Actually, this code should probably be a bit more selective: is there a good way to tell when an Org link is an absolute URL, as opposed to some relative path or internal target? Maybe we should check 'thing-at-point-uri-schemes'?