From unknown Sun Jun 22 03:55:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8628: 24.0.50; `thing-at-point-bounds-of-list-at-point' - no good 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: Fri, 06 May 2011 00:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8628 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 8628@debbugs.gnu.org X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.13046418117239 (code B ref -1); Fri, 06 May 2011 00:31:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 May 2011 00:30:11 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QI8vq-0001si-JU for submit@debbugs.gnu.org; Thu, 05 May 2011 20:30:10 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QI8vo-0001sW-S3 for submit@debbugs.gnu.org; Thu, 05 May 2011 20:30:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QI8vi-0004Qf-Ss for submit@debbugs.gnu.org; Thu, 05 May 2011 20:30:03 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:39236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI8vi-0004Qb-R2 for submit@debbugs.gnu.org; Thu, 05 May 2011 20:30:02 -0400 Received: from eggs.gnu.org ([140.186.70.92]:48999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI8vi-00078l-2c for bug-gnu-emacs@gnu.org; Thu, 05 May 2011 20:30:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QI8vh-0004Q6-6y for bug-gnu-emacs@gnu.org; Thu, 05 May 2011 20:30:02 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:39987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI8vh-0004Q2-0M for bug-gnu-emacs@gnu.org; Thu, 05 May 2011 20:30:01 -0400 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p460TvQZ026846 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 6 May 2011 00:29:59 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p460TvSl024505 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 6 May 2011 00:29:57 GMT Received: from abhmt021.oracle.com (abhmt021.oracle.com [141.146.116.30]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p460TpVo025941 for ; Thu, 5 May 2011 19:29:51 -0500 Received: from dradamslap1 (/10.159.55.197) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 05 May 2011 17:29:51 -0700 From: "Drew Adams" Date: Thu, 5 May 2011 17:29:52 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcwLhLb16ncpqe6ZRnq20XCl2fWlNg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090208.4DC34107.0060:SCFMA922111,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.5 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) emacs -Q In buffer scratch, type this text just after the initial comment: (set-buffer-modified-p nil) ;;--------------- ;;;;;;; fffff ;;;;;;; ggggg ;;;;;;; hhhhh Put point just after the list `(set-buffer-modified-p nil)'. M-: (thing-at-point-bounds-of-list-at-point) The result is (218 . 282), which contains all of tthe text _after_ the list, up to eob. Put point at eob and do it again: M-: (thing-at-point-bounds-of-list-at-point) The result is (282 . 282). The result in both cases should be nil - there is *NO* list at point. In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2011-04-25 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.5) --no-opt --cflags -Ic:/imagesupport/include' From unknown Sun Jun 22 03:55:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8628: 24.0.50; `thing-at-point-bounds-of-list-at-point' - no good 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: Fri, 06 May 2011 00:42: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: To: <8628@debbugs.gnu.org> Received: via spool by 8628-submit@debbugs.gnu.org id=B8628.13046425138421 (code B ref 8628); Fri, 06 May 2011 00:42:02 +0000 Received: (at 8628) by debbugs.gnu.org; 6 May 2011 00:41:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QI97A-0002Bm-U6 for submit@debbugs.gnu.org; Thu, 05 May 2011 20:41:53 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QI978-0002BY-AO for 8628@debbugs.gnu.org; Thu, 05 May 2011 20:41:50 -0400 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p460fgdV006491 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <8628@debbugs.gnu.org>; Fri, 6 May 2011 00:41:44 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p460ffYu009091 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <8628@debbugs.gnu.org>; Fri, 6 May 2011 00:41:42 GMT Received: from abhmt020.oracle.com (abhmt020.oracle.com [141.146.116.29]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p460faWV001103 for <8628@debbugs.gnu.org>; Thu, 5 May 2011 19:41:36 -0500 Received: from dradamslap1 (/10.159.55.197) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 05 May 2011 17:41:35 -0700 From: "Drew Adams" References: Date: Thu, 5 May 2011 17:41:36 -0700 Message-ID: <5391FA6F599B415389A292EF4D6CC79B@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcwLhLb16ncpqe6ZRnq20XCl2fWlNgAAD9lQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090206.4DC343C8.0071:SCFMA922111,ss=1,fgs=0 X-Spam-Score: -6.5 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) 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. (Obviously I forgot to mention doing M-x load-library thingatpt.el for the recipe from emacs -Q.) From unknown Sun Jun 22 03:55:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8628: 24.0.50; `thing-at-point-bounds-of-list-at-point' - no good Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 May 2011 19:35:01 +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: To: "Drew Adams" Cc: 8628@debbugs.gnu.org Received: via spool by 8628-submit@debbugs.gnu.org id=B8628.130531525819558 (code B ref 8628); Fri, 13 May 2011 19:35:01 +0000 Received: (at 8628) by debbugs.gnu.org; 13 May 2011 19:34:18 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKy7u-00055P-Bc for submit@debbugs.gnu.org; Fri, 13 May 2011 15:34:18 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKy7s-00055E-Oz for 8628@debbugs.gnu.org; Fri, 13 May 2011 15:34:17 -0400 Received: from 213-159-126-200.fibertel.com.ar ([200.126.159.213]:51501 helo=ceviche.home) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1QKy7n-0005ow-3J; Fri, 13 May 2011 15:34:11 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 7C95A66152; Fri, 13 May 2011 16:34:08 -0300 (ART) From: Stefan Monnier Message-ID: References: <5391FA6F599B415389A292EF4D6CC79B@us.oracle.com> Date: Fri, 13 May 2011 16:34:08 -0300 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) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.0 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.0 (------) > Put point just after the list `(set-buffer-modified-p nil)'. > M-: (thing-at-point-bounds-of-list-at-point) Nobody should care about thing-at-point-bounds-of-list-at-point because it's an internal function. Stefan From unknown Sun Jun 22 03:55:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8628: 24.0.50; `thing-at-point-bounds-of-list-at-point' - no good 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: Fri, 13 May 2011 20:08: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: To: "'Stefan Monnier'" Cc: 8628@debbugs.gnu.org Received: via spool by 8628-submit@debbugs.gnu.org id=B8628.130531724722373 (code B ref 8628); Fri, 13 May 2011 20:08:02 +0000 Received: (at 8628) by debbugs.gnu.org; 13 May 2011 20:07:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKydy-0005oo-Ng for submit@debbugs.gnu.org; Fri, 13 May 2011 16:07:26 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKydv-0005oW-3F for 8628@debbugs.gnu.org; Fri, 13 May 2011 16:07:23 -0400 Received: from rtcsinet21.oracle.com (rtcsinet21.oracle.com [66.248.204.29]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p4DK71dN025815 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 13 May 2011 20:07:07 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by rtcsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p4DK6xfC029644 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 13 May 2011 20:07:00 GMT Received: from abhmt005.oracle.com (abhmt005.oracle.com [141.146.116.14]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p4DK6s6o003024; Fri, 13 May 2011 15:06:54 -0500 Received: from dradamslap1 (/10.159.43.79) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 13 May 2011 13:06:54 -0700 From: "Drew Adams" References: <5391FA6F599B415389A292EF4D6CC79B@us.oracle.com> Date: Fri, 13 May 2011 13:06:53 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcwRpMHDQ4m4GPwgRrGJ/2wvBPq0UwAA23lw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 In-Reply-To: X-Source-IP: rtcsinet21.oracle.com [66.248.204.29] X-CT-RefId: str=0001.0A090201.4DCD8F74.010F:SCFSTAT5015188,ss=1,fgs=0 X-Spam-Score: -6.5 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) > > Put point just after the list `(set-buffer-modified-p nil)'. > > M-: (thing-at-point-bounds-of-list-at-point) > > Nobody should care about > thing-at-point-bounds-of-list-at-point because > it's an internal function. An internal function that is called by other functions, which _do_ affect what users see. See my followup message to the original report. The point is that `bounds-of-thing-at-point' does not work well for type `list'. And the reason is that we have `thing-at-point-bounds-of-list-at-point' - it just messes things up. Get rid of it and you get nothing but improvement. Just try it. Do this and the results for (bounds-of-thing-at-point 'list) are much better: (put 'list 'bounds-of-thing-at-point nil) As I said, > 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. From unknown Sun Jun 22 03:55:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8628: 24.0.50; `thing-at-point-bounds-of-list-at-point' - no good Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 May 2011 22:51:01 +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: To: Drew Adams Cc: Stefan Monnier , 8628@debbugs.gnu.org Received: via spool by 8628-submit@debbugs.gnu.org id=B8628.13053270334283 (code B ref 8628); Fri, 13 May 2011 22:51:01 +0000 Received: (at 8628) by debbugs.gnu.org; 13 May 2011 22:50:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QL1Bo-000171-Ut for submit@debbugs.gnu.org; Fri, 13 May 2011 18:50:33 -0400 Received: from mail-gy0-f172.google.com ([209.85.160.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QL1Bl-00016o-Tl for 8628@debbugs.gnu.org; Fri, 13 May 2011 18:50:30 -0400 Received: by gyf3 with SMTP id 3so1075898gyf.3 for <8628@debbugs.gnu.org>; Fri, 13 May 2011 15:50:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=5CvxgdVbi/5/RwAN3qBkdD5fTuVXQ5Sr4Hk18LJ/HlE=; b=CW4GyZth08CpWTxLKmdIksVyYU3W7wwyWcjpk/33w/YOpy94iIudozAG/wgWkqrGod 2M6AA6m91fnfhWJVXhLbViV012MOtw243JmXeUQ4DYjDlgYK2e6v305UUxLXDDi/o72H fMIFJkoI7ERcO/nttzUyMm0f146BMtMZRP4aI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=HHTa+UV52KEIbMsj3ow1hmC0cM0fGSYtSvHntbH3pj1m7tSvSXGZI7Chi2QNmwAE9P rNvqSTkFYwAHP/BWTKIWZh9ZTlybh7QiAe3++5S6NaKvsFOwFppOBwSE5shpAi5Y48qE 5lIx+uXcPwYjeNh/7qaNRh8BJEPOAYFhx2aGE= Received: by 10.146.130.8 with SMTP id c8mr1661037yad.31.1305327024129; Fri, 13 May 2011 15:50:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.147.167.11 with HTTP; Fri, 13 May 2011 15:49:44 -0700 (PDT) In-Reply-To: References: <5391FA6F599B415389A292EF4D6CC79B@us.oracle.com> From: Juanma Barranquero Date: Sat, 14 May 2011 00:49:44 +0200 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.3 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.3 (---) On Fri, May 13, 2011 at 22:06, Drew Adams wrote: > An internal function that is called by other functions, which _do_ affect= what > users see. Isn't that the very definition of "an internal function"? =C2=A0 =C2=A0 Juanma From unknown Sun Jun 22 03:55:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8628: 24.0.50; `thing-at-point-bounds-of-list-at-point' - no good 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: Fri, 13 May 2011 23:12: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: To: "'Juanma Barranquero'" Cc: 'Stefan Monnier' , 8628@debbugs.gnu.org Received: via spool by 8628-submit@debbugs.gnu.org id=B8628.13053282945969 (code B ref 8628); Fri, 13 May 2011 23:12:02 +0000 Received: (at 8628) by debbugs.gnu.org; 13 May 2011 23:11:34 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QL1WA-0001YD-0P for submit@debbugs.gnu.org; Fri, 13 May 2011 19:11:34 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QL1W7-0001Y1-7U for 8628@debbugs.gnu.org; Fri, 13 May 2011 19:11:31 -0400 Received: from rtcsinet21.oracle.com (rtcsinet21.oracle.com [66.248.204.29]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p4DNBI2G004748 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 13 May 2011 23:11:24 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by rtcsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p4DNBGCO028806 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 13 May 2011 23:11:17 GMT Received: from abhmt007.oracle.com (abhmt007.oracle.com [141.146.116.16]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p4DNBAJo027130; Fri, 13 May 2011 18:11:11 -0500 Received: from dradamslap1 (/10.159.46.250) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 13 May 2011 16:11:10 -0700 From: "Drew Adams" References: <5391FA6F599B415389A292EF4D6CC79B@us.oracle.com> Date: Fri, 13 May 2011 16:11:08 -0700 Message-ID: <6DD0A591AD224DAA80F29D6BECC2A3DA@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcwRwCzOMZuDpKYFRWS46DwQY8a1ngAAr4eA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 X-Source-IP: rtcsinet21.oracle.com [66.248.204.29] X-CT-RefId: str=0001.0A090201.4DCDBA9D.0024:SCFSTAT5015188,ss=1,fgs=0 X-Spam-Score: -6.5 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) > > An internal function that is called by other functions, > > which _do_ affect what users see. > > Isn't that the very definition of "an internal function"? Ah, the cleverness. The point is to fix the user-facing behavior, and the cause of the problem is in this function. From debbugs-submit-bounces@debbugs.gnu.org Sun May 15 10:25:44 2011 Received: (at control) by debbugs.gnu.org; 15 May 2011 14:25:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QLcGO-0008U7-GL for submit@debbugs.gnu.org; Sun, 15 May 2011 10:25:44 -0400 Received: from [12.21.149.2] (helo=shcommander.singledigits.com) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QLcGN-0008Tw-E1 for control@debbugs.gnu.org; Sun, 15 May 2011 10:25:44 -0400 Received: from [10.71.1.172] (helo=furball) by shcommander.singledigits.com with esmtp (Exim 4.70) (envelope-from ) id 1QLcGG-0006Eb-9P for control@debbugs.gnu.org; Sun, 15 May 2011 10:25:37 -0400 Received: by furball (Postfix, from userid 1000) id EA33C1604A8; Sun, 15 May 2011 10:25:35 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: severity 8628 wishlist Date: Sun, 15 May 2011 10:25:35 -0400 Message-ID: <878vu8f3c0.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) severity 8628 wishlist thanks From unknown Sun Jun 22 03:55:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8628: [Emacs-bug-tracker] Processed: severity 8628 wishlist 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, 15 May 2011 16:20:03 +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: To: "'Chong Yidong'" Cc: 8628@debbugs.gnu.org Received: via spool by 8628-submit@debbugs.gnu.org id=B8628.130547639212814 (code B ref 8628); Sun, 15 May 2011 16:20:03 +0000 Received: (at 8628) by debbugs.gnu.org; 15 May 2011 16:19:52 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QLe2p-0003Kd-Fe for submit@debbugs.gnu.org; Sun, 15 May 2011 12:19:51 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QLe2n-0003KQ-RA for 8628@debbugs.gnu.org; Sun, 15 May 2011 12:19:50 -0400 Received: from rtcsinet21.oracle.com (rtcsinet21.oracle.com [66.248.204.29]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p4FGJf8D008460 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 15 May 2011 16:19:44 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by rtcsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p4FGJeTY012450 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 15 May 2011 16:19:41 GMT Received: from abhmt009.oracle.com (abhmt009.oracle.com [141.146.116.18]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p4FGJXVw019737; Sun, 15 May 2011 11:19:34 -0500 Received: from dradamslap1 (/10.159.38.178) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 15 May 2011 09:19:31 -0700 From: "Drew Adams" References: <878vu8f3c0.fsf@stupidchicken.com> Date: Sun, 15 May 2011 09:19:24 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 Thread-Index: AcwTDAwSyjfb4ePNQ3yXqOh1x3sn3gADvO5g X-Source-IP: rtcsinet21.oracle.com [66.248.204.29] X-CT-RefId: str=0001.0A090207.4DCFFD20.0093:SCFSTAT5015188,ss=1,fgs=0 X-Spam-Score: -6.5 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) Apparently replying to this mail is a no-no. Has the thread effectively become /dev/null for the user? Hopefully changing to @debbugs.gnu.org will get through... > -----Original Message----- > From: emacs-bug-tracker-bounces+drew.adams=oracle.com@gnu.org > [mailto:emacs-bug-tracker-bounces+drew.adams=oracle.com@gnu.org] > On Behalf Of GNU bug Tracking System > Sent: Sunday, May 15, 2011 7:26 AM To: Chong Yidong > Cc: tracker@debbugs.gnu.org > Subject: [Emacs-bug-tracker] Processed: severity 8628 wishlist > > Processing commands for control@debbugs.gnu.org: > > > severity 8628 wishlist > > Bug #8628 [emacs] 24.0.50; > > `thing-at-point-bounds-of-list-at-point' - no good > > Severity set to 'wishlist' from 'normal' > > > thanks > Stopping processing here. > > Please contact help-debbugs@gnu.org if you need assistance. > > GNU bugs database, http://debbugs.gnu.org/ My (apparently disallowed) reply is this: Why? I _provided the fix_ already. You don't even need a patch. Just remove `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)', as I said earlier. That cruft serves no purpose. It just introduces the buggy behavior. `(bound-of-thing-at-point 'list)' is sufficient - it already does what's needed. From unknown Sun Jun 22 03:55:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8628: 24.0.50; `thing-at-point-bounds-of-list-at-point' - no good 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: To: "Drew Adams" Cc: 8628@debbugs.gnu.org Received: via spool by 8628-submit@debbugs.gnu.org id=B8628.131006422912616 (code B ref 8628); Thu, 07 Jul 2011 18:44:02 +0000 Received: (at 8628) by debbugs.gnu.org; 7 Jul 2011 18:43:49 +0000 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 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 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 From: Chong Yidong References: <5391FA6F599B415389A292EF4D6CC79B@us.oracle.com> Date: Thu, 07 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") Message-ID: <87sjqiexsy.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.146 X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) "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. From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 07 14:44:08 2011 Received: (at control) by debbugs.gnu.org; 7 Jul 2011 18:44:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QetYW-0003IO-Cv for submit@debbugs.gnu.org; Thu, 07 Jul 2011 14:44:08 -0400 Received: from vm-emlprdomr-05.its.yale.edu ([130.132.50.146]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QetYU-0003Hk-QI for control@debbugs.gnu.org; Thu, 07 Jul 2011 14:44:07 -0400 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 p67Ii1bZ016603 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Thu, 7 Jul 2011 14:44:01 -0400 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 8628 Date: Thu, 07 Jul 2011 14:44:00 -0400 Message-ID: <87mxgqdj7z.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.146 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) close 8628 thanks From unknown Sun Jun 22 03:55:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8628: 24.0.50; `thing-at-point-bounds-of-list-at-point' - no good 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: Thu, 07 Jul 2011 21:28: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: To: "'Chong Yidong'" Cc: 8628@debbugs.gnu.org Received: via spool by 8628-submit@debbugs.gnu.org id=B8628.131007405315673 (code B ref 8628); Thu, 07 Jul 2011 21:28:02 +0000 Received: (at 8628) by debbugs.gnu.org; 7 Jul 2011 21:27:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qew6e-00044j-3w for submit@debbugs.gnu.org; Thu, 07 Jul 2011 17:27:32 -0400 Received: from acsinet15.oracle.com ([141.146.126.227]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qew6c-00044S-Aq for 8628@debbugs.gnu.org; Thu, 07 Jul 2011 17:27:31 -0400 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p67LRMiY020174 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 7 Jul 2011 21:27:24 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p67LRLT8018039 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 7 Jul 2011 21:27:22 GMT Received: from abhmt112.oracle.com (abhmt112.oracle.com [141.146.116.64]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p67LRG5j023479; Thu, 7 Jul 2011 16:27:16 -0500 Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 07 Jul 2011 14:27:16 -0700 From: "Drew Adams" References: <5391FA6F599B415389A292EF4D6CC79B@us.oracle.com> <87sjqiexsy.fsf@stupidchicken.com> Date: Thu, 7 Jul 2011 14:27:17 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87sjqiexsy.fsf@stupidchicken.com> Thread-Index: Acw81dNw447sRK7hQqSJfpIHM9F42AAETkOA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A020203.4E1624BC.008B:SCFMA922111,ss=1,re=-4.000,fgs=0 X-Spam-Score: -4.4 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.4 (----) > 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. You're dreaming. Did you actually try the bug recipe? Did you then try it again without `t-a-p-b-o-l-a-p' and its associated `put'? Which one DTRT? > I've marked thing-at-point-bounds-of-list-at-point explicitly as an > internal function, Irrelevant. That has nothing to do with this bug. > and will close this bug. Wrong. `thing-at-point-bounds-of-list-at-point' does NOT DTRT - at all. And that _causes_ (bounds-of-thing-at-point 'list) to not DTRT. That is what this bug report is about: (bounds-of-thing-at-point 'list). But ordinary (bounds-of-thing-at-point 'list) WILL work, if you just get rid of `thing-at-point-bounds-of-list-at-point' and its associated `put': (put 'list 'bounds-of-thing-at-point 'thing-at-point-bounds-of-list-at-point) IOW, let `bounds-of-thing-at-point' do its normal thing for `list'. Please read the bug thread. Do I really need to repeat it? Follow the recipe, at least - it's quite clear. Regardless of whether you like the fix I suggested, you should at least be able to confirm that the bug exists. To make things clearer for you, substitute (bounds-of-thing-at-point 'list) for (thing-at-point-bounds-of-list-at-point) in the recipe. The former just uses the latter, so they are the same thing, but apparently you've gotten confused because I mentioned t-o-p-b-o-l-a-p. You can see for yourself that (bounds-of-thing-at-point 'list) returns erroneous results instead of nil when point is not on a list. Try it. And no, there is no need for such a "helper" function in the general case and, as it turns out, in the case of `list' as well. The idea is that `bounds-of-thing-at-point' should just work for most THINGs. And it DOES work for `list' AFAICT. More importantly, the helper function `thing-at-point-bounds-of-list-at-point' does NOT work. (bounds-of-thing-at-point 'list) should not return non-nil if point is not on a list. And `bounds-of-thing-at-point' should never, ever return an empty thing (equal bounds), as it does here at eol per the recipe. I just repeated the recipe in the latest Windows build of Emacs 24 - same problem. I get the impression that you have not really read this bug report at all. Your responses so far have been: 1. "Nobody should care about t-a-p-b-o-l-a-p because it's an internal function." I do not care about t-a-p-b-o-l-a-p. I care about the behavior of `bounds-of-thing-at-point'. The former is breaking the latter. 2. Just repeating that t-a-p-b-o-l-a-p is an internal function. This was after I underlined the fact that it is the _behavior_ of `bounds-of-thing-at-point' that is erroneous, _because of_ t-a-p-b-o-l-a-p. 3. Assignment to the wish list! Even though I already provided the fix. 4. And now, what you write above, and closing the bug. Sheesh. You (pl.) apparently just don't get it. a. The _behavior_ of `bounds-of-thing-at-point' is erroneous for THING = `list'. It returns non-nil when point is not on a list in at least two cases, and it returns an empty thing (empty bounds), which it should _never_ do. b. It is this _behavior_ that needs to be fixed, however you might like to do it. It does not matter whether you choose to use an internal function such as t-a-p-b-o-l-a-p or not, provided you do _fix the behavior_. c. The simplest way to fix the behavior, IMHO - but you need not listen to it if you prefer some other way - is to just get rid of the erroneous `t-a-p-b-o-l-a-p' (and its associated `put') and let `bound-of-thing-at-point' do its normal thing. _That works_ for the cases cited. Please read the bug report. Try the recipe. Fix the problem any way you like, but please fix it. This is NOT about internal vs external functions. This is about bugged _BEHAVIOR_. Forget about `t-a-p-b-o-l-a-p'. This is about the behavior of `bounds-of-thing-at-point'. The only reason I mentioned `t-a-p-b-o-l-a-p' is that that is what screws up the behavior of `bounds-of-thing-at-point'. Get rid of the latter and its associated `put' and the former will DTRT for `list'. Try it. From unknown Sun Jun 22 03:55:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8628: 24.0.50; `thing-at-point-bounds-of-list-at-point' - no good 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 22:30:03 +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: To: "Drew Adams" Cc: 8628@debbugs.gnu.org Received: via spool by 8628-submit@debbugs.gnu.org id=B8628.131007774526235 (code B ref 8628); Thu, 07 Jul 2011 22:30:03 +0000 Received: (at 8628) by debbugs.gnu.org; 7 Jul 2011 22:29:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qex4B-0006p6-2E for submit@debbugs.gnu.org; Thu, 07 Jul 2011 18:29:03 -0400 Received: from vm-emlprdomr-06.its.yale.edu ([130.132.50.147]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qex4A-0006oe-0c for 8628@debbugs.gnu.org; Thu, 07 Jul 2011 18:29:02 -0400 Received: from furball (dhcp128036225024.central.yale.edu [128.36.225.24]) (authenticated bits=0) by vm-emlprdomr-06.its.yale.edu (8.14.4/8.14.4) with ESMTP id p67MStGR007694 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Thu, 7 Jul 2011 18:28:56 -0400 From: Chong Yidong References: <5391FA6F599B415389A292EF4D6CC79B@us.oracle.com> <87sjqiexsy.fsf@stupidchicken.com> Date: Thu, 07 Jul 2011 18:28:55 -0400 In-Reply-To: (Drew Adams's message of "Thu, 7 Jul 2011 14:27:17 -0700") Message-ID: <87box5u3mg.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.147 X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) "Drew Adams" writes: > You're dreaming. Did you actually try the bug recipe? Did you then > try it again without `t-a-p-b-o-l-a-p' and its associated `put'? > Which one DTRT? Removing thing-at-point-bounds-of-list-at-point and its associated put does not work if point is inside the list, so your suggestion of removing them is a bogus one. Maybe there is a bug here, but I'll leave it for some other Emacs developer who's willing to wade through your abusive posts to find out what you're going on about. From unknown Sun Jun 22 03:55:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8628: 24.0.50; `thing-at-point-bounds-of-list-at-point' - no good 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: Thu, 07 Jul 2011 23:41:01 +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: To: "'Chong Yidong'" Cc: 8628@debbugs.gnu.org Received: via spool by 8628-submit@debbugs.gnu.org id=B8628.13100820121324 (code B ref 8628); Thu, 07 Jul 2011 23:41:01 +0000 Received: (at 8628) by debbugs.gnu.org; 7 Jul 2011 23:40:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QeyB0-0000LJ-Vg for submit@debbugs.gnu.org; Thu, 07 Jul 2011 19:40:11 -0400 Received: from acsinet15.oracle.com ([141.146.126.227]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QeyAy-0000Ka-8m for 8628@debbugs.gnu.org; Thu, 07 Jul 2011 19:40:09 -0400 Received: from rtcsinet22.oracle.com (rtcsinet22.oracle.com [66.248.204.30]) by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p67Ndw8P014065 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 7 Jul 2011 23:40:00 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by rtcsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p67NdvxG024143 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 7 Jul 2011 23:39:58 GMT Received: from abhmt119.oracle.com (abhmt119.oracle.com [141.146.116.71]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p67Ndpn7011778; Thu, 7 Jul 2011 18:39:51 -0500 Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 07 Jul 2011 16:39:51 -0700 From: "Drew Adams" References: <5391FA6F599B415389A292EF4D6CC79B@us.oracle.com><87sjqiexsy.fsf@stupidchicken.com> <87box5u3mg.fsf@stupidchicken.com> Date: Thu, 7 Jul 2011 16:39:52 -0700 Message-ID: <8F3C066C93F84F0CB6E730F074F75697@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87box5u3mg.fsf@stupidchicken.com> Thread-Index: Acw89UsCUS/WFBUUTuigfGL1+fCaoQABbwMw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Source-IP: rtcsinet22.oracle.com [66.248.204.30] X-CT-RefId: str=0001.0A020205.4E1643D1.0082:SCFSTAT5015188, ss=1, re=-4.000, fgs=0 X-Spam-Score: -4.4 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.4 (----) > Maybe there is a bug here, You can't tell? Did you try the recipe? If so, do you have an opinion on whether the results returned are correct? It's OK to disagree about whether those results are correct, but I don't hear you saying anything about that one way or the other. Can you at least confirm that you see the same behavior? Hello? > but I'll leave it for some other Emacs developer who's willing to wade > through your abusive posts to find out what you're going on about. What's to wade through? The recipe is clear and takes only about 30 seconds to complete. 30 sec. to reproduce the bug or to determine that you cannot reproduce it on your system. You need go no further than the initial bug report to know what is being reported and how to see whether there is a bug. There is nothing abusive about repeating that ignored bug recipe, trying to focus attention on the bug and not on the irrelevant side show of whether `t-a-p-b-o-l-a-p' is internal or external. As I made clear, I really do not care _how_ the problem reported gets fixed; my concern is that it be fixed. My only complaint was your (pl.) not recognizing the bug, apparently not even trying the recipe. That complaint might express understandable frustration on my part, but it does not represent abuse, so please stop playing the victim. Not once did anyone even begin to address the bug (recipe) - to say (a) yes, the behavior is confirmed or no, the behavior cannot be reproduced or (b) the behavior is confirmed but is as intended (so not a bug). Instead, the only responses here were to reclassify the report as `wishlist' and then state that you will close it after marking `t-a-p-b-o-l-a-p' as internal (no connection with the bug). The bug is still there. From unknown Sun Jun 22 03:55:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8628: 24.0.50; `thing-at-point-bounds-of-list-at-point' - no good 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: Sat, 09 Jul 2011 00:12: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: To: "'Chong Yidong'" Cc: 8628@debbugs.gnu.org Received: via spool by 8628-submit@debbugs.gnu.org id=B8628.13101702729128 (code B ref 8628); Sat, 09 Jul 2011 00:12:02 +0000 Received: (at 8628) by debbugs.gnu.org; 9 Jul 2011 00:11:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfL8X-0002N7-UD for submit@debbugs.gnu.org; Fri, 08 Jul 2011 20:11:10 -0400 Received: from rcsinet15.oracle.com ([148.87.113.117]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfL8V-0002Ms-MG for 8628@debbugs.gnu.org; Fri, 08 Jul 2011 20:11:08 -0400 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p690Axtu018073 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 9 Jul 2011 00:11:01 GMT Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p690Axag023001 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 9 Jul 2011 00:10:59 GMT 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 p690ArUH023709; Fri, 8 Jul 2011 19:10:53 -0500 Received: from dradamslap1 (/10.159.32.31) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 08 Jul 2011 17:10:53 -0700 From: "Drew Adams" References: <5391FA6F599B415389A292EF4D6CC79B@us.oracle.com><87sjqiexsy.fsf@stupidchicken.com><87box5u3mg.fsf@stupidchicken.com> <8F3C066C93F84F0CB6E730F074F75697@us.oracle.com> Date: Fri, 8 Jul 2011 17:10:54 -0700 Message-ID: <546E2B1593B54F21A7C3EC3E4F842330@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <8F3C066C93F84F0CB6E730F074F75697@us.oracle.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 Thread-Index: Acw89UsCUS/WFBUUTuigfGL1+fCaoQABbwMwADOJ6oA= X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090206.4E179C95.008D:SCFMA922111,ss=1,re=-4.000,fgs=0 X-Spam-Score: -4.4 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.4 (----) FWIW, you can find new definitions of the list-at-point functions, which work correctly, in my library thingatpt+.el: http://www.emacswiki.org/emacs/download/thingatpt%2b.el The definitions are general. They handle correctly all cases; i.e., where point is: a. within a list, b. just after/before or at a list end/beginning, and c. outside any list. They return the non-nil list in (a) and (b), and nil in (c). For the current question, which concerns (bounds-of-thing-at-point 'list), this is the code I use, in case you want to test: (put 'list 'bounds-of-thing-at-point 'bounds-of-list-at-point) (defun bounds-of-list-at-point (&optional up unquotedp) "Return (START . END), boundaries of the `list-at-point'. Return nil if no non-empty list is found. UP (default: 0) is the number of list levels to go up to start with. Non-nil UNQUOTEDP means remove the car if it is `quote' or `backquote-backquote-symbol'." (let ((thing+bds (list-at-point-with-bounds up unquotedp))) (and thing+bds (cdr thing+bds)))) (defun list-at-point-with-bounds (&optional up unquotedp) "Return (LIST START . END), boundaries of the `list-at-point'. Return nil if no non-empty list is found. UP (default: 0) is the number of list levels to go up to start with. Non-nil UNQUOTEDP means remove the car if it is `quote' or `backquote-backquote-symbol'." (list-at/nearest-point-with-bounds 'sexp-at-point-with-bounds up unquotedp)) (defun list-at/nearest-point-with-bounds (at/near &optional up unquotedp) "Helper for `list-at-point-with-bounds' and similar functions. AT/NEAR is a function called to grab the initial list and its bounds. UP (default: 0) is the number of list levels to go up to start with. Non-nil UNQUOTEDP means remove the car if it is `quote' or `backquote-backquote-symbol'. Return (LIST START . END) with START and END of the LIST. Return nil if no non-empty list is found." (save-excursion (unless (eq at/near 'sexp-at-point-with-bounds) (cond ((looking-at "\\s-*\\s(") (skip-syntax-forward "-")) ((looking-at "\\s)\\s-*") (skip-syntax-backward "-")))) (let ((sexp+bnds (funcall at/near))) (condition-case nil ; Handle an `up-list' error. (progn (when up (up-list (- up)) (setq sexp+bnds (sexp-at-point-with-bounds))) (while (not (consp (car sexp+bnds))) (up-list -1) (setq sexp+bnds (sexp-at-point-with-bounds))) (when (and unquotedp (consp (car sexp+bnds)) (memq (caar sexp+bnds) (list backquote-backquote-symbol 'quote))) (cond ((eq 'quote (caar sexp+bnds)) (setq sexp+bnds (cons (cadr (car sexp+bnds)) (cons (+ 5 (cadr sexp+bnds)) (cddr sexp+bnds))))) ((eq backquote-backquote-symbol (caar sexp+bnds)) (setq sexp+bnds (cons (cadr (car sexp+bnds)) (cons (+ 1 (cadr sexp+bnds)) (cddr sexp+bnds))))))) (while (not (consp (car sexp+bnds))) (up-list -1) (setq sexp+bnds (sexp-at-point-with-bounds)))) (error (setq sexp+bnds nil))) sexp+bnds))) (defun sexp-at-point-with-bounds (&optional pred syntax-table) "Return (SEXP START . END), boundaries of the `sexp-at-point'. Return nil if no sexp is found. Optional args are the same as for `form-at-point-with-bounds'." (form-at-point-with-bounds 'sexp pred syntax-table)) (defun form-at-point-with-bounds (&optional thing pred syntax-table) "Return (FORM START . END), START and END the char positions of FORM. FORM is the `form-at-point'. Return nil if no form is found. Optional arguments: THING is the kind of form desired (default: `sexp'). PRED is a predicate that THING must satisfy to qualify. SYNTAX-TABLE is a syntax table to use." (condition-case nil ; E.g. error if tries to read `.'. (let* ((thing+bds (thing-at-point-with-bounds (or thing 'sexp) syntax-table)) (bounds (cdr thing+bds)) (sexp (and bounds (read-from-whole-string (car thing+bds))))) (and bounds (or (not pred) (funcall pred sexp)) (cons sexp bounds))) (error nil))) (defun thing-at-point-with-bounds (thing &optional syntax-table) "Return (THING START . END) with START and END of THING. Return nil if no such THING is found. THING is the `thing-at-point' (which see). START and END are the car and cdr of the `bounds-of-thing-at-point'. SYNTAX-TABLE is a syntax table to use." (let ((bounds (bounds-of-thing-at-point thing syntax-table))) (and bounds (cons (buffer-substring (car bounds) (cdr bounds)) bounds)))) (defun bounds-of-thing-at-point (thing &optional syntax-table) "Determine the start and end buffer locations for the THING at point. Return a consp `(START . END)' giving the START and END positions, where START /= END. Return nil if no such THING is found. THING is an entity for which there is a either a corresponding `forward-'THING operation, or corresponding `beginning-of-'THING and `end-of-'THING operations. THING examples include `word', `sentence', `defun'. SYNTAX-TABLE is a syntax table to use. See the commentary of library `thingatpt.el' for how to define a symbol as a valid THING." (if syntax-table (let ((buffer-syntax (syntax-table))) (unwind-protect (progn (set-syntax-table syntax-table) (bounds-of-thing-at-point-1 thing)) (set-syntax-table buffer-syntax))) (bounds-of-thing-at-point-1 thing))) ;; This is the original `bounds-of-thing-at-point', ;; but with bug #8667 fixed. (defun bounds-of-thing-at-point-1 (thing) "Helper for `bounds-of-thing-at-point'. Do all except handle the optional SYNTAX-TABLE arg." (if (get thing 'bounds-of-thing-at-point) (funcall (get thing 'bounds-of-thing-at-point)) (let ((orig (point))) (condition-case nil (save-excursion ;; Try moving forward, then back. (funcall (or (get thing 'end-op) ; Move to end. (lambda () (forward-thing thing 1)))) (funcall (or (get thing 'beginning-op) ; Move to beg. (lambda () (forward-thing thing -1)))) (let ((beg (point))) (if (<= beg orig) ;; If that brings us all the way back to ORIG, ;; it worked. But END may not be the real end. ;; So find the real end that corresponds to BEG. ;; FIXME: ;; in which cases can `real-end' differ from `end'? (let ((real-end (progn (funcall (or (get thing 'end-op) (lambda () (forward-thing thing 1)))) (point)))) (and (<= orig real-end) (< beg real-end) (cons beg real-end))) (goto-char orig) ;; Try a second time, moving first backward then forward, ;; so that we can find a thing that ends at ORIG. (funcall (or (get thing 'beginning-op) ; Move to beg. (lambda () (forward-thing thing -1)))) (funcall (or (get thing 'end-op) ; Move to end. (lambda () (forward-thing thing 1)))) (let ((end (point)) (real-beg (progn (funcall (or (get thing 'beginning-op) (lambda () (forward-thing thing -1)))) (point)))) (and (<= real-beg orig) (<= orig end) (< real-beg end) (cons real-beg end)))))) (error nil)))))