From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: Re: Interactively edit a list of strings Date: Tue, 24 Jul 2018 10:51:41 +0200 Message-ID: <87wotlj9sy.fsf@gmx.net> References: <87y3e27ocq.fsf@bsb.me.uk> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1532422211 10801 195.159.176.226 (24 Jul 2018 08:50:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 24 Jul 2018 08:50:11 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 24 10:50:07 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fht1C-0002gC-Ir for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Jul 2018 10:50:06 +0200 Original-Received: from localhost ([::1]:39007 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fht3J-0000uT-Dz for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Jul 2018 04:52:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fht2p-0000uK-Vh for help-gnu-emacs@gnu.org; Tue, 24 Jul 2018 04:51:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fht2m-00026t-VG for help-gnu-emacs@gnu.org; Tue, 24 Jul 2018 04:51:48 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:55715) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fht2m-00026H-Kq for help-gnu-emacs@gnu.org; Tue, 24 Jul 2018 04:51:44 -0400 Original-Received: from rosalinde ([84.63.11.191]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Lj1Xa-1gHUhs0J9K-00dC5N for ; Tue, 24 Jul 2018 10:51:42 +0200 In-Reply-To: <87y3e27ocq.fsf@bsb.me.uk> (Ben Bacarisse's message of "Mon, 23 Jul 2018 02:05:57 +0100") X-Provags-ID: V03:K1:pWq3HOWQuzLUg8W/o23xKJISlptgUZ0yj4wxo13cLE+N2MrsnFq dSdUnyJhgD64nk6RUeQXI+5rPECTsFpBBr6i3fHvZaYL707kwjHxTDAmYaOU+71/enOkhLK K3ISf+LqjJ34BCxILRzmyPHGMxjlEkc+Nlv85qnwbv5K7+i2qpqfNa9s1shIZIoF+/jIWpW H/qgDdZfck0FtzzGwhMcA== X-UI-Out-Filterresults: notjunk:1;V01:K0:0euznsAo7F4=:kwcqnJIFrrn42m4v6WMFOh pzPXU9Gtabje5ZRXgN5zomYEw8Nb5HvHsJQV+uYjNxB6v7q6RvF0YJyj00cibjr4CaThAJrJz YIGsAzy85Ea26QAs+bFgOc1rJmXJnL+QiFEUPJ4TaWdeTEW7M7eK+6IY3cUSY5drG0lrWV1qn AseiruNwMTzXG2KZ9eCgq2fb+SHPp2Qh3yl8/A1gQ/kyFMW8aKDFSzwgXjnwcWMrdLY6MM8es PMcj6c9BTNeb8eG3B7DH6AVfb7/JAaBczy+vFmFa22z22UjTW4v45zN3mMMEhdvlWEqeuFGWE HJxQ9XIaiR6uxjDV/4WbSyACi8hTChvsykt9yuyia2BBdRJS8fYkqm0MgxbLnebio8QbEqpIh v3ebFKBziB1nr6JmzDJssOwWK6Q44ZCxkkLDAvh2QdHBa25CBa++yZZ2wjFR9j0ZCc032bOse zRNeNSMuMlRflQqqM5eiKGFUcy+Z8PWexKTS8MhGyqI5ZAlCA4MbD9zZWBcHwnCHGy77k/JIg nmBpN4n2/sb1YlDrP1mZlNl6S3T4FX54Xa79wlPLm78JVqIefi3mClp2+LATegiUT66MNnKqO Z833RfhlYmOlzAVESF8iYc01fiKCQfISIBlkKPkLMgzV9/i33zu/Aia3l3PmmI4QryXXHGYG3 BtoSspsT+9UoJ6NTrAV5NonApC2x3FcCOyPVIdcUgIqRxVmsPE3rTEqi21/1NNGbnb8aMV5Pi 7SdZmPos/7WXRkOcNQmCKnA/BJBIjn3TLpPW0ufRPuznrhqspRwK+PEs0hhF9JG5Hm6sglE9 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.19 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117577 Archived-At: On Mon, 23 Jul 2018 02:05:57 +0100 Ben Bacarisse wrote: > Joe Riel writes: > >> Am looking for a good way to interactively edit a list of strings, >> that is, to allow the user to selectively delete strings from the list. >> Any suggestions on how to implement this? >> >> My first thought is to write each string on a separate line in a >> temporary buffer, allow the user to edit that, then reassemble the >> buffer into a list, however, that isn't ideal, it allows too much >> freedom to modify the content. I could restrict the allowable >> commands to deleting lines, but am wondering if there is a better way. > > You might consider using widgets: That's what recentf-mode does to delete items from recentf-list, see the function recentf-edit-list. Steve Berman