[O] why was makefile changed to produce this?

2011-10-17 Thread Jude DaShiell
Script started on Tue 18 Oct 2011 12:55:27 AM EDT
jude@stmarys:~/org-mode$ make sudo make install-info
(cd doc && makeinfo --no-split org.texi -o org)
/bin/sh: 1: makeinfo: not found
make: *** [doc/org] Error 127
jude@stmarys:~/org-mode$ exit
exit

Script done on Tue 18 Oct 2011 12:56:00 AM EDT

Jude 
If I got a nickel for every message I've already sent supporting Microsoft
Windows and its applications I'd have enough to retire on comfortably no
matter what the stock market did.




[O] [test] Mark tests with missing dependencies as "expected to fail"

2011-10-17 Thread David Maus
Hi all,

Currently tests with missing dependency are silently skipped -- it
might be worth changing this behavior to not skip them, but mark them
as expected to fail. You can do this in ERT by placing the
keyword :expected-result followed by either :passed or :failed before
the test's body.

Benefit of this is that the tests w/ missing dependencies will show up
in the ERT result page (with a small letter f) but (obviously) don't
count as failures.

The following macro is a first shot at a convenient way to define
tests with dependencies:

#+begin_src emacs-lisp
  (defmacro org-test-deftest-with-dependency (dependency &rest body)
(let* ((docstring (if (stringp (third body)) (list (third body
   (deftest (nthcdr (if docstring 3 2) body))
   (dependency-p (eval dependency)))
  `(ert-deftest ,@(append (list (first body) (second body)) docstring)
   ,@(if dependency-p
 '(:expected-result :passed)
   '(:expected-result :failed (error "Missing dependency")))
 ,@deftest)))
#+end_src

Here DEPENDENCY is a simple form that evaluates to non-nil if the
dependency is met. If marking the tests this way is the agreed way to
go we can extend the syntax of a dependency to an alist with a
human-readable description of the dependency as key and a list of
forms that all must eval to non-nil as value. E.g.

#+begin_src emacs-lisp
  (defvar test-ob-R-dependencies
'(("R executable" (org-test-for-executable "R"))
  ("Package ESS" (featurep 'ess
#+end_src

And change the expander code to map through this alist and as soon one
dependency evals to nil sets a variable `dependency-missing' to the
respective dependency.

Any comments on this?

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgpd0RqkU37fe.pgp
Description: PGP signature


Re: [O] eps inline

2011-10-17 Thread Henri-Paul Indiogine
Greegins!

2011/10/17 Nick Dokos :
>    http://thread.gmane.org/gmane.emacs.orgmode/46172

>From reading this thread I suspect that the problem is the older
version of TeXLive, which is still 2009 even in the latest Ubuntu.
For the time being I will convert to png using imagemagick.   Maybe I
can figure out how to get a newer version of TeXLive.

Thanks,
Henri-Paul



-- 
Henri-Paul Indiogine

Curriculum & Instruction
Texas A&M University
TutorFind Learning Centre

Email: hindiog...@gmail.com
Skype: hindiogine
Website: http://people.cehd.tamu.edu/~sindiogine



Re: [O] Bug passing tables to R code blocks?

2011-10-17 Thread Nick Dokos
Thomas S. Dye  wrote:

> Aloha all,
> 
> I'm seeing some unexpected behavior when passing two tables into an R
> source code block.  Things seem to work as expected when only one table is
> passed. 
> 
> In the following example, the header for the second table ends up on the
> first table when I evaluate the source code block.
> 
> * R tables
> 
> #+TBLNAME: tbl-1
> | column1 | column2 |
> |-+-|
> |  45 |  34 |
> |  77 |  56 |
> 
> #+tblname: tbl-2
> | col1 | col2 |
> |--+--|
> | a| b|
> | c| d|
> 
> #+BEGIN_SRC R :var x=tbl-1 :var y=tbl-2 :colnames yes
> x
> #+END_SRC
> 
> #+results:
> | col1 | col2 |
> |--+--|
> |   45 |   34 |
> |   77 |   56 |
> 
> release_7.7-396-g3538
> Org-mode version 7.7 (release_7.7.396.g3538)
> 
> Bug?  Or my setup?
> 

Bug, I think: org-babel-disassemble-tables goes over tables from left to
right (top to bottom) but conses colnames (and rownames) to the front,
so they come out backwards. Reversing those two lists just before
org-babel-disassemble-tables returns should fix it.

Nick





[O] Bug passing tables to R code blocks?

2011-10-17 Thread Thomas S. Dye
Aloha all,

I'm seeing some unexpected behavior when passing two tables into an R
source code block.  Things seem to work as expected when only one table is
passed. 

In the following example, the header for the second table ends up on the
first table when I evaluate the source code block.

* R tables

#+TBLNAME: tbl-1
| column1 | column2 |
|-+-|
|  45 |  34 |
|  77 |  56 |

#+tblname: tbl-2
| col1 | col2 |
|--+--|
| a| b|
| c| d|

#+BEGIN_SRC R :var x=tbl-1 :var y=tbl-2 :colnames yes
x
#+END_SRC

#+results:
| col1 | col2 |
|--+--|
|   45 |   34 |
|   77 |   56 |

release_7.7-396-g3538
Org-mode version 7.7 (release_7.7.396.g3538)

Bug?  Or my setup?

All the best,
Tom

-- 
T.S. Dye & Colleagues, Archaeologists
735 Bishop St, Suite 315, Honolulu, HI 96813
Tel: 808-529-0866, Fax: 808-529-0884
http://www.tsdye.com



Re: [O] eps inline

2011-10-17 Thread Nick Dokos
Henri-Paul Indiogine  wrote:

> Hi!
> 
> I have the following in my org-mode file:
> 
> 8<-->8-
> #+LABEL: fig:gov-goal
> #+CAPTION: Codes for category GovGoal
> #+ATTR_LaTeX: placement=[h!]
> [[/home/henk/Dropbox/dissertation/graphic/gov-goal.eps]]
> -8<>8-
> 
> And this in my .emacs
> 
> -8<-->8---
> ; Export to LaTeX
> (setq org-export-latex-packages-alist
>   '(("" "color")
>   ("" "hyperref")
> ("" "graphicx")
>   ("" "apacite")
>   ("" "tikz")))
> -8<-->8-
> 
> The LaTeX file is generated, but the eps extension is not recognized
> even though graphicx is in the preamble.  I use Ubuntu 11.10, Emacs 23
> and AucTeX.
> 
> The failure happens when I press C-c C-c the latex compile command of AucTeX.
> 
> Any suggestions?
> 

See this thread:

http://thread.gmane.org/gmane.emacs.orgmode/46172

Nick

> Thanks,
> Henri-Paul
> 
> 
> -- 
> Henri-Paul Indiogine
> 
> Curriculum & Instruction
> Texas A&M University
> TutorFind Learning Centre
> 
> Email: hindiog...@gmail.com
> Skype: hindiogine
> Website: http://people.cehd.tamu.edu/~sindiogine
> 



Re: [O] LaTeX export crashes

2011-10-17 Thread Ken Williams
On Mon, Oct 17, 2011 at 8:31 PM, Nick Dokos  wrote:
>
> As I pointed out in the subsequent message, that's not good enough: 7.7 came 
> out
> on July 28 and the fix (at least what I *think* is the fix) did not go in 
> until
> September 13.

Ah, I see - I was thinking 7.7 came out at the end of September, not
sure why I thought that.

Looking at commit 597e1eb it does seem on target.  I'll probably hold
off upgrading until 7.8, since I'm running in a corporate environment
& I can survive fine with workarounds.

Thanks for your help.

 -Ken



Re: [O] LaTeX export crashes

2011-10-17 Thread Nick Dokos
Nick Dokos  wrote:

> Ken Williams  wrote:
> 
> > On Mon, Oct 17, 2011 at 4:52 PM, Nick Dokos  wrote:
> > > Ken Williams  wrote:
> > >
> > >> Here's a full stack trace, does this make it any more evident what's 
> > >> going on?
> > >>
> > >
> > > Not really: you have not mentioned what version you are using.
> > 
> > I did post my complete config, which this message was a direct reply to:
> > 
> >   http://article.gmane.org/gmane.emacs.orgmode/47841
> > 
> > I probably confused matters by posting first without my config, from
> > the wrong address, so I thought it wouldn't make it to the list.
> > 

Yup - that's what it was. I found the *other* thread:

  http://thread.gmane.org/gmane.emacs.orgmode/47842

> 
> Sorry about that - not sure what I did: I searched the list and found a
> thread but it did not have a config but I may not have gone back far
> enough. 
> 
> > > Chances are you are running an older version which has the problem, Seb 
> > > is running
> > > a recent 7.7 which does not exhibit the problem (I tried it too: works for
> > > me as well with Org-mode version 7.7 (release_7.7.392.g35d92)).
> > > So upgrade to latest and see if you can reproduce the problem.
> > 
> > Nope, I'm already running 7.7.
> > 
> >  -Ken
> > 
> 
> As I pointed out in the subsequent message, that's not good enough: 7.7 came 
> out
> on July 28 and the fix (at least what I *think* is the fix) did not go in 
> until
> September 13.
> 
> Nick
> 



Re: [O] LaTeX export crashes

2011-10-17 Thread Nick Dokos
Ken Williams  wrote:

> On Mon, Oct 17, 2011 at 4:52 PM, Nick Dokos  wrote:
> > Ken Williams  wrote:
> >
> >> Here's a full stack trace, does this make it any more evident what's going 
> >> on?
> >>
> >
> > Not really: you have not mentioned what version you are using.
> 
> I did post my complete config, which this message was a direct reply to:
> 
>   http://article.gmane.org/gmane.emacs.orgmode/47841
> 
> I probably confused matters by posting first without my config, from
> the wrong address, so I thought it wouldn't make it to the list.
> 

Sorry about that - not sure what I did: I searched the list and found a
thread but it did not have a config but I may not have gone back far
enough. 

> > Chances are you are running an older version which has the problem, Seb is 
> > running
> > a recent 7.7 which does not exhibit the problem (I tried it too: works for
> > me as well with Org-mode version 7.7 (release_7.7.392.g35d92)).
> > So upgrade to latest and see if you can reproduce the problem.
> 
> Nope, I'm already running 7.7.
> 
>  -Ken
> 

As I pointed out in the subsequent message, that's not good enough: 7.7 came out
on July 28 and the fix (at least what I *think* is the fix) did not go in until
September 13.

Nick



Re: [O] LaTeX export crashes

2011-10-17 Thread Ken Williams
On Mon, Oct 17, 2011 at 4:52 PM, Nick Dokos  wrote:
> Ken Williams  wrote:
>
>> Here's a full stack trace, does this make it any more evident what's going 
>> on?
>>
>
> Not really: you have not mentioned what version you are using.

I did post my complete config, which this message was a direct reply to:

  http://article.gmane.org/gmane.emacs.orgmode/47841

I probably confused matters by posting first without my config, from
the wrong address, so I thought it wouldn't make it to the list.

> Chances are you are running an older version which has the problem, Seb is 
> running
> a recent 7.7 which does not exhibit the problem (I tried it too: works for
> me as well with Org-mode version 7.7 (release_7.7.392.g35d92)).
> So upgrade to latest and see if you can reproduce the problem.

Nope, I'm already running 7.7.

 -Ken



[O] eps inline

2011-10-17 Thread Henri-Paul Indiogine
Hi!

I have the following in my org-mode file:

8<-->8-
#+LABEL: fig:gov-goal
#+CAPTION: Codes for category GovGoal
#+ATTR_LaTeX: placement=[h!]
[[/home/henk/Dropbox/dissertation/graphic/gov-goal.eps]]
-8<>8-

And this in my .emacs

-8<-->8---
; Export to LaTeX
(setq org-export-latex-packages-alist
  '(("" "color")
("" "hyperref")
("" "graphicx")
("" "apacite")
("" "tikz")))
-8<-->8-

The LaTeX file is generated, but the eps extension is not recognized
even though graphicx is in the preamble.  I use Ubuntu 11.10, Emacs 23
and AucTeX.

The failure happens when I press C-c C-c the latex compile command of AucTeX.

Any suggestions?

Thanks,
Henri-Paul


-- 
Henri-Paul Indiogine

Curriculum & Instruction
Texas A&M University
TutorFind Learning Centre

Email: hindiog...@gmail.com
Skype: hindiogine
Website: http://people.cehd.tamu.edu/~sindiogine



Re: [O] LaTeX export crashes

2011-10-17 Thread Nick Dokos
Nick Dokos  wrote:

> Ken Williams  wrote:
> 
> > On Thu, Oct 13, 2011 at 4:48 PM, Ken Williams  wrote:
> > > Hi, the following document makes a LaTeX export (C-c C-e d) crash with
> > > "Args out of range: "", -1, 0".  After that, exporting (to any format)
> > > dies with the same error.
> > > [snip]
> > 
> > Then Sebastien Vauban wrote:
> > > Works for me, with Org-mode version 7.7 (release_7.7.381.ge8629.dirty).
> > 
> > Here's a full stack trace, does this make it any more evident what's going 
> > on?
> > 
> 
> Not really: you have not mentioned what version you are using. Chances are
> you are running an older version which has the problem, Seb is running
> a recent 7.7 which does not exhibit the problem (I tried it too: works for
> me as well with Org-mode version 7.7 (release_7.7.392.g35d92)).
> So upgrade to latest and see if you can reproduce the problem.
> 

BTW, I suspect that commit 597e1eb4fe7b2674c2d5233f215217f7b35e4035 is what
fixed this problem. Given that this was done on Sept. 13, you need to run
something later than that to pick up the fix (or cherry pick the patch and
apply it to your version, but I wouldn't recommend this course of action).
The recommendation stands: upgrade!

Nick





Re: [O] LaTeX export crashes

2011-10-17 Thread Nick Dokos
Ken Williams  wrote:

> On Thu, Oct 13, 2011 at 4:48 PM, Ken Williams  wrote:
> > Hi, the following document makes a LaTeX export (C-c C-e d) crash with
> > "Args out of range: "", -1, 0".  After that, exporting (to any format)
> > dies with the same error.
> > [snip]
> 
> Then Sebastien Vauban wrote:
> > Works for me, with Org-mode version 7.7 (release_7.7.381.ge8629.dirty).
> 
> Here's a full stack trace, does this make it any more evident what's going on?
> 

Not really: you have not mentioned what version you are using. Chances are
you are running an older version which has the problem, Seb is running
a recent 7.7 which does not exhibit the problem (I tried it too: works for
me as well with Org-mode version 7.7 (release_7.7.392.g35d92)).
So upgrade to latest and see if you can reproduce the problem.

Nick



Re: [O] LaTeX export crashes

2011-10-17 Thread Ken Williams
On Thu, Oct 13, 2011 at 4:48 PM, Ken Williams  wrote:
> Hi, the following document makes a LaTeX export (C-c C-e d) crash with
> "Args out of range: "", -1, 0".  After that, exporting (to any format)
> dies with the same error.
> [snip]

Then Sebastien Vauban wrote:
> Works for me, with Org-mode version 7.7 (release_7.7.381.ge8629.dirty).

Here's a full stack trace, does this make it any more evident what's going on?

 -Ken

Debugger entered--Lisp error: (args-out-of-range "" -1 0)
  substring("" -1)
  (string= "\n" (substring body sub-length))
  (if (string= "\n" (substring body sub-length)) (substring body 0
sub-length) body)
  (let* ((body ...) (sub-length ...)) (if (string= "\n" ...)
(substring body 0 sub-length) body))
  (org-babel-clean-text-properties (let* (... ...) (if ... ... body)))
  (let* ((block-indentation ...) (lang ...) (lang-headers ...)
(switches ...) (body ...) (preserve-indentation ...)) (list lang
(with-temp-buffer ...) (org-babel-merge-params
org-babel-default-header-args ... ... ... ...) switches
block-indentation))
  org-babel-parse-src-block-match()
  (setq info (org-babel-parse-src-block-match))
  (save-excursion (goto-char head) (setq info
(org-babel-parse-src-block-match)) (setq indent (car ...)) (setq info
(butlast info)) (while (and ... ...) (setf ... ...)) (when (looking-at
org-babel-src-name-w-name-regexp) (setq name ...) (when ... ...)))
  (if (setq head (org-babel-where-is-src-block-head)) (save-excursion
(goto-char head) (setq info ...) (setq indent ...) (setq info ...)
(while ... ...) (when ... ... ...)) (when (save-excursion ... ...)
(setq info ...)))
  (let ((case-fold-search t) head info name indent) (if (setq head
...) (save-excursion ... ... ... ... ... ...) (when ... ...)) (when
(and info ...) (setf ... ...)) (when info (append info ...)))
  org-babel-get-src-block-info(light)
  (let* ((info ...) (lang ...) (raw-params ...) hash) (when info (when
... ... ...) (setf ... ...) (org-babel-exp-do-export info ... hash)))
  (save-excursion (goto-char (match-beginning 0)) (let* (... ... ...
hash) (when info ... ... ...)))
  org-babel-exp-src-block("" #("R" 0 1 (font-lock-fontified t fontified nil)))
  apply(org-babel-exp-src-block "" #("R" 0 1 (font-lock-fontified t
fontified nil)))
  (if (memq type org-export-blocks-witheld) "" (apply func body headers))
  (progn (if (memq type org-export-blocks-witheld) "" (apply func body
headers)))
  (unwind-protect (progn (if ... "" ...)) (set-match-data
save-match-data-internal (quote evaporate)))
  (let ((save-match-data-internal ...)) (unwind-protect (progn ...)
(set-match-data save-match-data-internal ...)))
  (save-match-data (if (memq type org-export-blocks-witheld) "" (apply
func body headers)))
  (let ((replacement ...)) (when replacement (delete-region
match-start match-end) (goto-char match-start) (insert replacement)
(unless preserve-indent ...)))
  (progn (let (...) (when replacement ... ... ... ...)))
  (if (setq func (cadr ...)) (progn (let ... ...)))
  (when (setq func (cadr ...)) (let (...) (when replacement ... ... ... ...)))
  (let* ((match-start ...) (body-start ...) (indentation ...)
(inner-re ...) (type ...) (headers ...) (balanced 1) (preserve-indent
...) match-end) (while (and ... ...) (if ... ... ...)) (when (not ...)
(error "unbalanced begin/end_%s blocks with %S" type ...)) (setq
match-end (match-end 0)) (unless preserve-indent (setq body ...))
(unless (memq type types) (setq types ...)) (save-match-data
(interblock start match-start)) (when (setq func ...) (let ... ...)))
  (while (re-search-forward beg-re nil t) (let* (... ... ... ... ...
... ... ... match-end) (while ... ...) (when ... ...) (setq match-end
...) (unless preserve-indent ...) (unless ... ...) (save-match-data
...) (when ... ...)) (setq start (point)))
  (let ((beg-re "^\\([  ]*\\)#\\+begin_\\(\\S-+\\)[ ]*\\(.*\\)?[
\n]")) (while (re-search-forward beg-re nil t) (let* ... ... ... ...
... ... ... ...) (setq start ...)))
  (progn (fset (quote interblock) (function* ...)) (goto-char
(point-min)) (setq start (point)) (let (...) (while ... ... ...))
(interblock start (point-max)) (run-hooks (quote
org-export-blocks-postblock-hook)))
  (unwind-protect (progn (fset ... ...) (goto-char ...) (setq start
...) (let ... ...) (interblock start ...) (run-hooks ...)) (if
--cl-letf-bound-- (fset ... --cl-letf-save--) (fmakunbound ...)))
  (let* ((--cl-letf-bound-- ...) (--cl-letf-save-- ...))
(unwind-protect (progn ... ... ... ... ... ...) (if --cl-letf-bound--
... ...)))
  (letf ((... ...)) (goto-char (point-min)) (setq start (point)) (let
(...) (while ... ... ...)) (interblock start (point-max)) (run-hooks
(quote org-export-blocks-postblock-hook)))
  (letf* ((... ...)) (goto-char (point-min)) (setq start (point)) (let
(...) (while ... ... ...)) (interblock start (point-max)) (run-hooks
(quote org-export-blocks-postblock-hook)))
  (flet ((interblock ... ...)) (goto-char (point-min)) (setq start
(point)) (let (...) (while ... ... ...)) (interblock start

Re: [O] Missing newline in R code causes Org-Mode eval to hang

2011-10-17 Thread Nick Dokos
Sebastien Vauban  wrote:

> Hi Michael,
> 
> Michael Hannon wrote:
> > Greetings. =C2=A0The appended R code fragment executes without problem in
> > an ESS buffer, but it hangs indefinitely when I try to execute it
> > directly from the Org buffer via C-c C-c.
> >
> > The solution is to add the trailing newline in the "noteToSelf"
> > variable:
> >
> > =C2=A0 =C2=A0 noteToSelf <- "Buy low.\nSell high.\n"
> 
> The following code:
> 
> #+BABEL: :cache yes :results output verbatim :exports both :tangle yes
> 
> * This is a test
> 
> #+begin_src R
> 
> x <- 42
> noteToSelf <- "Buy low.\nSell high."
> cat(noteToSelf)
> print("All done now")
> 
> #+end_src
> 
> #+results[0688b4b765cdd6745f20cffe1e3b6f1b02ab9b46]:
> #+begin_example
> Buy low.
> Sell high.[1] "All done now"
> #+end_example
> 
> *did work* for me (as you can see).
> 
> Though, it is not exactly the same config as yours:
> 
> - I've removed the `\240' spaces which prefixed your R code (in your postin=
> g)
> - I've removed the `session' argument, as `Rterm' is not (correctly?)
>   installed on my machine

The :session argument is necessary to reproduce the behavior, I think.

Nick

> - I'm on Windows XP.
> 
> Best regards,
>   Seb
> 
> --=20
> Sebastien Vauban
> 
> 



Re: [O] Missing newline in R code causes Org-Mode eval to hang

2011-10-17 Thread Sebastien Vauban
Hi Michael,

Michael Hannon wrote:
> Greetings.  The appended R code fragment executes without problem in
> an ESS buffer, but it hangs indefinitely when I try to execute it
> directly from the Org buffer via C-c C-c.
>
> The solution is to add the trailing newline in the "noteToSelf"
> variable:
>
>     noteToSelf <- "Buy low.\nSell high.\n"

The following code:

--8<---cut here---start->8---
#+BABEL: :cache yes :results output verbatim :exports both :tangle yes

* This is a test

#+begin_src R

x <- 42
noteToSelf <- "Buy low.\nSell high."
cat(noteToSelf)
print("All done now")

#+end_src

#+results[0688b4b765cdd6745f20cffe1e3b6f1b02ab9b46]:
#+begin_example
Buy low.
Sell high.[1] "All done now"
#+end_example
--8<---cut here---end--->8---

*did work* for me (as you can see).

Though, it is not exactly the same config as yours:

- I've removed the `\240' spaces which prefixed your R code (in your posting)
- I've removed the `session' argument, as `Rterm' is not (correctly?)
  installed on my machine
- I'm on Windows XP.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Missing newline in R code causes Org-Mode eval to hang

2011-10-17 Thread Eric Schulte
Hi Michael,

I can confirm this problem occurs on my machine locally.  I believe the
issue has something to do with how ESS sends inputs to R and waits for
command prompts from R.  When the lines are pasted into an ESS buffer
one at a time the problem does not occur, however when the lines are
pasted into ESS all at once (without pressing enter between lines) the
ESS comint buffer hangs.

One option could be to explicitly call `inferior-ess-send-input' between
every line of R code, but I'm loath to touch the comint interface as
small changes like this can sometimes have unpredictable effects.

Perhaps this could be fixed on the ESS side?

Best -- Eric

Michael Hannon  writes:

> Greetings.  The appended R code fragment executes without problem in
> an ESS buffer, but it hangs indefinitely when I try to execute it
> directly from the Org buffer via C-c C-c.
>
> The solution is to add the trailing newline in the "noteToSelf"
> variable:
>
>     noteToSelf <- "Buy low.\nSell high.\n"
>
> Obviously this isn't a big deal from my perspective, but it did
> surprise me, and it does seem inconsistent.
>
> BTW, I've appended also the details of my own (linux) configuration,
> but I tried the same thing on a different OS (Mac OS 10.6.8) and got
> the same results.
>
> -- Mike
>
> ## Org code that exhibits error
>
> #+BABEL: :session *R* :cache yes :results output verbatim :exports both 
> :tangle yes
>
> * This is a test
>
> #+begin_src R
>
>  x <- 42
>  noteToSelf <- "Buy low.\nSell high."
>  cat(noteToSelf)
>  print("All done now")
>
> #+end_src
>
>
> ## My set-up
>
> Emacs  : GNU Emacs 23.2.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.24.4)
>  of 2011-05-23 on x86-12.phx2.fedoraproject.org
> Package: Org-mode version 7.7 (release_7.7.328.g1a97)
>
> current state:
> ==
> (setq
>  org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
>  org-structure-template-alist '(("r" "#+begin_src R\n\n#+end_src" " lang=\"R\">\n\n")
> ("S" "#+BEGIN_SRC ?\n\n#+END_SRC" "\n\n")
> ("s" "#+begin_src ?\n\n#+end_src" "\n\n")
> ("e" "#+begin_example\n?\n#+end_example" "\n?\n")
> ("q" "#+begin_quote\n?\n#+end_quote" "\n?\n")
> ("v" "#+begin_verse\n?\n#+end_verse" "\n?\n/verse>")
> ("c" "#+begin_center\n?\n#+end_center" "\n?\n/center>")
> ("l" "#+begin_latex\n?\n#+end_latex" " style=\"latex\">\n?\n")
> ("L" "#+latex: " "?")
> ("h" "#+begin_html\n?\n#+end_html" "\n?\n")
> ("H" "#+html: " "?") ("a" 
> "#+begin_ascii\n?\n#+end_ascii")
> ("A" "#+ascii: ") ("i" "#+index: ?" "#+index: ?")
> ("I" "#+include %file ?" ""))
>  org-speed-command-hook '(org-speed-command-default-hook 
> org-babel-speed-command-hook)
>  org-agenda-files '("~/Documents/scratch.org")
>  org-babel-load-languages '((emacs-lisp . t) (R . t) (python . t) (sh . t) 
> (latex . t) (C . t) (octave \.t))
>  org-metaup-hook '(org-babel-load-in-session-maybe)
>  org-after-todo-state-change-hook '(org-clock-out-if-current)
>  org-babel-tangle-lang-exts '(("C++" . "cpp") ("latex" . "tex") ("python" . 
> "py") ("emacs-lisp" . "el"))
>  org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
>  org-export-latex-format-toc-function 'org-export-latex-format-toc-default
>  org-tab-first-hook '(org-hide-block-toggle-maybe 
> org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe)
>  org-src-mode-hook '(org-src-babel-configure-edit-buffer 
> org-src-mode-configure-edit-buffer)
>  org-confirm-shell-link-function 'yes-or-no-p
>  org-export-first-hook '(org-beamer-initialize-open-trackers)
>  org-agenda-before-write-hook '(org-agenda-add-entry-text)
>  org-blank-before-new-entry nil
>  org-babel-pre-tangle-hook '(save-buffer)
>  org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers 
> org-cycle-show-empty-lines
>  org-optimize-window-after-visibility-change)
>  org-export-preprocess-before-normalizing-links-hook 
> '(org-remove-file-link-modifiers)
>  org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook 
> change-major-mode-hook org-show-block-all append local] 5]
> #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook 
> org-babel-show-result-all append local] 5]
> org-babel-result-hide-spec org-babel-hide-all-hashes)
>  org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point 
> org-babel-execute-safely-maybe)
>  org-confirm-elisp-link-function 'yes-or-no-p
>  org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src 
> org-babel-exp-inline-src-blocks))
>  org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
>  org-occur-hook '(org-first-headline-recenter)
>  org-from-is-user-regexp "\\"
>  org-export-preprocess-before-selecting-backend-code-hook 
> '(org-beamer-select-beamer-code)
>  org-confirm-babel-evaluate 'my-org-confirm-babel-evaluate
>  org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc 
> org-beamer-auto-fragile-frames
>       org-beamer-place-default-actions-for-lists)
>  org-metadown-hook '(org-babel-pop-to-session-maybe)
>  org-export-blocks '((sr

[O] Missing newline in R code causes Org-Mode eval to hang

2011-10-17 Thread Michael Hannon
Greetings.  The appended R code fragment executes without problem in
an ESS buffer, but it hangs indefinitely when I try to execute it
directly from the Org buffer via C-c C-c.

The solution is to add the trailing newline in the "noteToSelf"
variable:

    noteToSelf <- "Buy low.\nSell high.\n"

Obviously this isn't a big deal from my perspective, but it did
surprise me, and it does seem inconsistent.

BTW, I've appended also the details of my own (linux) configuration,
but I tried the same thing on a different OS (Mac OS 10.6.8) and got
the same results.

-- Mike

## Org code that exhibits error

#+BABEL: :session *R* :cache yes :results output verbatim :exports both :tangle 
yes

* This is a test

#+begin_src R

  x <- 42
  noteToSelf <- "Buy low.\nSell high."
  cat(noteToSelf)
  print("All done now")

#+end_src


## My set-up

Emacs  : GNU Emacs 23.2.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.24.4)
 of 2011-05-23 on x86-12.phx2.fedoraproject.org
Package: Org-mode version 7.7 (release_7.7.328.g1a97)

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-structure-template-alist '(("r" "#+begin_src R\n\n#+end_src" "\n\n")
("S" "#+BEGIN_SRC ?\n\n#+END_SRC" "\n\n")
("s" "#+begin_src ?\n\n#+end_src" "\n\n")
("e" "#+begin_example\n?\n#+end_example" "\n?\n")
("q" "#+begin_quote\n?\n#+end_quote" "\n?\n")
("v" "#+begin_verse\n?\n#+end_verse" "\n?\n/verse>")
("c" "#+begin_center\n?\n#+end_center" "\n?\n/center>")
("l" "#+begin_latex\n?\n#+end_latex" "\n?\n")
("L" "#+latex: " "?")
("h" "#+begin_html\n?\n#+end_html" "\n?\n")
("H" "#+html: " "?") ("a" 
"#+begin_ascii\n?\n#+end_ascii")
("A" "#+ascii: ") ("i" "#+index: ?" "#+index: ?")
("I" "#+include %file ?" ""))
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-agenda-files '("~/Documents/scratch.org")
 org-babel-load-languages '((emacs-lisp . t) (R . t) (python . t) (sh . t) 
