[mc] mcedit

Ben 2blkbelt at nemontel.net
Mon Jan 16 15:51:44 UTC 2023


On Mon, Jan 16, 2023 at 8:26 AM Grzegorz Szymaszek <gszymaszek at short.pl>
wrote:

> On Mon, Jan 16, 2023 at 07:55:15AM -0700, Ben wrote:
> > [...] restarted mcedit to edit the file again and [...] it said there
> > was a lock on the file and I could not save, nor could I find a way to
> > remove the lock;
>
> Did it show _the_ "File locked" dialog? See the source code if not sure:
>
> https://repo.or.cz/midnight-commander.git/blob/55124be9bb0d9a3f5dddf16b32a3cf039d5b82d3:/lib/lock.c#l237
>
> https://github.com/MidnightCommander/mc/blob/55124be9bb0d9a3f5dddf16b32a3cf039d5b82d3/lib/lock.c#L237
>
> If your file is named "foo.txt", is there a ".#foo.txt" file in the same
> directory?
>

Yes, deleting it took care of the lock, thank you


> > I can't find where mcedit has its settings [...]
>
> Try "mc -F".
>

That worked for the normal user, but I was editing via sudo, and it doesn't
seem to have any info on the mcedit settings for the system wide portion.

So, further, as I said pressing return seemed to run the q macro. So I hit
^r, it said to enter the macro key, I pressed return, and again, MCEDIT
entered into a raging loop of assertions I had to quit the shell (and
therefore the mcedit) to exit.

So it appears that:

(a) the macro is assigned to return, and
(b) I can't get rid of the return macro IN mcedit, and
(c) mcedit has a crashing bug (press return in macro assignment), and
(d) I can't locate where mcedit saved its settings when running as root
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.midnight-commander.org/pipermail/mc/attachments/20230116/91edb2e0/attachment.html>


More information about the mc mailing list