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: Sun, 14 Aug 2011 15:36:53 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1313361455 2796 80.91.229.12 (14 Aug 2011 22:37:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 14 Aug 2011 22:37:35 +0000 (UTC) To: 9300@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 15 00:37:31 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QsjJD-0007r3-AO for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Aug 2011 00:37:31 +0200 Original-Received: from localhost ([::1]:55668 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsjJC-0006ay-Sw for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Aug 2011 18:37:30 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:55858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsjJA-0006ae-5E for bug-gnu-emacs@gnu.org; Sun, 14 Aug 2011 18:37:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QsjJ8-0008Am-Ow for bug-gnu-emacs@gnu.org; Sun, 14 Aug 2011 18:37:28 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsjJ8-0008Ai-Ja for bug-gnu-emacs@gnu.org; Sun, 14 Aug 2011 18:37:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QsjKi-0006XI-HW; Sun, 14 Aug 2011 18:39:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Aug 2011 22:39:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9300 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.131336153525101 (code B ref -1); Sun, 14 Aug 2011 22:39:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Aug 2011 22:38:55 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QsjKY-0006Wk-6c for submit@debbugs.gnu.org; Sun, 14 Aug 2011 18:38:54 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QsjKW-0006We-GR for submit@debbugs.gnu.org; Sun, 14 Aug 2011 18:38:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QsjIu-00089w-V8 for submit@debbugs.gnu.org; Sun, 14 Aug 2011 18:37:13 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:44435) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsjIu-00089r-Ta for submit@debbugs.gnu.org; Sun, 14 Aug 2011 18:37:12 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:55834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsjIt-0006a8-AU for bug-gnu-emacs@gnu.org; Sun, 14 Aug 2011 18:37:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QsjIs-00089a-Db for bug-gnu-emacs@gnu.org; Sun, 14 Aug 2011 18:37:11 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:30610) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsjIs-000898-8R for bug-gnu-emacs@gnu.org; Sun, 14 Aug 2011 18:37:10 -0400 Original-Received: from rtcsinet21.oracle.com (rtcsinet21.oracle.com [66.248.204.29]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p7EMb5XZ000864 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 14 Aug 2011 22:37:07 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by rtcsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p7EMb4Dc017964 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 14 Aug 2011 22:37:04 GMT Original-Received: from abhmt104.oracle.com (abhmt104.oracle.com [141.146.116.56]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p7EMawEN026625 for ; Sun, 14 Aug 2011 17:36:58 -0500 Original-Received: from dradamslap1 (/10.159.57.59) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 14 Aug 2011 15:36:58 -0700 X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 Thread-Index: Acxa0qnnTSxJRpcDRGqeGIE3JSLZfw== X-Source-IP: rtcsinet21.oracle.com [66.248.204.29] X-CT-RefId: str=0001.0A090209.4E484E13.0015,ss=1,re=0.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 14 Aug 2011 18:39:04 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.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:50083 Archived-At: emacs -Q In a Lisp buffer, put point after a list: just after the closing paren. M-: (bounds-of-thing-at-point 'sexp) It should return nil, since there is no sexp at point. Instead it returns the bounds of the sexp at the previous char (the closing paren). The fix is to change these two sexps in the code: (<= orig real-end) SHOULD BE (< orig real-end) (<= orig end) SHOULD BE (< orig end) The tests for the THING'S beginning are correct - they should be <=, as they are. But the tests for the THING's end are incorrect - they should always be <. The reason is that 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. In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2011-08-08 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.5) --no-opt'