[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Random thanks to emacs: emacs doesn't care if the filesystem exists
From: |
Stefan Monnier |
Subject: |
Re: Random thanks to emacs: emacs doesn't care if the filesystem exists |
Date: |
Tue, 05 Apr 2022 08:36:08 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
> I regularly mount and unmount the filesystem which holds my .emacs.d and
> lots of files emacs has open, and umount doesn't care, and emacs doesn't
> care, wheras most other programs need to be killed or else umount does't
> work. Thanks.
Indeed Emacs doesn't really support "file handles": there's no way to
separate `open` from `read` in ELisp, instead we only have
`insert-file-contents` which does the open+read+close (same holds for
`write` with `write-region`).
That's a blessing and a curse,
Stefan