Re: [O] org-install?

2016-06-14 Thread Grant Rettke
On Tue, Jun 14, 2016 at 12:06 PM, Rustom Mody  wrote:
> What is the setup procedure recommended for git-installed org?

1. Clone it to ~/src
2. Generate autoloads and Compiling Org without make:
http://orgmode.org/worg/org-hacks.html
3. Before the packaging stuff loads and runs in your config:
4. Always load the newest file: (setq load-prefer-newer t)
5. Load Org-Mode
(add-to-list 'load-path "~/src/org-mode/lisp")
(add-to-list 'load-path "~/src/org-mode/contrib/lisp")
(require 'org)




Re: [O] org-install?

2016-06-14 Thread Kaushal Modi
As I understand, the worg pages are not official pages. They can be
contributed to by anyone interested.

I would rather refer to http://orgmode.org/manual/Installation.html to
official org installation instructions.

In a nutshell, to install org from git,

1. Clone the git repo
2. Copy default.mk to local.mk and make changes in that as needed.
Typically one would simply need to change just the prefix variable. Change
any variable as you need in local.mk
3. make cleanall && make && make install

On Tue, Jun 14, 2016 at 1:12 PM Rustom Mody  wrote:

> There are a number of documentation pages, eg
> http://orgmode.org/worg/org-tutorials/org4beginners.html
> http://orgmode.org/worg/org-faq.html
>
> that recommend to use
> (require 'org-install)
>
> However org-install itself says:
>
> ;; The file org-install is obsolete.
> ;;
> ;; It is provided here so that (require 'org-install) does not
> ;; trigger an error for users with obsolete Emacs configuration.
> ;; You can safely remove (require 'org-install) from your config."
>
>
> And contains nothing else!!
>
> So what exactly is the case?
> What is the setup procedure recommended for git-installed org?
>
-- 

-- 
Kaushal Modi


[O] org-install?

2016-06-14 Thread Rustom Mody
There are a number of documentation pages, eg
http://orgmode.org/worg/org-tutorials/org4beginners.html
http://orgmode.org/worg/org-faq.html

that recommend to use
(require 'org-install)

However org-install itself says:

;; The file org-install is obsolete.
;;
;; It is provided here so that (require 'org-install) does not
;; trigger an error for users with obsolete Emacs configuration.
;; You can safely remove (require 'org-install) from your config."


And contains nothing else!!

So what exactly is the case?
What is the setup procedure recommended for git-installed org?


Re: [O] org-install not defining org-mode-map?

2012-05-15 Thread Eric Abrahamsen
On Tue, May 15 2012, Achim Gratz wrote:

> Eric Abrahamsen writes:
>> (require 'org-install)
>> (eval-after-load 'org
>> ; don't let org steal this key
>>   (define-key org-mode-map (kbd "C-'") nil))
>>
>> There are more such forms later on, they all throw the same error.
>
> I'm out of my depth here, but I'd think that this sort of thing really
> belongs into a mode hook.
>
>> I thought org-install was meant to handle this sort of thing?
>
> No.  It sets up all autoload forms so that the public interfaces of org
> become visible without actually loading all of org.
>
>> Or at least the eval-after-load? Still, org-mode-map is undefined
>> until I've opened my first org file and org is properly loaded.
>
> How long have you been using Emacs24, specifically has it ever worked
> there?  The scoping rules for global dynamic variables have changed for
> Emacs24 and the exact details seem not to be fully documented yet.  Does
> it start working again if you add a
>
> (defvar org-mode-map)
>
> after the require form?

I've been using emacs 24 for several months, and it's only in the past
few weeks that this has stopped working. Christopher's solution seems to
be the right one -- probably I should have been quoting that form the
whole time, but I'm quite certain it's worked, unquoted, for a while
now.

I'm assuming it does have something to with changes in how emacs 24
handles variables… Using your defvar suggestion didn't do it, though.

Thanks to you both,

Eric

-- 
GNU Emacs 24.1.50.5 (i686-pc-linux-gnu, GTK+ Version 2.24.10)
 of 2012-05-12 on pellet
7.8.09




Re: [O] org-install not defining org-mode-map?

2012-05-14 Thread Christopher Schmidt
Eric Abrahamsen  writes:

> I must have done something odd here, but…

Yes.

> On emacs startup, org-mode-map is not getting defined for some reason,
> so a bunch of `eval-after-load' forms are throwing errors. I'm using
> org from git, and the following is the first offending section:
> (require 'org-install)
> (eval-after-load 'org
> ; don't let org steal this key
>   (define-key org-mode-map (kbd "C-'") nil))

You have to quote the inner form.

Christopher



Re: [O] org-install not defining org-mode-map?

2012-05-14 Thread Achim Gratz
Eric Abrahamsen writes:
> (require 'org-install)
> (eval-after-load 'org
> ; don't let org steal this key
>   (define-key org-mode-map (kbd "C-'") nil))
>
> There are more such forms later on, they all throw the same error.

I'm out of my depth here, but I'd think that this sort of thing really
belongs into a mode hook.

> I thought org-install was meant to handle this sort of thing?

No.  It sets up all autoload forms so that the public interfaces of org
become visible without actually loading all of org.

> Or at least the eval-after-load? Still, org-mode-map is undefined
> until I've opened my first org file and org is properly loaded.

How long have you been using Emacs24, specifically has it ever worked
there?  The scoping rules for global dynamic variables have changed for
Emacs24 and the exact details seem not to be fully documented yet.  Does
it start working again if you add a

(defvar org-mode-map)

after the require form?


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




[O] org-install not defining org-mode-map?

2012-05-14 Thread Eric Abrahamsen
I must have done something odd here, but…

On emacs startup, org-mode-map is not getting defined for some reason,
so a bunch of `eval-after-load' forms are throwing errors. I'm using
org from git, and the following is the first offending section:

--8<---cut here---start->8---
(require 'org-install)
(eval-after-load 'org
; don't let org steal this key
  (define-key org-mode-map (kbd "C-'") nil))
--8<---cut here---end--->8---

There are more such forms later on, they all throw the same error.
Specifically:

--8<---cut here---start->8---
Debugger entered--Lisp error: (void-variable org-mode-map)
  (define-key org-mode-map (kbd "C-'") nil)
  (eval-after-load (quote org) (define-key org-mode-map (kbd "C-'") nil))
  eval-buffer(# nil "/home/eric/.emacs" nil t)  ; Reading at 
buffer position 13869
  load-with-code-conversion("/home/eric/.emacs" "/home/eric/.emacs" t t)
  load("~/.emacs" t t)
  #[0 "\205\262\306=\203\307\310Q\202;   
\311=\204\307\312Q\202;\313\307\314\315#\203*\316\202;\313\307\314\317#\203:\320\nB\321\202;\316\322\323\322\211#\210\322=\203a\324\325\326\307\327Q!\"\323\322\211#\210\322=\203`\210\203\243\330!\331\232\203\243\332!\211\333P\334!\203}\211\202\210\334!\203\207\202\210\314\262\203\241\335\"\203\237\336\337#\210\340\341!\210\266\f?\205\260\314\323\342\322\211#)\262\207"
 [init-file-user system-type delayed-warnings-list user-init-file 
inhibit-default-init inhibit-startup-screen ms-dos "~" "/_emacs" windows-nt 
"/.emacs" directory-files nil "^\\.emacs\\(\\.elc?\\)?$" "~/.emacs" 
"^_emacs\\(\\.elc?\\)?$" (initialization "`_emacs' init file is deprecated, 
please use `.emacs'") "~/_emacs" t load expand-file-name "init" 
file-name-as-directory "/.emacs.d" file-name-extension "elc" 
file-name-sans-extension ".el" file-exists-p file-newer-than-file-p message 
"Warning: %s is newer than %s" sit-for 1 "default"] 7 "\n\n(fn)"]()
  command-line()
  normal-top-level()
--8<---cut here---end--->8---

I thought org-install was meant to handle this sort of thing? Or at
least the eval-after-load? Still, org-mode-map is undefined until I've
opened my first org file and org is properly loaded.

No one else is complaining, so probably I'm doing something wrong, but
this used to work fine! I'm also running emacs from git -- perhaps
something has changed in the way eval-after-load works?

Thanks for any hints,
Eric

-- 
GNU Emacs 24.1.50.5 (i686-pc-linux-gnu, GTK+ Version 2.24.10)
 of 2012-05-12 on pellet
7.8.09




Re: [O] org-install ?

2011-07-01 Thread Michael Markert
On 1 Jul 2011, Giovanni Ridolfi wrote:

> 

> So I have some questions and answers:
>
> - (Since we are aiming to release org 7.6) will the org-install.el be
> generated during such process?
> - and during the compilation of Emacs 24?

The emacs-bundled org-mode org-install.el is empty (if it is
there). It's purpose is to provide an easy way to hook it with emacs.

> + I checked  version 6.21b (2009-02-02), shipped with Emacs 23.1,
> and it seems to me that there's no org-install file.
> so probably it will be generated during the compilation of Emacs 24.
>
> - Is it possible that, after 20th october 2010, something changed and
> the install file is generated *only* with the make command?
Can't answer that, but it would be strange if it shipped before.

> + well looking through the history of makefile it seems that
> org-install has been generated at least since 2008-01-31 Carsten
> Dominik Release 5.18 release_5.18.  bah?!
>
> cheers, Giovanni /who have to find a way to create the org-install.el
> without using make or using make, but without compiling org-mode. No
> .elc file around, please! :-) Perhaps it is time to get Emacs 24 or
> package manager ;-)

Because of the autoload problems mentioned in another thread I built an
elisp file to have something to play with.

Put it in the base folder and run it with `emacs -Q -l gen-autoloads.el'
or directly via emacs, but make sure that you are in the base-folder.

Michael

(setq org-lisp-files '(org.el
   org-agenda.el
   org-ascii.el
   org-attach.el
   org-archive.el
   org-bbdb.el
   org-beamer.el
   org-bibtex.el
   org-capture.el
   org-clock.el
   org-colview.el
   org-colview-xemacs.el
   org-compat.el
   org-pcomplete.el
   org-crypt.el
   org-ctags.el
   org-datetree.el
   org-docview.el
   org-entities.el
   org-exp.el
   org-exp-blocks.el
   org-docbook.el
   org-faces.el
   org-feed.el
   org-footnote.el
   org-freemind.el
   org-gnus.el
   org-habit.el
   org-html.el
   org-icalendar.el
   org-id.el
   org-indent.el
   org-info.el
   org-inlinetask.el
   org-jsinfo.el
   org-irc.el
   org-latex.el
   org-list.el
   org-mac-message.el
   org-macs.el
   org-mew.el
   org-mhe.el
   org-mks.el
   org-mobile.el
   org-mouse.el
   org-publish.el
   org-plot.el
   org-protocol.el
   org-remember.el
   org-rmail.el
   org-special-blocks.el
   org-src.el
   org-table.el
   org-taskjuggler.el
   org-timer.el
   org-vm.el
   org-w3m.el
   org-wl.el
   org-xoxo.el
   ob.el
   ob-table.el
   ob-lob.el
   ob-ref.el
   ob-exp.el
   ob-tangle.el
   ob-comint.el
   ob-eval.el
   ob-keys.el
   ob-awk.el
   ob-C.el
   ob-calc.el
   ob-ditaa.el
   ob-haskell.el
   ob-perl.el
   ob-sh.el
   ob-R.el
   ob-dot.el
   ob-mscgen.el
   ob-latex.el
   ob-lisp.el
   ob-ledger.el
   ob-python.el
   ob-sql.el
   ob-asymptote.el
   ob-emacs-lisp.el
   ob-matlab.el
   ob-ruby.el
   ob-sqlite.el
   ob-clojure.el
   ob-ocaml.el
   ob-sass.el
   ob-css.el
   ob-gnuplot.el
   ob-octave.el
   ob-screen.el
   ob-plantuml.el
   ob-org.el
   ob-js.el
   ob-scheme.

Re: [O] org-install ?

2011-07-01 Thread Giovanni Ridolfi
Memnon Anon  writes:

Memnon and Michael, thank you for your time,

this is just for archival purpose.

> Giovanni Ridolfi  writes:
>
>> GNU Emacs 23.3.1 (i386-mingw-nt5.1.2600) of 2011-03-10 on 3249CTO
>> Org-mode version 7.5 9c582ceed8c4ffc1b83f719f8bcabbc2e23027b2 
>>
>> I used to have a 
>> \lisp\org-install.el
>> file in my load path. This file was there since 
>> 20th October 2010 and everythig has been fine untill today.
>>
>> I've just found that in the latest version of org-mode 
>> there's no  "\lisp\org-install.el" anymore.
>
> ma@mymachine:~/tmp/bin/org-mode$ git pull
[...]
>4f3a31d..ffa016b  master -> origin/master
> [...]
> ma@mymachine:~/tmp/bin/org-mode$ make clean
> [...]
> ma@mymachine:~/tmp/bin/org-mode$ make
> [...]
> ma@mymachine:~/tmp/bin/org-mode$ ls -alh lisp/org-install.*
> -rw-r--r-- 1 ma ma 66K 30. Jun 20:07 lisp/org-install.el
>
> Its still there.

I am on a windows machine where I cannot have git neither cygwin,
since I have only user permission.

This morning (in Italy, 8.00 UTC) I downloaded the tar.gz of
Org-mode version 7.5 311b09d92644f39040087327d6a1dbeb09a9ab6e

and the org-install.el file is not in the tar.gz file.

I surfed the git repository with my browser and found that
in the /org/lisp directory:

http://orgmode.org/w/?p=org-mode.git;a=tree;f=lisp;h=5be11d857b3b180d058ad25b5a985d0ac798e41b;hb=311b09d92644f39040087327d6a1dbeb09a9ab6e

there's no org-install.el.

This is (now) obvious, since org-install.el is generated by make, as can be
read in the makefile.
---
# The following variables need to be defined by the maintainer
LISPF  = [snip]
LISPFILES0  = $(LISPF:%=lisp/%)
LISPFILES   = $(LISPFILES0) lisp/org-install.el
[...]
mv org-install.el lisp # ! aha! :-/


However searching the history of makefile
http://orgmode.org/w/?p=org-mode.git;a=history;f=Makefile;hb=912ca556015c745a035d481b18d3e3bf8e930955

I was not able to find when this procedure was introduced. 
Moreover the commits arount 20th October 2010 leave 
untouched such part of the makefile.
Where does my org-install.el come from? Impossible to know.

Even it is a complex file! this is its head:

  ;;;### (autoloads (org-customize org-reload org-require-autoloaded-modules
  ;;  org-submit-bug-report org-cycle-agenda-files org-switchb
  ;;  org-map-entries org-open-link-from-string org-open-at-point-global
  ;;  org-insert-link-global org-store-link org-run-like-in-org-mode
  ;;  turn-on-orgstruct++ turn-on-orgstruct orgstruct-mode org-global-cycle
  ;;  org-mode org-babel-do-load-languages) "org" "lisp/org.el"
  ;;  (19641 15028))
  ;;; Generated autoloads from lisp/org.el

So I have some questions and answers: 

- (Since we are aiming to release org 7.6) will the org-install.el be
  generated during such process?
- and during the compilation of Emacs 24?  

+ I checked  version 6.21b (2009-02-02), shipped with Emacs 23.1,
  and it seems to me that there's no org-install file.
  so probably it will be generated during the compilation of Emacs 24.

- Is it possible that, after 20th october 2010, something changed and 
  the install file is generated *only* with the make command? 

+ well looking through the history of makefile it seems that org-install
  has been generated at least since 
  2008-01-31 Carsten Dominik Release 5.18  release_5.18.
  bah?!

cheers,
Giovanni 
/who have to find a way to create the org-install.el without using make
 or using make, but without compiling org-mode. No .elc file around,
 please! :-)
Perhaps it is time to get Emacs 24 or package manager ;-)



Re: [O] org-install ?

2011-06-30 Thread Memnon Anon
Giovanni Ridolfi  writes:

> GNU Emacs 23.3.1 (i386-mingw-nt5.1.2600) of 2011-03-10 on 3249CTO
> Org-mode version 7.5 9c582ceed8c4ffc1b83f719f8bcabbc2e23027b2 
>
> I used to have a 
> \lisp\org-install.el
> file in my load path. This file was there since 
> 20th October 2010 and everythig has been fine.
>
> I've just found that in the latest version of org-mode 
> there's no  "\lisp\org-install.el" anymore.

ma@mymachine:~/tmp/bin/org-mode$ git pull
remote: Counting objects: 588, done.
remote: Compressing objects: 100% (536/536), done.
remote: Total 538 (delta 413), reused 0 (delta 0)
Receiving objects: 100% (538/538), 111.62 KiB | 3 KiB/s, done.
Resolving deltas: 100% (413/413), completed with 46 local objects.
>From git://orgmode.org/org-mode
   4f3a31d..ffa016b  master -> origin/master
Updating 4f3a31d..ffa016b
[...]
ma@mymachine:~/tmp/bin/org-mode$ make clean
[...]
ma@mymachine:~/tmp/bin/org-mode$ make
[...]
ma@mymachine:~/tmp/bin/org-mode$ ls -alh lisp/org-install.*
-rw-r--r-- 1 ma ma 66K 30. Jun 20:07 lisp/org-install.el
-rw-r--r-- 1 ma ma 61K 30. Jun 20:07 lisp/org-install.elc

Its still there.

> I'm puzzled.

So am I.

Memnon





Re: [O] org-install ?

2011-06-30 Thread Michael Markert
On 30 Jun 2011, Giovanni Ridolfi wrote:

> Hello everyone,
>
> GNU Emacs 23.3.1 (i386-mingw-nt5.1.2600) of 2011-03-10 on 3249CTO
> Org-mode version 7.5 9c582ceed8c4ffc1b83f719f8bcabbc2e23027b2
>
> I used to have a
> \lisp\org-install.el
> file in my load path. This file was there since
> 20th October 2010 and everythig has been fine.
>
> I've just found that in the latest version of org-mode
> there's no  "\lisp\org-install.el" anymore.
>
> For this reason I cannot call babel from my .emacs
>
> 

That file is autogenerated, so try a `make' or at least a `make
autoloads'.

> However I can run the *agenda* C-c a command that, correctly,
> loads org and shows me the buffer with agenda options.

I think that "works" because of the emacs bundled org-mode. What is the
content of `org-version'? (C-h v org-version)

Michael


pgp5arOZxUBmh.pgp
Description: PGP signature


[O] org-install ?

2011-06-30 Thread Giovanni Ridolfi
Hello everyone,

GNU Emacs 23.3.1 (i386-mingw-nt5.1.2600) of 2011-03-10 on 3249CTO
Org-mode version 7.5 9c582ceed8c4ffc1b83f719f8bcabbc2e23027b2 

I used to have a 
\lisp\org-install.el
file in my load path. This file was there since 
20th October 2010 and everythig has been fine.

I've just found that in the latest version of org-mode 
there's no  "\lisp\org-install.el" anymore.

For this reason I cannot call babel from my .emacs

(org-babel-do-load-languages 
anymore, because shows the error:
 Symbol's function definition is void: org-babel-do-load-languages

If I comment babel's lines with a just opened Emacs

I cannot open a capture buffer 
C-c c 
Symbol's function definition is void: org-capture

However I can run the *agenda* C-c a command that, correctly,
loads org and shows me the buffer with agenda options.

I'm puzzled.

cheers,

Giovanni