Re: [Orgmode] Makefile fix reverted?

2007-12-21 Thread Carsten Dominik
Looks good, I will put this in.

- Carsten

On Dec 20, 2007 6:56 PM, Miguel A. Figueroa-Villanueva <[EMAIL PROTECTED]> 
wrote:
> Hello Carsten,
>
> I updated org-mode and realized that the Makefile fix that we had
> applied a while back was reverted. I did a search on the mailing list
> and found the following thread:
>
> http://www.mail-archive.com/emacs-orgmode@gnu.org/msg03374.html
>
> which might have been the reason for reverting this, but I believe
> that the correct thing is to do as:
>
> http://www.mail-archive.com/emacs-orgmode@gnu.org/msg03380.html
>
> That is, have both the cwd and lispdir in the list to load-path.
> Currently, I have the following and it is working:
>
> BATCH=$(EMACS) -batch -q -eval \
>  "(progn (add-to-list (quote load-path) \".\") \
>  (add-to-list (quote load-path) \"$(lispdir)\"))"
>
> Thanks,
> --Miguel
>
>
> ___
> 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
>


___
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


[Orgmode] Makefile fix reverted?

2007-12-20 Thread Miguel A. Figueroa-Villanueva
Hello Carsten,

I updated org-mode and realized that the Makefile fix that we had
applied a while back was reverted. I did a search on the mailing list
and found the following thread:

http://www.mail-archive.com/emacs-orgmode@gnu.org/msg03374.html

which might have been the reason for reverting this, but I believe
that the correct thing is to do as:

http://www.mail-archive.com/emacs-orgmode@gnu.org/msg03380.html

That is, have both the cwd and lispdir in the list to load-path.
Currently, I have the following and it is working:

BATCH=$(EMACS) -batch -q -eval \
 "(progn (add-to-list (quote load-path) \".\") \
 (add-to-list (quote load-path) \"$(lispdir)\"))"

Thanks,
--Miguel


___
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


Re: [Orgmode] Makefile fix?

2007-07-12 Thread Carsten Dominik

OK, this goes into the next release.

- Carsten

On Jul 11, 2007, at 14:27, Miguel A. Figueroa-Villanueva wrote:


On 7/11/07, Carsten Dominik <[EMAIL PROTECTED]> wrote:

On Jul 11, 2007, at 6:15, Eddward DeVilla wrote:
> Oops.  lispdir won't expand due to the single quotes.  Maybe this 
will

> work a little bit better.
>
> BATCH=$(EMACS) -batch -q -eval "(add-to-list (quote load-path)
> \"$(lispdir)\")"
>
> Edd
That seems to work ok.  Miguel, can you confirm?
I am not sure if all versions of make have the
control structure you have been proposing?

- Carsten


Now it works. I'm not sure if there is a prettier way to do it, but to
me it seems like the right way.

Thanks to you both.

--Miguel




--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Makefile fix?

2007-07-11 Thread Miguel A. Figueroa-Villanueva

On 7/11/07, Carsten Dominik <[EMAIL PROTECTED]> wrote:

On Jul 11, 2007, at 6:15, Eddward DeVilla wrote:
> Oops.  lispdir won't expand due to the single quotes.  Maybe this will
> work a little bit better.
>
> BATCH=$(EMACS) -batch -q -eval "(add-to-list (quote load-path)
> \"$(lispdir)\")"
>
> Edd
That seems to work ok.  Miguel, can you confirm?
I am not sure if all versions of make have the
control structure you have been proposing?

- Carsten


Now it works. I'm not sure if there is a prettier way to do it, but to
me it seems like the right way.

Thanks to you both.

--Miguel


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Makefile fix?

2007-07-11 Thread Carsten Dominik

That seems to work ok.  Miguel, can you confirm?
I am not sure if all versions of make have the
control structure you have been proposing?

- Carsten

On Jul 11, 2007, at 6:15, Eddward DeVilla wrote:


