Is there an example of using command flush-lines or keep-lines

39 views
Skip to first unread message

zhaohe wang

unread,
Oct 28, 2022, 8:08:30 PM10/28/22
to leo-editor
I want a help for the commands for I don't know how to use the regexp.

Thanks a lot!

Thomas Passin

unread,
Oct 28, 2022, 10:32:36 PM10/28/22
to leo-editor
I don't know anything about these commands, but their source in LeoPyRef is marked "(doesn't work)".  I would, though, like to know what "Transient Mark mode" is.

Edward K. Ream

unread,
Oct 29, 2022, 6:48:26 PM10/29/22
to leo-e...@googlegroups.com
On Fri, Oct 28, 2022 at 9:32 PM Thomas Passin <tbp1...@gmail.com> wrote:
I don't know anything about these commands, but their source in LeoPyRef is marked "(doesn't work)".  I would, though, like to know what "Transient Mark mode" is.

So would I :-)  I am going to delete these commands.

Edward

Edward K. Ream

unread,
Oct 29, 2022, 7:01:46 PM10/29/22
to leo-e...@googlegroups.com
On Fri, Oct 28, 2022 at 7:08 PM zhaohe wang <wangz...@gmail.com> wrote:
I want a help for the commands for I don't know how to use the regexp.

I have just deleted the flush-lines and keep-lines commands. They are not needed and may never have worked.

Edward

Edward K. Ream

unread,
Oct 29, 2022, 7:03:02 PM10/29/22
to leo-e...@googlegroups.com
On Fri, Oct 28, 2022 at 9:32 PM Thomas Passin <tbp1...@gmail.com> wrote:
I don't know anything about these commands, but their source in LeoPyRef is marked "(doesn't work)".  I would, though, like to know what "Transient Mark mode" is.

PR #2941 deletes these two commands. It has been merged into devel.

Edward

Thomas Passin

unread,
Oct 29, 2022, 8:20:46 PM10/29/22
to leo-editor
Might that mean that after an operation, the "mark" is removed from the affected nodes?  And is there anywhere that actually can happen (except for deleting a marked node)?

Edward K. Ream

unread,
Oct 29, 2022, 9:02:19 PM10/29/22
to leo-e...@googlegroups.com
On Sat, Oct 29, 2022 at 7:20 PM Thomas Passin <tbp1...@gmail.com> wrote:

>> ...I would, though, like to know what "Transient Mark mode" is.

> Might that mean that after an operation, the "mark" is removed from the affected nodes?  And is there anywhere that actually can happen (except for deleting a marked node)?

There seems to be no way to answer the question. The two commands used ec.linesHelper, but there is no indication of any "mode" anywhere in linesHelper. I am about to delete linesHelper also.

My guess is that these commands are ancient holdovers from emacs emulation code. Anyway, Leo will be better off without the commands and their helper.

Edward
Reply all
Reply to author
Forward
0 new messages