From unknown Fri Jun 20 07:19:03 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#10460 <10460@debbugs.gnu.org> To: bug#10460 <10460@debbugs.gnu.org> Subject: Status: 24.0.92; css-mode sexp movement Reply-To: bug#10460 <10460@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:19:03 +0000 retitle 10460 24.0.92; css-mode sexp movement reassign 10460 emacs submitter 10460 Leo severity 10460 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 08 20:43:14 2012 Received: (at submit) by debbugs.gnu.org; 9 Jan 2012 01:43:14 +0000 Received: from localhost ([127.0.0.1]:50497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rk4GY-0007L8-5g for submit@debbugs.gnu.org; Sun, 08 Jan 2012 20:43:14 -0500 Received: from eggs.gnu.org ([140.186.70.92]:45122) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rk4GS-0007Kt-6E for submit@debbugs.gnu.org; Sun, 08 Jan 2012 20:43:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rk4GB-0001Qs-AF for submit@debbugs.gnu.org; Sun, 08 Jan 2012 20:42:52 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([140.186.70.17]:33387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rk4GB-0001Qn-8b for submit@debbugs.gnu.org; Sun, 08 Jan 2012 20:42:51 -0500 Received: from eggs.gnu.org ([140.186.70.92]:43620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rk4GA-00015B-8a for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2012 20:42:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rk4G9-0001Po-9i for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2012 20:42:50 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:62789) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rk4G9-0001Pj-6e for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2012 20:42:49 -0500 Received: by iacb35 with SMTP id b35so6964051iac.0 for ; Sun, 08 Jan 2012 17:42:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:x-debbugs-cc:date:message-id:mime-version :content-type; bh=yhrwHCMT/6ECrnUtZkXhIyywqtO1+/d7yvxYGoFeiaQ=; b=cDsc+bldHTOj3rF0xRZzMkYr8YMF53l1biQJoxXWl0SyhdSGhMQLLCDQO6Vs68CZ4Z f/9MQSDOScYJW2Rg7oyJG8+D5TzyKQenDTGkNcXWoYWEqO1EVdHLwgD7MCmsKr5VP+lv cKSFTwN3rUkvz0MXmkt6ZHSk4tj0X4od1AG+w= Received: by 10.50.182.130 with SMTP id ee2mr16757087igc.30.1326073368677; Sun, 08 Jan 2012 17:42:48 -0800 (PST) Received: from Victoria.local ([119.255.41.67]) by mx.google.com with ESMTPS id cv10sm13226779igc.0.2012.01.08.17.42.44 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 08 Jan 2012 17:42:47 -0800 (PST) From: Leo To: bug-gnu-emacs@gnu.org Subject: 24.0.92; css-mode sexp movement X-Debbugs-CC: Stefan Monnier Date: Mon, 09 Jan 2012 09:40:58 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -3.4 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.4 (---) In a css-mode buffer with the following text: a { color: red; } @ Leave point right behind @ and hit C-M-b, point moved to the opening '{'. Is this correct behaviour? Leo From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 09 04:45:31 2012 Received: (at 10460) by debbugs.gnu.org; 9 Jan 2012 09:45:31 +0000 Received: from localhost ([127.0.0.1]:50683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RkBnG-0001e6-Qx for submit@debbugs.gnu.org; Mon, 09 Jan 2012 04:45:30 -0500 Received: from mailout.ownit.se ([94.137.96.140]:58050 helo=spamgw2.ownit.se) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RkBnC-0001dw-Jw for 10460@debbugs.gnu.org; Mon, 09 Jan 2012 04:45:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ownit.se; s=2010.dkim; h=received:received:message-id:date:from:user-agent:mime-version:to:cc:subject: references:in-reply-to:content-type:content-transfer-encoding; bh=PyI5/R0on5Bbs/Zi3B+IpDv/yUBEZcuTkmQwf3yON+g=; b=jhOKH0xnA32/L/vWzT3dZRdGxT78WLX/NdRnsBsqdw04ZjsacLc3e3LEif0qlkS3TPgdAEhzefyP5 RDSTwVtHdcrB9y0BIBGb6UsD2/RHm8Fc8IHf+7trKTSWRa7rG6v7GhXWFWPzsiaMufp30rySazjKFE Dxe7Zn1J51xTxz04= Received: from mail.ownit.nu (unknown [109.104.0.111]) by mailout.ownit.se (Halon Mail Gateway) with ESMTPS; Mon, 9 Jan 2012 10:45:10 +0100 (CET) Received: from [10.10.6.100] (92-244-16-130.customers.ownit.se [92.244.16.130]) by mail.ownit.nu (Postfix) with ESMTP id 50475FD09B; Mon, 9 Jan 2012 10:45:10 +0100 (CET) Message-ID: <4F0AB723.5010207@dogan.se> Date: Mon, 09 Jan 2012 10:45:07 +0100 From: Deniz Dogan User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: Leo Subject: Re: bug#10460: 24.0.92; css-mode sexp movement References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10460 Cc: 10460@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Leo skrev 2012-01-09 02:40: > In a css-mode buffer with the following text: > > > a { > color: red; > } > > @ > > Leave point right behind @ and hit C-M-b, point moved to the opening > '{'. Is this correct behaviour? > Why not? From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 16 23:44:39 2012 Received: (at 10460) by debbugs.gnu.org; 17 Jan 2012 04:44:39 +0000 Received: from localhost ([127.0.0.1]:60961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rn0uV-0004kl-CF for submit@debbugs.gnu.org; Mon, 16 Jan 2012 23:44:39 -0500 Received: from mail-yw0-f44.google.com ([209.85.213.44]:52138) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rn0uS-0004kd-OO for 10460@debbugs.gnu.org; Mon, 16 Jan 2012 23:44:37 -0500 Received: by yhnn12 with SMTP id n12so835529yhn.3 for <10460@debbugs.gnu.org>; Mon, 16 Jan 2012 20:43:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=qO+VEOQFlprifj5aqy+w5o4m5aHW6/3RIf821L+r+Kk=; b=cQQUZS8GDs2ANyUhNq2Rtusq/Wge5XA4+DRp5ghVOeXzCkyzl0xK6Uquo2jeMXwGEy 3Mh219yWesdhjNCywHeqSZyCC7zWB0vVnF2pypBUAIsbrgJo8o0PybjvFSO5Ksobtxui mez8IpfbpFtCZUmlkjk/pLohiwqlTkZ0s/OtI= Received: by 10.236.184.196 with SMTP id s44mr1794460yhm.9.1326775418316; Mon, 16 Jan 2012 20:43:38 -0800 (PST) Received: from localhost ([117.128.173.211]) by mx.google.com with ESMTPS id c44sm34425629yhm.5.2012.01.16.20.43.31 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 16 Jan 2012 20:43:36 -0800 (PST) From: Leo To: Deniz Dogan Subject: Re: bug#10460: 24.0.92; css-mode sexp movement References: <4F0AB723.5010207@dogan.se> Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAElBMVEUAAAAAAP+LRRP0pGC+ vr7///+7mT1iAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMO DhglKe4AAAEsSURBVCjPbZNBboQwDEV/Cd4X9QJRThApmn0XYW+Jyf2v0m+HhqDBgiAe9rcTG7QH w/1Vn2Ar8gBb/ocywSN3qK9T3z4eFDB4eApocBpeBs1RSykoJd8gQcm8pGmHXFso3ajnmsqV0TnY DQkOfXUfN5NwaI7AWTVOyEhcu1aHmdWItHddUVUcUgUBCkitu8V6ditHVOVdqzl2EQ1ZVGTbdK0V 7cqn8vWzoU5Q/bF9Y/Y0cRU1xwkys5dJ+Dt6pBDWifcNQml8Gh2JVmPSoQzo7en0grswkxrUGYJ7 0hSxxAGr7ZMwYcHIzprpi7TENEE1xtiYxixRlCfPBsUUrwHD7uGIwATrbnODJcVrPpVn3hxiGloe m/S+z3CtuzUSMo83N4DPH+F0evwR3P4A2k+75838OKQAAAAASUVORK5CYII= Date: Tue, 17 Jan 2012 12:43:17 +0800 In-Reply-To: <4F0AB723.5010207@dogan.se> (Deniz Dogan's message of "Mon, 09 Jan 2012 10:45:07 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3.90 (Mac OS X 10.6.8) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 10460 Cc: 10460@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On 2012-01-09 17:45 +0800, Deniz Dogan wrote: >> a { >> color: red; >> } >> >> @ >> >> Leave point right behind @ and hit C-M-b, point moved to the opening >> '{'. Is this correct behaviour? >> > > Why not? I am new to CSS and I cannot answer this question. But from the syntax table this seems to be consistent with lisp mode. Leo From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 28 22:54:22 2014 Received: (at 10460) by debbugs.gnu.org; 29 Dec 2014 03:54:22 +0000 Received: from localhost ([127.0.0.1]:60019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y5RPR-0002oo-VT for submit@debbugs.gnu.org; Sun, 28 Dec 2014 22:54:22 -0500 Received: from gproxy7-pub.mail.unifiedlayer.com ([70.40.196.235]:49230) by debbugs.gnu.org with smtp (Exim 4.80) (envelope-from ) id 1Y5RPO-0002oc-VN for 10460@debbugs.gnu.org; Sun, 28 Dec 2014 22:54:20 -0500 Received: (qmail 27091 invoked by uid 0); 29 Dec 2014 03:54:12 -0000 Received: from unknown (HELO cmgw3) (10.0.90.84) by gproxy7.mail.unifiedlayer.com with SMTP; 29 Dec 2014 03:54:12 -0000 Received: from box522.bluehost.com ([74.220.219.122]) by cmgw3 with id ZFu61p00D2f2jeq01Fu9Vf; Sun, 28 Dec 2014 20:54:12 -0700 X-Authority-Analysis: v=2.1 cv=Lo0BlBtc c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=cNaOj0WVAAAA:8 a=f5113yIGAAAA:8 a=udL4O0NGDEAA:10 a=zstS-IiYAAAA:8 a=PnD2wP_eR3oA:10 a=-Ceb2LbMfV4A:10 a=A92cGCtB03wA:10 a=KeQneLQZ8-AgmlX6_gAA:9 a=zut5vjXkSzsA:10 a=Av5b88s-ByoA:10 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From; bh=fUaobdzo8Gz+sentavPW7tVeDLlJLD0yKEw+B5JucUc=; b=gu04HKjQfmQ5Fg+KpiM9JeFWWPZyhsv21+qHTzAOp7DtEwukVU0vMY74FfpxYlZmYC+yd80Mr0GndzPkvZ99MhSJbcWeBIS4EcnyJfclhN1/vgn7Aenk+tVM0UjQPFV9; Received: from [71.33.142.103] (port=50823 helo=bapiya) by box522.bluehost.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.82) (envelope-from ) id 1Y5RPB-0007P3-Ob; Sun, 28 Dec 2014 20:54:06 -0700 From: Tom Tromey To: Leo Subject: Re: bug#10460: 24.0.92; css-mode sexp movement In-Reply-To: (Leo's message of "Mon, 09 Jan 2012 09:40:58 +0800") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Date: Sun, 28 Dec 2014 20:53:44 -0700 Message-ID: <87iogv9kmv.fsf@tromey.com> MIME-Version: 1.0 Content-Type: text/plain X-Identified-User: {36111:box522.bluehost.com:elynrobi:tromey.com} {sentby:smtp auth 71.33.142.103 authed with tom+tromey.com} X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 10460 Cc: 10460@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Leo> In a css-mode buffer with the following text: Leo> a { Leo> color: red; Leo> } Leo> Leo> @ Leo> Leave point right behind @ and hit C-M-b, point moved to the opening Leo> '{'. Is this correct behaviour? When I do this, point moves to the "a". This seems clearly wrong to me -- I think point should be left at the "{". It seems like a bug in SMIE, in that this ends up calling (smie-backward-sexp 'halfsexp), which does the wrong thing. Tom From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 29 09:51:04 2014 Received: (at 10460) by debbugs.gnu.org; 29 Dec 2014 14:51:04 +0000 Received: from localhost ([127.0.0.1]:60247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y5bey-0008LN-0S for submit@debbugs.gnu.org; Mon, 29 Dec 2014 09:51:04 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:19759) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y5beu-0008Ks-3J for 10460@debbugs.gnu.org; Mon, 29 Dec 2014 09:51:01 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aj8PAOwQflRFpY0B/2dsb2JhbABbgweDYIVawjuCYgQCAoEkFwEBAQEBAXyEAwEBAwFWIwULCzQSFBgNJIhKCdZZAQEBAQEBAQMBAQEBAR2QbweESAWLAaQugXiEGSGCdwEBAQ X-IPAS-Result: Aj8PAOwQflRFpY0B/2dsb2JhbABbgweDYIVawjuCYgQCAoEkFwEBAQEBAXyEAwEBAwFWIwULCzQSFBgNJIhKCdZZAQEBAQEBAQMBAQEBAR2QbweESAWLAaQugXiEGSGCdwEBAQ X-IronPort-AV: E=Sophos;i="5.07,502,1413259200"; d="scan'208";a="103837143" Received: from 69-165-141-1.dsl.teksavvy.com (HELO pastel.home) ([69.165.141.1]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 29 Dec 2014 09:50:59 -0500 Received: by pastel.home (Postfix, from userid 20848) id EC58D1F66; Mon, 29 Dec 2014 09:50:58 -0500 (EST) From: Stefan Monnier To: Tom Tromey Subject: Re: bug#10460: 24.0.92; css-mode sexp movement Message-ID: References: <87iogv9kmv.fsf@tromey.com> Date: Mon, 29 Dec 2014 09:50:58 -0500 In-Reply-To: <87iogv9kmv.fsf@tromey.com> (Tom Tromey's message of "Sun, 28 Dec 2014 20:53:44 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 10460 Cc: 10460@debbugs.gnu.org, Leo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > When I do this, point moves to the "a". It skipped a "statement". > This seems clearly wrong to me > -- I think point should be left at the "{". Why? Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 29 11:36:14 2014 Received: (at 10460) by debbugs.gnu.org; 29 Dec 2014 16:36:14 +0000 Received: from localhost ([127.0.0.1]:60437 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y5dIk-0002gV-3F for submit@debbugs.gnu.org; Mon, 29 Dec 2014 11:36:14 -0500 Received: from gproxy2-pub.mail.unifiedlayer.com ([69.89.18.3]:37885) by debbugs.gnu.org with smtp (Exim 4.80) (envelope-from ) id 1Y5dIh-0002gL-V9 for 10460@debbugs.gnu.org; Mon, 29 Dec 2014 11:36:13 -0500 Received: (qmail 19535 invoked by uid 0); 29 Dec 2014 16:36:08 -0000 Received: from unknown (HELO cmgw3) (10.0.90.84) by gproxy2.mail.unifiedlayer.com with SMTP; 29 Dec 2014 16:36:08 -0000 Received: from box522.bluehost.com ([74.220.219.122]) by cmgw3 with id ZUby1p00W2f2jeq01Uc1TY; Mon, 29 Dec 2014 09:36:08 -0700 X-Authority-Analysis: v=2.1 cv=Lo0BlBtc c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=cNaOj0WVAAAA:8 a=f5113yIGAAAA:8 a=udL4O0NGDEAA:10 a=IkcTkHD0fZMA:10 a=zstS-IiYAAAA:8 a=PnD2wP_eR3oA:10 a=-Ceb2LbMfV4A:10 a=A92cGCtB03wA:10 a=xpQm7LBaG05omK7dXKMA:9 a=QEXdDO2ut3YA:10 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From; bh=CHsvlhzjyHlarcaBIPjvSyQQ1yQ/uyvxgVENVkkNlfc=; b=IuWrO7m1xQ//zr2Ra9haBnLNcxtAJ6bdILeLa7zRDgCiN62sjHkHWn4+0dK6i+D1WHt0W33dtdVRY6TH0oGQrJUs7CZE1GbHltMoH+hpQzLjrbC0UiezhgOqx+kyFGwf; Received: from [71.33.142.103] (port=40928 helo=pokyo) by box522.bluehost.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.82) (envelope-from ) id 1Y5dIU-00070f-0I; Mon, 29 Dec 2014 09:35:58 -0700 From: Tom Tromey To: Stefan Monnier Subject: Re: bug#10460: 24.0.92; css-mode sexp movement References: <87iogv9kmv.fsf@tromey.com> X-Attribution: Tom Date: Mon, 29 Dec 2014 09:35:50 -0700 In-Reply-To: (Stefan Monnier's message of "Mon, 29 Dec 2014 09:50:58 -0500") Message-ID: <877fxav2ft.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Identified-User: {36111:box522.bluehost.com:elynrobi:tromey.com} {sentby:smtp auth 71.33.142.103 authed with tom+tromey.com} X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 10460 Cc: Tom Tromey , 10460@debbugs.gnu.org, Leo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) >> When I do this, point moves to the "a". Stefan> It skipped a "statement". >> This seems clearly wrong to me >> -- I think point should be left at the "{". Stefan> Why? I was going just by how I "know" emacs works, based on using various other modes for years and years. That is, consistency with C mode, js mode, tcl mode, etc. The docs also indicate that this is how Emacs works. >From "(emacs) Expressions": Each programming language mode has its own definition of a "balanced expression". Balanced expressions typically include individual symbols, numbers, and string constants, as well as pieces of code enclosed in a matching pair of delimiters. [...] To move forward over a balanced expression, use =E2=80=98C-M-f=E2=80= =99 (=E2=80=98forward-sexp=E2=80=99). If the first significant character a= fter point is an opening delimiter (e.g., =E2=80=98(=E2=80=99, =E2=80=98[=E2=80=99 or = =E2=80=98{=E2=80=99 in C), this command moves past the matching closing delimiter. If the character begins a symbol, string, or number, the command moves over that. [...] The command =E2=80=98C-M-b=E2=80=99 (=E2=80=98backward-sexp=E2=80=99= ) moves backward over a balanced expression=E2=80=94like =E2=80=98C-M-f=E2=80=99, but in the reverse dir= ection. If the expression is preceded by any prefix characters (single-quote, backquote and comma, in Lisp), the command moves back over them as well. I suppose this supplies a bit of wiggle room, if you leniently interpret "prefix characters". That said it just seems weird to me that, when point is on "{", if forward-sexp followed by backward-sexp moves to a different spot, especially given the above documentation. Tom From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 29 14:13:59 2014 Received: (at 10460) by debbugs.gnu.org; 29 Dec 2014 19:13:59 +0000 Received: from localhost ([127.0.0.1]:60531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y5flP-0008Bh-69 for submit@debbugs.gnu.org; Mon, 29 Dec 2014 14:13:59 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:24823) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y5flM-0008BT-G0 for 10460@debbugs.gnu.org; Mon, 29 Dec 2014 14:13:57 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aj8PAOwQflRFpY0B/2dsb2JhbABbgweDYIVawjuCYgQCAoEkFwEBAQEBAXyEAwEBAwFWDxQFCws0EhQYDSSISgnWWQEBAQEBAQQBAQEBHpBvB4RIBYsBjFSXWoF4hBkhgncBAQE X-IPAS-Result: Aj8PAOwQflRFpY0B/2dsb2JhbABbgweDYIVawjuCYgQCAoEkFwEBAQEBAXyEAwEBAwFWDxQFCws0EhQYDSSISgnWWQEBAQEBAQQBAQEBHpBvB4RIBYsBjFSXWoF4hBkhgncBAQE X-IronPort-AV: E=Sophos;i="5.07,502,1413259200"; d="scan'208";a="103917678" Received: from 69-165-141-1.dsl.teksavvy.com (HELO pastel.home) ([69.165.141.1]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 29 Dec 2014 14:13:55 -0500 Received: by pastel.home (Postfix, from userid 20848) id 36D37FCE; Mon, 29 Dec 2014 14:13:55 -0500 (EST) From: Stefan Monnier To: Tom Tromey Subject: Re: bug#10460: 24.0.92; css-mode sexp movement Message-ID: References: <87iogv9kmv.fsf@tromey.com> <877fxav2ft.fsf@tromey.com> Date: Mon, 29 Dec 2014 14:13:55 -0500 In-Reply-To: <877fxav2ft.fsf@tromey.com> (Tom Tromey's message of "Mon, 29 Dec 2014 09:35:50 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 10460 Cc: 10460@debbugs.gnu.org, Leo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > I suppose this supplies a bit of wiggle room, if you leniently interpret > "prefix characters". SMIE interprets "balanced expression" as "a subnode in the AST". It can surprise at the beginning, indeed, but in my experience, it's a useful generalization for languages with infix syntax. Of course, for infix languages, "a + b * c" might be a proper AST subnode (whereas stopping after "a + b" wouldn't if there's a "* c" afterwards), but so is "a", when using forward-sexp we have to choose at which level of the AST we want to jump forward. In the above case SMIE will choose "a" over "a + b * c" (i.e. it will choose the smallest/deepest subnode). But when faced with "+ b * c", there is simply no proper subnode ahead. Here, SMIE extends yet again the concept of "balanced expression" in order to be able to do something meaningful: it jumps over the whole "+ b * c" (i.e. over the infix op plus its right argument). This is very handy in languages with few parentheses, letting you advance by "large" logical units, just like you would in Lisp where every top-level statement is wrapped inside parentheses. Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 29 14:21:16 2014 Received: (at 10460) by debbugs.gnu.org; 29 Dec 2014 19:21:16 +0000 Received: from localhost ([127.0.0.1]:60536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y5fsS-0008O4-3T for submit@debbugs.gnu.org; Mon, 29 Dec 2014 14:21:16 -0500 Received: from gproxy10-pub.mail.unifiedlayer.com ([69.89.20.226]:51906) by debbugs.gnu.org with smtp (Exim 4.80) (envelope-from ) id 1Y5fsP-0008Nu-6B for 10460@debbugs.gnu.org; Mon, 29 Dec 2014 14:21:14 -0500 Received: (qmail 9185 invoked by uid 0); 29 Dec 2014 19:21:08 -0000 Received: from unknown (HELO cmgw2) (10.0.90.83) by gproxy10.mail.unifiedlayer.com with SMTP; 29 Dec 2014 19:21:08 -0000 Received: from box522.bluehost.com ([74.220.219.122]) by cmgw2 with id ZXM11p00G2f2jeq01XM4YV; Mon, 29 Dec 2014 12:21:08 -0700 X-Authority-Analysis: v=2.1 cv=eOCA0hZ1 c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=cNaOj0WVAAAA:8 a=f5113yIGAAAA:8 a=udL4O0NGDEAA:10 a=zstS-IiYAAAA:8 a=PnD2wP_eR3oA:10 a=-Ceb2LbMfV4A:10 a=A92cGCtB03wA:10 a=l88yNJYZOeTQYM14NPIA:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From; bh=Ndg3sSPax43PBOkyJxhUWmAn/IulQB6ezFBWvI4724Y=; b=NJdket84pIcPsgk3eSNdOhqYbiWzAehc9khOgLB+AMfYKzqCHGEW/zWVySmWcWEs4yWlBa3jVlwJ9KMBHyngRzLIY9MBwRd/V82H6KYBmWJIcXFiQ9F4UjqAWAqUTe/d; Received: from [71.33.142.103] (port=41505 helo=pokyo) by box522.bluehost.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.82) (envelope-from ) id 1Y5fsC-0006PG-W0; Mon, 29 Dec 2014 12:21:01 -0700 From: Tom Tromey To: Stefan Monnier Subject: Re: bug#10460: 24.0.92; css-mode sexp movement References: <87iogv9kmv.fsf@tromey.com> <877fxav2ft.fsf@tromey.com> X-Attribution: Tom Date: Mon, 29 Dec 2014 12:20:57 -0700 In-Reply-To: (Stefan Monnier's message of "Mon, 29 Dec 2014 14:13:55 -0500") Message-ID: <87387yuusm.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Identified-User: {36111:box522.bluehost.com:elynrobi:tromey.com} {sentby:smtp auth 71.33.142.103 authed with tom+tromey.com} X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 10460 Cc: Tom Tromey , 10460@debbugs.gnu.org, Leo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) >> I suppose this supplies a bit of wiggle room, if you leniently interpret >> "prefix characters". Stefan> SMIE interprets "balanced expression" as "a subnode in the AST". Stefan> It can surprise at the beginning, indeed, but in my experience, it's Stefan> a useful generalization for languages with infix syntax. I disagree of course, but I will try not to belabor the point. Stefan> Of course, for infix languages, "a + b * c" might be a proper AST Stefan> subnode (whereas stopping after "a + b" wouldn't if there's a "* c" Stefan> afterwards), but so is "a", when using forward-sexp we have to choose at Stefan> which level of the AST we want to jump forward. In the above case SMIE Stefan> will choose "a" over "a + b * c" (i.e. it will choose the Stefan> smallest/deepest subnode). I noticed this asymmetry and was going to bring it up in this reply. Now you've foiled my riposte. What I mean is that, in the example in this bug, if you do backward-sexp, then forward-sexp just advances over the "a" and not the braced pair. However, this asymmetry does seem less regular, and IMO therefore less useful, than a simpler lexically-based movement scheme. Also conformity with other modes is a distinct plus -- I necessarily touch code in many languages, and it slows me down when one mode or another violates my expectations. Stefan> But when faced with "+ b * c", there is simply no proper subnode ahead. Stefan> Here, SMIE extends yet again the concept of "balanced expression" in Stefan> order to be able to do something meaningful: it jumps over the whole "+ Stefan> b * c" (i.e. over the infix op plus its right argument). This is very Stefan> handy in languages with few parentheses, letting you advance by "large" Stefan> logical units, just like you would in Lisp where every top-level Stefan> statement is wrapped inside parentheses. It's handy to have movement commands that means "symbol or balanced paren-like things". I always thought that was *-sexp. Tom From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 29 21:46:45 2014 Received: (at 10460) by debbugs.gnu.org; 30 Dec 2014 02:46:45 +0000 Received: from localhost ([127.0.0.1]:60614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y5mpZ-0003MF-44 for submit@debbugs.gnu.org; Mon, 29 Dec 2014 21:46:45 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:13038) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y5mpW-0003M6-9p for 10460@debbugs.gnu.org; Mon, 29 Dec 2014 21:46:43 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aj8PAOwQflRFpY0B/2dsb2JhbABbgweDYIVawjuCYgQCAoEkFwEBAQEBAXyEAwEBAwFWDxQFCws0EhQYDSSISgnWWQEBAQEBAQQBAQEBHpBvB4RIBYsBpC6BeIQZIYJ3AQEB X-IPAS-Result: Aj8PAOwQflRFpY0B/2dsb2JhbABbgweDYIVawjuCYgQCAoEkFwEBAQEBAXyEAwEBAwFWDxQFCws0EhQYDSSISgnWWQEBAQEBAQQBAQEBHpBvB4RIBYsBpC6BeIQZIYJ3AQEB X-IronPort-AV: E=Sophos;i="5.07,502,1413259200"; d="scan'208";a="104000819" Received: from 69-165-141-1.dsl.teksavvy.com (HELO ceviche.home) ([69.165.141.1]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 29 Dec 2014 21:46:41 -0500 Received: by ceviche.home (Postfix, from userid 20848) id 2177B660FB; Mon, 29 Dec 2014 21:46:41 -0500 (EST) From: Stefan Monnier To: Tom Tromey Subject: Re: bug#10460: 24.0.92; css-mode sexp movement Message-ID: References: <87iogv9kmv.fsf@tromey.com> <877fxav2ft.fsf@tromey.com> <87387yuusm.fsf@tromey.com> Date: Mon, 29 Dec 2014 21:46:41 -0500 In-Reply-To: <87387yuusm.fsf@tromey.com> (Tom Tromey's message of "Mon, 29 Dec 2014 12:20:57 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 10460 Cc: 10460@debbugs.gnu.org, Leo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > However, this asymmetry does seem less regular, and IMO therefore less > useful, than a simpler lexically-based movement scheme. It's actually more powerful. E.g. when point is on a comma separating two arguments, C-M-t swaps the two arguments. > Also conformity with other modes is a distinct plus It's consistent with Lisp code (because the new behavior only occurs for situations which don't exist in Lisp). But it's not consistent with non-SMIE non-Lisp-like languages, indeed. > It's handy to have movement commands that means "symbol or balanced > paren-like things". I always thought that was *-sexp. You can still have that if you set forward-sexp-function to nil. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 30 14:15:57 2014 Received: (at 10460) by debbugs.gnu.org; 30 Dec 2014 19:15:57 +0000 Received: from localhost ([127.0.0.1]:33133 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y62Gr-0006aA-FJ for submit@debbugs.gnu.org; Tue, 30 Dec 2014 14:15:57 -0500 Received: from gproxy7-pub.mail.unifiedlayer.com ([70.40.196.235]:33720) by debbugs.gnu.org with smtp (Exim 4.80) (envelope-from ) id 1Y62Gp-0006a1-2c for 10460@debbugs.gnu.org; Tue, 30 Dec 2014 14:15:56 -0500 Received: (qmail 1224 invoked by uid 0); 30 Dec 2014 19:15:49 -0000 Received: from unknown (HELO cmgw4) (10.0.90.85) by gproxy7.mail.unifiedlayer.com with SMTP; 30 Dec 2014 19:15:49 -0000 Received: from box522.bluehost.com ([74.220.219.122]) by cmgw4 with id ZvFi1p00K2f2jeq01vFlYc; Tue, 30 Dec 2014 12:15:49 -0700 X-Authority-Analysis: v=2.1 cv=BvIOn+n5 c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=cNaOj0WVAAAA:8 a=f5113yIGAAAA:8 a=udL4O0NGDEAA:10 a=zstS-IiYAAAA:8 a=PnD2wP_eR3oA:10 a=-Ceb2LbMfV4A:10 a=A92cGCtB03wA:10 a=bLgy7b8nRan97Nfx6IwA:9 a=pIxvb6DIKPYA:10 a=rqKO_g1zEI8A:10 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From; bh=SU831/Dpfe5nJoZKBI2Y9R/MwIuGmm36VACmOoRCptU=; b=HIxaXgbLCzLm9JmM/NS6DX2pNu4o/4VEyeCg3CWyYe94jlQv2qiPpbAcYcHAz5b8X2NUsJzpuzcCVPI3x5gxdj0Ds2dq9uPxrgU5rts5Q1rk4r2pibqNYxclSD/1tGXX; Received: from [71.33.142.103] (port=43352 helo=pokyo) by box522.bluehost.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.82) (envelope-from ) id 1Y62Gb-0000KW-WA; Tue, 30 Dec 2014 12:15:42 -0700 From: Tom Tromey To: Stefan Monnier Subject: Re: bug#10460: 24.0.92; css-mode sexp movement References: <87iogv9kmv.fsf@tromey.com> <877fxav2ft.fsf@tromey.com> <87387yuusm.fsf@tromey.com> X-Attribution: Tom Date: Tue, 30 Dec 2014 12:15:37 -0700 In-Reply-To: (Stefan Monnier's message of "Mon, 29 Dec 2014 21:46:41 -0500") Message-ID: <87oaqlt0di.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Identified-User: {36111:box522.bluehost.com:elynrobi:tromey.com} {sentby:smtp auth 71.33.142.103 authed with tom+tromey.com} X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 10460 Cc: Tom Tromey , 10460@debbugs.gnu.org, Leo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Tom> Also conformity with other modes is a distinct plus Stefan> It's consistent with Lisp code (because the new behavior only occurs for Stefan> situations which don't exist in Lisp). That's cheating! Any behavior would be compatible with what Lisp does here, according to the same logic. Stefan> You can still have that if you set forward-sexp-function to nil. Yeah. I'm going to close this bug. Tom From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 30 14:18:09 2014 Received: (at control) by debbugs.gnu.org; 30 Dec 2014 19:18:09 +0000 Received: from localhost ([127.0.0.1]:33138 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y62Iz-0006e3-1L for submit@debbugs.gnu.org; Tue, 30 Dec 2014 14:18:09 -0500 Received: from gproxy2-pub.mail.unifiedlayer.com ([69.89.18.3]:42966) by debbugs.gnu.org with smtp (Exim 4.80) (envelope-from ) id 1Y62Iw-0006dt-Nr for control@debbugs.gnu.org; Tue, 30 Dec 2014 14:18:07 -0500 Received: (qmail 10539 invoked by uid 0); 30 Dec 2014 19:18:04 -0000 Received: from unknown (HELO cmgw3) (10.0.90.84) by gproxy2.mail.unifiedlayer.com with SMTP; 30 Dec 2014 19:18:04 -0000 Received: from box522.bluehost.com ([74.220.219.122]) by cmgw3 with id ZvHz1p00i2f2jeq01vJ27z; Tue, 30 Dec 2014 12:18:04 -0700 X-Authority-Analysis: v=2.1 cv=Lo0BlBtc c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=cNaOj0WVAAAA:8 a=f5113yIGAAAA:8 a=zstS-IiYAAAA:8 a=PnD2wP_eR3oA:10 a=-Ceb2LbMfV4A:10 a=A92cGCtB03wA:10 a=AKSsb9nxkrIB81H0RdYA:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Subject:From:To:Message-Id:Date; bh=YvsdkDvGmzNBVkuCfPB3LXOOw1Ij+VEOX0xVKuZ3WoY=; b=QseouG103uhf3ygrEMfAytUz+6d2g2n6rrT66skJYsFpHLsmtRgzvBhXBTvgOQMB2YldAsEed9t5ec94FXn0aOmEsBBdj55Jjtzl0hGO4AXNbPaz66Zc1SvAAPHI7eIr; Received: from [71.33.142.103] (port=55482 helo=bapiya) by box522.bluehost.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.82) (envelope-from ) id 1Y62Ip-0002xf-Jy for control@debbugs.gnu.org; Tue, 30 Dec 2014 12:17:59 -0700 Date: Tue, 30 Dec 2014 12:17:56 -0700 Message-Id: <87a9259cbf.fsf@tromey.com> To: control@debbugs.gnu.org From: Tom Tromey Subject: control message for bug #10460 X-Identified-User: {36111:box522.bluehost.com:elynrobi:tromey.com} {sentby:smtp auth 71.33.142.103 authed with tom+tromey.com} X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) close 10460 25.1 From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 30 18:03:10 2014 Received: (at 10460) by debbugs.gnu.org; 30 Dec 2014 23:03:10 +0000 Received: from localhost ([127.0.0.1]:33220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y65oj-0005L9-Di for submit@debbugs.gnu.org; Tue, 30 Dec 2014 18:03:09 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:40230) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y65oh-0005L2-Vp for 10460@debbugs.gnu.org; Tue, 30 Dec 2014 18:03:08 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aj4PAOwQflRFpY0B/2dsb2JhbABbgweDYIVawjuCYgQCAoEkFwEBAQEBAXyEAwEBBFYjEAs0EhQYDSSIU9ZZAQEBAQEBBAEBAQEekG8HhEgFiwGkLoF4hBkhgncBAQE X-IPAS-Result: Aj4PAOwQflRFpY0B/2dsb2JhbABbgweDYIVawjuCYgQCAoEkFwEBAQEBAXyEAwEBBFYjEAs0EhQYDSSIU9ZZAQEBAQEBBAEBAQEekG8HhEgFiwGkLoF4hBkhgncBAQE X-IronPort-AV: E=Sophos;i="5.07,502,1413259200"; d="scan'208";a="104258157" Received: from 69-165-141-1.dsl.teksavvy.com (HELO pastel.home) ([69.165.141.1]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 30 Dec 2014 18:03:07 -0500 Received: by pastel.home (Postfix, from userid 20848) id 1C3F3D96; Tue, 30 Dec 2014 18:03:07 -0500 (EST) From: Stefan Monnier To: Tom Tromey Subject: Re: bug#10460: 24.0.92; css-mode sexp movement Message-ID: References: <87iogv9kmv.fsf@tromey.com> <877fxav2ft.fsf@tromey.com> <87387yuusm.fsf@tromey.com> <87oaqlt0di.fsf@tromey.com> Date: Tue, 30 Dec 2014 18:03:07 -0500 In-Reply-To: <87oaqlt0di.fsf@tromey.com> (Tom Tromey's message of "Tue, 30 Dec 2014 12:15:37 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 10460 Cc: 10460@debbugs.gnu.org, Leo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Tom> Also conformity with other modes is a distinct plus Stefan> It's consistent with Lisp code (because the new behavior only occurs for Stefan> situations which don't exist in Lisp). > That's cheating! Any behavior would be compatible with what Lisp does > here, according to the same logic. I wouldn't call it cheating. The behavior of `forward-sexp' was really only defined for Lisp. Extending it to infix languages can be done in various ways. Before SMIE, it was done in the way that's simpler to implement, but it makes you lose the ability to jump over any nodes of the AST which aren't "atomic" nor wrapped in parentheses (in Lisp, this is no problem since all nodes of the AST are either "atomic" or wrapped in parentheses). In SMIE I decided to extend it in a different way, which takes more work on the implementation side, but offers more functionality. Of course "more functionality" inevitably means "different", so some users are bound to be annoyed. Stefan> You can still have that if you set forward-sexp-function to nil. > Yeah. I'm going to close this bug. Thanks, Stefan From unknown Fri Jun 20 07:19:03 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 28 Jan 2015 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator