Nick Roberts <[EMAIL PROTECTED]> writes: > xterm.el makes Emacs take about seven times as long to load for me (about 14 > seconds on my 200MHz PC). I have tested this by setting term-file-prefix to > nil as described in startup.el > > I think this is due to the recent changes in xterm.el e.g > substitute-key-definition is invoked 48 times.
On the slowest machine that I have access to, a 500MHz P3 the xterm.elc load time (as reported by elp) goes from 2.2 seconds to 0.3 seconds if all the substitute-key-definition calls are moved before (let ((map (make-sparse-keymap))) Stefan, do you have any idea what might be the problem here? (You are the last person to have done changes to substitute-key-definition, so I hoped you might understand what is it doing, because I don't). Could you please take a look? The "let" at the beginning of xterm.el does this: (set-keymap-parent map (keymap-parent function-key-map)) (set-keymap-parent function-key-map map)) Does substitute-key-definition have a problem because of the way function-key-map is modified above? --dan _______________________________________________ Emacs-pretest-bug mailing list Emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug