]> git.eshelyaron.com Git - emacs.git/commit
Allow moving members of editable-list widget, via delete+insert
authorMauro Aranda <maurooaranda@gmail.com>
Thu, 22 Oct 2020 11:52:42 +0000 (13:52 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 22 Oct 2020 11:52:42 +0000 (13:52 +0200)
commitc009a0a6f73bb61d2bd37f4acb8435b335ed2fa0
treef1eb818dff8a6f565e1fd9ab0bb969f3a699b3a3
parent954a4decfcc8e41084789516773b22d0adc11d91
Allow moving members of editable-list widget, via delete+insert

* etc/NEWS (Widget): Announce the feature (bug#6419).
* lisp/wid-edit.el (widget-editable-list-delete-at): Save into a new
widget property, :last-deleted, the WIDGET to be deleted.  Add
docstring.
(widget-editable-list-insert-before): If there is a recently deleted
child for the editable list, insert that one, instead of a new default
widget.  Add docstring.
(insert-button widget): Make :help-echo a function to avoid the
help-echo string become too long.
(delete-button widget): Tweak the :help-echo string, to document this
behavior.

* test/lisp/wid-edit-tests.el (widget-test-moving-editable-list-item):
Test the feature.
etc/NEWS
lisp/wid-edit.el
test/lisp/wid-edit-tests.el