summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/debug.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2017-07-31 12:31:02 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2017-07-31 12:56:51 -0700
commit3a8d0cc825635e07da2a90c4ac987b476fc9b05d (patch)
tree7a18ef1a777007f05feff6a35ebadc4338330906 /lisp/emacs-lisp/debug.el
parent192342a3a93a2e467ab589ae2d1ffd5e7acf1398 (diff)
downloademacs-3a8d0cc825635e07da2a90c4ac987b476fc9b05d.tar.gz
emacs-3a8d0cc825635e07da2a90c4ac987b476fc9b05d.tar.bz2
emacs-3a8d0cc825635e07da2a90c4ac987b476fc9b05d.zip
Avoid most stat calls when completing file names
* admin/merge-gnulib (GNULIB_MODULES): Add d-type. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * m4/d-type.m4: New file, copied from gnulib. * src/dired.c (DT_UNKNOWN, DT_DIR, DT_LINK) [!HAVE_STRUCT_DIRENT_D_TYPE]: New constants. (dirent_type): New function. (file_name_completion): Use it, to avoid unnecessary calls to stat-like functions on GNU/Linux and other platforms with d_type. (file_name_completion_stat): Just follow the link; there is no need to try first with AT_SYMLINK_NOFOLLOW since the directory entry was already checked to exist.
Diffstat (limited to 'lisp/emacs-lisp/debug.el')
0 files changed, 0 insertions, 0 deletions