[mc] mcedit has failed

Grzegorz Szymaszek gszymaszek at short.pl
Mon Jan 16 15:26:03 UTC 2023


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?

> I can't find where mcedit has its settings [...]

Try "mc -F".

-- 
Grzegorz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc/attachments/20230116/23b10294/attachment.asc>


More information about the mc mailing list