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#9454: 24.0.50; thingatpt.el should be updated to respect field boundaries Date: Tue, 6 Sep 2011 16:14:57 -0700 Message-ID: <44787C2CD18A4D45913B6FD72C387219@us.oracle.com> 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 1315350987 23638 80.91.229.12 (6 Sep 2011 23:16:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Sep 2011 23:16:27 +0000 (UTC) To: 9454@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 07 01:16:20 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 1R14sO-0000WM-Gm for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Sep 2011 01:16:20 +0200 Original-Received: from localhost ([::1]:33281 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R14sN-0003Bd-QX for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Sep 2011 19:16:19 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R14sK-0003BV-Po for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2011 19:16:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R14sI-0000c0-J4 for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2011 19:16:16 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R14sI-0000bw-Ha for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2011 19:16:14 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R14vz-0003Qj-K5; Tue, 06 Sep 2011 19:20:03 -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: Tue, 06 Sep 2011 23:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9454 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.131535115313114 (code B ref -1); Tue, 06 Sep 2011 23:20:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Sep 2011 23:19:13 +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 1R14vA-0003PT-Qu for submit@debbugs.gnu.org; Tue, 06 Sep 2011 19:19:13 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R14v7-0003PL-Uu for submit@debbugs.gnu.org; Tue, 06 Sep 2011 19:19:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R14rO-0000X2-V7 for submit@debbugs.gnu.org; Tue, 06 Sep 2011 19:15:20 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:41727) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R14rO-0000Wt-QA for submit@debbugs.gnu.org; Tue, 06 Sep 2011 19:15:18 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:39095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R14rN-0002nC-Od for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2011 19:15:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R14rM-0000WR-KV for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2011 19:15:17 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:57368) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R14rM-0000W6-FQ for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2011 19:15:16 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p86NFBYD026141 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 6 Sep 2011 23:15:13 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p86NFARD010865 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 6 Sep 2011 23:15:11 GMT Original-Received: from abhmt106.oracle.com (abhmt106.oracle.com [141.146.116.58]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p86NF5sn023619 for ; Tue, 6 Sep 2011 18:15:05 -0500 Original-Received: from dradamslap1 (/10.159.62.133) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 06 Sep 2011 16:15:05 -0700 X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 Thread-Index: Acxs6ssXAldXf3OIQL2PwTwpU3Kn6A== X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090207.4E66A981.008C:SCFMA922111,ss=1,re=-4.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: Tue, 06 Sep 2011 19:20:03 -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:50646 Archived-At: I'm no expert on fields, to put it mildly. But my impression is that thing-at-point functions should not cross field boundaries. I ran into this using a thing-at-point function (actually, a thing-near-point function) in the minibuffer. Now that (forward-line 0) takes you across the field boundary and into the prompt field, I ended up with "Text is read-only" errors. (And just why is it an improvement to have two fields here? What was wrong with the (simple) situation before?) To fix this I ended up splattering my own thing-at-point code with `constrain-to-field' calls. Butt ugly, but unless I'm missing something (quite possible), unavoidable. Anyway, this is a heads-up that you might want to take a look at thingatpt.el and DTRT wrt field boudaries. FWIW, my own code is here: http://www.emacswiki.org/emacs/download/thingatpt%2b.el. Among other things, it contains fixes for Emacs bugs #8667, #8628, and #9300 (fixes already communicated, but still not applied to vanilla Emacs). In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2011-09-05 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.5) --no-opt'