* Need help with org and SSH
@ 2010-12-22 17:10 Jeff Horn
2010-12-22 17:45 ` Bernt Hansen
2010-12-22 17:49 ` Dan Davison
0 siblings, 2 replies; 15+ messages in thread
From: Jeff Horn @ 2010-12-22 17:10 UTC (permalink / raw)
To: Org-mode ml
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?
--
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University
(704) 271-4797
jhorn@gmu.edu
jrhorn424@gmail.com
http://www.failuretorefrain.com/jeff/
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Need help with org and SSH
2010-12-22 17:10 Need help with org and SSH Jeff Horn
@ 2010-12-22 17:45 ` Bernt Hansen
2010-12-22 18:28 ` Jeff Horn
2010-12-22 17:49 ` Dan Davison
1 sibling, 1 reply; 15+ messages in thread
From: Bernt Hansen @ 2010-12-22 17:45 UTC (permalink / raw)
To: Jeff Horn; +Cc: Org-mode ml
Jeff Horn <jrhorn424@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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Need help with org and SSH
2010-12-22 17:45 ` Bernt Hansen
@ 2010-12-22 18:28 ` Jeff Horn
2010-12-22 19:00 ` Jeff Horn
0 siblings, 1 reply; 15+ messages in thread
From: Jeff Horn @ 2010-12-22 18:28 UTC (permalink / raw)
To: Bernt Hansen; +Cc: Org-mode ml
On Wed, Dec 22, 2010 at 12:45 PM, Bernt Hansen <bernt@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
jhorn@gmu.edu
jrhorn424@gmail.com
http://www.failuretorefrain.com/jeff/
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Need help with org and SSH
2010-12-22 18:28 ` Jeff Horn
@ 2010-12-22 19:00 ` Jeff Horn
2010-12-22 19:59 ` Jeff Horn
0 siblings, 1 reply; 15+ messages in thread
From: Jeff Horn @ 2010-12-22 19:00 UTC (permalink / raw)
To: Bernt Hansen; +Cc: Org-mode ml
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 <jrhorn424@gmail.com> wrote:
> On Wed, Dec 22, 2010 at 12:45 PM, Bernt Hansen <bernt@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
> jhorn@gmu.edu
> jrhorn424@gmail.com
>
> http://www.failuretorefrain.com/jeff/
>
--
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University
(704) 271-4797
jhorn@gmu.edu
jrhorn424@gmail.com
http://www.failuretorefrain.com/jeff/
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Need help with org and SSH
2010-12-22 19:00 ` Jeff Horn
@ 2010-12-22 19:59 ` Jeff Horn
2010-12-22 20:32 ` Nick Dokos
0 siblings, 1 reply; 15+ messages in thread
From: Jeff Horn @ 2010-12-22 19:59 UTC (permalink / raw)
To: Bernt Hansen; +Cc: Org-mode ml
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 <jrhorn424@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 <jrhorn424@gmail.com> wrote:
>> On Wed, Dec 22, 2010 at 12:45 PM, Bernt Hansen <bernt@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
>> jhorn@gmu.edu
>> jrhorn424@gmail.com
>>
>> http://www.failuretorefrain.com/jeff/
>>
>
>
>
> --
> Jeffrey Horn
> Graduate Lecturer and PhD Student in Economics
> George Mason University
>
> (704) 271-4797
> jhorn@gmu.edu
> jrhorn424@gmail.com
>
> http://www.failuretorefrain.com/jeff/
>
--
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University
(704) 271-4797
jhorn@gmu.edu
jrhorn424@gmail.com
http://www.failuretorefrain.com/jeff/
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Re: Need help with org and SSH
2010-12-22 19:59 ` Jeff Horn
@ 2010-12-22 20:32 ` Nick Dokos
2010-12-22 22:07 ` Jeff Horn
0 siblings, 1 reply; 15+ messages in thread
From: Nick Dokos @ 2010-12-22 20:32 UTC (permalink / raw)
To: Jeff Horn; +Cc: Bernt Hansen, nicholas.dokos, Org-mode ml
Jeff Horn <jrhorn424@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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Re: Need help with org and SSH
2010-12-22 20:32 ` Nick Dokos
@ 2010-12-22 22:07 ` Jeff Horn
2010-12-22 22:18 ` Nick Dokos
0 siblings, 1 reply; 15+ messages in thread
From: Jeff Horn @ 2010-12-22 22:07 UTC (permalink / raw)
To: nicholas.dokos; +Cc: Bernt Hansen, Org-mode ml
On Wed, Dec 22, 2010 at 3:32 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:
> Jeff Horn <jrhorn424@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
jhorn@gmu.edu
jrhorn424@gmail.com
http://www.failuretorefrain.com/jeff/
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Re: Need help with org and SSH
2010-12-22 22:07 ` Jeff Horn
@ 2010-12-22 22:18 ` Nick Dokos
2010-12-23 6:41 ` Jeff Horn
2010-12-23 7:23 ` Jeff Horn
0 siblings, 2 replies; 15+ messages in thread
From: Nick Dokos @ 2010-12-22 22:18 UTC (permalink / raw)
To: Jeff Horn; +Cc: Bernt Hansen, nicholas.dokos, Org-mode ml
Jeff Horn <jrhorn424@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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Re: Need help with org and SSH
2010-12-22 22:18 ` Nick Dokos
@ 2010-12-23 6:41 ` Jeff Horn
2010-12-23 7:23 ` Jeff Horn
1 sibling, 0 replies; 15+ messages in thread
From: Jeff Horn @ 2010-12-23 6:41 UTC (permalink / raw)
To: nicholas.dokos; +Cc: Bernt Hansen, Org-mode ml
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.dokos@hp.com> wrote:
> Jeff Horn <jrhorn424@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
jhorn@gmu.edu
jrhorn424@gmail.com
http://www.failuretorefrain.com/jeff/
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Re: Need help with org and SSH
2010-12-22 22:18 ` Nick Dokos
2010-12-23 6:41 ` Jeff Horn
@ 2010-12-23 7:23 ` Jeff Horn
1 sibling, 0 replies; 15+ messages in thread
From: Jeff Horn @ 2010-12-23 7:23 UTC (permalink / raw)
To: nicholas.dokos; +Cc: Bernt Hansen, Org-mode ml
On Wed, Dec 22, 2010 at 5:18 PM, Nick Dokos <nicholas.dokos@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
jhorn@gmu.edu
jrhorn424@gmail.com
http://www.failuretorefrain.com/jeff/
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Need help with org and SSH
2010-12-22 17:10 Need help with org and SSH Jeff Horn
2010-12-22 17:45 ` Bernt Hansen
@ 2010-12-22 17:49 ` Dan Davison
2010-12-22 18:18 ` Jeff Horn
2010-12-23 7:36 ` [Accepted] " Carsten Dominik
1 sibling, 2 replies; 15+ messages in thread
From: Dan Davison @ 2010-12-22 17:49 UTC (permalink / raw)
To: emacs-orgmode
Jeff Horn <jrhorn424@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
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: Re: Need help with org and SSH
2010-12-22 17:49 ` Dan Davison
@ 2010-12-22 18:18 ` Jeff Horn
2010-12-23 1:06 ` Dan Davison
2010-12-23 7:36 ` [Accepted] " Carsten Dominik
1 sibling, 1 reply; 15+ messages in thread
From: Jeff Horn @ 2010-12-22 18:18 UTC (permalink / raw)
To: Dan Davison; +Cc: emacs-orgmode
On Wed, Dec 22, 2010 at 12:49 PM, Dan Davison <dandavison7@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. I don't know what is going on there, but
your patch should help...
I'd paste what I'm seeing but I don't know how to get text out of the
chrome shell and into the web browser...
--
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University
(704) 271-4797
jhorn@gmu.edu
jrhorn424@gmail.com
http://www.failuretorefrain.com/jeff/
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Need help with org and SSH
2010-12-22 18:18 ` Jeff Horn
@ 2010-12-23 1:06 ` Dan Davison
2010-12-23 6:40 ` Jeff Horn
0 siblings, 1 reply; 15+ messages in thread
From: Dan Davison @ 2010-12-23 1:06 UTC (permalink / raw)
To: emacs-orgmode
Jeff Horn <jrhorn424@gmail.com> writes:
> On Wed, Dec 22, 2010 at 12:49 PM, Dan Davison <dandavison7@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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Re: Need help with org and SSH
2010-12-23 1:06 ` Dan Davison
@ 2010-12-23 6:40 ` Jeff Horn
0 siblings, 0 replies; 15+ messages in thread
From: Jeff Horn @ 2010-12-23 6:40 UTC (permalink / raw)
To: Dan Davison; +Cc: emacs-orgmode
On Wed, Dec 22, 2010 at 8:06 PM, Dan Davison <dandavison7@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
jhorn@gmu.edu
jrhorn424@gmail.com
http://www.failuretorefrain.com/jeff/
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Accepted] Re: Need help with org and SSH
2010-12-22 17:49 ` Dan Davison
2010-12-22 18:18 ` Jeff Horn
@ 2010-12-23 7:36 ` Carsten Dominik
1 sibling, 0 replies; 15+ messages in thread
From: Carsten Dominik @ 2010-12-23 7:36 UTC (permalink / raw)
To: emacs-orgmode
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 -0000
> From: Dan Davison <dandavison7@gmail.com>
> X-Patchwork-Id: 507
> Message-Id: <m162ulr93s.fsf@94.197.185.4.threembb.co.uk>
> To: emacs-orgmode@gnu.org
>
> Jeff Horn <jrhorn424@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)
>
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2010-12-23 7:36 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-22 17:10 Need help with org and SSH Jeff Horn
2010-12-22 17:45 ` Bernt Hansen
2010-12-22 18:28 ` Jeff Horn
2010-12-22 19:00 ` Jeff Horn
2010-12-22 19:59 ` Jeff Horn
2010-12-22 20:32 ` Nick Dokos
2010-12-22 22:07 ` Jeff Horn
2010-12-22 22:18 ` Nick Dokos
2010-12-23 6:41 ` Jeff Horn
2010-12-23 7:23 ` Jeff Horn
2010-12-22 17:49 ` Dan Davison
2010-12-22 18:18 ` Jeff Horn
2010-12-23 1:06 ` Dan Davison
2010-12-23 6:40 ` Jeff Horn
2010-12-23 7:36 ` [Accepted] " Carsten Dominik
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.