]> git.eshelyaron.com Git - emacs.git/commit
file-truename now uses realpath for local files
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 6 Sep 2019 21:30:33 +0000 (14:30 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 6 Sep 2019 21:31:38 +0000 (14:31 -0700)
commita59839d7556ef85058e09b005f0ff32e59b20ec3
tree7e4eb3909246dde8efdcaecd77cfd41e75b93593
parent5b117511aa1b5c451773891b505a7098a67f9532
file-truename now uses realpath for local files

This uses fewer syscalls on GNU/Linux and other GNUish platforms.
* lisp/files.el (file-truename): Try fileio--truename
if there are no handlers.
* src/fileio.c: Include stdlib.h, for realpath.
(Ffileio__truename): New function.
lisp/files.el
src/fileio.c