From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: Interactively edit a list of strings Date: Mon, 23 Jul 2018 18:33:51 +0700 Message-ID: References: <20180722165540.209abe10@gauss> <87d0vepte4.fsf@ericabrahamsen.net> <8736waeg5q.fsf@mbork.pl> <20180722223956.4d8001cd@gauss> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1532345557 21869 195.159.176.226 (23 Jul 2018 11:32:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 23 Jul 2018 11:32:37 +0000 (UTC) Cc: Eric Abrahamsen , help-gnu-emacs To: joer@san.rr.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 23 13:32:33 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 1fhZ4n-0005WP-RD for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Jul 2018 13:32:29 +0200 Original-Received: from localhost ([::1]:33970 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhZ6u-0006KQ-EO for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Jul 2018 07:34:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52372) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhZ6K-0006KH-Tz for help-gnu-emacs@gnu.org; Mon, 23 Jul 2018 07:34:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fhZ6K-0006DE-48 for help-gnu-emacs@gnu.org; Mon, 23 Jul 2018 07:34:04 -0400 Original-Received: from mail-oi0-x22c.google.com ([2607:f8b0:4003:c06::22c]:36512) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fhZ6J-0006B8-Vp for help-gnu-emacs@gnu.org; Mon, 23 Jul 2018 07:34:04 -0400 Original-Received: by mail-oi0-x22c.google.com with SMTP id n21-v6so502355oig.3 for ; Mon, 23 Jul 2018 04:34:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=o1tUoho51S2QhY8Y4iiTrwQvJCXCNvkY+MprllEW6gk=; b=RApEBtRWH7auCvULivQrOjuWqnBs3CbIuO4t4dT31Ca6bHVrYE7617jPa414JpdMUZ vlfJKX77F2a440IQzgQS20ZHYQ71AGQx+p+2UV6PTdRBl9V3QOdzwzEdHEDR7bkBpqhe DkSQQYia5RrDSY9sf3reiSS/HINg5aSJI7xJ9DPk3HVkm/3riQdCKIMO+hdV0gqLF3jp zc9mm+bbw/gtwDR5Hb5Cf393JwFBPiVsgQeF74tu9aKnD59om9dFAWV601Xl7IMPDT/U NWnbCmdhiOZpbCMdOSY8ZHFu270WOjP5sfH9acAj0dcvPIuptTrE7tZcyW0c2mUvLWcl zboQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=o1tUoho51S2QhY8Y4iiTrwQvJCXCNvkY+MprllEW6gk=; b=H+Jqu6VkBCx6lf3NxcguQt16pXVVIiGLYV5uoYUK9lqcdgjFhX8ZafriFe8UBP1cpi nKUZSYDLElaU5JlWjGc+gcRb2VkjVdcRqoJI7VVoiYQ7W017ZS3NXzMwM9imJbLxK4mN NMg6N1crUVor82jRJJEWt06jb1cUF2CzWrnvWTBN7q4Mh2cThsazv58sOcHGp1KsLyf8 JDybdFnlZP5qB4CylF4eDKyvbZyDhRklqBPe9PvLVmSq4mpvZJSjMHOShHSMBDypIut4 iyOzJa0dgiQTwa2KQjm+nLDaZ+XKauHjX7lRGUpH8q3EGVYQck83MZKIeeagbANqWmK4 XyCA== X-Gm-Message-State: AOUpUlFNvoQUkARQXKhvqyqJ7tNtT0rMjmP9plETh4BahUYQFFMfnidL hqh+Po/hvtZcqnH8YQa2KRJQ/385Peh3wfW8QqU= X-Google-Smtp-Source: AAOMgpfQTeExBW7sz3A3q3x1H+sPpsm2+hXA5cZH9Th3yMsuX0Itm+1PLwtyqGrGtl3PwL/7sxF/dGD7sXu8G85vgFY= X-Received: by 2002:aca:accd:: with SMTP id v196-v6mr7860935oie.125.1532345642875; Mon, 23 Jul 2018 04:34:02 -0700 (PDT) In-Reply-To: <20180722223956.4d8001cd@gauss> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::22c 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:117572 Archived-At: On Mon, Jul 23, 2018 at 12:40 PM Joe Riel wrote: > > It's part of a syntax checker/corrector for the Maple language. A > tool (mint, analogous to lint) generates a buffer of the variables > that are undeclared in the source. I grab the list and allow the user > to either quote them in the source or declare them as locals or > globals. Being able to delete selected items from the list allows > performing a common operation on the remaining. The typical case is > that almost all the variables should be quoted, but a few should be > declared as locals. For that case, there is a better UI idiom. You could let the user mark multiple items with =E2=80=98m=E2=80=99, unmark with =E2=80=98u=E2=80=99, a= nd perform common operations on the marked items. For instances of this workflow, see Dired, Ibuffer, and bookmark-bmenu-list. The easiest implementation is probably still tabulated-list-mode and you=E2=80=99ll have to implement marking, unmarking and act-on-marked-items-or-item-at-point.