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 10:55:47 +0200 Message-ID: <52250983-13a2-98ab-05cd-04b41a048866@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> <1c17de6b-2297-6e7e-9b06-e84b5b6df3eb@yandex.ru> <8c2b4b8b-0e49-42af-a98d-d82006f90354@default> 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 1478768219 24161 195.159.176.226 (10 Nov 2016 08:56:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 10 Nov 2016 08:56:59 +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 09:56:55 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 1c4l9b-0001JF-L2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Nov 2016 09:56:15 +0100 Original-Received: from localhost ([::1]:44619 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4l9e-0003Jk-R4 for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Nov 2016 03:56:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4l9S-0003Eo-0f for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2016 03:56:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4l9O-000604-8D for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2016 03:56:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36237) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c4l9O-0005zn-0v for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2016 03:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c4l9N-0004b7-ND for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2016 03:56:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Nov 2016 08:56: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.147876815717663 (code B ref 21391); Thu, 10 Nov 2016 08:56:01 +0000 Original-Received: (at 21391) by debbugs.gnu.org; 10 Nov 2016 08:55:57 +0000 Original-Received: from localhost ([127.0.0.1]:51636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4l9J-0004ap-JE for submit@debbugs.gnu.org; Thu, 10 Nov 2016 03:55:57 -0500 Original-Received: from mail-wm0-f50.google.com ([74.125.82.50]:34820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4l9I-0004ab-5U for 21391@debbugs.gnu.org; Thu, 10 Nov 2016 03:55:56 -0500 Original-Received: by mail-wm0-f50.google.com with SMTP id a197so354179772wmd.0 for <21391@debbugs.gnu.org>; Thu, 10 Nov 2016 00:55:56 -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=md5oCIMVr4ItR8hSPriLG/N/XWZO8V94kE0XuxZ4M1I=; b=w1K39HNIn98Buk9vY/J+RAVnNwotAHDWhd611rjfbrmTiOp9Iq+zmUBs5O07rTuKNs WTt4IAkud1pQQ2JtW3xkAGoz9VliOQdLn2WihJJEGvMD/BMUDSRBu1XgobN0FtK9/UvQ I088qwB9vZjw+DWerpPns4LiDuStWdx4NeQ6v04rMb6ZQzA1Y4DI0cwCM/nahE44VhkE SHyUaRiGq87Fb5kA59Egi3MI1IBSw38ie26sPPpWMg/BVJQIfoF9CE0tZ9Qs5krSRA/N SZ9SLgIjcix5lDnHIYtRb9amtkrRAxeiA3zsXLDiKdWUhLpu4btRaSwJII1nf0XCyrUT SG1A== 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=md5oCIMVr4ItR8hSPriLG/N/XWZO8V94kE0XuxZ4M1I=; b=MEWtSacMQTEYGqOCERYHHhXe67M2If/uFIOR+I6YEZK5jQqvCDwDYkppeOiOWJpl/z Zd6ttbm/ee5hklIXURoPg7xYwPmF1bBG/xriBXMiLv6QyCAzYK4tavEQP7RcpSshZSWl 1hrwee9H6v4EY4220QUfLRUrPtwr+cMazrA2t3KYLetQ6qG105TS/yiyPmCgAeulRUH0 Uiz+lU6NJ2S1nJZUFgW3joorEH5cpjB6/y63Yc16BlEelahFqTlIX5+Ye5eK4HW8qAnG HehSZ7TsFChf/xPIIMJTBHmvWMLxDvpaf+khUrWN/QdMLjoqSRtQIJnlmiBaaozY+cJP cTzA== X-Gm-Message-State: ABUngvcI8LgwH73JNSQ5H+2L5FmKEu5JpZJcxQ/Hb0WsUvx0+GC2hlAbKDntp4E7dLEuPg== X-Received: by 10.194.37.198 with SMTP id a6mr4048675wjk.57.1478768150183; Thu, 10 Nov 2016 00:55:50 -0800 (PST) Original-Received: from [192.168.1.3] ([185.105.173.41]) by smtp.googlemail.com with ESMTPSA id f76sm4918148wmd.15.2016.11.10.00.55.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Nov 2016 00:55:49 -0800 (PST) In-Reply-To: <8c2b4b8b-0e49-42af-a98d-d82006f90354@default> 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:125546 Archived-At: On 10.11.2016 02:40, Drew Adams wrote: > What do YOU think is the point of putting property `thing-at-point' > on a THING type? Being lazy or unable to make up your mind. Or maybe some kind of micro-optimization. > You will see things like this in thingatpt.el: > > (put 'url 'thing-at-point 'thing-at-point-url-at-point) > > (put 'email 'thing-at-point > (lambda () > (let ((boundary-pair (bounds-of-thing-at-point 'email))) > (if boundary-pair > (buffer-substring-no-properties > (car boundary-pair) (cdr boundary-pair)))))) Try removing these two in your local Emacs, save and restart (maybe do a rebuild as well, to be sure). (thing-at-point 'url) and (thing-at-point 'email) will continue to work fine. > (put 'number 'thing-at-point 'number-at-point) > > And that's only a few predefined uses of it. One of the main > points of the library is to provide tools that you can use to > define your functions that implement providing a THING at point. Search my messages for the word "third-party".