From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#9300: 24.0.50; `bounds-of-thing-at-point' does not return nil when just after THING Date: Tue, 23 Feb 2016 03:01:12 +0200 Message-ID: <56CBAF58.2000708@yandex.ru> References: < NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1456189344 21312 80.91.229.3 (23 Feb 2016 01:02:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Feb 2016 01:02:24 +0000 (UTC) To: Drew Adams , 9300@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 23 02:02:12 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aY1Mh-0005L9-7Q for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Feb 2016 02:02:11 +0100 Original-Received: from localhost ([::1]:52952 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aY1Mg-0003Ir-8l for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Feb 2016 20:02:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aY1Mc-0003F5-9v for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 20:02:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aY1MY-0000tK-6e for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 20:02:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aY1MY-0000tE-2M for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 20:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aY1MX-0007Hq-RK for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2016 20:02: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: Tue, 23 Feb 2016 01:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9300 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9300-submit@debbugs.gnu.org id=B9300.145618928127963 (code B ref 9300); Tue, 23 Feb 2016 01:02:01 +0000 Original-Received: (at 9300) by debbugs.gnu.org; 23 Feb 2016 01:01:21 +0000 Original-Received: from localhost ([127.0.0.1]:38687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aY1Lt-0007Gx-Jy for submit@debbugs.gnu.org; Mon, 22 Feb 2016 20:01:21 -0500 Original-Received: from mail-wm0-f49.google.com ([74.125.82.49]:37460) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aY1Ls-0007Gk-7n for 9300@debbugs.gnu.org; Mon, 22 Feb 2016 20:01:20 -0500 Original-Received: by mail-wm0-f49.google.com with SMTP id g62so188420939wme.0 for <9300@debbugs.gnu.org>; Mon, 22 Feb 2016 17:01:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=tFtMc0d+O2dtv9aYx3tCgRQX3gBH7lCavNpsVLgRsNs=; b=zpgFg0VC7tdJfY+DjAA4Vfx344XtFTjPXL8oTqWCJFVNewWAwEdzuDry+SdRNrggGw J2NIZweqbdc2Rz+8pQL4qLeoOqDYXM1vopbvZ+bDE6zlMyhHTuY93R/zHjTnelVXt1b+ k3QWUvwOodnB3bfAxN1RHi2czDjdZI8knQLiWDjU0NL5l6FVCtXz+bFr97R0FaGXI8Nt QjHIQIDXIFI9Eg/EKQVMOHuIXcXkTUmX1ictWKBdBxhFr75eV69ugwnyg18x713biNw9 l17mM0BT8BQaHOKLhwcNihAlU8+U7jfWsZi0ytww3tww+0DLBIHq1G49ghi3aJ/yfVoO KPtg== 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:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=tFtMc0d+O2dtv9aYx3tCgRQX3gBH7lCavNpsVLgRsNs=; b=J8jRhJ81LnDvpVqYZaEaWPRQE0qhPZe1TnK4o0K2zESpY1toDRcBFZjdliPWne4pLu CO/YxIXf5Uz8zJIvwHaziwfELfADZ/rpynUYFH88uhtNf/rmNE8wpLUo1qhOVRR/tdk6 BkJii1tioBSrO9Th8T/6qSZpaTIK28UmiXDbQsH+wvx33hyYo2biSGHdMfhWhKIpmrrM g2vRRcY7Yj5PUWsapkfmMIbfI3wA5kTEbSu651R3yaVr8kFS+6gpB05NkPWiiRXF4Nzj NJ3khHc0PXU+y3lz8ecGBcUoVDFEXhz5Ozg9xis6fpb4/pCkRCi5L85jX7C5pKPRC0h5 A0jw== X-Gm-Message-State: AG10YOQmopsrrfzQ2oa+0P1lFhUV8v2F3tlbSVQk7Dw7rY0+Rqkc3Nd8ZwkKC8WP6sd53A== X-Received: by 10.28.131.141 with SMTP id f135mr14915787wmd.33.1456189274600; Mon, 22 Feb 2016 17:01:14 -0800 (PST) Original-Received: from [192.168.1.2] ([185.105.175.24]) by smtp.googlemail.com with ESMTPSA id n131sm23426363wmf.9.2016.02.22.17.01.12 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 22 Feb 2016 17:01:13 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:44.0) Gecko/20100101 Thunderbird/44.0 In-Reply-To: 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113506 Archived-At: I'm not sure it should be fixed. Your reasoning seems valid, however by now this behavior is ingrained into my expectations of how thing-at-point should behave. This would be a breaking change. For instance, it will make (bounds-of-thing-at-point 'symbol) unsuitable for use in a completion-at-point-functions element, to compute the first two values of the returned list, because during completion you're most often "after" the symbol. And I do use it for that purpose in one third-party package. emacs-eclim also uses it in eclim-java-show-documentation-for-current-element. At the very least, this will change the existing behavior.