From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas =?iso-8859-1?q?R=F6hler?= Newsgroups: gmane.emacs.devel Subject: Re: mark-word Date: Thu, 15 Nov 2007 11:04:22 +0100 Message-ID: <200711151104.23185.andreas.roehler@online.de> References: <200711140835.41856.andreas.roehler@online.de> <87abpgqrdw.fsf@catnip.gol.com> <473C05E4.6060106@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1195121168 27813 80.91.229.12 (15 Nov 2007 10:06:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Nov 2007 10:06:08 +0000 (UTC) Cc: Stephen Turnbull , "Lennart Borgman \(gmail\)" , Stefan Monnier , Miles Bader To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 15 11:06:12 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IsbbH-00069v-A1 for ged-emacs-devel@m.gmane.org; Thu, 15 Nov 2007 11:05:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Isbb4-0006Tn-L8 for ged-emacs-devel@m.gmane.org; Thu, 15 Nov 2007 05:05:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IsbaO-00066r-LY for emacs-devel@gnu.org; Thu, 15 Nov 2007 05:04:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IsbaN-00065n-OF for emacs-devel@gnu.org; Thu, 15 Nov 2007 05:04:36 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IsbaN-00065e-FE for emacs-devel@gnu.org; Thu, 15 Nov 2007 05:04:35 -0500 Original-Received: from moutng.kundenserver.de ([212.227.126.179]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IsbaC-0004QH-LI; Thu, 15 Nov 2007 05:04:24 -0500 Original-Received: from noname (p54BE9966.dip0.t-ipconnect.de [84.190.153.102]) by mrelayeu.kundenserver.de (node=mrelayeu0) with ESMTP (Nemesis) id 0MKwh2-1Isba80dV7-0005N6; Thu, 15 Nov 2007 11:04:21 +0100 User-Agent: KMail/1.9.5 In-Reply-To: <473C05E4.6060106@gmail.com> Content-Disposition: inline X-Provags-ID: V01U2FsdGVkX1+6QU/3L8+jeOwlADL+Y5AOf9o446SuY8niSdd +J6FSm1YNndx/49Vs1kqA2i+AhkixtHTTyDTr4hXPKJfC3lpcW MSkJ8huJFm9UIki4+tifA== X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:83256 Archived-At: Am Donnerstag, 15. November 2007 09:40 schrieb Lennart Borgman (gmail): > >> Is there a mark-thing-at-point? > > > > No > > > >> If there were then mark-word-at-point could be implemented using that. > > > > It could also be implemented rather simply using primitive functions. > > The thing-at-point code is hairy and ugly, so it seems backwards to base > > other simpler functions on it... > > Using thing-at-point to make mark-thing-at-point (and then > mark-work-at-point etc) would mean that it is consistent and eaiser for > the user to remember. > As the original issue seems to have no chance, just one remark to `thing-at-point' (which I should not have introduced here beside) As Miles pointed out the code is hairy. Indeed, it's buggy. However the idea behind seems valid: Given `beginning' and `end' of THING, you may reuse a set of functions ad infinitum, one for all. The bugs come in, if underlying moving functions don't stop at the end of THING but one char after. After cutting this dependencies--see=20 thingatpt-utils in gnu-emacs-source--everything=20 works fine AFAIS. Concering the example delivered by Stephen: foo bar baz? quux _____________|____ M-x mark-word-at-point =3D> beginning-of-thing: No word here That's correct, so I can't reproduce the problem. OTOH the bug described above would show up if cursor is over question mark. Then `baz' is marked but should not, because a question mark is not a word. The same if cursor is beneath foo. Foo is marked, while cursor over space. Thanks all Andreas R=F6hler