From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Andreas_R=c3=b6hler?= Newsgroups: gmane.emacs.help Subject: Re: [External] : forward-sexp Date: Fri, 11 Aug 2023 21:20:34 +0200 Message-ID: References: <53741ea9-b3ac-67a6-519f-b8977df30bf9@easy-emacs.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36944"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 To: Drew Adams , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 11 21:21:20 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qUXhG-0009MF-PP for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 11 Aug 2023 21:21:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qUXgh-0002IS-Rm; Fri, 11 Aug 2023 15:20:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qUXgg-0002IK-PR for help-gnu-emacs@gnu.org; Fri, 11 Aug 2023 15:20:42 -0400 Original-Received: from mout.kundenserver.de ([212.227.17.13]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qUXgf-00067I-0f for help-gnu-emacs@gnu.org; Fri, 11 Aug 2023 15:20:42 -0400 Original-Received: from [192.168.178.61] ([89.247.171.239]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1McHM2-1pwIrm492C-00chvq; Fri, 11 Aug 2023 21:20:35 +0200 Content-Language: en-US In-Reply-To: X-Provags-ID: V03:K1:HVKe+OYPz65QaCRJKEpOXElqZYdIjWo0O2904Nmj1dGWm9ZYq/Q 90uLJgePmgKepHsBrfnxHrUSlQy6sZxxCARNxwbEv+4Xqj1LXLvyB67c+QLxH6t9xSyjd+Z GNp50fOiPa8BaJ0TaHPGLON14IKBgofvVQWrIBgLKSCFAOCDUAnNcRBpQjHpuFZh4SIpX6+ ZGTsAOieKUpdEX0OV9KlA== UI-OutboundReport: notjunk:1;M01:P0:2K4U9wUN0sg=;zhOMjQNczh5C337a0SRIKwJMx75 OE5hCH3atrlb4vNFBkxTEABwnCfip0NIuEfwpZjqRZf4Dg4jWBekFQNqpfCfn4b/fdXV5GAe6 qEyARurPju9OPWNP2izv6J3dULef8Ou40AGNNry9AbXk0hCIPH0gXxhlSO0amjoWmGTzMVjg+ M6iYg6TgNSofhGQJ88gPJXFypyon8BmCQSLEh5sa5kP4Pg4ztsheBIlFtVBmqvsnAFv7U8c7b TvNvoVFusSejo/4tzyByoSDvhwJ7Jb+WClLV5iu97JbghhjskREHUUMotKovDJm1d3rNrSIr3 1RPbbYih2LlW3Yn5jCcawFCcBW9x2cw70adYAvu9UVls7R/8reXvvnTBf9B9cRueiZqOydw1N QR+aP8TQH8KO4PUUStgG2pjwcmYPejnFEejcgNk988eDmdTM6Mm+Fbl1QctCA0RNRWAmrZL5N Bk39DxdWpJUh2x10U8lgEs4YGSCDHxQPrbep41f0xi9DLSkxlDywj4x3v/XesOjFxAe7m6Cnm CtEvH+rczH1Jam52nbTwQxS9uSVeLznkIbWruUBIa6Qns6DTizRgBpw16guH5HRji5uMWQPVB jL6i/+Y6+u+2QpkoTtW7JQqVBNSzuleeVhSPStFxXljj7HRnEByoFz4pJIdS7xLa/5XSjZmTy A0iWKkoLi4dB6+u6To4fz6zxOLAcBLohZdexRRJoMJQ/M3xhQXkF2bhKzBRi+4ol5jYS7ObLr lYO8DiZeC4oez3FQ05WHyMbPzmrI50nv7JpaUrt3SYpZQ3CYq4RosDByycAX+F6B5Jq+m7zz Received-SPF: pass client-ip=212.227.17.13; envelope-from=andreas.roehler@easy-emacs.de; helo=mout.kundenserver.de X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.972, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144759 Archived-At: Am 11.08.23 um 19:43 schrieb Drew Adams: >> M-x forward-sexp RET works from the beginning of the first line, but >> does nothing from the beginning at the second. Are there reasons for >> this? [ asdf ] . > The syntactic definition of "sexp" depends on the context, e.g., the > current major mode. Without knowing how a "sexp" is defined in your > context, we can't help much. That said, trying it in a Lisp mode tells > me that an error is raised when I try it at the beginning of the > second line, because: Debugger entered--Lisp error: (scan-error > "Unbalanced parentheses" 450 459) scan-sexps(450 1) forward-sexp(1) > funcall-interactively(forward-sexp 1) call-interactively(forward-sexp > nil nil) command-execute(forward-sexp) IOW, the `(' char isn't > balanced with a `)' char, so parsing to the end of the `[' sexp isn't > possible. let assume fundamental mode, cursor at opening bracket: what puzzles me, with [ asdf ] it recognizes the opening bracket. In such a case, it should not look inside, just travel onto the closing one. But with [(&asdf] it fails.