From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.devel,gmane.emacs.orgmode Subject: Re: [External] : Re: Adding custom providers for thingatpt.el (was: [PATCH] Add support for 'thing-at-point' to get URL at point) Date: Tue, 7 May 2024 09:10:59 -0700 Message-ID: References: <87leba3ame.fsf@localhost> <88435424-afa3-d7a3-56ff-df9f0a2ca6ba@gmail.com> <875xz39cgp.fsf@localhost> <87ttk6da89.fsf@localhost> <673a0f71-c91f-8461-7388-9efbed6ba24f@gmail.com> <0c66ae28-7088-3ac7-be39-7714b8f80455@gmail.com> <87mspcave3.fsf@localhost> <253c058a-d349-41a7-7733-c73075bffcb6@gmail.com> <87sez36pvl.fsf@localhost> <2f344439-d0d6-a3e5-963c-773bb5c833d6@gmail.com> <8634qtbypq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25275"; mail-complaints-to="usenet@ciao.gmane.io" Cc: yantar92@posteo.net, emacs-devel@gnu.org, emacs-orgmode@gnu.org To: Eli Zaretskii , Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 07 18:11:30 2024 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 1s4NPd-0006Rg-BK for ged-emacs-devel@m.gmane-mx.org; Tue, 07 May 2024 18:11:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s4NPK-0003l1-2S; Tue, 07 May 2024 12:11:10 -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 1s4NPH-0003k2-KS; Tue, 07 May 2024 12:11:07 -0400 Original-Received: from mail-oo1-xc2b.google.com ([2607:f8b0:4864:20::c2b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s4NPD-0004W5-0J; Tue, 07 May 2024 12:11:07 -0400 Original-Received: by mail-oo1-xc2b.google.com with SMTP id 006d021491bc7-5b215ed1e42so1291018eaf.2; Tue, 07 May 2024 09:11:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715098259; x=1715703059; darn=gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=dII1pnE25Z7688plsVYYdTYC0FEauGSjBdkaYuda2yQ=; b=ZGsdxENLX2+ZQRD9mUDG3rAn1TmG6PoNSux7Ad+DynH3ngRuvwUbfNzzIMfD3qyzZs uWGIhBkaGr1opN1HnczYuMq7K/gaXelXuivPBZPpVxAGGu2PjeqfDjptmTQxRHYpSOK8 3sE/ZUu4hMc8eGAsQFdLqszi8ACVNLqAmMK0v/LWA139ovSCJkXdJWqyRqxrCG+OPlqs gt/9O5vtz+zO7cqGqaV8izpocQZT1Peq27gb6XWi442N9QDIvXbFlfRfwu3DJMZYor3G ZvjHqeqIA2kUriUhUH0GT84KNjCDAhH8XycssfCDHOgADRI3PbTH7LzjQ/4DvqjXqPGr SJUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715098259; x=1715703059; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dII1pnE25Z7688plsVYYdTYC0FEauGSjBdkaYuda2yQ=; b=Hy68RLzqsCVj2eXhpQB9e02gw5rX6MtFeWBA2BxTLtbwZNC5MPTwIiQbgjZruMmDnd Y8AD9KBaHweaZmts4t2MnXawUkJaJoqR8Mliq47zoaZOviOvOPfiA1bsK4OZUTEYbDCi IfKM3cekzDSMyQD1Ls++dj2raQtHD+JBHr9L+keRBWoCdv3YJ4Nhr+tcIDgjcBAU++s8 XUBCjRl9qqUz1ZVBJkUAGPRENqHbHxwVq+Pm4ScNN4LGO01vwbeATcUxZk7x7gHsp6vo V5h6cobjzWS/fdqqEIHxUaBOwqajizbOE/wOX8+EYI3KtKTk5FotRpJ2uTNmMTvebp0r SCTw== X-Forwarded-Encrypted: i=1; AJvYcCVHt0cugC1duuiOyIJYyr9wFZGrRgKmmtlvZMqnrU+o/jsJQO5J0iNlS2GgOJtepEC3XO7SZwYUoiACxPj/XtwPnyNO5YcomaC8BFIeyZk+6gx90OneacGPbpQ= X-Gm-Message-State: AOJu0YzuoyIi08nWY+QRUo2o8TybBAYsv822CDK9xNHIYuDOIC/1aEuM qlcGPWW1a6Td//ky9RPDQHWV5vKbEFcBJsumemxxP9ypv38MmtvAgDaCrw== X-Google-Smtp-Source: AGHT+IHR0DEM3WVxqzZicZIdCqivp7E76+vNtPyN+LvytUTy/kvElgjvbSxjylV2D3kikHkbnlNZQw== X-Received: by 2002:a05:6358:988e:b0:186:5cb:30d6 with SMTP id e5c5f4694b2df-192d2c2c872mr21857555d.10.1715098259512; Tue, 07 May 2024 09:10:59 -0700 (PDT) Original-Received: from [192.168.1.2] (syn-023-240-098-037.res.spectrum.com. [23.240.98.37]) by smtp.googlemail.com with ESMTPSA id p11-20020a635b0b000000b005e2b0671987sm9989056pgb.51.2024.05.07.09.10.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 May 2024 09:10:58 -0700 (PDT) Content-Language: en-US In-Reply-To: <8634qtbypq.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::c2b; envelope-from=jporterbugs@gmail.com; helo=mail-oo1-xc2b.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 autolearn=ham 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:318954 gmane.emacs.orgmode:161536 Archived-At: On 5/7/2024 5:20 AM, Eli Zaretskii wrote: > I disagree. These functions are nowadays the basis of many > interactive features, and users are usually mightily confused by the > fine print of what "at point" means technically in Emacs. The current > operation is much easier for users to grasp mentally by observing the > position of the cursor, whether it's on or just after the "thing". At the risk of veering off-topic (I mainly care about adding 'bounds-of-thing-at-point-provider-alist' and 'forward-thing-provider-alist'), would adding a new optional STRICT argument to 'thing-at-point' and friends be an ok resolution for everyone? This argument would enable Drew's proposed behavior. That way, users get all the nice behavior by default just like today, and programmers who require strict correctness in their code also have an option.