This patch adds a new hook, which can be used to filter out undesired filenames during filename completion (for example CVS directories or Java .class files). Here's the documentation from hooks.txt: _jed_completion_filter_hooks ------------------------------- These hooks are called when the minibuffer tab-completion is used, to filter out undesired entries. The functions in this list receive two parameters. The first parameter is the entry to be filtered, and the second parameter is the sort of completion is being applied. Currently only filename completions are filtered (indicated by the second parameter having a value of 0). The hook function should return either 0 (to filter the entry out from the completion) or 1 (no effect). For example, the following code prevents object files from being completed: static define completion_filter_hook(name, type) { % Filter out object files if (type == "file" and string_match(name, "/.*\\.o$", 1)) { return 0; } return 1; } add_to_hook("_jed_completion_filter_hooks", &completion_filter_hook);