all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yuri Khan <yurivkhan@gmail.com>
To: joer@san.rr.com
Cc: Eric Abrahamsen <eric@ericabrahamsen.net>,
	help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Interactively edit a list of strings
Date: Mon, 23 Jul 2018 18:33:51 +0700	[thread overview]
Message-ID: <CAP_d_8XEG0q=grF1x0da4+_JmtW_yse8jYG6zV-kVdBSDg52gw@mail.gmail.com> (raw)
In-Reply-To: <20180722223956.4d8001cd@gauss>

On Mon, Jul 23, 2018 at 12:40 PM Joe Riel <joer@san.rr.com> 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 ‘m’, unmark with ‘u’, and 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’ll have to implement marking, unmarking and
act-on-marked-items-or-item-at-point.



  reply	other threads:[~2018-07-23 11:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-22 23:55 Interactively edit a list of strings Joe Riel
2018-07-23  2:39 ` Eric Abrahamsen
2018-07-23  4:21   ` Marcin Borkowski
2018-07-23  5:39     ` Joe Riel
2018-07-23 11:33       ` Yuri Khan [this message]
     [not found] <mailman.4060.1532303750.1292.help-gnu-emacs@gnu.org>
2018-07-23  1:05 ` Ben Bacarisse
2018-07-23  4:22   ` Marcin Borkowski
2018-07-24  8:51   ` Stephen Berman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAP_d_8XEG0q=grF1x0da4+_JmtW_yse8jYG6zV-kVdBSDg52gw@mail.gmail.com' \
    --to=yurivkhan@gmail.com \
    --cc=eric@ericabrahamsen.net \
    --cc=help-gnu-emacs@gnu.org \
    --cc=joer@san.rr.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.