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: Tue, 28 Jul 2015 18:44:44 -0700 (PDT) Message-ID: References: <> 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 1438134333 19023 80.91.229.3 (29 Jul 2015 01:45:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jul 2015 01:45:33 +0000 (UTC) To: 9300@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 29 03:45:16 2015 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 1ZKGQj-000794-3a for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Jul 2015 03:45:13 +0200 Original-Received: from localhost ([::1]:32999 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKGQi-0005Z4-F6 for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Jul 2015 21:45:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKGQf-0005Yz-Mo for bug-gnu-emacs@gnu.org; Tue, 28 Jul 2015 21:45:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKGQZ-0006oE-Ne for bug-gnu-emacs@gnu.org; Tue, 28 Jul 2015 21:45:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59887) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKGQZ-0006nA-Io for bug-gnu-emacs@gnu.org; Tue, 28 Jul 2015 21:45:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZKGQY-0001hw-H8 for bug-gnu-emacs@gnu.org; Tue, 28 Jul 2015 21:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Jul 2015 01:45: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.14381342926534 (code B ref 9300); Wed, 29 Jul 2015 01:45:02 +0000 Original-Received: (at 9300) by debbugs.gnu.org; 29 Jul 2015 01:44:52 +0000 Original-Received: from localhost ([127.0.0.1]:33100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZKGQN-0001hK-UX for submit@debbugs.gnu.org; Tue, 28 Jul 2015 21:44:52 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:30807) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZKGQK-0001h7-QE for 9300@debbugs.gnu.org; Tue, 28 Jul 2015 21:44:49 -0400 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t6T1ik0h030091 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <9300@debbugs.gnu.org>; Wed, 29 Jul 2015 01:44:47 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t6T1ikUq018621 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <9300@debbugs.gnu.org>; Wed, 29 Jul 2015 01:44:46 GMT Original-Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t6T1ik0J017660 for <9300@debbugs.gnu.org>; Wed, 29 Jul 2015 01:44:46 GMT In-Reply-To: <> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:105209 Archived-At: ping. I rediscovered by accident that this bug still exists, because I had assumed it would be fixed in Emacs 24, and my code was mistakenly but in-vain-hopefully treating it as (assumed) fixed in 24. Since I use my library that doesn't have the bug I did not run across it myself anymore. ;; The correct code here is (setq beg thg-end). However, unless you ;; use my library `thingatpt+.el' or unless Emacs bug #9300 is fixed ;; (hopefully in Emacs 24), that will loop forever. In that case we ;; move forward a char to prevent looping, but that means that the ;; position just after a THING is considered to be covered by the ;; THING (which is incorrect). ;; (setq beg (if (or (featurep 'thingatpt+) (> emacs-major-version 23)) thg-end (1+ thg-end)))