From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#8628: 24.0.50; `thing-at-point-bounds-of-list-at-point' - no good Date: Thu, 07 Jul 2011 14:43:41 -0400 Message-ID: <87sjqiexsy.fsf@stupidchicken.com> References: <5391FA6F599B415389A292EF4D6CC79B@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1310067433 828 80.91.229.12 (7 Jul 2011 19:37:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 7 Jul 2011 19:37:13 +0000 (UTC) Cc: 8628@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 07 21:37:09 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 1QeuNp-0004k8-9G for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Jul 2011 21:37:09 +0200 Original-Received: from localhost ([::1]:51717 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeuNo-000864-46 for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Jul 2011 15:37:08 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QetYS-0006ct-Vh for bug-gnu-emacs@gnu.org; Thu, 07 Jul 2011 14:44:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QetYR-0005vP-Eu for bug-gnu-emacs@gnu.org; Thu, 07 Jul 2011 14:44:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55675) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QetYR-0005vF-5l for bug-gnu-emacs@gnu.org; Thu, 07 Jul 2011 14:44:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QetYQ-0003Hz-G5; Thu, 07 Jul 2011 14:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Jul 2011 18:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8628 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8628-submit@debbugs.gnu.org id=B8628.131006422912616 (code B ref 8628); Thu, 07 Jul 2011 18:44:02 +0000 Original-Received: (at 8628) by debbugs.gnu.org; 7 Jul 2011 18:43:49 +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 1QetYD-0003HR-3A for submit@debbugs.gnu.org; Thu, 07 Jul 2011 14:43:49 -0400 Original-Received: from vm-emlprdomr-05.its.yale.edu ([130.132.50.146]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QetYB-0003HC-Es for 8628@debbugs.gnu.org; Thu, 07 Jul 2011 14:43:48 -0400 Original-Received: from furball (dhcp128036225109.central.yale.edu [128.36.225.109]) (authenticated bits=0) by vm-emlprdomr-05.its.yale.edu (8.14.4/8.14.4) with ESMTP id p67IhfOl016374 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Thu, 7 Jul 2011 14:43:41 -0400 In-Reply-To: <5391FA6F599B415389A292EF4D6CC79B@us.oracle.com> (Drew Adams's message of "Thu, 5 May 2011 17:41:36 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.146 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 07 Jul 2011 14:44:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:48205 Archived-At: "Drew Adams" writes: > Besides which, we might as well get rid of > `thing-at-point-bounds-of-list-at-point' and the `(put 'list > 'bounds-of-thing-at-point 'thing-at-point-bounds-of-list-at-point)'. > > There is no generally no reason to define such > `thing-at-point-bounds-of...' functions. The regular > `bounds-of-thing-at-point' should work, and it does. > > Try M-: (bound-of-thing-at-point 'list) instead of M-: > > (thing-at-point-bounds-of-list-at-point). It returns (191 . 218) at > the first location (which corresponds to the list before point, which > I suppose is OK - it's certainly a lot better than the current > behavior). And it returns nil at eob, which is correct. This is incorrect; thing-at-point-bounds-of-list-at-point is a helper function that is called by `bounds-of-thing-at-point'. If removed, (bounds-of-thing-at-point 'list) no longer works. I've marked thing-at-point-bounds-of-list-at-point explicitly as an internal function, and will close this bug.