GNU bug report logs -
#13753
24.3.50; error with advice (+ sage/org/auctex)
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13753 in the body.
You can then email your comments to 13753 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13753
; Package
emacs
.
(Mon, 18 Feb 2013 21:49:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Nicolas Richard" <theonewiththeevillook <at> yahoo.fr>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 18 Feb 2013 21:49:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
\"=\203/<NUL>\310\311\306\312#\203<NUL>\313\314!\210\202/<NUL>\310\315\306\312#\203/<NUL>\313\316\317\320!\"\210\321)\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\"\f=\203/<NUL>\310\311\306\312#\203<NUL>\313\314!\210\202/<NUL>\310\315\306\312#\203/<NUL>\313\316\317\320!\"\210\321)\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\"\f=\203/<NUL>\310\311\306\312#\203<NUL>\313\314!\210\202/<NUL>\310\315\306\312#\203/<NUL>\313\316\317\320!\"\210\321)\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\"\f=\203/<NUL>\310\311\306\312#\203<NUL>\313\314!\210\202/<NUL>\310\315\306\312#\203/<NUL>\313\316\317\320!\"\210\321)\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\"\f=\203/<NUL>\310\311\306\312#\203<NUL>\313\314!\210\202/<NUL>\310\315\306\312#\203/<NUL>\313\316\317\320!\"\210\321)\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\"\f=\203/<NUL>\310\311\306\312#\203<NUL>\313\314!\210\202/<NUL>\310\315\306\312#\203/<NUL>\313\316\317\320!\"\210\321)\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 <at> 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)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13753
; Package
emacs
.
(Tue, 19 Feb 2013 03:20:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 13753 <at> debbugs.gnu.org (full text, mbox):
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.
Reply sent
to
Stefan Monnier <monnier <at> iro.umontreal.ca>
:
You have taken responsibility.
(Tue, 19 Feb 2013 03:50:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
"Nicolas Richard" <theonewiththeevillook <at> yahoo.fr>
:
bug acknowledged by developer.
(Tue, 19 Feb 2013 03:50:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 13753-done <at> debbugs.gnu.org (full text, mbox):
> 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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13753
; Package
emacs
.
(Tue, 19 Feb 2013 10:15:02 GMT)
Full text and
rfc822 format available.
Message #16 received at submit <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier <monnier <at> 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.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 19 Mar 2013 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 12 years and 98 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.