From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Nicolas Richard" Newsgroups: gmane.emacs.bugs Subject: bug#13753: 24.3.50; error with advice (+ sage/org/auctex) Date: Mon, 18 Feb 2013 22:47:45 +0100 Message-ID: <87ip5ppa4e.fsf@yahoo.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1361224094 8483 80.91.229.3 (18 Feb 2013 21:48:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Feb 2013 21:48:14 +0000 (UTC) To: 13753@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 18 22:48:34 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U7YZZ-0004s4-Ej for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Feb 2013 22:48:29 +0100 Original-Received: from localhost ([::1]:53000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7YZF-0002oc-Hr for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Feb 2013 16:48:09 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59663) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7YZ9-0002mW-CZ for bug-gnu-emacs@gnu.org; Mon, 18 Feb 2013 16:48:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7YZ7-0003tX-90 for bug-gnu-emacs@gnu.org; Mon, 18 Feb 2013 16:48:03 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7YZ7-0003tH-52 for bug-gnu-emacs@gnu.org; Mon, 18 Feb 2013 16:48:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U7Ya6-0000Gr-GX for bug-gnu-emacs@gnu.org; Mon, 18 Feb 2013 16:49:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Nicolas Richard" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Feb 2013 21:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13753 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13612241251015 (code B ref -1); Mon, 18 Feb 2013 21:49:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Feb 2013 21:48:45 +0000 Original-Received: from localhost ([127.0.0.1]:35270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U7YZo-0000GK-AH for submit@debbugs.gnu.org; Mon, 18 Feb 2013 16:48:45 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48171) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U7YZl-0000GC-5Y for submit@debbugs.gnu.org; Mon, 18 Feb 2013 16:48:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7YYi-0003iC-8i for submit@debbugs.gnu.org; Mon, 18 Feb 2013 16:47:39 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:34196) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7YYi-0003i8-55 for submit@debbugs.gnu.org; Mon, 18 Feb 2013 16:47:36 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7YYd-0002eN-G9 for bug-gnu-emacs@gnu.org; Mon, 18 Feb 2013 16:47:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7YYa-0003ef-Nm for bug-gnu-emacs@gnu.org; Mon, 18 Feb 2013 16:47:31 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:46449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7YYa-0003eK-D6 for bug-gnu-emacs@gnu.org; Mon, 18 Feb 2013 16:47:28 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U7YYq-0004VL-A1 for bug-gnu-emacs@gnu.org; Mon, 18 Feb 2013 22:47:44 +0100 Original-Received: from geodiff-mac3.ulb.ac.be ([164.15.131.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Feb 2013 22:47:44 +0100 Original-Received: from theonewiththeevillook by geodiff-mac3.ulb.ac.be with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Feb 2013 22:47:44 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 118 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: geodiff-mac3.ulb.ac.be User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.92 (gnu/linux) Cancel-Lock: sha1:Ryog2O+EzZCKEEGfS899pVKXAlI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:71499 Archived-At: 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 to make Gnus happy): Debugger entered--Lisp error: (wrong-type-argument symbolp #[(process name) "\306\307 \" =\203/\310\311\306\312#\203\313\314!\210\202/\310\315\306\312#\203/\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/\310\311\306\312#\203\313\314!\210\202/\310\315\306\312#\203/\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/\310\311\306\312#\203\313\314!\210\202/\310\315\306\312#\203/\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/\310\311\306\312#\203\313\314!\210\202/\310\315\306\312#\203/\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/\310\311\306\312#\203\313\314!\210\202/\310\315\306\312#\203/\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/\310\311\306\312#\203\313\314!\210\202/\310\315\306\312#\203/\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(# 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 r e p o r t SPC e m 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)