* In response to: .emacs works on Mac but not on Ubuntu
@ 2009-06-16 21:21 Jere McDevitt
2009-06-16 21:31 ` Graham Smith
0 siblings, 1 reply; 10+ messages in thread
From: Jere McDevitt @ 2009-06-16 21:21 UTC (permalink / raw
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 630 bytes --]
Apologize for having to start a new thread, but I just signed up to the
mailing list and since I didn't have the original message to reply to.
What may be happening is that Ubuntu has a default version of org-mode
pre-installed in the primary load path directories, so that is what is being
picked up and not your latest version. To check that, type
dpkg --list | grep org
and see if org mode was installed by the package manager. If so, just do a
normal remove and see if that doesn't take care of it.
Jere
<http://news.gmane.org/find-root.php?message_id=%3c2c75873c0906161257v9f2ad99pa80364ebb0febb50%40mail.gmail.com%3e>
[-- Attachment #1.2: Type: text/html, Size: 711 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: In response to: .emacs works on Mac but not on Ubuntu
2009-06-16 21:21 Jere McDevitt
@ 2009-06-16 21:31 ` Graham Smith
2009-06-16 22:12 ` Nick Dokos
0 siblings, 1 reply; 10+ messages in thread
From: Graham Smith @ 2009-06-16 21:31 UTC (permalink / raw
To: emacs-orgmode
Jere,
> What may be happening is that Ubuntu has a default version of org-mode
> pre-installed in the primary load path directories, so that is what is being
> picked up and not your latest version. To check that, type
>
> dpkg --list | grep org
>
> and see if org mode was installed by the package manager. If so, just do a
> normal remove and see if that doesn't take care of it.
I can't check this just now (as I don't have access to my ubuntu
machine at the moment) but as I understand it Org-mode is distributed
with Emacs now, but the commands in the .emacs file over ride the
built in version and use the version in the path set up in .emacs.
That is what happens on the Mac, unless I have misunderstood.
Thanks,
Graham
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: In response to: .emacs works on Mac but not on Ubuntu
@ 2009-06-16 21:40 jere.mcdevitt
0 siblings, 0 replies; 10+ messages in thread
From: jere.mcdevitt @ 2009-06-16 21:40 UTC (permalink / raw
To: Graham Smith, emacs-orgmode
Debian based distros are doing some odd things with emacs packages by placing additional global load scripts in /etc/emacs. I haven't fully figured out when they get called, but it might be they get called before your init file does.
I know I removed the default org mode install on my Ubuntu machine and haven't seen any problems.
-----Original Message-----
From: Graham Smith <myotisone@gmail.com>
Subj: Re: [Orgmode] In response to: .emacs works on Mac but not on Ubuntu
Date: Tue Jun 16, 2009 5:31 pm
Size: 968 bytes
To: emacs-orgmode@gnu.org
Jere,
> What may be happening is that Ubuntu has a default version of org-mode
> pre-installed in the primary load path directories, so that is what is being
> picked up and not your latest version. To check that, type
>
> dpkg --list | grep org
>
> and see if org mode was installed by the package manager. If so, just do a
> normal remove and see if that doesn't take care of it.
I can't check this just now (as I don't have access to my ubuntu
machine at the moment) but as I understand it Org-mode is distributed
with Emacs now, but the commands in the .emacs file over ride the
built in version and use the version in the path set up in .emacs.
That is what happens on the Mac, unless I have misunderstood.
Thanks,
Graham
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
--- message truncated ---
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: In response to: .emacs works on Mac but not on Ubuntu
2009-06-16 21:31 ` Graham Smith
@ 2009-06-16 22:12 ` Nick Dokos
2009-06-17 15:40 ` Graham Smith
0 siblings, 1 reply; 10+ messages in thread
From: Nick Dokos @ 2009-06-16 22:12 UTC (permalink / raw
To: Graham Smith; +Cc: emacs-orgmode
Graham Smith <myotisone@gmail.com> wrote:
> > What may be happening is that Ubuntu has a default version of org-mode
> > pre-installed in the primary load path directories, so that is what is being
> > picked up and not your latest version. To check that, type
> >
> > dpkg --list | grep org
> >
> > and see if org mode was installed by the package manager. If so, just do a
> > normal remove and see if that doesn't take care of it.
>
> I can't check this just now (as I don't have access to my ubuntu
> machine at the moment) but as I understand it Org-mode is distributed
> with Emacs now, but the commands in the .emacs file over ride the
> built in version and use the version in the path set up in .emacs.
> That is what happens on the Mac, unless I have misunderstood.
>
Jere may be right: I recall previous discussions on the list that
indicated this kind of problem. You might want to check for the existence
of /etc/emacsXXX/site-start.d/50org-mode.el.
I can't find a reference to this mail in the archive (the thread seems to have
been cut off somehow), but I found it in my archive: Scot Becker had
pointed out the existence of this file to Eraldo Helal and that turned out
to be the problem. Here is what Eraldo had to say about it:
,----
|
| Sender: Eraldo Helal <admin@eraldo.at>
| From: Eraldo Helal <office@eraldo.at>
| To: Scot Becker <scot.becker@gmail.com>
| Cc: nicholas.dokos@hp.com, Org-Mode <emacs-orgmode@gnu.org>
| Date: Wed, 29 Apr 2009 19:29:32 +0200 (CEST)
| Subject: Re: [Orgmode] ascii export error
| X-FireGPG-Version: 0.7.5
|
|
| [[PGP Signed Part:Undecided]]
| I deleted "/etc/emacs/site-start.d/50org-mode.el".
| Everything works as intended now.
|
| Special thanks to Nick and Scot. :)
|
| On Wed, Apr 29, 2009 at 10:36, Scot Becker <scot.becker@gmail.com> wrote:
|
| On a debian-based system, and perhaps others, /etc/emacs/site-start.d
| has a few files that set variables and define functions for use with
| the Debian(Ubuntu, etc) system policies. There might be nothing in
| there that your setup depends on, but I wouldn't want to risk it. you
| can glance through the files in there and see what kinds of things
| they touch.
|
| However, if you want to try without it, you can rename it. If that
| causes errors, you can rename it, then create an empty directory in
| the same place /etc/emacs/site-start.d.
|
| If that's where the problem is, the principal of dissection should
| work there as well, just move the files out of the directory one at a
| time (tryiing your export with emacs -Q each time, to see where the
| offending file is.
|
| Scot
|
| On Tue, Apr 28, 2009 at 10:02 PM, Eraldo Helal <office@eraldo.at> wrote:
| > Is it save to just delte that directory: /etc/emacs/site-start.d
| > Because I guess the error lies somewhere in there.
| > Or is this directory important for something?
| >
| > On Tue, Apr 28, 2009 at 22:46, Eraldo Helal <office@eraldo.at> wrote:
| >>
| >> I discovered that there is a directory: /etc/emacs/site-start.d
| >> http://paste.org/6848
| >>
| >> Does this also get loaded by default and ignored with --no-site-file ? //
| >> that would make some sense again (to me)
| >
| >
| > _______________________________________________
| > Emacs-orgmode mailing list
| > Remember: use `Reply All' to send replies to the list.
| > Emacs-orgmode@gnu.org
| > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
| >
| >
|
|
| [[End of PGP Signed Part]]
`----
But I don't think that there is an org-mode package as Jere suggests: I
think it came as part of emacs. You'll probably need to do a little
surgery as the mail describes.
HTH,
Nick
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: In response to: .emacs works on Mac but not on Ubuntu
2009-06-16 22:12 ` Nick Dokos
@ 2009-06-17 15:40 ` Graham Smith
2009-06-17 16:24 ` Ian Barton
0 siblings, 1 reply; 10+ messages in thread
From: Graham Smith @ 2009-06-17 15:40 UTC (permalink / raw
To: nicholas.dokos; +Cc: emacs-orgmode
Thanks everyone
>> > picked up and not your latest version. To check that, type
>> >
>> > dpkg --list | grep org
>> >
>> > and see if org mode was installed by the package manager. If so, just do a
>> > normal remove and see if that doesn't take care of it.
> Jere may be right: I recall previous discussions on the list that
> indicated this kind of problem. You might want to check for the existence
> of /etc/emacsXXX/site-start.d/50org-mode.el.
Tries both these thngs and can't find any installed org-mode or that
50org-mode/.el file.
I will try a few more commentin outs and retyping things, but I still
find it strange that it wa working fine in Ubuntu 8.01 and not now.,
but I then find Linux a bit like that.
Should anyone have any othe suggestions, I would still appreciate them.
Many thanks,
Graham
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: In response to: .emacs works on Mac but not on Ubuntu
2009-06-17 15:40 ` Graham Smith
@ 2009-06-17 16:24 ` Ian Barton
2009-06-17 16:46 ` Graham Smith
2009-06-17 17:30 ` Graham Smith
0 siblings, 2 replies; 10+ messages in thread
From: Ian Barton @ 2009-06-17 16:24 UTC (permalink / raw
To: Graham Smith; +Cc: emacs-orgmode
> I will try a few more commentin outs and retyping things, but I still
> find it strange that it wa working fine in Ubuntu 8.01 and not now.,
> but I then find Linux a bit like that.
>
> Should anyone have any othe suggestions, I would still appreciate them.
>
> Many thanks,
>
I am using Ubuntu Jaunty with a setup almost identical to yours and mine
"Just works". Are you certain that:
> (setq load-path (cons "~/EmacsAddins/OrgMode/lisp" load-path))
> (setq load-path (cons "~/EmacsAddins/OrgMode/contrib/lisp" load-path))
Points to the correct version of org? Some things to try:
Remove the compiled lisp files (*.elc).
Edit org-install.el and type in some garbage. If emacs is trying to load
this library it should blow up with an error.
My default ubuntu emacs22 doesn't have any org packages loaded by
default. Try doing an apt-cache purge org-mode, which should completely
remove the Ubuntu version if it's installed.
Ian.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: In response to: .emacs works on Mac but not on Ubuntu
2009-06-17 16:24 ` Ian Barton
@ 2009-06-17 16:46 ` Graham Smith
2009-06-17 17:28 ` Ian Barton
2009-06-17 17:30 ` Graham Smith
1 sibling, 1 reply; 10+ messages in thread
From: Graham Smith @ 2009-06-17 16:46 UTC (permalink / raw
To: emacs-orgmode
Ian
Thanks, it just worked with 8.01 which is why I am struggling now.
> I am using Ubuntu Jaunty with a setup almost identical to yours and mine
> "Just works". Are you certain that:
>
>> (setq load-path (cons "~/EmacsAddins/OrgMode/lisp" load-path))
>> (setq load-path (cons "~/EmacsAddins/OrgMode/contrib/lisp" load-path))
>
> Points to the correct version of org? Some things to try:
It was the directory copied from the Mac, so it was 6.xx, but I have
just updated to latest version of web site.
> Remove the compiled lisp files (*.elc).
I have none to remove that I can find.
>
> Edit org-install.el and type in some garbage. If emacs is trying to load
> this library it should blow up with an error.
I haven't tried this, but the error message I get suggests an error
trying to load org.install, which I assume is because it can't find
it.
The error message is
Loading /home/graham/.recentf...done
Cleaning up the recentf list...done (0 removed)
An error has occurred while loading `/home/graham/.emacs':
File error: Cannot open load file, org-install
>
> My default ubuntu emacs22 doesn't have any org packages loaded by default.
> Try doing an apt-cache purge org-mode, which should completely remove the
> Ubuntu version if it's installed.
I have run this and get an error
"graham@T42-laptop:~$ sudo apt-cache purge org-mode
[sudo] password for graham:
E: Invalid operation purge"
I have also tried this:
"graham@T42-laptop:~$ emacs --debug-init"
but get
"Loading /home/graham/.recentf...done
Cleaning up the recentf list...done (0 removed)
require: Cannot open load file: debug"
Graham
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: In response to: .emacs works on Mac but not on Ubuntu
2009-06-17 16:46 ` Graham Smith
@ 2009-06-17 17:28 ` Ian Barton
2009-06-17 18:04 ` Graham Smith
0 siblings, 1 reply; 10+ messages in thread
From: Ian Barton @ 2009-06-17 17:28 UTC (permalink / raw
Cc: emacs-orgmode
> I have run this and get an error
>
> "graham@T42-laptop:~$ sudo apt-cache purge org-mode
> [sudo] password for graham:
> E: Invalid operation purge"
>
Doh, finger/brain communication mismatch. It should be:
sudo apt-get purge org-mode
This will completely remove the Debian package and all it configuration
files if it's installed.
Ian.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: In response to: .emacs works on Mac but not on Ubuntu
2009-06-17 16:24 ` Ian Barton
2009-06-17 16:46 ` Graham Smith
@ 2009-06-17 17:30 ` Graham Smith
1 sibling, 0 replies; 10+ messages in thread
From: Graham Smith @ 2009-06-17 17:30 UTC (permalink / raw
To: emacs-orgmode
I really don't understand why, but I have written out the paths in
full and it seems to work now
(setq load-path (cons "/home/graham/EmacsAddIns/OrgMode/lisp" load-path))
(setq load-path (cons "/home/graham/EmacsAddIns/OrgMode/contrib/lisp"
load-path))
Can anyone see any obvious differences between what I posted earlier
and what I have now.
Below is what wouldn't work
(setq load-path (cons "~/EmacsAddins/OrgMode/lisp" load-path))
(setq load-path (cons "~/EmacsAddins/OrgMode/contrib/lisp" load-path))
Thanks for everyones help.
Graham
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: In response to: .emacs works on Mac but not on Ubuntu
2009-06-17 17:28 ` Ian Barton
@ 2009-06-17 18:04 ` Graham Smith
0 siblings, 0 replies; 10+ messages in thread
From: Graham Smith @ 2009-06-17 18:04 UTC (permalink / raw
To: emacs-orgmode
Ian,
> Doh, finger/brain communication mismatch.
I get that as well :-)
>It should be:
>
> sudo apt-get purge org-mode
As you will have seen now, its working, but I'm still puzzled as to why.
Graham
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2009-06-17 18:04 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-16 21:40 In response to: .emacs works on Mac but not on Ubuntu jere.mcdevitt
-- strict thread matches above, loose matches on Subject: below --
2009-06-16 21:21 Jere McDevitt
2009-06-16 21:31 ` Graham Smith
2009-06-16 22:12 ` Nick Dokos
2009-06-17 15:40 ` Graham Smith
2009-06-17 16:24 ` Ian Barton
2009-06-17 16:46 ` Graham Smith
2009-06-17 17:28 ` Ian Barton
2009-06-17 18:04 ` Graham Smith
2009-06-17 17:30 ` Graham Smith
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.