(latex . t) (C . t) (octave \.t))
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-babel-tangle-lang-exts '(("C++" . "cpp") ("latex" . "tex") ("python" . 
"py") ("emacs-lisp" . "el"))
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-blank-before-new-entry nil
 org-babel-pre-tangle-hook '(save-buffer)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers 
org-cycle-show-empty-lines
 org-optimize-window-after-visibility-change)
 org-export-preprocess-before-normalizing-links-hook 
'(org-remove-file-link-modifiers)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook 
change-major-mode-hook org-show-block-all append local] 5]
#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook 
org-babel-show-result-all append local] 5]
org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point 
org-babel-execute-safely-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src 
org-babel-exp-inline-src-blocks))
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-occur-hook '(org-first-headline-recenter)
 org-from-is-user-regexp "\\"
 org-export-preprocess-before-selecting-backend-code-hook 
'(org-beamer-select-beamer-code)
 org-confirm-babel-evaluate 'my-org-confirm-babel-evaluate
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc 
org-beamer-auto-fragile-frames
      org-beamer-place-default-actions-for-lists)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-export-blocks '((src org-babel-exp-src-block nil) (comment 
org-export-blocks-format-comment t)
    (ditaa org-export-blocks-format-ditaa nil) (dot 
org-export-blocks-format-dot nil))
 )



