From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mauro Aranda Newsgroups: gmane.emacs.bugs Subject: bug#6419: A suggestion for easier editing of lists in Custom buffers Date: Wed, 14 Oct 2020 09:14:26 -0300 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000ad9a1a05b1a079d9" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31882"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 6419@debbugs.gnu.org To: Lennart Borgman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 14 14:23:50 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 1kSfor-0008Av-Nw for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Oct 2020 14:23:49 +0200 Original-Received: from localhost ([::1]:34114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kSfoq-0007Nv-Nx for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Oct 2020 08:23:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55624) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSfgM-0008Ve-Ux for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2020 08:15:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38786) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kSfgM-0003qN-IC for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2020 08:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kSfgM-0007ig-D1 for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2020 08:15:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Oct 2020 12:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6419 X-GNU-PR-Package: emacs Original-Received: via spool by 6419-submit@debbugs.gnu.org id=B6419.160267768529635 (code B ref 6419); Wed, 14 Oct 2020 12:15:02 +0000 Original-Received: (at 6419) by debbugs.gnu.org; 14 Oct 2020 12:14:45 +0000 Original-Received: from localhost ([127.0.0.1]:50332 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSfg5-0007hv-A3 for submit@debbugs.gnu.org; Wed, 14 Oct 2020 08:14:45 -0400 Original-Received: from mail-wr1-f44.google.com ([209.85.221.44]:39578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSfg3-0007hi-GL for 6419@debbugs.gnu.org; Wed, 14 Oct 2020 08:14:43 -0400 Original-Received: by mail-wr1-f44.google.com with SMTP id y12so3571784wrp.6 for <6419@debbugs.gnu.org>; Wed, 14 Oct 2020 05:14:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=En/m5QTpFM4yvZgbp5w0c8Kqy/whvk42PvA3N5P0Lzs=; b=dayw6me7cf+Wyng/kSpFx5D2sDt5+1m6CR5VWM0NX9jCxgVU0EJa9dwOftondnGF/H SiUJq66tqbLvEwcaQD4D6NPDm8/wqM24BqtupqAZiPH5jXxe6EhX8RSAz0mLo8iWQ1Vk hQpq2hjfxUBu/RbjwGzdKBgH0Xh0JMhkuvMLxKJGrFr34DJyHG9AxnXVotNriXxAoE/K d/GS0k4Q5+YH33uMk0W7oTFyUxYnG7kRnmcUTGe3y/DFjUAm2ZAvO6kt+xcFZAII30oc f+QXQnlLAQAzaXqbgIlafOQNinS/PiN/JGhtmGs15npJrjONDJOU88+h7a8Qg8PfkGoN p2hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=En/m5QTpFM4yvZgbp5w0c8Kqy/whvk42PvA3N5P0Lzs=; b=mujcXUAipf8PhGAdeAIRF0epfbiDGp4Az1vOCSysZ0xqpHRSudvTOTNgDthcgNrfBB zpqmYjUOChmQTHp/9evtOQIRjxwkNqYX+WcxOfsBCCXZDrHI+8hAGOg6kV6nY24IQze7 6ECWnMLaTUt9zP9uDDkIgp0L8zlMxxz6KLn1qdgCK4PDZtvFXB7iRllc0Jg8WJ/m4IH0 h0pUtRM5u/9QUi6bo+IQoMoVZ5wzJkKIMU7xu8M8J3d6BtkjzDmwMnaumgMXDOv5MaFz lE9M1hujdyN155/4gfWVsNuk1XjpuPvQ2Lx56tS9SXI9q+BrsafoV/VdYlQyX5bodVWU CP9g== X-Gm-Message-State: AOAM532iTpDPpzO5UQ/DceBo+If2wo5yXDxhDx0ebIOBIIVFQPVz9ygo BzJ3GPZOwdeajgjTIXZMpm8wml0pDVR3xrXHeb0= X-Google-Smtp-Source: ABdhPJxvd+KXMvMtOKQR2e8QZDtAD5asEZAA/mJmeW41/ovkzRkuWwFP2OaH1pRJrhDHZyErNagM1eVHsVBlWEqd9Jc= X-Received: by 2002:adf:ecc1:: with SMTP id s1mr5164757wro.120.1602677677855; Wed, 14 Oct 2020 05:14:37 -0700 (PDT) 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:190503 Archived-At: --000000000000ad9a1a05b1a079d9 Content-Type: text/plain; charset="UTF-8" Lennart Borgman writes: > Moving things in a list in a custom buffer is not very easy currently, > especially not if it contains nested lists. I have been thinking of > implementing some up/down arrows to permit moving of subtrees, but > that is also rather clumsy so I have refrained from it. > > > Here is another idea which perhaps both is more useful and easier to implement: > > A) When clicking on a [-] do delete a subtree save (a print > representation) of it to the clipboard/kill ring (beside deleting the > subtree, of course ;-) > > B) When on a [+] do add a new subtree give the possibility to paste > the deleted subtree in this position. > > > A is of course no problem to implement. B is probably not that hard to > implement either if one has the (sub)type for the subtree available on > the [+] button. This idea didn't get any feedback back then, but I think there might be value in it. I'd tweak it to delete/insert widgets, rather than using the kill ring. Any opinions? --000000000000ad9a1a05b1a079d9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Lennart Borgman <lennart.borgman@gmail.com> writes:

> Moving things = in a list in a custom buffer is not very easy currently,
> especially= not if it contains nested lists. I have been thinking of
> implement= ing some up/down arrows to permit moving of subtrees, but
> that is a= lso rather clumsy so I have refrained from it.
>
>
> Here= is another idea which perhaps both is more useful and easier to implement:=
>
> A) When clicking on a [-] do delete a subtree save (a prin= t
> representation) of it to the clipboard/kill ring (beside deleting= the
> subtree, of course ;-)
>
> B) When on a [+] do add= a new subtree give the possibility to paste
> the deleted subtree in= this position.
>
>
> A is of course no problem to implem= ent. B is probably not that hard to
> implement either if one has the= (sub)type for the subtree available on
> the [+] button.

This= idea didn't get any feedback back then, but I think there might be
= value in it.=C2=A0 I'd tweak it to delete/insert widgets, rather than u= sing
the kill ring.

Any opinions?
--000000000000ad9a1a05b1a079d9--