Oops.  lispdir won't expand due to the single quotes.  Maybe this will
work a little bit better.

BATCH=$(EMACS) -batch -q -eval "(add-to-list (quote load-path) 
\"$(lispdir)\")"


Edd

On 7/10/07, Miguel A. Figueroa-Villanueva <[EMAIL PROTECTED]> wrote:

Hello Carsten,

Yep, I guess I missed that point... I tried your idea below, but it
didn't work on my end. If it works then maybe it is a more robust
solution. However, the following code worked for me for emacs and
xemacs. Note that it assumes that the EMACS variable is either emacs
or xemacs.

# Name of your emacs binary
EMACS=emacs

# Using emacs in batch mode.
ifeq ($(EMACS),xemacs)
  BATCH=$(EMACS) -batch -q -l $(lispdir)/noutline
else
  BATCH=$(EMACS) -batch -q
endif

Hope this helps.

--Miguel

On 7/10/07, Carsten Dominik <[EMAIL PROTECTED]> wrote:
> You are right, this would be better.  However, the same line
> then would not work for Emacs, so we need something still
> better.  Maybe something like
>
> BATCH=$(EMACS) -batch -q
> -eval '(add-to-list 'load-path "$(lispdir)")'
>
> but that is still difficult with all the quoting and escaping of
> quoting.  Does anyone here know how to make this work?
>
> - Carsten
>
> On Jul 8, 2007, at 20:21, Miguel A. Figueroa-Villanueva wrote:
>
> > Hello Everyone,
> >
> > First of all thanks for creating such a great tool!! Kudos 
Dominik!!

> >
> > Now, I updated orgmode and had minor problems with the 
installation.
> > The problem was because I use XEmacs so it requires the 
noutline.el

> > installed. Since I edited the following entries:
> >
> > # Where local software is found
> > prefix=/root_dir/svn/usr/local
> >
> > # Where local lisp files go.
> > lispdir = $(prefix)/share/emacs
> >
> > when I type 'make install-noutline' it installs it in $(lispdir),
> > which is what I wanted (i.e., not in the standard lisp 
directory). The
> > $(lispdir) is of course added to the load-path in my init.el, but 
for

> > the remaining compilation of org.el it won't know to look for
> > noutline.el in there.
> >
> > Now, since we need noutline.el to compile org.el for XEmacs and we
> > just installed it in $(lispdir), shouldn't the following line:
> >
> > BATCH=$(EMACS) -batch -q
> >
> > read like this instead:
> >
> > BATCH=$(EMACS) -batch -q -l $(lispdir)/noutline
> >
> > That is where my problem was and by making the change above it was
> > fixed. Notice that if $(lispdir) is set to the standard lisp 
directory

> > then the problem won't arise.
> >
> > Well, I hope that this helps in case others encounter the same 
problem.

> >
> > Thanks again,
> > --Miguel
> >
> >
> > ___
> > Emacs-orgmode mailing list
> > Emacs-orgmode@gnu.org
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> >
> >
>
> --
> Carsten Dominik
> Sterrenkundig Instituut "Anton Pannekoek"
> Universiteit van Amsterdam
> Kruislaan 403
> NL-1098SJ Amsterdam
> phone: +31 20 525 7477
>
>


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode






--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Makefile fix?

2007-07-10 Thread Eddward DeVilla

Oops.  lispdir won't expand due to the single quotes.  Maybe this will
work a little bit better.

BATCH=$(EMACS) -batch -q -eval "(add-to-list (quote load-path) \"$(lispdir)\")"

Edd

On 7/10/07, Miguel A. Figueroa-Villanueva <[EMAIL PROTECTED]> wrote:

Hello Carsten,

Yep, I guess I missed that point... I tried your idea below, but it
didn't work on my end. If it works then maybe it is a more robust
solution. However, the following code worked for me for emacs and
xemacs. Note that it assumes that the EMACS variable is either emacs
or xemacs.

# Name of your emacs binary
EMACS=emacs

