From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kelly Dean Newsgroups: gmane.emacs.devel Subject: Re: thing-at-point's meaning of current sexp vs. up-list's: which is correct? Date: Wed, 12 Jun 2013 18:36:23 -0700 (PDT) Message-ID: <1371087383.6558.YahooMailClassic@web141103.mail.bf1.yahoo.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1371087397 16864 80.91.229.3 (13 Jun 2013 01:36:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Jun 2013 01:36:37 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 13 03:36:35 2013 Return-path: Envelope-to: ged-emacs-devel@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 1UmwSo-0003Ty-EI for ged-emacs-devel@m.gmane.org; Thu, 13 Jun 2013 03:36:34 +0200 Original-Received: from localhost ([::1]:49000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmwSn-0003dt-Vo for ged-emacs-devel@m.gmane.org; Wed, 12 Jun 2013 21:36:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50743) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmwSg-0003UP-Pf for emacs-devel@gnu.org; Wed, 12 Jun 2013 21:36:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmwSe-00057c-F2 for emacs-devel@gnu.org; Wed, 12 Jun 2013 21:36:26 -0400 Original-Received: from nm32-vm1.bullet.mail.bf1.yahoo.com ([72.30.239.137]:33368) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmwSe-00057J-9Y for emacs-devel@gnu.org; Wed, 12 Jun 2013 21:36:24 -0400 Original-Received: from [98.139.212.150] by nm32.bullet.mail.bf1.yahoo.com with NNFMP; 13 Jun 2013 01:36:23 -0000 Original-Received: from [98.139.212.241] by tm7.bullet.mail.bf1.yahoo.com with NNFMP; 13 Jun 2013 01:36:23 -0000 Original-Received: from [127.0.0.1] by omp1050.mail.bf1.yahoo.com with NNFMP; 13 Jun 2013 01:36:23 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 156732.23843.bm@omp1050.mail.bf1.yahoo.com Original-Received: (qmail 17075 invoked by uid 60001); 13 Jun 2013 01:36:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1371087383; bh=EhSCMAg8yOnvlPYFJoYbrsAL6OIPHNSRO2zUYqUW1mI=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=LZcIAvC5x1PWvy/WXYsdVZQ6iNftwqykxZ6JC+BaFC0uOGBjZzJwxTB7mDclwx4gV8uRIoIp5ssuhoF8IPgExUhBwgs+1IHC3PqrRlIAcFyRLAaVbIMmT/vR2NIdZ4mUNSqKQNLkddH49+E8xIfOkIbaFXNLMKtQl8kPfhTC/Y8= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=jl/SE3ywRB7SKdee2AZ0IRfJpJk8fQweo7a2C1A0gY7kDMTawsB6mOvCdDqrQ6ZWcWAo1CcnKrP+TqDc6ah0cUI1g3WZ+Jk38NFNCYJurZBVwOTanqkEEFBdqLqpGYgH35I788iq/Uhw1imA/QvRYA9XekkhnMZ57/hdMrECma4=; X-YMail-OSG: hmUQXDsVM1nf4TT7AurCIYtOu_AMQnmAiifgDueyr5.tf5I ezpO.37tmuAWrVdlmE7vZl7mu_ruwwIAOr_K0KZl8Ps77EpDc8DesP1tDNBI 35d_njoLQNP9QVVxc7ZHsIXBHIB7zIwCOQgL_dzU856tsJztKbZ3o4mDbMQ3 OrCe6usBvy_rXxBnyxau3VX7YIRVg4OTmLibm9hKQibl71yfV5ienQGO9JkO tEwY8cmQZhTt7EPl0LMYfxgRBXZhaTcl8bZqdV3zRdFAo9UxDxdeHfbo_9KL fYJFIG1199FmqgEvNChBYHsdl7cNRUKRdMmYXFj3jdbVQOVyB67ZeuZ5CqCw rPEbKohlQLcl1DzB5Nt4jxJeKLEIo9_UCO6fuXChSlD_RrGhGsSCkHMuOVs2 2q1uta8NxHSjTsvQzbvpFVjjeWfxKiessrnzzBS2iHoihsjuifcXGvUebmVY KkbamPPOr_RH1mxNDErdmmf40wHZ5dYLCzcexrQG_AxHv9qOzFaQCrKAXZFE 5qByZMOCrnjteDU7eC8obrRCxRGeeiQv4gQncjCA.8iQ7w7hxOf6rwkAEOUT QILw- Original-Received: from [93.114.43.156] by web141103.mail.bf1.yahoo.com via HTTP; Wed, 12 Jun 2013 18:36:23 PDT X-Rocket-MIMEInfo: 002.001, U3RlZmFuIE1vbm5pZXIgd3JvdGU6Cj5JIHRoaW5rIHRoZSBidWcgaXMgaW4ga2lsbC1iYWNrd2FyZC11cC1saXN0LiAgYHVwLWxpc3QnIGlzIGRlZmluaXRlbHkKPmJlaGF2aW5nIGNvcnJlY3RseSBoZXJlLCBhbmQgdGhpbmctYXQtcG9pbnQgaXMgYmFzaWNhbGx5IGZyZWUgdG8gcmV0dXJuCj5hbnl0aGluZyBpdCBmZWVscyBsaWtlIChpdCdzIGEgdmVyeSBhZC1ob2MgZnVuY3Rpb24gd2hpY2ggdHJpZXMgdG8KPkRXSU0pLgoKZm9yd2FyZC1zZXhwIGFuZCBlci9leHBhbmQtcmVnaW9uIGFncmVlIHdpdGggdXABMAEBAQE- X-Mailer: YahooMailClassic/15.1.8 YahooMailWebService/0.8.146.552 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-Received-From: 72.30.239.137 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:160395 Archived-At: Stefan Monnier wrote: >I think the bug is in kill-backward-up-list. `up-list' is definitely >behaving correctly here, and thing-at-point is basically free to return >anything it feels like (it's a very ad-hoc function which tries to >DWIM). forward-sexp and er/expand-region agree with up-list's meaning, and it does look like the right meaning. If thing-at-point is ad-hoc DWIM anyway, then I don't see the advantage of it using a different meaning than the standard for other functions. Wouldn't it be better to change thing-at-point? Besides this, in trunk, thing-at-point returns nil in the case I described, even though there certainly is a sexp at point, so that bug might as well be fixed in a way that makes thing-at-point compatible with the other functions. And kill-backward-up-list's implementation is short and elegant; dealing with thing-at-point's different meaning would make it longer and ugly.