[Orgmode] Re: Need help with org and SSH
Jeff Horn jrhorn...@gmail.com writes: Hey orgsters, For the holiday trip, I decided to see if I could go a week with only the Cr-48. I left my Macbook at home ready for SSH, just in case. It took approximately 30 minutes of using the computer before I started itching for org. I've been having a heck of a time using emacs in the terminal. After a few hours of cleaning up my init file and wrapping lots of commands in window-system conditionals, I thought I was ready to invoke agenda. Wrong! Invoking agenda gives me the same error I was having with emacs-desktop. Specifically, I keep getting the error (void function clear-image-cache). Any idea what switch to flip to get the agenda open? Hi Jeff, This may or may not help but... I was getting error Non-X frame used when SSHing into my desktop on my Android phone and using emacs. I turned off inline image display by default and this fixed it for me. (setq org-startup-with-inline-images nil) HTH, Bernt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Need help with org and SSH
Jeff Horn jrhorn...@gmail.com writes: Hey orgsters, For the holiday trip, I decided to see if I could go a week with only the Cr-48. I left my Macbook at home ready for SSH, just in case. It took approximately 30 minutes of using the computer before I started itching for org. I've been having a heck of a time using emacs in the terminal. After a few hours of cleaning up my init file and wrapping lots of commands in window-system conditionals, I thought I was ready to invoke agenda. Wrong! Invoking agenda gives me the same error I was having with emacs-desktop. Specifically, I keep getting the error (void function clear-image-cache). Any idea what switch to flip to get the agenda open? lgrep comes up with two occurrences of that function in org-mode/lisp for me: org.el:15935: (if (and overlays (fboundp 'clear-image-cache)) (clear-image-cache)) org.el:16200:(clear-image-cache)) The second one is lacking the fboundp protection. Does it help if you put the fboundp test in, as below? diff --git a/lisp/org.el b/lisp/org.el index 3cecca7..b27f376 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -16197,7 +16197,7 @@ BEG and END default to the buffer boundaries. (interactive P) (unless refresh (org-remove-inline-images) -(clear-image-cache)) +(if (fboundp 'clear-image-cache) (clear-image-cache))) (save-excursion (save-restriction (widen) Dan ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Need help with org and SSH
On Wed, Dec 22, 2010 at 12:45 PM, Bernt Hansen be...@norang.ca wrote: I turned off inline image display by default and this fixed it for me. (setq org-startup-with-inline-images nil) Thanks, Bernt. Adding this to my init file throws a recursion error when calling the agenda. For now, calling agenda twice (without touching the variable above) works to get the agenda displayed. The (original) error still occurs, which makes me curious (and slightly annoyed). -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Need help with org and SSH
A quick update: This error is preventing me from doing most things with org-mode, including using capture. So I customized the variable Bernt referred to instead of putting it in my init file. Still get a recursion error. So I upped 'max-specpdl-size' and 'max-lisp-eval-depth' to huge values. Emacs chokes and dies when calling the agenda or when calling org-capture. I'm going to go run errands with a hand-written list. :-D Thanks in advance for any more help. I'll play around with it more tonight. On Wed, Dec 22, 2010 at 1:28 PM, Jeff Horn jrhorn...@gmail.com wrote: On Wed, Dec 22, 2010 at 12:45 PM, Bernt Hansen be...@norang.ca wrote: I turned off inline image display by default and this fixed it for me. (setq org-startup-with-inline-images nil) Thanks, Bernt. Adding this to my init file throws a recursion error when calling the agenda. For now, calling agenda twice (without touching the variable above) works to get the agenda displayed. The (original) error still occurs, which makes me curious (and slightly annoyed). -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Need help with org and SSH
The recursion happens with the function 'file-truename' according to my message buffer. Maybe it's something in my config, afterall? On Wed, Dec 22, 2010 at 2:00 PM, Jeff Horn jrhorn...@gmail.com wrote: A quick update: This error is preventing me from doing most things with org-mode, including using capture. So I customized the variable Bernt referred to instead of putting it in my init file. Still get a recursion error. So I upped 'max-specpdl-size' and 'max-lisp-eval-depth' to huge values. Emacs chokes and dies when calling the agenda or when calling org-capture. I'm going to go run errands with a hand-written list. :-D Thanks in advance for any more help. I'll play around with it more tonight. On Wed, Dec 22, 2010 at 1:28 PM, Jeff Horn jrhorn...@gmail.com wrote: On Wed, Dec 22, 2010 at 12:45 PM, Bernt Hansen be...@norang.ca wrote: I turned off inline image display by default and this fixed it for me. (setq org-startup-with-inline-images nil) Thanks, Bernt. Adding this to my init file throws a recursion error when calling the agenda. For now, calling agenda twice (without touching the variable above) works to get the agenda displayed. The (original) error still occurs, which makes me curious (and slightly annoyed). -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Need help with org and SSH
Jeff Horn jrhorn...@gmail.com wrote: The recursion happens with the function 'file-truename' according to my message buffer. Maybe it's something in my config, afterall? C-h f file-truename says , | file-truename is a compiled Lisp function in `files.el'. | | (file-truename FILENAME) | | Return the truename of FILENAME, which should be absolute. | The truename of a file name is found by chasing symbolic links | both at the level of the file and at the level of the directories | containing it, until no links are left at any level. | ` file-truename is smart enough to detect symlink loops (it has a counter that starts at 100 and decrements on every dereference: if it ever gets negative, watch out) and recursion seems to occur when it steps to the parent directory and tries to find *its* truename - but there seem to be adequate safeguards to prevent bottomless recursion (e.g. the remaining counter is passed to subsequent calls). It might be a good exercise to start with whatever file it's failing on and then look at both it and all its parent directories (with ls -l if you are on Linus/OSX/BSD/other Unix variant), taking a jaundiced look at any symlinks you find on the way. Nick ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Need help with org and SSH
On Wed, Dec 22, 2010 at 3:32 PM, Nick Dokos nicholas.do...@hp.com wrote: Jeff Horn jrhorn...@gmail.com wrote: The recursion happens with the function 'file-truename' according to my message buffer. Maybe it's something in my config, afterall? C-h f file-truename says , | file-truename is a compiled Lisp function in `files.el'. | | (file-truename FILENAME) | | Return the truename of FILENAME, which should be absolute. | The truename of a file name is found by chasing symbolic links | both at the level of the file and at the level of the directories | containing it, until no links are left at any level. | ` file-truename is smart enough to detect symlink loops (it has a counter that starts at 100 and decrements on every dereference: if it ever gets negative, watch out) and recursion seems to occur when it steps to the parent directory and tries to find *its* truename - but there seem to be adequate safeguards to prevent bottomless recursion (e.g. the remaining counter is passed to subsequent calls). It might be a good exercise to start with whatever file it's failing on and then look at both it and all its parent directories (with ls -l if you are on Linus/OSX/BSD/other Unix variant), taking a jaundiced look at any symlinks you find on the way. Nick NIck, thanks for your thorough reply. I thought having ~ in my org path might have been triggering it, but it isn't. I've reduced my org-agenda files down to just one, tasks.org, which live in org in my dropbox folder. This folder is symlinked to ~/org for ease-of-use. I enabled debug-on-quit and tried looking at the backtrace while the agenda was hanging. Somewhere along the way, many lines before the error occurs, ~/org is *correctly* translated as /Users/jeffreyhorn/Dropbox/org. The error is occurring immediately after org prepares buffers (the org files). The last few lines of the backtrace are: org-agenda(nil) call-interactively(org-agenda nil nil) I'll try moving the agenda file to my home directory and see what happens. (interlude) OK. I created a very simple two line org file with a single todo and placed it in my home directory. Starting a new emacs session and visiting the file is enough to trigger the error. Visiting a buffer of another type (text for instance) *also* produces this error. -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Need help with org and SSH
Jeff Horn jrhorn...@gmail.com wrote: I enabled debug-on-quit and tried looking at the backtrace while the agenda was hanging. Somewhere along the way, many lines before the error occurs, ~/org is *correctly* translated as /Users/jeffreyhorn/Dropbox/org. The error is occurring immediately after org prepares buffers (the org files). The last few lines of the backtrace are: org-agenda(nil) call-interactively(org-agenda nil nil) Actually, the top few lines are probably more informative. I'll try moving the agenda file to my home directory and see what happens. (interlude) OK. I created a very simple two line org file with a single todo and placed it in my home directory. Starting a new emacs session and visiting the file is enough to trigger the error. Visiting a buffer of another type (text for instance) *also* produces this error. Well, that's good - lets org off the hook and probably indicts your setup (both .emacs and maybe the structure of your home directory itself). Can you post the backtrace for this? Also try evaluating the following (fix the path of course): (file-truename /path/to/suspect/file) C-x C-e with the cursor right after the closing paren should do it. Post this backtrace as well, assuming you get one. Nick ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Need help with org and SSH
Jeff Horn jrhorn...@gmail.com writes: On Wed, Dec 22, 2010 at 12:49 PM, Dan Davison dandavis...@gmail.com wrote: The second one is lacking the fboundp protection. Does it help if you put the fboundp test in, as below? Dan, Thanks for the suggestion. I tried the patch and got a huge backtrace full of binary characters. So it sounds like the patch fixed the void-function error. Bernt's suggestion of (setq org-startup-with-inline-images nil) would have had a similar effect. I don't know under what circumstances / type of emacs clear-image-cache is undefined, but I suspect this patch should be applied. Dan ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Need help with org and SSH
On Wed, Dec 22, 2010 at 8:06 PM, Dan Davison dandavis...@gmail.com wrote: So it sounds like the patch fixed the void-function error. Bernt's suggestion of (setq org-startup-with-inline-images nil) would have had a similar effect. I don't know under what circumstances / type of emacs clear-image-cache is undefined, but I suspect this patch should be applied. I agree. -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Need help with org and SSH
I'll post a backtrace as soon as I figure out how to get this stuff out of the Chrome OS shell. I might be able to send mail through gnus, assuming it isn't affected by this error. Jeff On Wed, Dec 22, 2010 at 5:18 PM, Nick Dokos nicholas.do...@hp.com wrote: Jeff Horn jrhorn...@gmail.com wrote: I enabled debug-on-quit and tried looking at the backtrace while the agenda was hanging. Somewhere along the way, many lines before the error occurs, ~/org is *correctly* translated as /Users/jeffreyhorn/Dropbox/org. The error is occurring immediately after org prepares buffers (the org files). The last few lines of the backtrace are: org-agenda(nil) call-interactively(org-agenda nil nil) Actually, the top few lines are probably more informative. I'll try moving the agenda file to my home directory and see what happens. (interlude) OK. I created a very simple two line org file with a single todo and placed it in my home directory. Starting a new emacs session and visiting the file is enough to trigger the error. Visiting a buffer of another type (text for instance) *also* produces this error. Well, that's good - lets org off the hook and probably indicts your setup (both .emacs and maybe the structure of your home directory itself). Can you post the backtrace for this? Also try evaluating the following (fix the path of course): (file-truename /path/to/suspect/file) C-x C-e with the cursor right after the closing paren should do it. Post this backtrace as well, assuming you get one. Nick -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Need help with org and SSH
On Wed, Dec 22, 2010 at 5:18 PM, Nick Dokos nicholas.do...@hp.com wrote: Well, that's good - lets org off the hook and probably indicts your setup (both .emacs and maybe the structure of your home directory itself). Can you post the backtrace for this? Couldn't figure out how to copy the backtrace out of the shell. This laptop is goofy. Anyway, in the process, I forgot that sometimes you only see the last few lines of a backtrace. =M-= revealed that I was looking at a 7000 line backtrace from one call to the agenda buffer after starting emacs. The same hooks were running over, and over, and over... Two of the culprits looked something like this: (add-hook 'text-mode-hook 'turn-on-orgstruct) Removing those fixed the recursion error but introduced a new one. Something foobar'd my text-mode-hook (I suspect Aquamacs). After turning off functions that don't exist in terminal emacs on my system, I'm convinced that I need to figure out a way to keep two init files on my system without having to *maintain* two init files. Also try evaluating the following (fix the path of course): (file-truename /path/to/suspect/file) No backtrace on this one. Thanks to everyone for the help! I'll have fun re-configuring emacs when I get back from the holiday. Still wondering why orgstruct is causing recursion issues... I seem to remember it causing issues in the past, but I'm not sure what fixed it... -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Accepted] [Orgmode] Re: Need help with org and SSH
Patch 507 (http://patchwork.newartisans.com/patch/507/) is now Accepted. Maintainer comment: No comment This relates to the following submission: http://mid.gmane.org/%3Cm162ulr93s.fsf%4094.197.185.4.threembb.co.uk%3E Here is the original message containing the patch: Content-Type: text/plain; charset=utf-8 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Orgmode] Re: Need help with org and SSH Date: Wed, 22 Dec 2010 22:49:27 - From: Dan Davison dandavis...@gmail.com X-Patchwork-Id: 507 Message-Id: m162ulr93s@94.197.185.4.threembb.co.uk To: emacs-orgmode@gnu.org Jeff Horn jrhorn...@gmail.com writes: Hey orgsters, For the holiday trip, I decided to see if I could go a week with only the Cr-48. I left my Macbook at home ready for SSH, just in case. It took approximately 30 minutes of using the computer before I started itching for org. I've been having a heck of a time using emacs in the terminal. After a few hours of cleaning up my init file and wrapping lots of commands in window-system conditionals, I thought I was ready to invoke agenda. Wrong! Invoking agenda gives me the same error I was having with emacs-desktop. Specifically, I keep getting the error (void function clear-image-cache). Any idea what switch to flip to get the agenda open? lgrep comes up with two occurrences of that function in org-mode/lisp for me: org.el:15935: (if (and overlays (fboundp 'clear-image-cache)) (clear-image-cache)) org.el:16200:(clear-image-cache)) The second one is lacking the fboundp protection. Does it help if you put the fboundp test in, as below? Dan diff --git a/lisp/org.el b/lisp/org.el index 3cecca7..b27f376 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -16197,7 +16197,7 @@ BEG and END default to the buffer boundaries. (interactive P) (unless refresh (org-remove-inline-images) -(clear-image-cache)) +(if (fboundp 'clear-image-cache) (clear-image-cache))) (save-excursion (save-restriction (widen) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode