Only in qemacs-0.3pre13.hacked/: Makefile.latex-mode Only in qemacs-0.3pre13.hacked/: Makefile.latex-mode.rej Only in qemacs-0.3pre13.hacked/: config.h Common subdirectories: qemacs-0.3pre13/fonts and qemacs-0.3pre13.hacked/fonts Only in qemacs-0.3pre13.hacked/: latex-mode.c Only in qemacs-0.3pre13.hacked/: latex-mode.c.rej Common subdirectories: qemacs-0.3pre13/plugin-example and qemacs-0.3pre13.hacked/plugin-example diff -uwp -x '*.o' -x config.mak -x Makefile qemacs-0.3pre13/qe.c qemacs-0.3pre13.hacked/qe.c --- qemacs-0.3pre13/qe.c 2003-01-29 00:45:22.000000000 +0100 +++ qemacs-0.3pre13.hacked/qe.c 2003-01-30 11:50:00.000000000 +0100 @@ -3734,9 +3734,16 @@ void file_completion(StringArray *cs, co strcat(file, "*"); ffs = find_file_open(path, file); while (find_file_next(ffs, filename, sizeof(filename)) == 0) { + struct stat sb; p = basename(filename); memcpy(file, input, input_path_len); strcpy(file + input_path_len, p); + /* stat the file to find out if it's a directory. + * In that case add a slash to speed up typing long paths + */ + stat(file, &sb); + if(S_ISDIR(sb.st_mode)) + strcat(file, "/"); add_string(cs, file); } @@ -4345,12 +4352,12 @@ static void do_load1(EditState *s, const b = eb_new("", BF_SAVELOG); set_filename(b, filename); - s->offset = 0; - s->wrap = WRAP_LINE; - /* switch to the newly created buffer */ switch_to_buffer(s, b); + s->offset = 0; + s->wrap = WRAP_LINE; + /* first we try to read the first bytes of the buffer to find the buffer data type */ if (stat(filename, &st) < 0) { @@ -6157,7 +6164,9 @@ void load_all_modules(void) while (!find_file_next(ffs, filename, sizeof(filename))) { h = dlopen(filename, RTLD_LAZY); if (!h) { - fprintf(stderr, "Could not open module '%s'\n", filename); + char *error = dlerror(); + fprintf(stderr, "Could not open module '%s': %s\n", + filename, error); continue; } init_func = dlsym(h, "__qe_module_init"); Common subdirectories: qemacs-0.3pre13/tests and qemacs-0.3pre13.hacked/tests