From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: dalanicolai Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: toc-mode Date: Mon, 26 Sep 2022 06:55:13 +0200 Message-ID: References: <874jwvsmp8.fsf@gmail.com> <87o7v3dtkk.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000ea10de05e98d55c8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1299"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Yuri Khan , Visuwesh , Emacs Devel To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 26 06:57:16 2022 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 1ocgB9-0000AA-2g for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Sep 2022 06:57:15 +0200 Original-Received: from localhost ([::1]:53816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ocgB7-0003G1-29 for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Sep 2022 00:57:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49250) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocg9Q-0002Yb-AY for emacs-devel@gnu.org; Mon, 26 Sep 2022 00:55:28 -0400 Original-Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]:40476) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ocg9O-0000UQ-8P for emacs-devel@gnu.org; Mon, 26 Sep 2022 00:55:27 -0400 Original-Received: by mail-ed1-x52c.google.com with SMTP id v2so6498759edc.7 for ; Sun, 25 Sep 2022 21:55:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=szjrxX71/Mc2wiRMVU+HSlrVBI1T0y66HympDq2Eo9E=; b=mcrlZJ/QmsXrFtHR0d6mWGvcOFFgX2zYKpcRD6FW0SqeopsEjfm7Wu9TixxS6BMNXu BtYc3l0hUVJNFyvCtokXWHt5LWdW6YuuTDwKVwy3MY0+TwzbB/1xiGFqjiwd4mSftnh5 zFkr+8iVz+/pzsJspe5S6k79UIPia/sQOPgL50nyTB4q4XDCJWvqnzE9MymJq8G2NEir U+Qw8bl3BqGZS1/hqaxfzUVbAoGBaThFarluuTftds/n6ajUEgPv/VNkaPrt3G2/byH7 p4hXQWYa94erXuraKZIYDyvb3yes4B2EiYAPmrqX0l4XRujabvvfHs1mHUh8BbInJFTi L+CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=szjrxX71/Mc2wiRMVU+HSlrVBI1T0y66HympDq2Eo9E=; b=nEeFcDykC8vpE20+cVLoqCwgtCznPbEyOXLArSyb1wNSNZ7j+J5w+re7nI1FJ+3HR3 8XEyoTxVRtymdLuMFuleckat5pVqQdnoUOomT7QHCGZKS4ILVkqXbbt9IS9lhDW4iPg0 cW8ZKOFq0J/wllZDZ/52XRHQHqOJu48Cjx+rHHrUKP0sQZbKsvvwm3oivUhBtigI0qCl CFM+hhcDWaH1VDismMok2TJaODxAiSsMCZE/cWJGY0m5EhybL0exON2IhnQQLPS2I/Xi eeTt5GMKXll0n3SqbD8OwffopwIqTgfEFBwxDKXTn57y40xCL0iaAlP4gn7fse1VCNeF Bh7Q== X-Gm-Message-State: ACrzQf11GosYCA+08ZzXNf9zLTvU2U0bHtGjgHnQ0nO0aPuUWyyVkDYD gQ/b2URpGczoovH6VNCbi3ccCJqmn7ix0OCjSE4= X-Google-Smtp-Source: AMsMyM5xGDe7MgCbGRMD5me5r9qf9gm8Atsd83oRacvZEI1lZz0vHIsceoh9omhBYW2dFGikpD9z4XPL1Bo3I1cg4mI= X-Received: by 2002:a05:6402:1247:b0:456:eb22:1978 with SMTP id l7-20020a056402124700b00456eb221978mr11514295edw.374.1664168124615; Sun, 25 Sep 2022 21:55:24 -0700 (PDT) In-Reply-To: <87o7v3dtkk.fsf@posteo.net> Received-SPF: pass client-ip=2a00:1450:4864:20::52c; envelope-from=dalanicolai@gmail.com; helo=mail-ed1-x52c.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, 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-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:296247 Archived-At: --000000000000ea10de05e98d55c8 Content-Type: text/plain; charset="UTF-8" I have changed the binding to just `r' then. I don't remember why I chose `r`, but I guess it stands for 'replace'. As I am using evil, I prefer if the same bindings also work in evil, without further configuration. However, `r` works perfectly fine for both here, so it looks as a perfect alternative. On Sun, 25 Sept 2022 at 23:37, Philip Kaludercic wrote: > dalanicolai writes: > > > Well, I am an evil (vim keybindings) user, and only know very few Emacs > > default keybindings. > > Also, I guess search functionality is not very important when simply > > adjusting page numbers in a table of contents. > > One of the nice things about Emacs is that everything is a buffer and > can be treated as text that you process just like any file or non-file > buffer. If someone wants to search a buffer, I consider it improper for > a package to inhibit them from doing so. > > (I haven't checked, but I am guessing that C-r is supposed to be a > mnemonic for "refresh"? It would be more conventional to bind this to > "g", that `special-mode' binds to `revert-buffer' -- this also means > that you can just use `revert-buffer-function' directly instead.) > > > But suggestions for improvements are always welcome. > > > > On Sun, 25 Sept 2022 at 19:13, Yuri Khan wrote: > > > >> On Sun, 25 Sept 2022 at 23:49, dalanicolai > wrote: > >> > >> > As mentioned in > >> > the instructions for the tabular mode the contents of every field in > >> tabular mode can be > >> > updated by reading from the user through placing the cursor on the > field > >> and then pressing > >> > C-r. > >> > >> Do you seriously rebind C-r away from isearch-backward? > >> > --000000000000ea10de05e98d55c8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have changed the binding to just `r' then.

I don't remember why I chose `r`, but I guess it s= tands for 'replace'.
As I am using evil, I prefer if the = same bindings also work in evil,
without further configuration. H= owever, `r` works perfectly fine for
both here, so it looks as a = perfect alternative.

On Sun, 25 Sept 2022 at 23:37, Philip Kaluder= cic <philipk@posteo.net> wr= ote:
dalanicolai= <dalanicolai= @gmail.com> writes:

> Well, I am an evil (vim keybindings) user, and only know very few Emac= s
> default keybindings.
> Also, I guess search functionality is not very important when simply > adjusting page numbers in a table of contents.

One of the nice things about Emacs is that everything is a buffer and
can be treated as text that you process just like any file or non-file
buffer.=C2=A0 If someone wants to search a buffer, I consider it improper f= or
a package to inhibit them from doing so.

(I haven't checked, but I am guessing that C-r is supposed to be a
mnemonic for "refresh"?=C2=A0 It would be more conventional to bi= nd this to
"g", that `special-mode' binds to `revert-buffer' -- this= also means
that you can just use `revert-buffer-function' directly instead.)

> But suggestions for improvements are always welcome.
>
> On Sun, 25 Sept 2022 at 19:13, Yuri Khan <yuri.v.khan@gmail.com> wrote:
>
>> On Sun, 25 Sept 2022 at 23:49, dalanicolai <dalanicolai@gmail.com> wrote= :
>>
>> > As mentioned in
>> > the instructions for the tabular mode the contents of every f= ield in
>> tabular mode can be
>> > updated by reading from the user through placing the cursor o= n the field
>> and then pressing
>> > C-r.
>>
>> Do you seriously rebind C-r away from isearch-backward?
>>
--000000000000ea10de05e98d55c8--