From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas =?UTF-8?Q?R=C3=B6hler?= 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 08:59:49 +0100 Message-ID: <56CC1175.3080101@easy-emacs.de> References: < <56CBAF58.2000708@yandex.ru> <3a64315c-fc72-42bd-a6cf-0fa43414daa6@default> 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 1456214425 4784 80.91.229.3 (23 Feb 2016 08:00:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Feb 2016 08:00:25 +0000 (UTC) To: 9300@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 23 09:00:14 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 1aY7tE-0007x6-UW for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Feb 2016 09:00:13 +0100 Original-Received: from localhost ([::1]:54672 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aY7tD-0002RE-N1 for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Feb 2016 03:00:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aY7tA-0002Q0-Bt for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 03:00:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aY7t4-0004NN-NQ for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 03:00:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aY7t4-0004NJ-KM for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 03:00:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aY7t4-0005RG-FG for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 03:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Feb 2016 08:00: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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.145621435220817 (code B ref -1); Tue, 23 Feb 2016 08:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Feb 2016 07:59:12 +0000 Original-Received: from localhost ([127.0.0.1]:38932 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aY7sG-0005Ph-Lq for submit@debbugs.gnu.org; Tue, 23 Feb 2016 02:59:12 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:39861) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aY7sF-0005PU-3N for submit@debbugs.gnu.org; Tue, 23 Feb 2016 02:59:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aY7s9-00049s-1E for submit@debbugs.gnu.org; Tue, 23 Feb 2016 02:59:05 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:55667) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aY7s8-00049o-UT for submit@debbugs.gnu.org; Tue, 23 Feb 2016 02:59:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aY7s7-0002Hk-RZ for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 02:59:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aY7s2-00047g-Oj for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 02:59:03 -0500 Original-Received: from mout.kundenserver.de ([212.227.126.130]:64534) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aY7s2-00047X-F8 for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 02:58:58 -0500 Original-Received: from [192.168.178.35] ([77.12.96.117]) by mrelayeu.kundenserver.de (mreue001) with ESMTPSA (Nemesis) id 0LsL60-1ZoB8C2yXA-01248U for ; Tue, 23 Feb 2016 08:58:56 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Icedove/38.5.0 In-Reply-To: <3a64315c-fc72-42bd-a6cf-0fa43414daa6@default> X-Provags-ID: V03:K0:EnJ5mHliG9Cth8Nm9t4QY6Ua1h1x9QoWq7TY+NZvlYbu16MgHYD gl4PoDUqLju5IKXJzpJf6ux9H/0KaidIdbHUHjC+aQLaZRAosZrREptU34xrX2XN/89A0wP LWAUI/7x5YdkDzYsGNVT+9pux1Yia9yd20JeJ95NXxeipMupz56WiAvlSb0R2GkRCraakuE pjv+W5gb7ERLN39yR8Q4Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:KOSfFsxrLW0=:W8WWavuPUmtZcxjAUrpQ9m uwoEp4+p38An1V5cBz7rhVcaV7fGika4CTbvFQGDDJDchI4bC2s4NAIuWLAAMSuNo9WQFR8zG 5MEGCGxUSrf/8ECIfL5uNfosY0w99iG+ToFnETFDIKuUC1YFeRc0idDZDHgvanamVFxIefxH2 0g5tUZelOsxME7kWLcGAHUCdZefbnv1ifOu9WCSHP3jxhSpTVcsULYMh/umxkelELGCfNFZcs H/OUhwqs8rbHNoKn+3WF+4YHDiXpiJIoPV0NipILbwKU/Tz9rzPqURxXH6MjiOmW1JeLFmcSQ msRvgIXtBJ48ejCl7Prp/sy+nWAl7vbMUmVpTOEB904d8Edh00mk2wbCTO/+m1k70jnI1a2gB 3DATFxj7cU32C6eSNHQnul6N23KEPdw1kir03wuGoeP+X7k1cLFlzkxf3D+rfOzinZpiHCFFV DVidycu+S6Q14AAtWOm4o99/51bkm6FiubTKN/qm6c4GilnGHqwa62EN4ZxRLMrVGB300UE4s 45ZBX5Cp5MBKrEhpFWW21ocDzIxb3ICMpxVB6bDYDTe7QJfcGBrPKp3bpyNKrmvC77iuzi6uG hyFpKq0pDhLDkcy8s0Q/8OfxGQiS5f2m/udRjglQwibmgfgWCdKy9IZt2b4ACvdxTb2cyCbV1 Om3WiuPLs2kvQFdZ+1vElGcSe+yO4eELfGuPwo43l2t/tCZ0Q5M6z5JYWgoW0itY+JoqNFcyk SYrdGeEi0RbSxzI8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:113528 Archived-At: On 23.02.2016 07:37, Drew Adams wrote: >> 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, > Why do you think so? Have you tried it? It does not affect > the behavior for THING = `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. >> >> 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 > `<=' instead of `<' is a bug: > > 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. > > > That what I changed at https://github.com/andreas-roehler/thing-at-point-utils ar-forward-list-atpt would stop at closing paren, not one char after as forward-sexp would do. Char after FORM in not considered inside in sense of at-point.