From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: Interactively edit a list of strings Date: Sun, 22 Jul 2018 19:39:47 -0700 Message-ID: <87d0vepte4.fsf@ericabrahamsen.net> References: <20180722165540.209abe10@gauss> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1532313507 21832 195.159.176.226 (23 Jul 2018 02:38:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 23 Jul 2018 02:38:27 +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 Mon Jul 23 04:38:23 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 1fhQjt-0005Z7-6b for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Jul 2018 04:38:21 +0200 Original-Received: from localhost ([::1]:60033 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhQm0-0005Tr-03 for geh-help-gnu-emacs@m.gmane.org; Sun, 22 Jul 2018 22:40:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhQlT-0005TS-SE for help-gnu-emacs@gnu.org; Sun, 22 Jul 2018 22:40:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fhQlQ-0008E0-Li for help-gnu-emacs@gnu.org; Sun, 22 Jul 2018 22:39:59 -0400 Original-Received: from [195.159.176.226] (port=59433 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fhQlQ-0008Dj-EY for help-gnu-emacs@gnu.org; Sun, 22 Jul 2018 22:39:56 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fhQjF-0004sL-TG for help-gnu-emacs@gnu.org; Mon, 23 Jul 2018 04:37:41 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 11 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:EKyI7dMfrT9avOmdHTqk9vVCdHc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 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:117565 Archived-At: 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? You could try using `tabulated-list-mode', display your list of strings. Then you could write a short command to remove a string from the list and redisplay, and bind that in the local keymap. It's tiny bit overkill, but would make it possible to do a bunch of other stuff with the strings.