From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pierre Rouleau Newsgroups: gmane.emacs.help Subject: Re: [External] : forward-sexp Date: Fri, 11 Aug 2023 15:47:17 -0400 Message-ID: References: <53741ea9-b3ac-67a6-519f-b8977df30bf9@easy-emacs.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8353"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Drew Adams , "help-gnu-emacs@gnu.org" To: =?UTF-8?Q?Andreas_R=C3=B6hler?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 11 21:48:02 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 1qUY78-0001zp-2y for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 11 Aug 2023 21:48:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qUY6f-0008KB-AH; Fri, 11 Aug 2023 15:47:33 -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 1qUY6d-0008K3-8V for help-gnu-emacs@gnu.org; Fri, 11 Aug 2023 15:47:31 -0400 Original-Received: from mail-vs1-xe29.google.com ([2607:f8b0:4864:20::e29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qUY6b-0002mS-LD for help-gnu-emacs@gnu.org; Fri, 11 Aug 2023 15:47:31 -0400 Original-Received: by mail-vs1-xe29.google.com with SMTP id ada2fe7eead31-447823dd96fso723139137.1 for ; Fri, 11 Aug 2023 12:47:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691783248; x=1692388048; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=LSXOdzAJeFjzAtTkQ23YgsH0MAROMTzOwCcrG1jjHLk=; b=ol1LxhQEFo6so7EKbdAbFjeLhoRB6bqarZnoc7Au0UfrJob16uzgf16u7tZwM33Bx/ U+AYNQ8x6VFYnI+wIPKsJmKWA2/6g8tOhvDBm07Ym4hpWXUcSTO78isSvuuLhNgoKfpt sls9wXtn4NDVj4mwGk1ACuq3XaudHmQpP7AMU/6/JvGDXhUoxSqtXKxsFh2pcfQYI5qm fa0mP9+YOdb5l9u7kg7UnkRRhvu0J0BuFgajv1Y3swVFe2wicSJDD1T/zNIrnobXTWWs q43QFMmOuZqgHOJW1DLs2S1Iw+sYsmQ0d+y0BSetq0YtVnYhFutq4Be6VCm6nSmNq2sB 1Trg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691783248; x=1692388048; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LSXOdzAJeFjzAtTkQ23YgsH0MAROMTzOwCcrG1jjHLk=; b=icKZSrlbdisfNwnKU9JLl4tT8+0wLg/a1kwtCKIJOUELKI1PY7NW9fcc83jlTxk6nq NWlu1vpZzPeFJEBZbpq86463L05RFUK2PYXKOj1IXG98/RiCfVbL98+HIXh5oYgIhtpI 7rCpmqrqrL7WTRoUp8yzu8oUwoyeuRe+708Ofk9kTo90FxPKhXlbM+mYgzHZTEnQQLC4 2RvRU8UyuNtVF8hu9ok8PE4MOhhUFM/LDPf11CtJmtDc53IRDsSfJevXJ2WSZilyg8v1 uEgK3vzU8RNL8x2qNZ671knzuRsEl82lapE0JXOHpNTuQ93tufiLua3WKDdN57k5OH4K dxmQ== X-Gm-Message-State: AOJu0YyTt4Hj1aFNF2GGE5ebfkT2brtVJCpJLlgC521XuuvG+C+/s7cp 58Ah3A+jIZv8CSRacx4kzIF//ZvEP4vEcVfXiUw= X-Google-Smtp-Source: AGHT+IHBJdTKWcVlO7dnLtLTR9g144NDwoR9OyTj1K/5m9oDpHeTjIOaT7HUd7+z1nVwe/Iw403Bk/igtsm6N3LH1Rw= X-Received: by 2002:a67:ec44:0:b0:443:5d8e:de22 with SMTP id z4-20020a67ec44000000b004435d8ede22mr1526312vso.24.1691783248335; Fri, 11 Aug 2023 12:47:28 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::e29; envelope-from=prouleau001@gmail.com; helo=mail-vs1-xe29.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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:144760 Archived-At: Hi Andreas, Does it work with quotes? For instance: ["(&adsf"] On Fri, Aug 11, 2023 at 3:21=E2=80=AFPM Andreas R=C3=B6hler < andreas.roehler@easy-emacs.de> wrote: > > 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. > > --=20 /Pierre