Closed dschrempf closed 6 years ago
Hi, thanks for reporting. Huh, esup should step into 1 level of require by default. The amount it steps is controlled by esup-child-profile-require-level
in esup-child.el
. There's not a way to change it other than hard-coding. I should probably add an extension point in esup.el
.
Could you try this and let me know what happens:
(defvar esup-child-profile-require-level 1 "<snip doc-string>")
to default to 2 in esup-child.el
Hello,
thanks for the answer. You are right, it actually steps two level
deeper (my .emacs
loads a init.el
which loads the modules;
complicated). If I change the esup-child-profile-require
to 2 and try
to run esup
I get an error:
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
file-name-directory(nil)
(expand-file-name "tex-site.el" (file-name-directory load-file-name))
(autoload (quote TeX-load-hack) (expand-file-name "tex-site.el" (file-name-directory load-file-name)))
eval((autoload (quote TeX-load-hack) (expand-file-name "tex-site.el" (file-name-directory load-file-name))))
esup-child-profile-string(#("(autoload 'TeX-load-hack\n(expand-file-name \"tex-site.el\" (file-name-directory load-file-name)))" 0 25 (fontified nil) 25 95 (fontified nil)) "/usr/share/emacs/site-lisp/auctex.el" 7 210 307)
esup-child-profile-sexp(210 307 3)
esup-child-profile-buffer(#
auctex.el
just contains:
;;; auctex.el
;;
;; This can be used for starting up AUCTeX. The following somewhat
;; strange trick causes tex-site.el to be loaded in a way that can be
;; safely undone using (unload-feature 'tex-site).
;;
(autoload 'TeX-load-hack
(expand-file-name "tex-site.el" (file-name-directory load-file-name)))
(TeX-load-hack)
It is not a problem if this is complicated to solve (or maybe this is a problem of auctex), I can also change the structure of my init files.
Thanks, Dominik
On Thu, Feb 11 2016, Joe Schafer wrote:
Hi, thanks for reporting. Huh, esup should step into 1 level of require by default. The amount it steps is controlled by esup-child-profile-require-level in esup-child.el. There's not a way to change it other than hard-coding. I should probably add an extension point in esup.el.
Could you try this and let me know what happens:
- Change (defvar esup-child-profile-require-level 1 "<snip doc-string>") to default to 2 in esup-child.el
- Save the file and byte-compile it.
- Run esup and let me know if it steps deeper
Reply to this email directly or view it on GitHub.*
This should be fixed by 9d13e8c5bd4c3ed80177e8938afc4334d9dfd06e. Please re-open if that's not the case.
Hello,
first and foremost, thanks for this great tool!
Is it also possible to profile features that are loaded during initialization? E.g., I have configured my
.emacs
such that it requires different files upon startup and when I runesup
I only get the total load time, e.g.,This is already very helpful but I would appreciate if I could dig one level deeper!
Thanks, Dominik