From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: Emacs default bindings Date: Mon, 27 Sep 2021 17:54:19 -0700 Message-ID: References: <46353190-1190-495f-b15e-22980159b3ab@yandex.ru> <83y28mp0rb.fsf@gnu.org> <51a363db-fde7-791d-cf8d-98ac601d62ee@yandex.ru> <57ca4d78-2339-201d-edce-678c9b003a99@yandex.ru> <01341bd6-b94b-4f94-1461-405e723142ad@yandex.ru> <8735qmjklm.fsf@localhost> <87ilzi86h7.fsf@posteo.net> <875yvh9anq.fsf@posteo.net> <83o899yjh2.fsf@gnu.org> <2aed65dd-bcec-8e0e-e48b-7664a041f98b@yandex.ru> <3c4c22a2-b81f-a47b-a836-d52d8eeacdb4@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24719"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philipk@posteo.net, danflscr@gmail.com, lokedhs@gmail.com, yantar92@gmail.com, emacs-devel@gnu.org, monnier@iro.umontreal.ca To: Dmitry Gutov , rms@gnu.org, Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 28 02:56:01 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mV1Pd-0006H5-DH for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Sep 2021 02:56:01 +0200 Original-Received: from localhost ([::1]:50206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mV1Pb-00038Z-DN for ged-emacs-devel@m.gmane-mx.org; Mon, 27 Sep 2021 20:55:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48498) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mV1O7-0002LW-NL for emacs-devel@gnu.org; Mon, 27 Sep 2021 20:54:27 -0400 Original-Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]:41848) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mV1O1-0003ez-V3; Mon, 27 Sep 2021 20:54:27 -0400 Original-Received: by mail-pg1-x52e.google.com with SMTP id k24so19451499pgh.8; Mon, 27 Sep 2021 17:54:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:in-reply-to:references:mime-version:date:message-id:subject:to :cc; bh=hMR+xnHzR+PAoNaTi5jMG+SUJqMIezFuSF88fwmLK1M=; b=orZA+ZZnNchBl6UsIEDDYT2nj4zDHtHBdBDiaYV3PL1sF2i0V4SZGy7qFKxjSLN8xZ JMKWLEHWJ6yDa3tjakiWs14aQ0plaoHUu5OQjf4h7fbxVy6X0oFUC6mnOCgS9w09O/sJ rl3eOLCIhSifC9UvSpe1vzaMQciO+Y84j5KWsf8l40QqdraAXq70TD+H19cIUZVh2Nvp eyIuIVfd8mVbmQyR7ymVqG+ERLuSYspWEDmp1iZP7UUJlyxOWdkdL8HLjopRdQ/4+KJG QKxmnctvjOccT8zvlnpZtoWXEUwJi45L/ikCUY58Ltbfjl9jZqoz6TcO34bw8BLOWj7V RVsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=hMR+xnHzR+PAoNaTi5jMG+SUJqMIezFuSF88fwmLK1M=; b=H1FyAS7BY5lKXCO+ighGG94HcjuOrbua1MtOYZZJ63WMfYHHLyXFaurBJ1U7zXDY4k W/zucqNQEkNyLMm/zR/OtvNQZqTnF7q96q7dnfzV+4/Y1ZYuEOoGfSRKsBVPYbZ3wJnz AvNwiYaEenUooaHfVvk2rehBdh27dlGs+CjwtJsH5wcJakMpTEQgMZn2Z4YDxhsyB9OP RNIpNoTkgRbujQiuoYd5ggnyhvLkySd7R51UdjexQjnE8iEsQ3DKFb5fx43UCayW9pmx MA9L54OKUi1GUdZYvDL+qmtZhOEIsVyMHwBVf4qWAuSVv4o0LPuy3+NLy84S5UiU21pS sSYw== X-Gm-Message-State: AOAM530oajK4TfhVSSQBAOK8Ry56cssC3nE/eGZFunLwuL2N/aIGTCLN kMvdRr7+ZTISWZrFnJiXlwOynrcn5qtV8Ko983w= X-Google-Smtp-Source: ABdhPJycTzJRS/fDGvkGt6lN3Pr6g65u3oc0k3LztuUMYDKU6COUM4GaRwm4txFdVyQ4zWsE+mKmdZenHRvQLs5t3cI= X-Received: by 2002:a63:f946:: with SMTP id q6mr2178653pgk.42.1632790459861; Mon, 27 Sep 2021 17:54:19 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 27 Sep 2021 17:54:19 -0700 In-Reply-To: <3c4c22a2-b81f-a47b-a836-d52d8eeacdb4@yandex.ru> Received-SPF: pass client-ip=2607:f8b0:4864:20::52e; envelope-from=stefankangas@gmail.com; helo=mail-pg1-x52e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:275637 Archived-At: Dmitry Gutov writes: > But where does "code" begins and ends? > > E.g. LibreOffice Calc does paren matching when one edits in the cell: > https://ask.libreoffice.org/t/calc-parenthesis-highlighting/31988 It is indeed hard to know where it ends. Related to your example, in Org mode formulas paren highlighting would be obviously useful. But it's another thing when writing prose. Maybe `show-paren-mode' should grow the capability to only highlight parens in parts of a buffer? One thing we do know is that code probably starts with `prog-mode'. ;-) > Do you have an implementation strategy in mind, BTW? I didn't really think about it, no. Sorry. But I guess we can't just throw it in the body of `prog-mode' and call it a day...