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?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#43489: [PATCH] Don't signal scan-error when moving by sexp interactively Date: Mon, 21 Sep 2020 18:25:41 +0100 Message-ID: References: <64C7CB3A-36F2-4988-9FF9-B99115C9ED13@acm.org> <87k0wri5xq.fsf@gnus.org> <0C5EE050-CE0C-4D3C-9467-D52A0142397A@acm.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000069183805afd62461" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23184"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 43489@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 21 19:26:17 2020 Return-path: Envelope-to: geb-bug-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 1kKPZv-0005sT-4i for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Sep 2020 19:26:15 +0200 Original-Received: from localhost ([::1]:47006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kKPZt-0003dG-Rc for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Sep 2020 13:26:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42498) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kKPZi-0003cz-6h for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2020 13:26:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44525) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kKPZh-0006lE-TX for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2020 13:26:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kKPZh-00035Z-PA for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2020 13:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Sep 2020 17:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43489 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 43489-submit@debbugs.gnu.org id=B43489.160070916011866 (code B ref 43489); Mon, 21 Sep 2020 17:26:01 +0000 Original-Received: (at 43489) by debbugs.gnu.org; 21 Sep 2020 17:26:00 +0000 Original-Received: from localhost ([127.0.0.1]:56071 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKPZf-00035K-TV for submit@debbugs.gnu.org; Mon, 21 Sep 2020 13:26:00 -0400 Original-Received: from mail-io1-f54.google.com ([209.85.166.54]:34698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKPZe-000356-1Q for 43489@debbugs.gnu.org; Mon, 21 Sep 2020 13:25:58 -0400 Original-Received: by mail-io1-f54.google.com with SMTP id m17so16310143ioo.1 for <43489@debbugs.gnu.org>; Mon, 21 Sep 2020 10:25:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=j+C3yylZsEdclTt3am2YymHBx+z++qP6o/eIzcLH7kk=; b=BEaqm+0gpT3Sz9Ornz5g11KyhB5nit7te6qc9deWWgocmQ3VA9DT3x/BSB+wXQaOad GVRr+UxIroH1SI1RcUdwlZOM8fXzDdKUfIKg460RjW3Oyh6TondohCa2bB/lDzbn9Wpb Ue6v4W7leJY3TQfNNoGqCRDUm+WPxl48rzC3MzZixIjl2+SRUHI8MXdYkkLDuvoI+Ig8 tp/X2i+MO4GKQtTLKqDpqwGgrurhcy8pxFPjs2lIAn5XVo9EeX/iFw4jQfix7BPNeTiH bO0euZou5lFS0mFrAieiBIZ9LFa4SX3ghUmoZ+N4xPTpXk14pyIPrrXp4ae3q7rIjeoZ Y1wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=j+C3yylZsEdclTt3am2YymHBx+z++qP6o/eIzcLH7kk=; b=p4pqwCgfxyBT1sstP6UKWMRjKg5AgtjqLzo3hoiLw3aKWt6MDKVa+idNdBxyby7Agm lt6KQWgpk4dF2B74CV0RWtC/suejJ6ORuLEidF9aroAbhC0qOLkQg3Mam1qqchwTbUWo iE4IDFX16ODwGNZaWjmMJauZrZIEDfkEDRVeHsXys2dAkBsnWrW7yDDAsHZlNmaw3eMc bJAXRxzYxMD/lIW+ZyV5x+2STKZ75eJOnlEA5ALqI1BAJMV5z01BXd4QDK/XSu0lfdk4 cI4KaXnzG6ghSbo9P4mZBdABEsJF+5mCA6umd+23eupgnhdewgDet7sa5hVu/NM4Mtp4 kgBg== X-Gm-Message-State: AOAM533FoCR4K1fF8xp/VIw+paUP0yF58UaqE987zcJpNLHyaIpJ542u 2vtl67NP67Ew7o6DbL2HS+yenXpMLID9+UbIW6E= X-Google-Smtp-Source: ABdhPJysBU8Xpfgzhq3r2ZUmrYsXRkQcTcsCbK7RuEwDQGTqxRIyZ3v/SBVKUDI63fOaa38fVeKhJ5ZJYgNkuWCXxgE= X-Received: by 2002:a02:cbda:: with SMTP id u26mr880050jaq.71.1600709152281; Mon, 21 Sep 2020 10:25:52 -0700 (PDT) In-Reply-To: <0C5EE050-CE0C-4D3C-9467-D52A0142397A@acm.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:188623 Archived-At: --00000000000069183805afd62461 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Mattias, I haven't looked at your patch, but I hope you are taking care with the C-M- family of commands. It is not only mark-sexp that has that property that it warns about something potentially off screen. Many other C-M- commands also have that. Think M-7 C-M-k for example. I hope you understand you are touching a cornerstone of Lisp-related (actually, not only Lisp) editing here. So I think I can get used to differently worded messages, but the errors themselves are pretty useful. Jo=C3=A3o On Mon, Sep 21, 2020 at 6:12 PM Mattias Engdeg=C3=A5rd w= rote: > 21 sep. 2020 kl. 10.49 skrev Jo=C3=A3o T=C3=A1vora = : > > > If, however, > > the message is "Unbalanced parenthesis", I know something's up > > and have to fix it. > > Thanks for mentioning mark-sexp; it was accidentally omitted in my patch. > I agree that this particular condition in mark-sexp merits special > treatment; the reason for not being able to extend the mark may be far fr= om > the cursor and even off-screen. > It is probably worthwhile to communicate the "unbalanced parenthesis" cas= e > differently. > > For those wondering what this is about: the condition arises when C-M-SPC > is pressed with point before an unbalanced left bracket. > > --=20 Jo=C3=A3o T=C3=A1vora --00000000000069183805afd62461 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Mattias,

I haven't lo= oked at your patch, but I hope you are taking care with
the = C-M- family of commands.=C2=A0 It is not only mark-sexp that has
= that property that it warns about something potentially off screen.
Many other C-M- commands also have that.=C2=A0 Think=C2=A0 M-7 C-M-k for=
example.=C2=A0 I hope you understand you are touching a cornerst= one
of Lisp-related (actually, not only Lisp) editing here.
<= /div>

So I think I can get used to differently worded me= ssages, but the
errors themselves are pretty useful.

Jo=C3=A3o


On = Mon, Sep 21, 2020 at 6:12 PM Mattias Engdeg=C3=A5rd <mattiase@acm.org> wrote:
21 sep. 2020 kl. 10.49 skrev Jo=C3=A3o T= =C3=A1vora <jo= aotavora@gmail.com>:

> If, however,
> the message is "Unbalanced parenthesis", I know something= 9;s up
> and have to fix it.

Thanks for mentioning mark-sexp; it was accidentally omitted in my patch. I= agree that this particular condition in mark-sexp merits special treatment= ; the reason for not being able to extend the mark may be far from the curs= or and even off-screen.
It is probably worthwhile to communicate the "unbalanced parenthesis&q= uot; case differently.

For those wondering what this is about: the condition arises when C-M-SPC i= s pressed with point before an unbalanced left bracket.



--
Jo=C3=A3o T=C3=A1vora
--00000000000069183805afd62461--