aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2013-02-03 10:28:47 -0500
committerStefan Monnier2013-02-03 10:28:47 -0500
commit659a9010460fe97b52b45cd61c09c015827091d2 (patch)
treeeb42d9a0fac80529f2ef175160445d7e754219d3
parent984096edf56bebe1359a5ac9e2c7f91f6fbf36f5 (diff)
downloademacs-659a9010460fe97b52b45cd61c09c015827091d2.tar.gz
emacs-659a9010460fe97b52b45cd61c09c015827091d2.zip
* lisp/subr.el (internal--called-interactively-p--get-frame): Avoid filling
current-load-list. Fixes: debbugs:13366
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/subr.el6
2 files changed, 9 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index fdf12be0a1c..693d2d769ce 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12013-02-03 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * subr.el (internal--called-interactively-p--get-frame): Avoid filling
4 current-load-list (bug#13366).
5
12013-02-02 Christopher Schmidt <christopher@ch.ristopher.com> 62013-02-02 Christopher Schmidt <christopher@ch.ristopher.com>
2 7
3 * progmodes/compile.el (compilation-error-regexp-alist-alist): 8 * progmodes/compile.el (compilation-error-regexp-alist-alist):
diff --git a/lisp/subr.el b/lisp/subr.el
index e1ab5298409..82bbc022646 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -3976,12 +3976,14 @@ the number of frames to skip (minus 1).")
3976 ;; "static" variables. 3976 ;; "static" variables.
3977 (let ((sym (make-symbol "base-index"))) 3977 (let ((sym (make-symbol "base-index")))
3978 `(progn 3978 `(progn
3979 (defvar ,sym 3979 (defvar ,sym)
3980 (unless (boundp ',sym)
3980 (let ((i 1)) 3981 (let ((i 1))
3982 (message "Computing base-index")
3981 (while (not (eq (indirect-function (nth 1 (backtrace-frame i)) t) 3983 (while (not (eq (indirect-function (nth 1 (backtrace-frame i)) t)
3982 (indirect-function 'called-interactively-p))) 3984 (indirect-function 'called-interactively-p)))
3983 (setq i (1+ i))) 3985 (setq i (1+ i)))
3984 i)) 3986 (setq ,sym i)))
3985 ;; (unless (eq (nth 1 (backtrace-frame ,sym)) 'called-interactively-p) 3987 ;; (unless (eq (nth 1 (backtrace-frame ,sym)) 'called-interactively-p)
3986 ;; (error "called-interactively-p: %s is out-of-sync!" ,sym)) 3988 ;; (error "called-interactively-p: %s is out-of-sync!" ,sym))
3987 (backtrace-frame (+ ,sym ,n))))) 3989 (backtrace-frame (+ ,sym ,n)))))