[O] Cdlatex questions

2011-10-17 Thread Rasmus
Hi, 

I would like to add to cdlatex.  However, it does not seem to work.
This is probably the best place to ask. 

First, I want to add \mathbb{·} to cdlatex-math-modify-alist. 

Second, I want to change \mathbf{·} to \boldsymbol{·}, which is nicer
and works with greek letters.

I have tried to add the following code:

#+begin_src emacs-lisp
(add-to-list 'cdlatex-math-modify-alist
 '(98 "\\boldsymbol" "\\textbf" t nil nil))

(add-to-list 'cdlatex-math-modify-alist
 '(115 "\\mathbb" nil t nil nil))
#+end_src

However, it does not work; should I do something else to add symbols to
cdlatex?

Third, I would like to change the cdlatex-math symbol to something less
annoying.  I have tried

#+begin_src emacs-lisp 
(org-defkey org-cdlatex-mode-map "¨" 'cdlatex-math-symbol)
#+end_src 

However, this does not catch all cases, and for example "¨ ¨" will not
go to the second page.  Is there an easy way to change '`'.

–Rasmus

-- 
Sent from my Emacs




Re: [O] Invalid function: org-called-interactively-p

2011-10-17 Thread David Maus
At Sun, 09 Oct 2011 22:04:47 +0530,
Jambunathan K wrote:
>
>
> Seems like a bug to me.

Not necessarily: From past experience an invalid function error is an
indicator of a mixed up Org mode installation. What roughly happens is
that Emacs tries to look up a function value for
`org-called-interactively-p' but does not get a valid function because
`org-called-interactively-p' is a macro.[1]

Normally a make clean && make in the source tree solves this kind of problem.


Best,
  -- David

[1] http://www.gnu.org/s/emacs/manual/html_node/elisp/Function-Indirection.html
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgp3JUscIeyEI.pgp
Description: PGP signature


Re: [O] org-odt: turning off section numbering does not work

2011-10-17 Thread Christian Moe

That probably explains it, then.

But, uh, can I borrow this thread for a moment?

I find custom styles in ODT export aren't working as per the manual, 
section 12.8.2. Here's what I've done (test files attached; Emacs 
23.3.1; Org 7.7, freshly pulled):


1. Exported test-odt.org to ODT with default settings.
2. In OpenOffice: Changed the Heading 1 style in the exported ODT 
document to red, then saved it as styles.odt.

3. Pointed org-export-odt-styles-file to styles.odt.
4. Exported test-odt.org to test-odt.odt. Result: no headings at all 
-- everything's in the Default style.


This is how I understand the manual, and the thread I referenced 
before, and I remember having tested it before at some point when it 
worked perfectly, so I'm rubbing my eyes and wondering if it's just 
me. Could I ask someone to please check?


Yours,
Christian


On 10/17/11 8:31 PM, Mehul Sanghvi wrote:

On Mon, Oct 17, 2011 at 14:00, Nick Dokos  wrote:


My (factually-baseless but best-that-I-can-do given the paucity
of information you provide) guess is that you are not running the
version you think you are running.

Nick




What I have is Org-mode version 7.5 (baseline.533.ga5129.dirty), so it seems
your factually-baseless guess is correct.


% git remote -v
origin  http://repo.or.cz/r/org-mode/org-jambu.git (fetch)
origin  http://repo.or.cz/r/org-mode/org-jambu.git (push)


I have been pulling from the wrong repository.


cheers,

   mehul




#+title: Test ODT export
#+options: toc:nil num:nil

(setq org-export-odt-styles-file "~/org/odt/styles.odt")

* Heading

Bla bla

* Heading

** Subheading

Bla bla


test-odt.odt
Description: application/vnd.oasis.opendocument.text


styles.odt
Description: application/vnd.oasis.opendocument.text


Re: [O] org-odt: turning off section numbering does not work

2011-10-17 Thread Mehul Sanghvi
On Mon, Oct 17, 2011 at 14:00, Nick Dokos  wrote:
>
> My (factually-baseless but best-that-I-can-do given the paucity
> of information you provide) guess is that you are not running the
> version you think you are running.
>
> Nick
>


What I have is Org-mode version 7.5 (baseline.533.ga5129.dirty), so it seems
your factually-baseless guess is correct.


% git remote -v
origin  http://repo.or.cz/r/org-mode/org-jambu.git (fetch)
origin  http://repo.or.cz/r/org-mode/org-jambu.git (push)


I have been pulling from the wrong repository.


cheers,

  mehul


-- 
Mehul N. Sanghvi
email: mehul.sang...@gmail.com



Re: [O] org-odt: turning off section numbering does not work

2011-10-17 Thread Mehul Sanghvi
I have seen that thread before, and am using the latest Org from the
git repository.
That is why I was wondering if I'd missed something or not.

I just tried this with a new Emacs, and the test.org file that comes
with org-odt.

I changed test.org so that num: is nil and it still had section
numbering enabled.

Since I am trying to do this as an automated method, I do not want to
fire up LibreOffice/OpenOffice each time
I make a change to my resume, and lots of times I am doing it over a
ssh connection with no X displaying
back.

cheers,

 mehul

On Mon, Oct 17, 2011 at 12:31, Christian Moe  wrote:
> Hi,
>
> According to this thread, num:nil should work in recent versions of Org:
> http://comments.gmane.org/gmane.emacs.orgmode/46058
>
> It works for me.
>
> You might try updating to the most recent version of Org and see if that
> fixes things.
>
> As a one-off fix, in OpenOffice you can turn off the numbering with Tools >
> Outline Numbering. For each of the three heading levels that are numbered,
> you need to set Number to None, and delete the dot in Separator After.
>
> Yours,
> Christian
>
>
>
> On 10/17/11 4:07 PM, Mehul Sanghvi wrote:
>>
>> I have the following in my org file:
>>
>>
>> #+OPTIONS: toc:nil H:10 num:nil
>>
>>
>>
>> Yet in my ODT file I get numbered sections:
>>
>>     1. Work Experience
>>
>>      1.1.1   Company A
>>
>>      1.1.2   Company B
>>
>>    2.  Skills
>>
>>    3.  Education
>>
>>
>> Am I doing something wrong ?  Or is there another option that I am not
>> aware of ?
>>
>
>



-- 
Mehul N. Sanghvi
email: mehul.sang...@gmail.com



Re: [O] org-odt: turning off section numbering does not work

2011-10-17 Thread Christian Moe

Hi,

According to this thread, num:nil should work in recent versions of Org:
http://comments.gmane.org/gmane.emacs.orgmode/46058

It works for me.

You might try updating to the most recent version of Org and see if 
that fixes things.


As a one-off fix, in OpenOffice you can turn off the numbering with 
Tools > Outline Numbering. For each of the three heading levels that 
are numbered, you need to set Number to None, and delete the dot in 
Separator After.


Yours,
Christian



On 10/17/11 4:07 PM, Mehul Sanghvi wrote:

I have the following in my org file:


#+OPTIONS: toc:nil H:10 num:nil



Yet in my ODT file I get numbered sections:

 1. Work Experience

  1.1.1   Company A

  1.1.2   Company B

2.  Skills

3.  Education


Am I doing something wrong ?  Or is there another option that I am not
aware of ?






Re: [O] Patch for bug in adjusting time ranges in Agenda

2011-10-17 Thread Nick Dokos
Niels Giesen  wrote:

> On Sun, Oct 16, 2011 at 6:43 PM, Nick Dokos  wrote:
> 
> Niels Giesen  wrote:
>
> > *bump*
> >
> > Has this one slipped through (as I were posting two other patches round 
> the same date, one also
> > having to do with date/time ranges in the agenda -- which were both 
> accepted), or am I just
> > impatient?
> >
>
> I tried to check patchwork 
> (http://patchwork.newartisans.com/project/org-mode/)
> but the server seems to be having problems right now. However, that's the 
> first
> place to check when it comes back: if it's there, somebody will get to it 
> sooner
> or later.
> 
> Ok, I checked today (server is up again) and it's not there. But I've been a 
> fool. Should've
> submitted as an attachment as 
> per http://orgmode.org/worg/org-contribute.html . Should I try and
> resubmit?

Probably, but make sure that the attachment is typed properly
(text/plain will work, application/octet-stream will not). Inline
patches should be accepted though, so I'm not sure why the original did
not go through: it may be the indentation of the patch that confused
patchwork.

Nick




[O] org-odt: turning off section numbering does not work

2011-10-17 Thread Mehul Sanghvi
I have the following in my org file:


#+OPTIONS: toc:nil H:10 num:nil



Yet in my ODT file I get numbered sections:

1. Work Experience

 1.1.1   Company A

 1.1.2   Company B

   2.  Skills

   3.  Education


Am I doing something wrong ?  Or is there another option that I am not
aware of ?

-- 
Mehul N. Sanghvi
email: mehul.sang...@gmail.com



Re: [O] Bug of code block

2011-10-17 Thread Eric Schulte
Du Yanning  writes:

> win7
> emacs 23.3
> org-mode 7.7
>
>
> The appearance of source code inside code block
> #+BEGIN_SRC c++
>   void foo()
>   {
>   }
> #+END_SRC
> is affected by M-x buffer-face-set.
> However, It should look exactly the same as it is in a c++-mode buffer.

To allow others to recreate this bug locally please provide a complete
minimal example with all information required to recreate the problem.

Best -- Eric

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



[O] [Accepted] Fix org-contacts completion at point (was: org-contacts completion stopped working)

2011-10-17 Thread Carsten Dominik
Patch 988 (http://patchwork.newartisans.com/patch/988/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C87wrc9hqyg.fsf_-_%40thinkpad.tsdh.de%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: [O] Fix org-contacts completion at point (was: org-contacts
>   completion stopped working)
> Date: Thu, 13 Oct 2011 20:05:43 -
> From: Tassilo Horn 
> X-Patchwork-Id: 988
> Message-Id: <87wrc9hqyg.fsf...@thinkpad.tsdh.de>
> To: emacs-orgmode@gnu.org
> 
> julien Barnier  writes:
> 
> Hi Julien,
> 
> >> I use a very recent emacs 24 bzr checkout and org master from git.
> >> Not sure who's the culprit.
> >
> > Same problem here. After a quick look it seems that there has been a
> > recent change in the arguments taken by the completion-table-case-fold
> > function in minibuffer.el :
> >
> > http://bzr.savannah.gnu.org/lh/emacs/trunk/revision/105991
> 
> Thanks for the pointer!
> 
> > But I don't think I could be able to find a fix by myself.
> 
> But I was able, so good teamwork, mate. :-)
> 
> --8<---cut here---start->8---
> >From d89ca3ce39cd7436e5205744adcf468d9619180f Mon Sep 17 00:00:00 2001
> From: Tassilo Horn 
> Date: Thu, 13 Oct 2011 17:02:07 +0200
> Subject: [PATCH 2/2] Fix org-contacts completion at point.
> 
> ---
> contrib/lisp/org-contacts.el |   11 +--
>  1 files changed, 5 insertions(+), 6 deletions(-)
> 
> diff --git a/contrib/lisp/org-contacts.el b/contrib/lisp/org-contacts.el
> index 167caa0..74d68dc 100644
> --- a/contrib/lisp/org-contacts.el
> +++ b/contrib/lisp/org-contacts.el
> @@ -169,9 +169,10 @@ If both match values are nil, return all contacts."
>  
>  (when (not (fboundp 'completion-table-case-fold))
>;; That function is new in Emacs 24...
> -  (defun completion-table-case-fold (table string pred action)
> -(let ((completion-ignore-case t))
> -  (complete-with-action action table string pred
> +  (defun completion-table-case-fold (table &optional dont-fold)
> +(lambda (string pred action)
> +  (let ((completion-ignore-case (not dont-fold)))
> + (complete-with-action action table string pred)
>  
>  (defun org-contacts-complete-name (&optional start)
>"Complete text at START with a user name and email."
> @@ -226,9 +227,7 @@ If both match values are nil, return all contacts."
> ;; If the user has an email 
> address, append USER .
> if email collect 
> (org-contacts-format-email contact-name email))
>   ", ")
> -(list start end (if org-contacts-completion-ignore-case
> - (apply-partially #'completion-table-case-fold 
> completion-list)
> -   completion-list
> +(list start end (completion-table-case-fold completion-list (not 
> org-contacts-completion-ignore-case)
>  
>  (defun org-contacts-message-complete-function ()
>"Function used in `completion-at-point-functions' in `message-mode'."
> 



[O] [PATCH] Bug: org-ageda-bulk-mark-regexp bugs [7.7]

2011-10-17 Thread Andrew Stribblehill
Emacs  : GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2011-03-04 on allspice, modified by Debian
Package: Org-mode version 7.7

I found a couple of bugs with org-agenda-bulk-mark-regexp:
 - it didn't work at all :)
 - once I fixed that, it didn't work for the empty regex (or, I guess,
for other expressions that match the emptiness at the end of the
buffer).

The first problem was solved by initializing entries-marked as 0. The
latter, by making sure there is text to match on before proceeding
down the while loop.

This patch is relative to HEAD as of 2011-10-17T13:46:48+

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 60e561c..bf03b68 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -8144,16 +8144,15 @@ This is a command that has to be installed in
`calendar-mode-map'."
 (defun org-agenda-bulk-mark-regexp (regexp)
   "Mark entries match REGEXP."
   (interactive "sMark entries matching regexp: ")
-  (let ((entries-marked 0))
+  (let (entries-marked)
 (save-excursion
   (goto-char (point-min))
   (goto-char (next-single-property-change (point) 'txt))
-  (while (and (re-search-forward regexp nil t)
- (get-text-property (point) 'txt))
+  (while (re-search-forward regexp nil t)
(when (string-match regexp (get-text-property (point) 'txt))
  (setq entries-marked (+ entries-marked 1))
  (call-interactively 'org-agenda-bulk-mark
-(if (zerop entries-marked)
+(if (not entries-marked)
(message "No entry matching this regexp."

 (defun org-agenda-bulk-unmark ()



Re: [O] No updates on git server?

2011-10-17 Thread Rainer M Krug
On Fri, Oct 14, 2011 at 4:09 PM, Eric Schulte wrote:

> Hi Rainer,
>
> I pull from the orgmode.org git server (which I believe is preferred
> over the repo.or.cz server) and the last commit I see if from Monday so
>

OK - then I"ll change.


> I believe there simply hasn't been any new commits in the last few days.
>

True - this morning I had some.

Cheers,

Rainer


>
> Best -- Eric
>
> Rainer M Krug  writes:
>
> > Hi
> >
> > I am updating from git daily (from git://repo.or.cz/org-mode.git) , but
> > haven't received any updates during the last two days - is there a
> problem
> > or has org reached a stable state?
> >
> > Rainer
>
> --
> Eric Schulte
> http://cs.unm.edu/~eschulte/
>



-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax (F):   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug


Re: [O] Agenda view side-by-side

2011-10-17 Thread Johan Ekh
Thanks Gustav!
/J

2011/10/17 Gustav Wikström 

> The following might be of interest:
>
> *** Vertical Split window
> Splits screen vertically if the width of the window is large enough.
> Inspired by the following post:
> -
> http://stackoverflow.com/questions/2081577/setting-emacs-split-to-horizontal
>
> #+begin_src emacs-lisp :tangle yes
>   (setq split-height-threshold nil)
>   (setq split-width-threshold 160)
> #+end_src
>
>
> Regards
> Gustav
>
> On Mon, Oct 17, 2011 at 11:12 AM, Johan Ekh  wrote:
>
>> Hi all,
>> when I use "C-c a a" to create an agenda, my emacs window is split
>> horizontally and the agenda is shown in the lower
>> window. I'd rather have my emacs window splitted vertically and the agenda
>> shown in the right window. How can I do this?
>>
>> Best regards,
>> Johan
>>
>
>


[O] Bug of code block

2011-10-17 Thread Du Yanning
win7
emacs 23.3
org-mode 7.7


The appearance of source code inside code block
#+BEGIN_SRC c++
  void foo()
  {
  }
#+END_SRC
is affected by M-x buffer-face-set.
However, It should look exactly the same as it is in a c++-mode buffer.


Re: [O] Agenda view side-by-side

2011-10-17 Thread Gustav Wikström
The following might be of interest:

*** Vertical Split window
Splits screen vertically if the width of the window is large enough.
Inspired by the following post:
-
http://stackoverflow.com/questions/2081577/setting-emacs-split-to-horizontal

#+begin_src emacs-lisp :tangle yes
  (setq split-height-threshold nil)
  (setq split-width-threshold 160)
#+end_src


Regards
Gustav

On Mon, Oct 17, 2011 at 11:12 AM, Johan Ekh  wrote:

> Hi all,
> when I use "C-c a a" to create an agenda, my emacs window is split
> horizontally and the agenda is shown in the lower
> window. I'd rather have my emacs window splitted vertically and the agenda
> shown in the right window. How can I do this?
>
> Best regards,
> Johan
>


[O] Agenda view side-by-side

2011-10-17 Thread Johan Ekh
Hi all,
when I use "C-c a a" to create an agenda, my emacs window is split
horizontally and the agenda is shown in the lower
window. I'd rather have my emacs window splitted vertically and the agenda
shown in the right window. How can I do this?

Best regards,
Johan


[O] Show 'Project' in Agenda

2011-10-17 Thread Richard Parsons
Hello everyone

In the agenda view, I can see the headline above each TODO by moving
point to it.  The headline appears in the status bar.  Is there a way
that I can add a column to the agenda with all those headlines in, so
that I can see them all at once?

Thanks
Richard



Re: [O] Patch for bug in adjusting time ranges in Agenda

2011-10-17 Thread Niels Giesen
On Sun, Oct 16, 2011 at 6:43 PM, Nick Dokos  wrote:

> Niels Giesen  wrote:
>
> > *bump*
> >
> > Has this one slipped through (as I were posting two other patches round
> the same date, one also
> > having to do with date/time ranges in the agenda -- which were both
> accepted), or am I just
> > impatient?
> >
>
> I tried to check patchwork (
> http://patchwork.newartisans.com/project/org-mode/)
> but the server seems to be having problems right now. However, that's the
> first
> place to check when it comes back: if it's there, somebody will get to it
> sooner
> or later.
>

Ok, I checked today (server is up again) and it's not there. But I've been a
fool. Should've submitted as an attachment as per
http://orgmode.org/worg/org-contribute.html . Should I try and resubmit?


>
> Nick
>
> > On Sun, Oct 2, 2011 at 12:24 PM, Niels Giesen 
> wrote:
> >
> > Hi Orgers,
> >
> > The discussion in the recent thread "Time range end in agenda view
> not
> > displayed" prompted me to take a closer look at time/date ranges in
> the
> > Agenda view. I noticed that the commands `org-agenda-do-date-later'
> and
> > `org-agenda-do-date-earlier' do not work correctly on timestamp
> ranges,
> > in that they only shift the rightmost timestamp in the range. The
> patch
> > below should fix this.
> >
> > #+begin_src diff
> >  From 2e6b64dc8dcae0fd312729af96ab10d8d2e9d91b Mon Sep 17 00:00:00
> 2001
> >  From: Niels Giesen 
> >  Date: Sun, 2 Oct 2011 09:15:21 +0200
> >  Subject: [PATCH] Fix shift-adjusting time and date ranges from
> within Agenda.
> >
> >  ,* org-mode/lisp/org-agenda.el (org-agenda-date-later): Adjust both
> >start and end timestamp for a range, and set
> >`org-last-changed-timestamp' to a representation of the new range.
> >  ---
> >   lisp/org-agenda.el |8 +++-
> >   1 files changed, 7 insertions(+), 1 deletions(-)
> >
> >  diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
> >  index b1fa5f5..e4c1053 100644
> >  --- a/lisp/org-agenda.el
> >  +++ b/lisp/org-agenda.el
> >  @@ -7517,7 +7517,13 @@ the same tree node, and the headline of the
> tree node in the Org-mode
> > file."
> >  (goto-char pos)
> >  (if (not (org-at-timestamp-p))
> > (error "Cannot find time stamp"))
> >  -   (org-timestamp-change arg (or what 'day)))
> >  +   (org-timestamp-change arg (or what 'day))
> >  +   (when (org-at-date-range-p)
> >  + (let ((end org-last-changed-timestamp))
> >  +   (re-search-backward org-tr-regexp-both)
> >  +   (org-timestamp-change arg (or what 'day))
> >  +   (setq org-last-changed-timestamp
> >  +(concat org-last-changed-timestamp "--" end)
> >(org-agenda-show-new-time marker org-last-changed-timestamp))
> >   (message "Time stamp changed to %s"
> org-last-changed-timestamp)))
> >
> >  --
> >  1.7.2.5
> >
> > #+end_src
> >
> > Regards,
> > niels
> > --
> > http://pft.github.com
> >
> > --
> > http://pft.github.com
> >
> >
> > 
> > Alternatives:
> >
> > 
>



-- 
http://pft.github.com


Re: [O] Org, Diffs, and Version Control

2011-10-17 Thread suvayu ali
On Mon, Oct 17, 2011 at 8:55 AM, Rustom Mody  wrote:
> I wonder how much is involved in using the generic org parser (which one I
> am not sure) to hook into ediff??

I believe you mean something like this[1] discussion? That thread
wasn't particularly conclusive.

[1] 

-- 
Suvayu

Open source is the future. It sets us free.