help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Interactively edit a list of strings


From: Stephen Berman
Subject: Re: Interactively edit a list of strings
Date: Tue, 24 Jul 2018 10:51:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

On Mon, 23 Jul 2018 02:05:57 +0100 Ben Bacarisse <ben.lists@bsb.me.uk> wrote:

> Joe Riel <joer@san.rr.com> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]