GNU bug report logs -
#10946
24.0.94; eval-after-load incompatible change
Previous Next
Reported by: Leo <sdl.web <at> gmail.com>
Date: Mon, 5 Mar 2012 11:00:02 UTC
Severity: normal
Found in version 24.0.94
Fixed in version 24.0.95
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 10946 <at> debbugs.gnu.org (full text, mbox):
>> Can you provide some details about how/why there's no load-file-name
>> (which I guess just means it's nil).
> See: https://github.com/pinard/Pymacs
> `pymacs-load' loads python module and creates elisp functions that call
> those python functions.
> (defun pymacs-load (module &optional prefix noerror)
> (interactive
> (let* ((module (read-string "Python module? "))
> (default (concat (car (last (split-string module "\\."))) "-"))
> (prefix (read-string (format "Prefix? [%s] " default)
> nil nil default)))
> (list module prefix)))
> (message "Pymacs loading %s..." module)
> (let ((lisp-code (pymacs-call "pymacs_load_helper" module prefix)))
> (cond (lisp-code (let ((result (eval lisp-code)))
> (message "Pymacs loading %s...done" module)
> result))
> (noerror (message "Pymacs loading %s...failed" module) nil)
> (t (pymacs-report-error "Pymacs loading %s...failed" module)))))
> It uses eval so no load-file-name is defined, i.e. if lisp-code contains
> a form (provide 'whatever), it no longer eval the matching form in
> after-load-alist.
Wouldn't a better fix be to make Pymacs set load-file-name, then?
Stefan
This bug report was last modified 13 years and 152 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.