From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: moving in js Date: Thu, 09 Aug 2012 19:19:32 +0200 Message-ID: <5023F124.50900@easy-emacs.de> References: <5021685A.2080408@easy-emacs.de> <5021FB1B.1070201@easy-emacs.de> <50234E6E.4060303@easy-emacs.de> <5023E330.8070205@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1344532790 7332 80.91.229.3 (9 Aug 2012 17:19:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Aug 2012 17:19:50 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org List" To: =?ISO-8859-1?Q?Jo=E3o_T=E1vora?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 09 19:19:51 2012 Return-path: Envelope-to: geh-help-gnu-emacs@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 1SzWOg-00031x-7O for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Aug 2012 19:19:46 +0200 Original-Received: from localhost ([::1]:48085 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzWOf-0004n7-B1 for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Aug 2012 13:19:45 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzWOX-0004li-1N for help-gnu-emacs@gnu.org; Thu, 09 Aug 2012 13:19:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SzWOV-0002O0-UB for help-gnu-emacs@gnu.org; Thu, 09 Aug 2012 13:19:36 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.171]:60689) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzWOV-0002Nu-KL for help-gnu-emacs@gnu.org; Thu, 09 Aug 2012 13:19:35 -0400 Original-Received: from [192.168.178.27] (brln-4dbc45fb.pool.mediaWays.net [77.188.69.251]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0LosHL-1TeLjK2xJb-00gCrm; Thu, 09 Aug 2012 19:19:34 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: X-Provags-ID: V02:K0:zIdZxJyJ48BbdlEQxVkexMusN0sI1bQlfgH7RN707fq KVmIEmDDULbSk8ABhH9SMhTSmw3WuYMDoAOvlQY3fHzMnG97Tc M6vrssrGiS+yqQ136QD2UIGWJzORb9EUOy0+LOHvQFfniYqMfP ptyLWR9aacri2drALhaCwt6vh7vcsvm1GVIdDQuSwIb4oy0f+P Ebe1Rf1t1we3Fzx0jK1GLzq+ojSMgNKhW4v27aY2aY7onvlVpn 38uVzbGXmyI9wLZyqYBoNV0cLgwMkKtZ+Zt+Jrjcys4j5ataNZ xJ8GTP509qwc/5uRx/OzAacqWXGO0LZoRUeKtvepVEkJQxQXfF ph0JLFG4tRBdBs04QLLsaiVBHP0wJYl8OwMt3fuiJ X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.126.171 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86271 Archived-At: Am 09.08.2012 18:44, schrieb João Távora: >> Not exactly, as common words don't nest, but similar. Will you ever get an >> error from "forward-word" unless at the EOB? > > No, because words don't nest :-) Lisp sexp's do (as do many other programming > language constructs) > >> a second invocation would reach "foo" > > Then, on the second invocation, backward-sexp would not have "moved backward > across one balanced expression", as its doc states. hmm, so let's ask what such a balanced expression should be. If we have the terminus of balanced expression, what will be the non-balanced? A single operator for example "+" while "4 + 5" might establish a balanced one. Agreed? Single words and symbols also are not balanced expressions IMO. When on ba|z (foo (bar ba|z) quux) C-M-b would reach |baz (foo (bar |baz) quux) i.e, it would do backward-word a repeat would do backward-word again, a third would error Can't see any relation to stipulated move over balanced expression here. Looks fairly arbitrary. CC to help, as it might be of some interest for others to. > > I think you might be looking for "scan-lists", it lets you move whithin the same > level and pop out and in of lists. Uses the syntax tables. I used it in > http://github.com/capitaomorte/autopair >