From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#9300: 24.0.50; `bounds-of-thing-at-point' does not return nil when just after THING Date: Mon, 22 Feb 2016 22:37:57 -0800 (PST) Message-ID: <3a64315c-fc72-42bd-a6cf-0fa43414daa6@default> References: < <56CBAF58.2000708@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1456209563 31233 80.91.229.3 (23 Feb 2016 06:39:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Feb 2016 06:39:23 +0000 (UTC) To: Dmitry Gutov , 9300@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 23 07:39:09 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 1aY6cn-0008A5-Bw for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Feb 2016 07:39:09 +0100 Original-Received: from localhost ([::1]:54350 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aY6cm-0006Mt-RH for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Feb 2016 01:39:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aY6cj-0006Mj-JI for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 01:39:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aY6cg-0002eB-Db for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 01:39:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41765) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aY6cg-0002e6-Ah for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 01:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aY6cg-0001pA-5b for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 01:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Feb 2016 06:39:02 +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.14562094916950 (code B ref 9300); Tue, 23 Feb 2016 06:39:02 +0000 Original-Received: (at 9300) by debbugs.gnu.org; 23 Feb 2016 06:38:11 +0000 Original-Received: from localhost ([127.0.0.1]:38892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aY6bq-0001o2-RE for submit@debbugs.gnu.org; Tue, 23 Feb 2016 01:38:11 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:51288) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aY6bp-0001np-3w for 9300@debbugs.gnu.org; Tue, 23 Feb 2016 01:38:09 -0500 Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u1N6c1Oj030519 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 23 Feb 2016 06:38:02 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.13.8) with ESMTP id u1N6c031013392 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 23 Feb 2016 06:38:01 GMT Original-Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u1N6bwbq012610; Tue, 23 Feb 2016 06:37:58 GMT In-Reply-To: <56CBAF58.2000708@yandex.ru> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: userv0022.oracle.com [156.151.31.74] 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:113526 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. >=20 > 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,=20 Why do you think so? Have you tried it? It does not affect the behavior for THING =3D `symbol' at all. > to compute the first two values of the returned list, because > during completion you're most often "after" the symbol. So? Not a problem. Put point after a symbol - you get the same answer as now. > And I do use it for that purpose in one third-party package. >=20 > emacs-eclim also uses it in > eclim-java-show-documentation-for-current-element. At the > very least, this will change the existing behavior. This is the design of the thingatpt code, and the reason why `<=3D' instead of `<' is a bug:=20 the function that is (get THING 'end-op) moves PAST the THING, so that point is not on the THING. This is true generally, no matter the type of THING.