* bug#13753: 24.3.50; error with advice (+ sage/org/auctex)
@ 2013-02-18 21:47 Nicolas Richard
2013-02-19 3:18 ` Glenn Morris
2013-02-19 3:48 ` Stefan Monnier
0 siblings, 2 replies; 4+ messages in thread
From: Nicolas Richard @ 2013-02-18 21:47 UTC (permalink / raw)
To: 13753
Hi,
I'm using emacs with auctex, org mode and sage-mode (all of them to the
most uptodate devel version, last updated a few minutes ago). I ran into
a problem since I updated to 24.3. It took me quite some time to narrow
down to the .emacs hereafter, but now I don't know how to narrow it
further. I just hope someone can reproduce.
Here is the backtrace (I replaced nul characters by <NUL> to make Gnus happy):
Debugger entered--Lisp error: (wrong-type-argument symbolp #[(process name) "\306\307
\"\v\f=\203/<NUL>\310\311\306\312#\203<NUL>\313\314!\210\x13\202/<NUL>\310\315\306\312#\203/<NUL>\313\316\317\320!\"\210\321\b)\207" [ad-return-value process name TeX-command-next TeX-command-Show TeX-command-default nil ad-Orig-TeX-LaTeX-sentinel re-search-forward "Package sagetex Warning: `final' option provided" t message "Remove the final option to sagetex and rerun (La)TeX." "Package sagetex Warning: \\(.*\\)" "You should run Sage: %s." match-string 1 "Sage"] 4 #("Advice doc string" 0 17 (dynamic-docstring-function ad--make-advised-docstring))])
ad-real-orig-definition(#[(process name) "\306\307 \n\"\v\f=\203/<NUL>\310\311\306\312#\203<NUL>\313\314!\210\x13\202/<NUL>\310\315\306\312#\203/<NUL>\313\316\317\320!\"\210\321\b)\207" [ad-return-value process name TeX-command-next TeX-command-Show TeX-command-default nil ad-Orig-TeX-LaTeX-sentinel re-search-forward "Package sagetex Warning: `final' option provided" t message "Remove the final option to sagetex and rerun (La)TeX." "Package sagetex Warning: \\(.*\\)" "You should run Sage: %s." match-string 1 "Sage"] 4 #("Advice doc string" 0 17 (dynamic-docstring-function ad--make-advised-docstring))])
ad--make-advised-docstring(#("Advice doc string" 0 17 (dynamic-docstring-function ad--make-advised-docstring)) #[(process name) "\306\307 \n\"\v\f=\203/<NUL>\310\311\306\312#\203<NUL>\313\314!\210\x13\202/<NUL>\310\315\306\312#\203/<NUL>\313\316\317\320!\"\210\321\b)\207" [ad-return-value process name TeX-command-next TeX-command-Show TeX-command-default nil ad-Orig-TeX-LaTeX-sentinel re-search-forward "Package sagetex Warning: `final' option provided" t message "Remove the final option to sagetex and rerun (La)TeX." "Package sagetex Warning: \\(.*\\)" "You should run Sage: %s." match-string 1 "Sage"] 4 #("Advice doc string" 0 17 (dynamic-docstring-function ad--make-advised-docstring))])
documentation(#[(process name) "\306\307 \n\"\v\f=\203/<NUL>\310\311\306\312#\203<NUL>\313\314!\210\x13\202/<NUL>\310\315\306\312#\203/<NUL>\313\316\317\320!\"\210\321\b)\207" [ad-return-value process name TeX-command-next TeX-command-Show TeX-command-default nil ad-Orig-TeX-LaTeX-sentinel re-search-forward "Package sagetex Warning: `final' option provided" t message "Remove the final option to sagetex and rerun (La)TeX." "Package sagetex Warning: \\(.*\\)" "You should run Sage: %s." match-string 1 "Sage"] 4 #("Advice doc string" 0 17 (dynamic-docstring-function ad--make-advised-docstring))] t)
ad-docstring(#[(process name) "\306\307 \n\"\v\f=\203/<NUL>\310\311\306\312#\203<NUL>\313\314!\210\x13\202/<NUL>\310\315\306\312#\203/<NUL>\313\316\317\320!\"\210\321\b)\207" [ad-return-value process name TeX-command-next TeX-command-Show TeX-command-default nil ad-Orig-TeX-LaTeX-sentinel re-search-forward "Package sagetex Warning: `final' option provided" t message "Remove the final option to sagetex and rerun (La)TeX." "Package sagetex Warning: \\(.*\\)" "You should run Sage: %s." match-string 1 "Sage"] 4 #("Advice doc string" 0 17 (dynamic-docstring-function ad--make-advised-docstring))])
ad-advised-definition-p(#[(process name) "\306\307 \n\"\v\f=\203/<NUL>\310\311\306\312#\203<NUL>\313\314!\210\x13\202/<NUL>\310\315\306\312#\203/<NUL>\313\316\317\320!\"\210\321\b)\207" [ad-return-value process name TeX-command-next TeX-command-Show TeX-command-default nil ad-Orig-TeX-LaTeX-sentinel re-search-forward "Package sagetex Warning: `final' option provided" t message "Remove the final option to sagetex and rerun (La)TeX." "Package sagetex Warning: \\(.*\\)" "You should run Sage: %s." match-string 1 "Sage"] 4 #("Advice doc string" 0 17 (dynamic-docstring-function ad--make-advised-docstring))])
ad-handle-definition(TeX-LaTeX-sentinel)
ad-activate(TeX-LaTeX-sentinel)
sage-auctex-setup()
(lambda nil (sage-auctex-setup))()
funcall((lambda nil (sage-auctex-setup)))
(if (not (equal file (quote "/usr/local/share/emacs/site-lisp/auctex/tex.elc"))) nil (remove-hook (quote after-load-functions) (quote eval-after-load-helper)) (funcall (quote (lambda nil (sage-auctex-setup)))))
eval-after-load-helper("/usr/local/share/emacs/site-lisp/auctex/tex.elc")
run-hook-with-args(eval-after-load-helper "/usr/local/share/emacs/site-lisp/auctex/tex.elc")
do-after-load-evaluation("/usr/local/share/emacs/site-lisp/auctex/tex.elc")
require(tex)
eval-buffer(#<buffer *load*> nil "/home/youngfrog/.emacs-problem" nil t) ; Reading at buffer position 581
load-with-code-conversion("/home/youngfrog/.emacs-problem" "/home/youngfrog/.emacs-problem" nil t)
load("/home/youngfrog/.emacs-problem" nil t)
command-line-1(("-l" ".emacs-problem"))
command-line()
normal-top-level()
obtained by running "emacs -q -l ~/.emacs-problem", with this file as
~/.emacs-problem :
(setq debug-on-error t)
(add-to-list 'load-path "~/sourcetrees/org-mode/lisp"); at commit 27da9a2a0f8ced9b602bf8df064ca7249d862e68
(load "/usr/local/share/emacs/site-lisp/auctex.el" nil nil t); I just did "cvs up; sh autogen.sh; ./configure; make; sudo make install"
(add-to-list 'load-path "~/sourcetrees/sage-mode/emacs/"); https://bitbucket.org/gvol/sage-mode - changeset: 123:3d39d9ce50ee
; (require 'tex-buf) ;; uncomment this line to avoid error.
(require 'sage-load)
;; comment following line also avoids error
(org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . t)))
(require 'tex)
What can I do to understand what's happening ? (btw I hope it's a really
complicated bug, because I managed to spend an hour just bisecting my
own .emacs !)
Thanks for your help.
In GNU Emacs 24.3.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10)
of 2012-11-21 on LDLC-portable
Bzr revision: 110872 vincentb1@users.sourceforge.net-20121112055353-v0t5ytiafc4327c8
Windowing system distributor `The X.Org Foundation', version 11.0.11103000
System Description: Ubuntu 12.04.2 LTS
Important settings:
value of $LANG: fr_BE.UTF-8
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
q M-x e <backspace> r e p o r t SPC e m <tab> <tab>
<return>
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Loading /usr/local/share/emacs/site-lisp/auctex.el (source)...done
Entering debugger...
Load-path shadows:
~/sourcetrees/sage-mode/emacs/.dir-locals hides /usr/local/share/emacs/24.3.50/lisp/gnus/.dir-locals
Features:
(shadow sort mail-extr emacsbug sendmail dbus xml crm org byte-opt
warnings bytecomp byte-compile cconv advice help-fns advice-preload
edmacro kmacro derived org-macro org-footnote org-pcomplete pcomplete
org-list org-faces org-entities noutline outline org-version
ob-emacs-lisp ob ob-tangle org-src easy-mmode ob-ref ob-lob ob-table
ob-keys ob-exp ob-comint comint ansi-color ring ob-core ob-eval
org-compat org-macs org-loaddefs find-func cal-menu calendar
cal-loaddefs gnus-sum nnoo gnus-group gnus-undo nnmail mail-source
gnus-start gnus-spec gnus-int gnus-range message cl-macs gv format-spec
rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse
rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader
gnus-win gnus gnus-ems nnheader gnus-util mail-utils mm-util mail-prsvr
wid-edit cl cl-lib sage-load tex-site auto-loads time-date tooltip
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image regexp-opt fringe tabulated-list newcomment lisp-mode
register page menu-bar rfn-eshadow timer select scroll-bar mouse
jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer loaddefs button faces cus-face macroexp files text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty emacs)
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#13753: 24.3.50; error with advice (+ sage/org/auctex)
2013-02-18 21:47 bug#13753: 24.3.50; error with advice (+ sage/org/auctex) Nicolas Richard
@ 2013-02-19 3:18 ` Glenn Morris
2013-02-19 3:48 ` Stefan Monnier
1 sibling, 0 replies; 4+ messages in thread
From: Glenn Morris @ 2013-02-19 3:18 UTC (permalink / raw)
To: Nicolas Richard; +Cc: 13753
Seems to be happening in sage-auctex-setup, so your best bet is probably
to report it the maintainers of sage-mode. They can either fix it, or
produce a minimal test case if it turns out to be a general Emacs issue.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#13753: 24.3.50; error with advice (+ sage/org/auctex)
2013-02-18 21:47 bug#13753: 24.3.50; error with advice (+ sage/org/auctex) Nicolas Richard
2013-02-19 3:18 ` Glenn Morris
@ 2013-02-19 3:48 ` Stefan Monnier
2013-02-19 10:13 ` Nicolas Richard
1 sibling, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2013-02-19 3:48 UTC (permalink / raw)
To: Nicolas Richard; +Cc: 13753-done
> I'm using emacs with auctex, org mode and sage-mode (all of them to the
> most uptodate devel version, last updated a few minutes ago).
Not all of them, I'm afraid:
> In GNU Emacs 24.3.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10)
> of 2012-11-21 on LDLC-portable
Your backtrace includes:
> ad-real-orig-definition(...)
> ad--make-advised-docstring(...)
but ad--make-advised-docstring doesn't call ad-real-orig-definition any
more, so I think your bug has already been fixed.
I recommend you use code from the emacs-24 branch (the pretest for 24.3)
rather than from the trunk (which will probably turn into 24.4) unless
you're updating very frequently.
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#13753: 24.3.50; error with advice (+ sage/org/auctex)
2013-02-19 3:48 ` Stefan Monnier
@ 2013-02-19 10:13 ` Nicolas Richard
0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Richard @ 2013-02-19 10:13 UTC (permalink / raw)
To: 13753
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> I'm using emacs with auctex, org mode and sage-mode (all of them to the
>> most uptodate devel version, last updated a few minutes ago).
>
> Not all of them, I'm afraid:
Double sorry about that.
> but ad--make-advised-docstring doesn't call ad-real-orig-definition any
> more, so I think your bug has already been fixed.
The errors are now different, and don't involve ad-* functions anymore.
I'll investigate further and report back (here or elsewhere) if needed.
> I recommend you use code from the emacs-24 branch (the pretest for
> 24.3)
I will do that (and can't remember when I started doing otherwise).
Thanks for the help.
--
Nico.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-02-19 10:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-18 21:47 bug#13753: 24.3.50; error with advice (+ sage/org/auctex) Nicolas Richard
2013-02-19 3:18 ` Glenn Morris
2013-02-19 3:48 ` Stefan Monnier
2013-02-19 10:13 ` Nicolas Richard
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.