From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tino Calancha 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, 21 Jun 2016 12:01:16 +0900 Message-ID: References: <67e48e39-f31f-5170-a552-ac33509ffcd6@gmail.com> <8337o79arh.fsf@gnu.org> 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 1466478147 13738 80.91.229.3 (21 Jun 2016 03:02:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Jun 2016 03:02:27 +0000 (UTC) Cc: f92capac@gmail.com, dgutov@yandex.ru, 9300@debbugs.gnu.org, npostavs@users.sourceforge.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 21 05:02:15 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 1bFBx6-0004Iq-SA for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Jun 2016 05:02:13 +0200 Original-Received: from localhost ([::1]:47677 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFBx5-0001op-Vz for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Jun 2016 23:02:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFBx0-0001oj-K5 for bug-gnu-emacs@gnu.org; Mon, 20 Jun 2016 23:02:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFBww-0005LS-Ef for bug-gnu-emacs@gnu.org; Mon, 20 Jun 2016 23:02:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35877) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFBww-0005LO-BO for bug-gnu-emacs@gnu.org; Mon, 20 Jun 2016 23:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bFBwv-00034c-VH for bug-gnu-emacs@gnu.org; Mon, 20 Jun 2016 23:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Jun 2016 03: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.146647808811770 (code B ref 9300); Tue, 21 Jun 2016 03:02:01 +0000 Original-Received: (at 9300) by debbugs.gnu.org; 21 Jun 2016 03:01:28 +0000 Original-Received: from localhost ([127.0.0.1]:48214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFBwO-00033m-3s for submit@debbugs.gnu.org; Mon, 20 Jun 2016 23:01:28 -0400 Original-Received: from mail-pa0-f42.google.com ([209.85.220.42]:34115) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFBwM-00033Y-3g for 9300@debbugs.gnu.org; Mon, 20 Jun 2016 23:01:26 -0400 Original-Received: by mail-pa0-f42.google.com with SMTP id bz2so1425560pad.1 for <9300@debbugs.gnu.org>; Mon, 20 Jun 2016 20:01:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=soV7xCBwMb5SPSmjXMwIc+UhbZXx/rPAqEd7au1GAOs=; b=QR52fNAx+6ZKBOwG6/Zw5PMiLi2uy1g2qe+4N/Epc2VkghiF7ynmht3f7cieqLGqTg Q4S0omQx1Darw/Xv2uKynzE8qJOil6TuJGY+hqMlFP9X/c6iHXwLBW+KMvoYHcyGCR4r FcZOIMuTWS0jx2GkMQKLDkQYX0mUxwuHjxbelekLRohyYbGc9DRypi9aOK2D3O+rCDgs ixQ9pCYTXHrNoAIOhhTU00m+xwcejyuRe9HdNJUNZMOawCS7FC2ay0zOojN3H+THxBNr fpXwG3L9YxbRLaXPFme00vSv28DEwNhYcM9SUYKLbfpDQU0JkDYceGzyZuWduSaTWMUq MIQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=soV7xCBwMb5SPSmjXMwIc+UhbZXx/rPAqEd7au1GAOs=; b=hK9sKFoxOEuK/LMnirjNp4ltPxOM16dekgfxzau0FjIaUH+IZpyJ2L6ByaxTSXe+3F n9DL31BLml6WE1vNWa5RnrcBBJk0GWXBU2w3FOdnFbEYG1BpkSTBjlNiZBQmiB4mEfeK f9W9wGTJp56z6NPsDZZbySISg+EBOsdgd29ZrGVubVWVRsWzqSSp7yZd5LS6WKFhwOED kvUcEwndsXJou7aAh3n2QhswIVeshCPauz0k5+SbWkjgFCDRtzjE6ZJE+V0LETDmANKb q9M9oJef7T5iGdN2OkBZsgcHiEfYCFIdH1vZJGdWM1STM7//Uy70N4L5YsxeWUHINjSY 0avQ== X-Gm-Message-State: ALyK8tL5vTsbX0SZSFRyqhWTGoRutrvWjDHklCKw6cWExB4DE94cR5do0BPkuYrFDO8Zbw== X-Received: by 10.66.171.202 with SMTP id aw10mr25610749pac.100.1466478080117; Mon, 20 Jun 2016 20:01:20 -0700 (PDT) Original-Received: from [192.168.1.51] (softbank126103144234.bbtec.net. [126.103.144.234]) by smtp.gmail.com with ESMTPSA id ab6sm21204854pad.44.2016.06.20.20.01.17 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 20 Jun 2016 20:01:19 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 In-Reply-To: <8337o79arh.fsf@gnu.org> 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:119861 Archived-At: > FWIW, I agree with Dmitry: this has been a de-facto behavior long > enough to consider it the correct one. If documentation is confusing > in that it says otherwise, we should fix the documentation. * If the behaviour is obviously correct the funcs. are easier to use. * If the definition allows for more general uses, as Drew explained, much better. * For code where the existence of the THING (exactly) at point really matters, the current behaviour may cause undesirable effects: * Karen Lisp, the mother of 8 yr old Emily, is enjoying a family cruise. * Karen just downloaded in her favourite iTHING one new APP based on 'thingatpt: - It shows an alert whenever there is _no_ a boat at point. - The point equals Emily position. * The ship is not moving: they throw the anchor during the Hawaiian dance show, which Karen is watching while Emily went to play. 1) First, Emily went to the prow to receive some fresh air. => App: no alert 2) Later, Emily went to the middle of the ship following one cat. => App: no alert 3) Finally, she went to the stern to see the dolphins. => App: no alert 4) While Emily was feeding the dolphins with her cheeseburger, she fell down to the water. => App: no alert!!! I) Hopefully Emily knows how to swim. II) Emily would be OK if (thing-at-point THING) return nil whenever there is no THING at point.