From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?QW5kcmVhcyBSw7ZobGVy?= Newsgroups: gmane.emacs.devel Subject: Re: mark-sexp again Date: Tue, 09 Jun 2015 08:24:38 +0200 Message-ID: <557686A6.8010801@online.de> References: <556F07CA.1020001@online.de> <55740199.9000505@online.de> <5575A5A1.1010806@online.de> <5575E526.70902@online.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1433831116 8333 80.91.229.3 (9 Jun 2015 06:25:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Jun 2015 06:25:16 +0000 (UTC) Cc: "monnier@IRO.UMontreal.CA >> Stefan Monnier" , bruce.connor.am@gmail.com To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 09 08:25:06 2015 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 1Z2Cy6-0004qz-9D for ged-emacs-devel@m.gmane.org; Tue, 09 Jun 2015 08:25:02 +0200 Original-Received: from localhost ([::1]:33270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2Cy5-0005jb-Cz for ged-emacs-devel@m.gmane.org; Tue, 09 Jun 2015 02:25:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43983) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2Cy1-0005jJ-QV for emacs-devel@gnu.org; Tue, 09 Jun 2015 02:24:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z2Cxy-0005G6-Jd for emacs-devel@gnu.org; Tue, 09 Jun 2015 02:24:57 -0400 Original-Received: from mout.kundenserver.de ([212.227.17.10]:56241) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2Cxy-0005Fx-7k for emacs-devel@gnu.org; Tue, 09 Jun 2015 02:24:54 -0400 Original-Received: from [192.168.178.31] ([77.3.60.60]) by mrelayeu.kundenserver.de (mreue104) with ESMTPSA (Nemesis) id 0MasKg-1YmKoD0PSU-00KQst; Tue, 09 Jun 2015 08:24:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: X-Provags-ID: V03:K0:QfqElontYO4hpuYUKWAEio52/7nXF6AIuW5YknYY35uDT3VuaIK dPD12T6tjwQfhgIvGcCPvLEQk512J2g1eHclcFzgRsHm5RLUNq6ALtj+UHGbUVhBW8YsLiB 66g31I/+AuqrCJZiGkws1yqsU8/96X5EdSTBhfhjKH1NFHt0LED9W6HazkGZb1jdseVbSSC p0GgEtmLTcijzald2KICg== X-UI-Out-Filterresults: notjunk:1;V01:K0:Nx0lNYcR7CA=:5SSiWemj1VMA8FgAc0VP5O pAk4mv/AxT05yhHeyX+G3LROBTWLu4acX4+qLOksWrG/Dy0JyHKfNcO4DxVp0dHLZ/Xj+CHfR hMRdoJNptR8uyA8GWthEb0XRxU1avFBaJRILSbu8AtA8C8jOwtFyElJLB+joY1eMg6wbpcKh+ yXKGxmZ+GG6WV8UE1nuXDV8qS0ZKGOeDTDB78OLK7N50LM0WZuwvtQHsEFXEoTioHIwK+NY4a zPYznNr56zL6Atxo1VSuggDFMFIE/1ynLXKf2AbdLtRg7afSE1rHxsv5nWHX6QgqpAq4bReWM LIAWK24DnsZ6rj85HeW1VVXWeaUYQBsx6F5eQ0eyEwzLohmGFMQWvwFSHQeJSCGvo9DmlsOvR fqqeanfeiltXNLGZkHzDgLjC4ENNsBfkYcuWdr6BJJEGo7x1dxOdPqSkqDqNrYk77Rkmp5yTi YWmqF4uTYRruZF6CYAr2oTSrPdG7pEAw0wQLoKNRAm3XgtSzONdceUs4TpKa70ktm/bk9VhE0 h1liHDWZOnshQ/A01wPnUvj7QmQvWiudNUshfF32Zx5yZnoyO2MeC7An0ypfS7cIbxusC9B/R 6awQS8IGDUeQGHDuTSvuKKPpYNhOtFWk6le2vHV5bP5YDDrF52U2AgQ9qSp6y4clWqAbfoI8Y dz4Qp+SOEXGcqwFGwiNnNwlOWWwJ7oWNCaeA75V0kjsTdBg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.10 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:187117 Archived-At: Am 08.06.2015 um 21:37 schrieb Artur Malabarba: > 2015-06-08 19:55 GMT+01:00 Andreas Röhler : >> Am 08.06.2015 um 18:09 schrieb Artur Malabarba: >>> 2015-06-08 15:24 GMT+01:00 Andreas Röhler : >>>> When inside a string, mark-sexp should mark the string. IMO doesn't make >>>> sense to consider the contents then. >>>> >>>> Example, cursor at beginning of docstring at "Just" >>>> >>>> (defun foo1 () >>>> "Just foo") >>>> >>>> M-x mark-sexp RET marks word "Just", not the string. >>>> >>>> Respectivly forward-sexp should reach the end of string, if called >>>> inside. >>> That would make it redundant with `up-list'. >> >> Don't think so: > I didn't mean the two commands are completely identical. I meant that > the action of moving out of a string while inside a string is already > achieved by the `up-list' command (which is also generally useful but > has no binding), so changing `forward-sexp' to do that as well would > be redundant. Specially since you'd be removing `forward-sexp's > ability to move inside a string, which is useful. > >> (list "asdfsdf adfsadf " "asdfsd asd asdf " "asdfasf asdfsad ") >> >> When started a "list", forward-sexp travels string by string, which is ok >> and also means, it recognises a string as sexp already. >> >> Accordingly from inside a string, it should go to the end first. > You seem to think this would make forward-sexp more consistent, but it > would make it less consistent. Currently, a pair of parentheses > delineates a sexp in the same way that a pair of double quotes does. > If you place point at the "a" on the following two examples, > `forward-sexp' will do the exact same thing in both cases. That's > consistent. > > (abc def) > "abc def" Expect forward-sexp to behave according to syntax of the language. AFAIU in Emacs Lisp an sexp is either a list --empty or not-- or an element of a list. Thus (abc def) has at least three sexp. While a string seen from Emas Lisp is just a single one. [ ... ]