Re: [O] Re: [babel] Marker does not point anywhere error?
Hi Jambunathan, · Jambunathan K kjambunat...@gmail.com wrote: Rainer M Krug r.m.k...@gmail.com writes: [ ... error: marker does not point anywhere while eval code blocks ...] Sorry, I cannot be of much help here. You can try turning off the below variable and check whether the situation improves. ,[ C-h v ansi-color-for-comint-mode RET ] | ansi-color-for-comint-mode is a variable defined in `ansi-color.el'. | Its value is t | | Documentation: | Determines what to do with comint output. | If nil, do nothing. | If the symbol `filter', then filter all SGR control sequences. | If anything else (such as t), then translate SGR control sequences | into text properties. | | In order for this to have any effect, `ansi-color-process-output' must | be in `comint-output-filter-functions'. | | This can be used to enable colorized ls --color=yes output | in shell buffers. You set this variable by calling one of: | M-x ansi-color-for-comint-mode-on | M-x ansi-color-for-comint-mode-off | M-x ansi-color-for-comint-mode-filter | | You can customize this variable. | | This variable was introduced, or its default value was changed, in | version 23.2 of Emacs. | | [back] that did the trick for me. Thanks a lot! I searched for ansi-color, but obviously overlooked the above variable. Best regards Thomas
[O] Re: [babel] Marker does not point anywhere error?
Rainer M Krug r.m.k...@gmail.com writes: On 25/03/11 13:50, Jambunathan K wrote: Can you do M-x toggle-debug-on-error and copy/paste what comes up in the backtrace buffer? Here it is: Debugger entered--Lisp error: (error Marker does not point anywhere) ansi-color-apply-on-region(#marker in no buffer #marker at 34 in sh) ansi-color-process-output() run-hook-with-args(ansi-color-process-output ) comint-send-input(nil t) Sorry, I cannot be of much help here. You can try turning off the below variable and check whether the situation improves. ,[ C-h v ansi-color-for-comint-mode RET ] | ansi-color-for-comint-mode is a variable defined in `ansi-color.el'. | Its value is t | | Documentation: | Determines what to do with comint output. | If nil, do nothing. | If the symbol `filter', then filter all SGR control sequences. | If anything else (such as t), then translate SGR control sequences | into text properties. | | In order for this to have any effect, `ansi-color-process-output' must | be in `comint-output-filter-functions'. | | This can be used to enable colorized ls --color=yes output | in shell buffers. You set this variable by calling one of: | M-x ansi-color-for-comint-mode-on | M-x ansi-color-for-comint-mode-off | M-x ansi-color-for-comint-mode-filter | | You can customize this variable. | | This variable was introduced, or its default value was changed, in | version 23.2 of Emacs. | | [back] ` Jambunathan K.
Re: [O] Re: [babel] Marker does not point anywhere error?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 25/03/11 14:38, Rainer M Krug wrote: On 25/03/11 14:22, Sébastien Vauban wrote: Hi Rainer, Rainer M Krug wrote: On 25/03/11 13:50, Jambunathan K wrote: Can you do M-x toggle-debug-on-error and copy/paste what comes up in the backtrace buffer? Here it is: Debugger entered--Lisp error: (error Marker does not point anywhere) (...) org-babel-execute-src-block-maybe() org-babel-execute-maybe() org-babel-execute-safely-maybe() run-hook-with-args-until-success(org-babel-execute-safely-maybe) org-ctrl-c-ctrl-c(nil) call-interactively(org-ctrl-c-ctrl-c nil nil) Just to be sure: above, it refers to C-c C-c Correct When I put my cursor into the block and want to execute it with C-c c I get usually at the first attempt a Marker does not point anywhere error, and when I, without moving the cursor, do C-c c again, the code is executed - it is not a serious problem, but a little bit irritating. Here to C-c c... What's the capital i you refer to? Sorry C-c C-c(org-ctrl-c-ctrl-c). The I is me (I get usually ). Can you explicit which keybinding you're using? org-ctrl-c-ctrl-c Any progress on this one or do you need any further info? Rainer Cheers, Rainer Best regards, Seb - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Tel:+33 - (0)9 53 10 27 44 Cell: +27 - (0)8 39 47 90 42 Fax (SA): +27 - (0)8 65 16 27 82 Fax (D) : +49 - (0)3 21 21 25 22 44 Fax (FR): +33 - (0)9 58 10 27 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2Qg2AACgkQoYgNqgF2egoVGwCfTw5vUr1sr1r5JYTJMBpaezfo 31wAn1yrRL/+b6qXi8/yVVAbwIDIVVhZ =5xtx -END PGP SIGNATURE-
[O] Re: [babel] Marker does not point anywhere error?
Can you do M-x toggle-debug-on-error and copy/paste what comes up in the backtrace buffer? Rainer M Krug r.m.k...@gmail.com writes: Hi I have the following code block: #+begin_src sh :session sh echo ## Copy scripts scp SA.sh SA.sub SA.R Analysis_sensitivity.R generateLatinHypercubeScenarios.R cluster://export/home/rkrug/sim/nsa/SA/ # scp SA.sub cluster://export/home/rkrug/sim/nsa/SA/ # scp SA.R cluster://export/home/rkrug/sim/nsa/SA/ ## Copy data # scp $ANALYSISDIR/../analysis.db cluster://export/home/rkrug/sim/nsa/SA/ echo `date` #+end_src When I put my cursor into the block and want to execute it with C-c c I get usually at the first attempt a Marker does not point anywhere error, and when I, without moving the cursor, do C-c c again, the code is executed - it is not a serious problem, but a little bit irritating. Org-mode version 7.5 (release_7.5.113.g9010a) GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1) Cheers, Rainer --
[O] Re: [babel] Marker does not point anywhere error?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 25/03/11 13:50, Jambunathan K wrote: Can you do M-x toggle-debug-on-error and copy/paste what comes up in the backtrace buffer? Here it is: Debugger entered--Lisp error: (error Marker does not point anywhere) ansi-color-apply-on-region(#marker in no buffer #marker at 34 in sh) ansi-color-process-output() run-hook-with-args(ansi-color-process-output ) comint-send-input(nil t) #[(line) c\210\301\302\303\\210\304\305!\207 [line comint-send-input nil t sleep-for 0.25] 3](RESULTSDIR=$(cat 'BABEL_TABLE') mapc(#[(line) c\210\301\302\303\\210\304\305!\207 [line comint-send-input nil t sleep-for 0.25] 3] (RESULTSDIR=$(cat 'BABEL_TABLE' /home/rkrug/sim/results/nsa/LHCube/nsa.63.up-to-date/results/ BABEL_TABLE ) ANALYSISDIR=$(cat 'BABEL_TABLE' /home/rkrug/sim/results/nsa/LHCube/nsa.63.up-to-date/ BABEL_TABLE ) echo ## Copy scripts scpa SA.sh SA.sub SA.R Analysis_sensitivity.R generateLatinHypercubeScenarios.R cluster://export/home/rkrug/sim/nsa/SA/ # scp SA.sub cluster://export/home/rkrug/sim/nsa/SA/ # scp SA.R cluster://export/home/rkrug/sim/nsa/SA/ ## Copy data # scp $ANALYSISDIR/../analysis.db cluster://export/home/rkrug/sim/nsa/SA/ echo `date` echo 'org_babel_sh_eoe')) org-babel-sh-evaluate(#buffer sh RESULTSDIR=$(cat 'BABEL_TABLE'\n/home/rkrug/sim/results/nsa/LHCube/nsa.63.up-to-date/results/\nBABEL_TABLE\n)\nANALYSISDIR=$(cat 'BABEL_TABLE'\n/home/rkrug/sim/results/nsa/LHCube/nsa.63.up-to-date/\nBABEL_TABLE\n)\necho\n## Copy scripts\nscpa SA.sh SA.sub SA.R Analysis_sensitivity.R generateLatinHypercubeScenarios.R cluster://export/home/rkrug/sim/nsa/SA/\n# scp SA.sub cluster://export/home/rkrug/sim/nsa/SA/\n# scp SA.R cluster://export/home/rkrug/sim/nsa/SA/\n## Copy data\n# scp $ANALYSISDIR/../analysis.db cluster://export/home/rkrug/sim/nsa/SA/\necho `date`\n (output replace)) org-babel-execute:sh(echo\n## Copy scripts\nscpa SA.sh SA.sub SA.R Analysis_sensitivity.R generateLatinHypercubeScenarios.R cluster://export/home/rkrug/sim/nsa/SA/\n# scp SA.sub cluster://export/home/rkrug/sim/nsa/SA/\n# scp SA.R cluster://export/home/rkrug/sim/nsa/SA/\n## Copy data\n# scp $ANALYSISDIR/../analysis.db cluster://export/home/rkrug/sim/nsa/SA/\necho `date`\n ((:var RESULTSDIR . /home/rkrug/sim/results/nsa/LHCube/nsa.63.up-to-date/results/) (:var ANALYSISDIR . /home/rkrug/sim/results/nsa/LHCube/nsa.63.up-to-date/) (:colname-names) (:rowname-names) (:result-params output replace) (:result-type . output) (:comments . ) (:shebang . #!/bin/bash) (:cache . no) (:padline . ) (:noweb . no) (:tangle . no) (:exports . code) (:results . output replace) (:session . sh) (:padnewline . yes) (:hlines . no))) org-babel-execute-src-block(nil (sh echo\n## Copy scripts\nscpa SA.sh SA.sub SA.R Analysis_sensitivity.R generateLatinHypercubeScenarios.R cluster://export/home/rkrug/sim/nsa/SA/\n# scp SA.sub cluster://export/home/rkrug/sim/nsa/SA/\n# scp SA.R cluster://export/home/rkrug/sim/nsa/SA/\n## Copy data\n# scp $ANALYSISDIR/../analysis.db cluster://export/home/rkrug/sim/nsa/SA/\necho `date`\n ((:var RESULTSDIR . /home/rkrug/sim/results/nsa/LHCube/nsa.63.up-to-date/results/) (:var ANALYSISDIR . /home/rkrug/sim/results/nsa/LHCube/nsa.63.up-to-date/) (:colname-names) (:rowname-names) (:result-params output replace) (:result-type . output) (:comments . ) (:shebang . #!/bin/bash) (:cache . no) (:padline . ) (:noweb . no) (:tangle . no) (:exports . code) (:results . output replace) (:session . sh) (:padnewline . yes) (:hlines . no)) nil 0)) org-babel-execute-src-block-maybe() org-babel-execute-maybe() org-babel-execute-safely-maybe() run-hook-with-args-until-success(org-babel-execute-safely-maybe) org-ctrl-c-ctrl-c(nil) call-interactively(org-ctrl-c-ctrl-c nil nil) and some more info: current state: == (setq org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-export-latex-listings t org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-src-window-setup 'current-window org-src-fontify-natively t org-plantuml-jar-path /home/rkrug/.emacs.d/org-mode/contrib/scripts/plantuml.jar org-ctrl-k-protect-subtree ask org-hide-leading-stars t org-metaup-hook '(org-babel-load-in-session-maybe) org-after-todo-state-change-hook '(org-clock-out-if-current) org-babel-tangle-lang-exts '((latex . tex) (emacs-lisp . el)) org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup) org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'y-or-n-p org-export-first-hook '(org-beamer-initialize-open-trackers) org-startup-indented t
Re: [O] Re: [babel] Marker does not point anywhere error?
Hi, · Rainer M Krug r.m.k...@gmail.com wrote: On 25/03/11 13:50, Jambunathan K wrote: Can you do M-x toggle-debug-on-error and copy/paste what comes up in the backtrace buffer? Here it is: [ ... backtrace ... ] I have a similar behaviour with a gnuplot source block, except that I get the same error every time I hit C-c C-c. Here is part of the backtrace: Debugger entered--Lisp error: (error Marker does not point anywhere) ansi-color-apply-on-region(#marker in no buffer #marker at 217 in *gnuplot*) ansi-color-process-output() run-hook-with-args(ansi-color-process-output ) comint-send-input() gnuplot-send-string-to-gnuplot(...) [... snip ...] It seems that ansi-color-process-output is the source of trouble. But I couldn't track it down further. It does not happen every time. I also don't how to reproduce it for shure. WinXP org-mode Org-mode version 7.5 (release_7.5.62.gfb2ac) GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1 Regards Thomas
[O] Re: [babel] Marker does not point anywhere error?
Hi Rainer, Rainer M Krug wrote: On 25/03/11 13:50, Jambunathan K wrote: Can you do M-x toggle-debug-on-error and copy/paste what comes up in the backtrace buffer? Here it is: Debugger entered--Lisp error: (error Marker does not point anywhere) (...) org-babel-execute-src-block-maybe() org-babel-execute-maybe() org-babel-execute-safely-maybe() run-hook-with-args-until-success(org-babel-execute-safely-maybe) org-ctrl-c-ctrl-c(nil) call-interactively(org-ctrl-c-ctrl-c nil nil) Just to be sure: above, it refers to C-c C-c When I put my cursor into the block and want to execute it with C-c c I get usually at the first attempt a Marker does not point anywhere error, and when I, without moving the cursor, do C-c c again, the code is executed - it is not a serious problem, but a little bit irritating. Here to C-c c... What's the capital i you refer to? Can you explicit which keybinding you're using? Best regards, Seb -- Sébastien Vauban
Re: [O] Re: [babel] Marker does not point anywhere error?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 25/03/11 14:22, Sébastien Vauban wrote: Hi Rainer, Rainer M Krug wrote: On 25/03/11 13:50, Jambunathan K wrote: Can you do M-x toggle-debug-on-error and copy/paste what comes up in the backtrace buffer? Here it is: Debugger entered--Lisp error: (error Marker does not point anywhere) (...) org-babel-execute-src-block-maybe() org-babel-execute-maybe() org-babel-execute-safely-maybe() run-hook-with-args-until-success(org-babel-execute-safely-maybe) org-ctrl-c-ctrl-c(nil) call-interactively(org-ctrl-c-ctrl-c nil nil) Just to be sure: above, it refers to C-c C-c Correct When I put my cursor into the block and want to execute it with C-c c I get usually at the first attempt a Marker does not point anywhere error, and when I, without moving the cursor, do C-c c again, the code is executed - it is not a serious problem, but a little bit irritating. Here to C-c c... What's the capital i you refer to? Sorry C-c C-c(org-ctrl-c-ctrl-c). The I is me (I get usually ). Can you explicit which keybinding you're using? org-ctrl-c-ctrl-c Cheers, Rainer Best regards, Seb - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Tel:+33 - (0)9 53 10 27 44 Cell: +27 - (0)8 39 47 90 42 Fax (SA): +27 - (0)8 65 16 27 82 Fax (D) : +49 - (0)3 21 21 25 22 44 Fax (FR): +33 - (0)9 58 10 27 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2Mms0ACgkQoYgNqgF2egoENwCfTtk4FC52uhPTLLQHBYFOaooP lcwAn0tkELZtmoWaT7sL8bkDWb7vvM7p =1rj8 -END PGP SIGNATURE-