# Using emacs in batch mode.
ifeq ($(EMACS),xemacs)
  BATCH=$(EMACS) -batch -q -l $(lispdir)/noutline
else
  BATCH=$(EMACS) -batch -q
endif

Hope this helps.

--Miguel

On 7/10/07, Carsten Dominik <[EMAIL PROTECTED]> wrote:
> You are right, this would be better.  However, the same line
> then would not work for Emacs, so we need something still
> better.  Maybe something like
>
> BATCH=$(EMACS) -batch -q
> -eval '(add-to-list 'load-path "$(lispdir)")'
>
> but that is still difficult with all the quoting and escaping of
> quoting.  Does anyone here know how to make this work?
>
> - Carsten
>
> On Jul 8, 2007, at 20:21, Miguel A. Figueroa-Villanueva wrote:
>
> > Hello Everyone,
> >
> > First of all thanks for creating such a great tool!! Kudos Dominik!!
> >
> > Now, I updated orgmode and had minor problems with the installation.
> > The problem was because I use XEmacs so it requires the noutline.el
> > installed. Since I edited the following entries:
> >
> > # Where local software is found
> > prefix=/root_dir/svn/usr/local
> >
> > # Where local lisp files go.
> > lispdir = $(prefix)/share/emacs
> >
> > when I type 'make install-noutline' it installs it in $(lispdir),
> > which is what I wanted (i.e., not in the standard lisp directory). The
> > $(lispdir) is of course added to the load-path in my init.el, but for
> > the remaining compilation of org.el it won't know to look for
> > noutline.el in there.
> >
> > Now, since we need noutline.el to compile org.el for XEmacs and we
> > just installed it in $(lispdir), shouldn't the following line:
> >
> > BATCH=$(EMACS) -batch -q
> >
> > read like this instead:
> >
> > BATCH=$(EMACS) -batch -q -l $(lispdir)/noutline
> >
> > That is where my problem was and by making the change above it was
> > fixed. Notice that if $(lispdir) is set to the standard lisp directory
> > then the problem won't arise.
> >
> > Well, I hope that this helps in case others encounter the same problem.
> >
> > Thanks again,
> > --Miguel
> >
> >
> > ___
> > Emacs-orgmode mailing list
> > Emacs-orgmode@gnu.org
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> >
> >
>
> --
> Carsten Dominik
> Sterrenkundig Instituut "Anton Pannekoek"
> Universiteit van Amsterdam
> Kruislaan 403
> NL-1098SJ Amsterdam
> phone: +31 20 525 7477
>
>


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Makefile fix?

2007-07-10 Thread Miguel A. Figueroa-Villanueva

Hello Carsten,

Yep, I guess I missed that point... I tried your idea below, but it
didn't work on my end. If it works then maybe it is a more robust
solution. However, the following code worked for me for emacs and
xemacs. Note that it assumes that the EMACS variable is either emacs
or xemacs.

# Name of your emacs binary
EMACS=emacs

# Using emacs in batch mode.
ifeq ($(EMACS),xemacs)
 BATCH=$(EMACS) -batch -q -l $(lispdir)/noutline
else
 BATCH=$(EMACS) -batch -q
endif

Hope this helps.

--Miguel

On 7/10/07, Carsten Dominik <[EMAIL PROTECTED]> wrote:

You are right, this would be better.  However, the same line
then would not work for Emacs, so we need something still
better.  Maybe something like

BATCH=$(EMACS) -batch -q
-eval '(add-to-list 'load-path "$(lispdir)")'

but that is still difficult with all the quoting and escaping of
quoting.  Does anyone here know how to make this work?

- Carsten

On Jul 8, 2007, at 20:21, Miguel A. Figueroa-Villanueva wrote:

