]> git.eshelyaron.com Git - emacs.git/commit
Separate filename-deletion mechanism from policy.
authorEric S. Raymond <esr@thyrsus.com>
Sun, 6 Aug 2023 11:00:22 +0000 (07:00 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Sun, 6 Aug 2023 13:31:39 +0000 (09:31 -0400)
commit10a7615b5d45bcd909bb03d67423b337dfe93b1e
tree125c1990b016f37bd7ba200d180d961515f7831c
parent2924541b8f17e31eea58b231d1af7c0c8844deff
Separate filename-deletion mechanism from policy.

src/fileio.c: (delete-file-internal) Renamed from delete-file,
              parallel to delete-directory-internal; policy
      code moved to Lisp.
src/files.el: (delete-file) New function, holds policy logic.
              calls delete-file-internal.

This is a pure refactoring step, delete-file's behavior is
unchanged. But the C core is a little simpler now.
lisp/files.el
src/fileio.c