From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#21391: 24.5; `thing-at-point' should return a string Date: Thu, 10 Nov 2016 01:35:23 +0200 Message-ID: <1c17de6b-2297-6e7e-9b06-e84b5b6df3eb@yandex.ru> References: <0a68c2ae-0940-4e2c-8b3c-1faceb45c43c@default> <1773ab35-70b1-42f9-8a8b-fe07881487d1@default> <874m3krnb6.fsf_-_@gmail.com> <83a8dbiaps.fsf@gnu.org> <83pom7gjhl.fsf@gnu.org> <0a8d76e4-4d1b-a26d-2b76-a2d9384d9f72@yandex.ru> <83mvhbgitf.fsf@gnu.org> <25bb22e8-1388-275a-d0da-7e698acdf6da@yandex.ru> <83inrygggr.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1478734583 16686 195.159.176.226 (9 Nov 2016 23:36:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 9 Nov 2016 23:36:23 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Thunderbird/50.0 Cc: tino.calancha@gmail.com, 21391@debbugs.gnu.org To: Drew Adams , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 10 00:36:19 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4cPa-0002nF-Dr for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Nov 2016 00:36:10 +0100 Original-Received: from localhost ([::1]:42994 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4cPd-0005wV-Gw for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Nov 2016 18:36:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4cPV-0005vW-JA for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2016 18:36:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4cPS-0004Py-Fy for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2016 18:36:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36025) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c4cPS-0004Po-Ba for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2016 18:36:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c4cPR-0008J6-W8 for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2016 18:36:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Nov 2016 23:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21391 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21391-submit@debbugs.gnu.org id=B21391.147873453331895 (code B ref 21391); Wed, 09 Nov 2016 23:36:01 +0000 Original-Received: (at 21391) by debbugs.gnu.org; 9 Nov 2016 23:35:33 +0000 Original-Received: from localhost ([127.0.0.1]:51424 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4cOz-0008IN-FR for submit@debbugs.gnu.org; Wed, 09 Nov 2016 18:35:33 -0500 Original-Received: from mail-wm0-f42.google.com ([74.125.82.42]:35843) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4cOx-0008I8-50 for 21391@debbugs.gnu.org; Wed, 09 Nov 2016 18:35:31 -0500 Original-Received: by mail-wm0-f42.google.com with SMTP id g23so9902230wme.1 for <21391@debbugs.gnu.org>; Wed, 09 Nov 2016 15:35:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=VGgD9ER9dmkvdTxk380rAkjSlI0yic2q6vyzNnIrxdA=; b=jyC9n4QfzjjKOmlc7HWgpSNsZauxoG76s8It5NAg4OXZjNYAXzYFzU7XU+3MfPnUiE YZNkgwPnq82PHxm8+6QIGbdYi8ovxXShbwn4TB84Q5jreE7Th6yes0TafuYnF7gkEBK2 rPERwYtYjW9GTJ7s8ciXKgzRnSfJMFeTEoWPmrTxgTj6c0SvboT1rbskyNCjZI4N5yIo PMjpd6qkpfhpwz6vS9SayD+TpLYSbERjxcE6d6WyWk9S7AwXp+zpheN9M44sh1Lk7Fdf pMlC8NWtSKdfYbfkSLuJgUIeO0RdsrVkfDZplh2RUXWPt0TfJKPMeHHvhZfEWUmENODQ Ke+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:cc:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=VGgD9ER9dmkvdTxk380rAkjSlI0yic2q6vyzNnIrxdA=; b=Uz+fcPJ9H4TD9ORjppwBV2zy/cMrffifmWrTH3kTlltXvTeazYv6WWKF+G5bGxBgON BLTmBiH4Q4Tim1ruGTrW89zqAUYy1FIgQoCGfJz7a9Gdeicn0sVNPuOBBq/BacFPzy90 mjAtHC5bwsfBB8eTp4qQ4FcrV3iVe7Sf14QqBnarvCg68yYgxzuY9F6TUEnE3RZ5eGSv EfIOq3LONaNScJCZglMPwdsFnEzuL3zi3A9LrVe4gdl4/p42zP+ZhRsQ+1VaLQHPw5YR s1OYCiz7ngjdR73qbrh+QNFcnV0YdeEooWJTu2EBzrvb7+Ez/i0GlWhdCk4Mr8Wp8xSd 8+dQ== X-Gm-Message-State: ABUngveu47pB61HpsFkzOy+xvFV1nlSWAdbYjVmk7eH6VmJvZNUmjc0hntG0b2Uwrqsnhw== X-Received: by 10.28.51.141 with SMTP id z135mr2676239wmz.109.1478734525449; Wed, 09 Nov 2016 15:35:25 -0800 (PST) Original-Received: from [192.168.1.3] ([185.105.173.41]) by smtp.googlemail.com with ESMTPSA id k2sm2224839wjv.11.2016.11.09.15.35.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Nov 2016 15:35:24 -0800 (PST) In-Reply-To: Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:125538 Archived-At: On 09.11.2016 19:58, Drew Adams wrote: > It has no problem that I'm aware of. What's the problem? > `number-at-point' returns a number, as it should. > `list-at-point' returns a list, as it should, and so on. No problem there. > (get 'number 'thing-at-point) returns `number-at-point', which > is 100% reasonable. Not at all. As I've explained previously. >> or people will have to remain content not to use thing-at-point >> with NO-PROPERTIES argument on them. > > What is "them"? The third-party things. > Not wanting someone to use (thing-at-point 'number) to return > a number via (get 'number 'thing-at-point) is one thing. > And it is already addressed by what I proposed. I must have missed that proposal. > Not wanting to let (get 'number 'thing-at-point) to return a > function that returns a number is quite another thing altogether. > And it is totally uncalled for. Isn't that one and the same? > I disagreed with it strongly in the context of bug #9300, where you > were the lone voice proclaiming it. You apparently view the only > use of this functionality as returning a string near (not at) point > that can be used as an input default value. thingatpt.el is much > more than that. It is very important that it be able to be used > to test whether there (really) is a given THING _at_ point (not > just somewhere near point). That seems orthogonal to the current discussion.