> Hello Everyone,
>
> First of all thanks for creating such a great tool!! Kudos Dominik!!
>
> Now, I updated orgmode and had minor problems with the installation.
> The problem was because I use XEmacs so it requires the noutline.el
> installed. Since I edited the following entries:
>
> # Where local software is found
> prefix=/root_dir/svn/usr/local
>
> # Where local lisp files go.
> lispdir = $(prefix)/share/emacs
>
> when I type 'make install-noutline' it installs it in $(lispdir),
> which is what I wanted (i.e., not in the standard lisp directory). The
> $(lispdir) is of course added to the load-path in my init.el, but for
> the remaining compilation of org.el it won't know to look for
> noutline.el in there.
>
> Now, since we need noutline.el to compile org.el for XEmacs and we
> just installed it in $(lispdir), shouldn't the following line:
>
> BATCH=$(EMACS) -batch -q
>
> read like this instead:
>
> BATCH=$(EMACS) -batch -q -l $(lispdir)/noutline
>
> That is where my problem was and by making the change above it was
> fixed. Notice that if $(lispdir) is set to the standard lisp directory
> then the problem won't arise.
>
> Well, I hope that this helps in case others encounter the same problem.
>
> Thanks again,
> --Miguel
>
>
> ___
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477





___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Makefile fix?

2007-07-09 Thread Carsten Dominik

You are right, this would be better.  However, the same line
then would not work for Emacs, so we need something still
better.  Maybe something like

BATCH=$(EMACS) -batch -q
   -eval '(add-to-list 'load-path "$(lispdir)")'

but that is still difficult with all the quoting and escaping of
quoting.  Does anyone here know how to make this work?

- Carsten

On Jul 8, 2007, at 20:21, Miguel A. Figueroa-Villanueva wrote:


Hello Everyone,

First of all thanks for creating such a great tool!! Kudos Dominik!!

Now, I updated orgmode and had minor problems with the installation.
The problem was because I use XEmacs so it requires the noutline.el
installed. Since I edited the following entries:

# Where local software is found
prefix=/root_dir/svn/usr/local

# Where local lisp files go.
lispdir = $(prefix)/share/emacs

when I type 'make install-noutline' it installs it in $(lispdir),
which is what I wanted (i.e., not in the standard lisp directory). The
$(lispdir) is of course added to the load-path in my init.el, but for
the remaining compilation of org.el it won't know to look for
noutline.el in there.

Now, since we need noutline.el to compile org.el for XEmacs and we
just installed it in $(lispdir), shouldn't the following line:

BATCH=$(EMACS) -batch -q

read like this instead:

BATCH=$(EMACS) -batch -q -l $(lispdir)/noutline

That is where my problem was and by making the change above it was
fixed. Notice that if $(lispdir) is set to the standard lisp directory
then the problem won't arise.

Well, I hope that this helps in case others encounter the same problem.

Thanks again,
--Miguel


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Makefile fix?

2007-07-08 Thread Miguel A. Figueroa-Villanueva

Hello Everyone,

First of all thanks for creating such a great tool!! Kudos Dominik!!

Now, I updated orgmode and had minor problems with the installation.
The problem was because I use XEmacs so it requires the noutline.el
installed. Since I edited the following entries:

# Where local software is found
prefix=/root_dir/svn/usr/local

# Where local lisp files go.
lispdir = $(prefix)/share/emacs

when I type 'make install-noutline' it installs it in $(lispdir),
which is what I wanted (i.e., not in the standard lisp directory). The
$(lispdir) is of course added to the load-path in my init.el, but for
the remaining compilation of org.el it won't know to look for
noutline.el in there.

Now, since we need noutline.el to compile org.el for XEmacs and we
just installed it in $(lispdir), shouldn't the following line:

BATCH=$(EMACS) -batch -q

read like this instead:

BATCH=$(EMACS) -batch -q -l $(lispdir)/noutline

That is where my problem was and by making the change above it was
fixed. Notice that if $(lispdir) is set to the standard lisp directory
then the problem won't arise.

Well, I hope that this helps in case others encounter the same problem.

Thanks again,
--Miguel


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode