Re: [O] Calendar-like view of the org-agenda

2011-07-19 Thread Reiner Steib
On Fri, Jul 15 2011, Michael Markert wrote:

> On 15 Jul 2011, OSiUX wrote:
>> When change the name of days and months, emacs crash!!::
>>
>> (setq calendar-week-start-day 7
[...]
> The names are no problem, but `calendar-week-start-day' is. The day
> array is 0-indexed, so you want 6 not 7.

Anyhow, if this causes an Emacs crash, it is bug in Emacs.  Please
report it using M-x report-emacs-bug RET.

Bye, Reiner.
-- 
   ,,,
  (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/



Re: [O] Calendar-like view of the org-agenda

2011-07-19 Thread SAKURAI Masashi
Hi Rasmus,

Thanks for your setting sample.

At Sun, 17 Jul 2011 20:59:19 +0200,
Rasmus wrote:
> :
> > Is is somehow possible to change the font family used in Calfw windows
> > only?
> 
> Hardly perfect, the following let me change the font used in Calfw
> sessions. It seems rather fragile, though as it only seems to work with
> `:height 90'. Obviously there is a more fundamental problem that I ought
> to address. 

Yes. Some Japanese users use the function `buffer-face-set' too.
They also worry about the difference between the value of `char-width' for
the charactors and the real width of the font glyphs.

Indeed, the font setting in Emacs has been very difficult.

--
SAKURAI, Masashi (family, given)
m.saku...@kiwanami.net



Re: [O] Can't follow links with id property

2011-07-19 Thread suvayu ali
Hi Memnon,

On Tue, Jul 19, 2011 at 4:30 PM, Memnon Anon
 wrote:
> I can not reproduce that with your minimal example

I tried it again, still present with both Emacs 23.2 and Emacs 24.

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Use org for jobs/resume writing?

2011-07-19 Thread John Hendy
On Tue, Jul 19, 2011 at 5:45 PM, Daniel Clemente  wrote:
>
>> >> Now that org has odt-export and of course HTML, etc. I'm re-thinking using
>> >> .org
>> >> for resume writing.
>> >>
>> >> Anyone else?
>> >
>> > I have recently started using Org-mode for my Resume.  I have
>> > created a custom LaTeX stylesheet, that I use, for the LaTeX export.
>> >

I just had to update my CV and used modified versions of these with
great results (I think):
- http://www.cv-templates.info/2009/03/professional-cv-latex/
- http://stefano.italians.nl/archives/50

Once set up, it was very easy and is just some custom section headers
and tables.


John



Re: [O] Use org for jobs/resume writing?

2011-07-19 Thread Rasmus
Daniel Clemente  writes:
> Apart from each person creating their own resume… a pre-filled
> template in .org could be made to produce a resume in the Europass [1]
> format, or similar widely accepted formats.

There is a LaTeX class mimicking Europass. I used to use it. I find
Europass ugly and disturbing/hard to read, though.

Anyhow, creating a cv_barebone.org should not be too hard.

–Rasmus 

-- 
Sent from my Emacs




Re: [O] Use org for jobs/resume writing?

2011-07-19 Thread Daniel Clemente

> >> Now that org has odt-export and of course HTML, etc. I'm re-thinking using
> >> .org
> >> for resume writing.
> >>
> >> Anyone else?
> >
> > I have recently started using Org-mode for my Resume.  I have
> > created a custom LaTeX stylesheet, that I use, for the LaTeX export.
> >

Apart from each person creating their own resume… a pre-filled template in .org 
could be made to produce a resume in the Europass [1] format, or similar widely 
accepted formats.

[1]: http://europass.cedefop.europa.eu/




Re: [O] Scheduling calling debugger

2011-07-19 Thread suvayu ali
Hi David,

On Tue, Jul 19, 2011 at 8:44 PM, David Maus  wrote:
>> That solved it! Just for the sake of understanding, what was most
>> likely the issue here and what is a "macro problem"?
>
> My diagnosis went like this:
>
> (invalid-function org-loop-over-siblings-in-active-region)
>  ^^^
>
> Invalid function means that Emacs was not able to get a callable
> function for the symbol named
> 'org-loop-over-siblings-in-active-region`
>
> It tried to look up one, but failed[1].
>
> 'org-loop-over-siblings-in-active-region' is a macro (hence "macro
> problem"). A macro is a Lisp structure that expands into Lisp code if
> you compile (or run) a Lisp application.[2]
>

[...]

>
> Best,
>  -- David
>
> [1] See Emacs Elisp manual,
> http://www.gnu.org/s/emacs/manual/html_node/elisp/Function-Indirection.html
> [2] http://www.gigamonkeys.com/book/macros-defining-your-own.html
>

Thank you for the clear explanation and the pointers to the references.
I will definitely go through them. :)

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Thesaurus terms as org tags -- feature request

2011-07-19 Thread John Tait
Achim

Let's work it through.

Let's say we have a large publishing project with lots of tags.

Some (not all) of the tags are in tag groups.

#+TAGGROUP: :characteristic: :colour:mass:material:
#+TAGGROUP: :colo(u)r: :red:green:blue:
#+TAGGROUP: :red: :crimson:scarlet:brick:

Our ungrouped tags are unrelated things like :name: and :event:.

Exporting tag :colour: would export :red: :crimson: :scarlet: :brick:
:green: and :blue:.

Would it be useful to include :characteristic:? I'd say yes, as an option.

John




Bastien  writes:
> #+TAGGROUP: :colour: :red:green:
>
> in such a way that:
>
> 1. searches for :red: will continue to display entries with :red:
> 2. searches for :colour: will display entries with :red: and/or :green:
>
> Would this be useful already?

If I've read the OP correctly, this should be (optionally?) transitive,
i.e. searches for :red: should also return entries with just :color:.


Regards,
Achim.



Re: [O] Bulk cut in agenda view

2011-07-19 Thread Bernt Hansen
Julien Cubizolles  writes:

> Bernt Hansen  writes:
>
>> Hi Julien,
>>
>> Could you describe your use-case for this bulk cut function?
>>
>> Is this bulk cut function destructive (ie. it deletes content from your
>> org files permanently) 
>
> Yes, it is destructive. I use it for todo items like buying groceries
> for which there is no need to archive.

Thanks for the clarification.

Regards,
-- 
Bernt



Re: [O] Makefile restructuring

2011-07-19 Thread Achim Gratz
Achim Gratz  writes:
> git remote add -t Makefile remote-tableheadings 
> git://repo.or.cz/org-mode/org-tableheadings.git
> git fetch remote-tableheadings Makefile:local-Makefile
> git checkout local-Makefile
>
> to get it (change remote-tableheadings and local-Makefile to suit
> your naming conventions for remotes and local branches, respectively).
> I will be _rebasing_ against master during development, so expect
> history in this branch to be volatile.

This means you'll need to do a 

git fetch -f remote-tableheadings

whenever I've rebased since the branch doesn't fast-forward in this
case — which I've just done so it applies cleanly to current master.

> As always, testers and their comments are welcome.

Bastien asked if he might include it in the next release, so if you've
been testing/using this please say if it works (or what doesn't).  I've
tested it myself on Linux and Win7 (Cygwin and MSys), but there are
likely quite a few different setups around.

* Changes

** GNU make required

The previous Makefile already used a bunch of GNU make extensions so
this shouldn't be too much of a shock, but I am now using more of them,
especially functions.

** Customization

Keep your customizations to the old Makefile around (ie. the part with
"YOU MUST EDIT THE FOLLOWING LINES").  The customization will now be
done by putting just those lines (or only the lines you want to change
plus any comments, really) into a file named "local.mk".  The default
values are now in a file named default.mk, so you can also just copy
from default.mk to local.mk and then edit.  The defaults have been
slightly adapted to work well on most Linux systems and on Cygwin,
specifically

prefix = /usr/share # was /usr/local/share

On these systems you don't need any customization if you are installing
to the system-wide Emacs installation.  For other uses, here are a few
examples:

--8<---cut here---start->8---
# local.mk Win7/NTemacs
EMACS = C:/Freeware/Emacs-24.0.50/bin/emacs
prefix = C:/Freeware/Emacs-24.0.50
lispdir = $(prefix)/site-lisp/org
--8<---cut here---end--->8---

--8<---cut here---start->8---
# local.mk Linux/Emacs24
EMACS = /usr/local/bin/emacs
prefix = /usr/local/share
lispdir = $(prefix)/emacs/site-lisp/org
--8<---cut here---end--->8---

--8<---cut here---start->8---
# local.mk Linux/Emacs(system) - test
EMACS = /usr/bin/emacs
prefix = /home/user/org-test
lispdir = $(prefix)/lisp/org
--8<---cut here---end--->8---

--8<---cut here---start->8---
# local.mk Debian/Emacs(system)
INSTALL_INFO = ginstall-info # insist on GNU install-info
# even though dpkg install-info works just fine now
--8<---cut here---end--->8---

Keep in mind that all file-paths need to be absolute, specifically you
can't use "~" in prefix or lispdir since it is used in a few places
where the shell will not expand it.

** Renamed target "doc" to "docs"

The target "doc" has been renamed to "docs" since it clashed with the
subdirectory of the same name.

** New target clean-install

I've added a new target "clean-install" that will remove a previous
installation of org from the install directories.  This removes old
files that may have been present in a previous installation, but not
used anymore.  You should check with

make -n clean-install

what it tries to do before letting it _really_ remove anything.

** Installing files from contrib

The way things work now, any *.el file you put into lisp/ will be
compiled together with and installed along with the org files.  So if
you want to install a particular contrib feature together with org, just
copy (or link) it into lisp/.  This does not work with subdirectories
(for now), you need to make the actual *.el files visible in lisp/.


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

Factory and User Sound Singles for Waldorf Q+, Q and microQ:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds




Re: [O] Scheduling calling debugger

2011-07-19 Thread David Maus
At Tue, 19 Jul 2011 20:23:40 +0200,
suvayu ali wrote:
> 
> Hi David and Memnon,
> 
> Thank you for looking at this.
> 
> On Tue, Jul 19, 2011 at 7:53 PM, David Maus  wrote:
> >> Debugger entered--Lisp error: (invalid-function 
> >> org-loop-over-siblings-in-active-region)
> >>   org-loop-over-siblings-in-active-region("Scheduled to <2011-07-21 Thu>")
> >>   org-schedule(nil)
> >>   call-interactively(org-schedule nil nil)
> >
> > This looks like a macro problem. Could you try
> >
> > make clean
> > make
> >
> > and see if the problem still persists?
> >
> 
> That solved it! Just for the sake of understanding, what was most
> likely the issue here and what is a "macro problem"?

My diagnosis went like this:

(invalid-function org-loop-over-siblings-in-active-region)
 ^^^

Invalid function means that Emacs was not able to get a callable
function for the symbol named
'org-loop-over-siblings-in-active-region`

It tried to look up one, but failed[1]. 

'org-loop-over-siblings-in-active-region' is a macro (hence "macro
problem"). A macro is a Lisp structure that expands into Lisp code if
you compile (or run) a Lisp application.[2]

I suppose what happened was, that Emacs knew that loop-over-siblings is
a macro but got confused with the new .el and the old .elc files and
couldn't look up what the macro should expand into. Thus the invalid
function error.

The old .elc files were the issue.

Best,
  -- David

[1] See Emacs Elisp manual,
http://www.gnu.org/s/emacs/manual/html_node/elisp/Function-Indirection.html
[2] http://www.gigamonkeys.com/book/macros-defining-your-own.html

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


pgpwh0mNz9HOk.pgp
Description: PGP signature


Re: [O] Bulk cut in agenda view

2011-07-19 Thread Julien Cubizolles
Bernt Hansen  writes:

> Hi Julien,
>
> Could you describe your use-case for this bulk cut function?
>
> Is this bulk cut function destructive (ie. it deletes content from your
> org files permanently) 

Yes, it is destructive. I use it for todo items like buying groceries
for which there is no need to archive.



Re: [O] New feature: loop over siblings for some commands

2011-07-19 Thread David Maus
At Mon, 18 Jul 2011 10:32:11 +0200,
Bastien wrote:
>
> Dear all,
>
> from latest git repo:
>
>   (setq org-loop-over-siblings-within-active-region-p t)
>
> will allow you to run some commands on several siblings in
> the active region.
>
> For example:
>
> 
> * Item 1
> * Item 2
> * Item 3
> 
>
> Then `C-c C-s' (org-schedule) will ask for a schedule date
> for each of the item in the active region.  See the commit
> log for more details:
>
>   
> http://orgmode.org/w/?p=org-mode.git;a=commit;h=366254217ac6faea20a5d43fae065bd028806eab
>
> I'm interested in allowing this for org-todo as well, but I
> would first like some feedback on the current feature and its
> scope wrt actual needs.

The macro suffers from leaking: It let-binds symbols like beg, end
etc. that might be present in ,@body. The let-bound symbols will
shadow body's.

Minimal example:

,
| (defmacro leak-it-baby (&rest body)
|   `(let ((foobar 0))
|  (while (< foobar 10)
|(setq foobar (1+ foobar))
|,@body)))
|
| (let ((foobar 9))
|   (leak-it-baby
|(setq foobar 11)
|(print foobar)))
|
| ELISP> (macroexpand '(leak-it-baby (setq foobar 11)))
| (let
| ((foobar 0))
|   (while
|   (< foobar 10)
| (setq foobar
| (1+ foobar))
| (setq foobar 11)))
|
| ELISP>
`

The whole problem of leaking macros is discussed in Peter Seibel's
"Practical Common Lisp", Chapter 8

http://www.gigamonkeys.com/book/macros-defining-your-own.html

The solution is a heavy use of C-h f gensym RET for all symboles
needed in the macro to create fresh, unique und uninterned symbols.

If no one jumps on a fix for this I will provide one till next
sunday. Always wanted to do some lecker macro programming :)

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


pgpKMBZzDwuSy.pgp
Description: PGP signature


Re: [O] Scheduling calling debugger

2011-07-19 Thread suvayu ali
Hi David and Memnon,

Thank you for looking at this.

On Tue, Jul 19, 2011 at 7:53 PM, David Maus  wrote:
>> Debugger entered--Lisp error: (invalid-function 
>> org-loop-over-siblings-in-active-region)
>>   org-loop-over-siblings-in-active-region("Scheduled to <2011-07-21 Thu>")
>>   org-schedule(nil)
>>   call-interactively(org-schedule nil nil)
>
> This looks like a macro problem. Could you try
>
> make clean
> make
>
> and see if the problem still persists?
>

That solved it! Just for the sake of understanding, what was most
likely the issue here and what is a "macro problem"?

> Best,
>  -- David

Thanks,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Scheduling calling debugger

2011-07-19 Thread David Maus
At Tue, 19 Jul 2011 13:22:10 +0200,
Suvayu Ali wrote:
>
> Hi Orgers,
>
> Scheduling or rescheduling seems to be invoking the debugger for me (I
> run emacs with debug-on-error set to t). Although it doesn't seem to do
> anything wrong to the scheduled entry. Strange!
>
> The error at the end was generated on attempting to reschedule a
> headline like this:
>
> ** TODO Read note on fitter
>SCHEDULED: <2011-07-19 Tue>
>
>
> Debugger entered--Lisp error: (invalid-function 
> org-loop-over-siblings-in-active-region)
>   org-loop-over-siblings-in-active-region("Scheduled to <2011-07-21 Thu>")
>   org-schedule(nil)
>   call-interactively(org-schedule nil nil)

This looks like a macro problem. Could you try

make clean
make

and see if the problem still persists?

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


pgp2Wt9LTZTBq.pgp
Description: PGP signature


Re: [O] regression: capture vs dired

2011-07-19 Thread Greg Troxel

Nicolas Goaziou  writes:

> Greg Troxel  writes:
>
>> When doing capture, after selecting 'task', I get:
>>
>>   Template key: 
>>   call-interactively: Symbol's value as variable is void: dired-buffers
>
> This has (hopefully) been fixed on master. You may update Org.

Thanks.  I updated to

  commit 5e33df46a41427edc765a08461505c363d6668a9
  Author: Bastien Guerry 
  Date:   Tue Jul 19 18:41:21 2011 +0200

and capture works again for me.


pgpg7JErt7GLY.pgp
Description: PGP signature


[O] [BABEL, PATCH] ob-maxima.el add variables and graphical output

2011-07-19 Thread Litvinov Sergey
I would like to contribute an extension of babel maxima support.
The patch adds variables and graphical output (currently limited to png
files). There is a file with examples (tests). It is not ERTed yet.
/testing/examples/ob-maxima-test.org
>From e383e0aa6e0a996033f86b8346205b1a38a124da Mon Sep 17 00:00:00 2001
From: Litvinov Sergey 
Date: Tue, 19 Jul 2011 00:33:52 +0200
Subject: [PATCH] Extend ob-maxima: add input variables and graphic output

---
 lisp/ob-maxima.el   |   91 +-
 testing/examples/ob-maxima-test.org |   63 
 2 files changed, 130 insertions(+), 24 deletions(-)
 create mode 100644 testing/examples/ob-maxima-test.org

diff --git a/lisp/ob-maxima.el b/lisp/ob-maxima.el
index 6bd5d39..1344384 100644
--- a/lisp/ob-maxima.el
+++ b/lisp/ob-maxima.el
@@ -32,47 +32,90 @@
 ;;
 ;; 1) there is no such thing as a "session" in maxima
 ;;
-;; 2) we are generally only going to return output from maxima
-;;
-;; 3) we are adding the "cmdline" header argument
-;;
-;; 4) there are no variables
+;; 2) we are adding the "cmdline" header argument
 
 ;;; Code:
 (require 'ob)
 
+(defvar org-babel-tangle-lang-exts)
+(add-to-list 'org-babel-tangle-lang-exts '("maxima" . "max"))
+
 (defvar org-babel-default-header-args:maxima '())
 
 (defun org-babel-maxima-expand (body params)
   "Expand a block of Maxima code according to its header arguments."
-  body)
+  (let ((vars (mapcar #'cdr (org-babel-get-header params :var
+ (mapconcat 'identity
+		(list
+		 ;; graphic output
+		 (let ((graphic-file (org-babel-maxima-graphical-output-file params)))
+		   (if graphic-file  
+		   (format 
+			"set_plot_option ([gnuplot_term, png]); set_plot_option ([gnuplot_out_file, %S]);" 
+			graphic-file)
+		 ""))
+		 ;; variables
+		 (mapconcat 'org-babel-maxima-var-to-maxima vars "\n")
+		 ;; body
+		 body
+		 "gnuplot_close ()$")
+		"\n")))
 
 (defun org-babel-execute:maxima (body params)
   "Execute a block of Maxima entries with org-babel.  This function is
 called by `org-babel-execute-src-block'."
   (message "executing Maxima source code block")
-  (let* ((result-params (split-string (or (cdr (assoc :results params)) "")))
-	 (cmdline (cdr (assoc :cmdline params)))
-	 (in-file (org-babel-temp-file "maxima-"))
-	 (cmd (format "maxima --very-quiet -r 'batchload(%S)$' %s"
-		  in-file cmdline)))
-(with-temp-file in-file (insert body))
-(message cmd)
-((lambda (raw) ;; " | grep -v batch | grep -v 'replaced' | sed '/^$/d' "
-   (mapconcat
-	#'identity
-	(delq nil
-	  (mapcar (lambda (line)
-			(unless (or (string-match "batch" line)
-(string-match "^rat: replaced .*$" line)
-(= 0 (length line)))
-			  line))
-		  (split-string raw "[\r\n]"))) "\n"))
- (org-babel-eval cmd ""
+  (let ((result
+	 (let* ((result-params (split-string (or (cdr (assoc :results params)) "")))
+		(cmdline (cdr (assoc :cmdline params)))
+		(in-file (org-babel-temp-file "maxima-" ".max"))
+		(cmd (format "maxima --very-quiet -r 'batchload(%S)$' %s"
+			 in-file cmdline)))
+	   (with-temp-file in-file (insert (org-babel-maxima-expand body params)))
+	   (message cmd)
+	   ((lambda (raw) ;; " | grep -v batch | grep -v 'replaced' | sed '/^$/d' "
+	  (mapconcat
+	   #'identity
+	   (delq nil
+		 (mapcar (lambda (line)
+			   (unless (or (string-match "batch" line)
+	   (string-match "^rat: replaced .*$" line)
+	   (= 0 (length line)))
+ line))
+			 (split-string raw "[\r\n]"))) "\n"))
+	(org-babel-eval cmd "") 
+(if (org-babel-maxima-graphical-output-file params) 
+	nil
+  result)))
+
 
 (defun org-babel-prep-session:maxima (session params)
   (error "Maxima does not support sessions"))
 
+(defun org-babel-maxima-var-to-maxima (pair)
+  "Convert an elisp val into a string of maxima code specifying a var
+of the same value."
+  (let ((var (car pair))
+(val (cdr pair)))
+(when (symbolp val)
+  (setq val (symbol-name val))
+  (when (= (length val) 1)
+(setq val (string-to-char val
+  (format "%S: %s$" var 
+	  (org-babel-maxima-elisp-to-maxima val
+
+(defun org-babel-maxima-graphical-output-file (params)
+  "Name of file to which maxima should send graphical output."
+  (and (member "graphics" (cdr (assq :result-params params)))
+   (cdr (assq :file params
+
+(defun org-babel-maxima-elisp-to-maxima (val)
+  "Return a string of maxima code which evaluates to VAL."
+  (if (listp val)
+  (concat "[" (mapconcat #'org-babel-maxima-elisp-to-maxima val ", ") "]")
+(format "%s" val)))
+
+
 (provide 'ob-maxima)
 
 ;; arch-tag: d86c97ac-7eab-4349-8d8b-302dd09779a8
diff --git a/testing/examples/ob-maxima-test.org b/testing/examples/ob-maxima-test.org
new file mode 100644
index 000..23c76e7
--- /dev/null
+++ b/testing/examples/ob-maxima-test.org
@@ -0,0 +1,63 @@
+* Test org maxima file
+#+begin_src maxima :var s=4 :results si

Re: [O] regression: capture vs dired

2011-07-19 Thread Nicolas Goaziou
Hello,

Greg Troxel  writes:

> When doing capture, after selecting 'task', I get:
>
>   Template key: 
>   call-interactively: Symbol's value as variable is void: dired-buffers

This has (hopefully) been fixed on master. You may update Org.

Regards,

-- 
Nicolas Goaziou



Re: [O] Thesaurus terms as org tags -- feature request

2011-07-19 Thread Achim Gratz
Bastien  writes:
> #+TAGGROUP: :colour: :red:green:
>
> in such a way that:
>
> 1. searches for :red: will continue to display entries with :red:
> 2. searches for :colour: will display entries with :red: and/or :green:
>
> Would this be useful already?  

If I've read the OP correctly, this should be (optionally?) transitive,
i.e. searches for :red: should also return entries with just :color:.


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

Factory and User Sound Singles for Waldorf Q+, Q and microQ:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds




Re: [O] [HELP} trying to figure out how to figure out?

2011-07-19 Thread Achim Gratz
Matthew Sauer  writes:
> The points that grabbed my attention are listed here, didn't know
> exactly how one would go about finding other than going to the line in
> the  files noted? :
>
> In org-cycle:
> org.el:5932:47:Warning: attempt to let-bind constant `org-outline-regexp'

I noticed those, too.  However (if I analysed it correctly) it only
happens with Emacs23, but not with Emacs24 and only when you compile it
while in a directory where the .elc files are present, either freshly
compiled or from a previous compile.


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

Waldorf MIDI Implementation & additional documentation:
http://Synth.Stromeko.net/Downloads.html#WaldorfDocs




[O] regression: capture vs dired

2011-07-19 Thread Greg Troxel

When doing capture, after selecting 'task', I get:

  Template key: 
  call-interactively: Symbol's value as variable is void: dired-buffers

This is on:

  GNU Emacs 23.3.1 (i386--netbsdelf, GTK+ Version 2.24.4) of 2011-06-25 on 
fnord.ir.bbn.com

I suspect it may be this commit:

  commit 819fbec64160c3c33884b116734c01f56be7606b
  Author: Nicolas Goaziou 
  Date:   Mon Jul 18 17:42:01 2011 +0200



pgpEcZN9xShtJ.pgp
Description: PGP signature


Re: [O] [bug] Org-capture bug due to recent dired-buffers related feature

2011-07-19 Thread Nicolas Goaziou
Hello,

Puneeth Chaganti  writes:

> The recent commit that adds a dired-buffer related feature, breaks
> org-capture when dired-mode has not been loaded.  The dired-buffers
> variable becomes available only when dired-mode has been loaded
> atleast once.

True. This should be fixed now. Let me know if this isn't the case.

Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] Use org for jobs/resume writing?

2011-07-19 Thread Russell Adams
I used Org for mine.

http://www.adamsinfoserv.com/AISTWiki/pub/AIS/Resume/AdamsRussellPublicBio.pdf

I even have it split into parts with dynamic includes. Org/Latex
worked great.

Thanks.

On Tue, Jul 19, 2011 at 04:04:44PM +0530, Puneeth Chaganti wrote:
> Hi Nathan,
>
> On 7/19/11, Nathan Neff  wrote:
> [..]
> > Now that org has odt-export and of course HTML, etc. I'm re-thinking using
> > .org
> > for resume writing.
> >
> > Anyone else?
>
> I have recently started using Org-mode for my Resume [1].  I have
> created a custom LaTeX stylesheet, that I use, for the LaTeX export.
>
> HTH,
> Puneeth
>
> [1] -  https://github.com/punchagan/resume
>


--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3



Re: [O] [org-babel] a patch with fortran support

2011-07-19 Thread Eric Schulte
ob-fortran.el is now living in control/babel/langs/ob-fortran.el

Thanks to Sergey for contributing support for a new (well actually very
old) language! -- Eric

Sergey Litvinov  writes:

> Please consider an implementation of fortran support for
> org-babel. The patch adds contrib/babel/langs/ob-fortran.el
> (modification of lisp/ob-C.el) and
> testing/examples/ob-fortran-test.org with tests.
>

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



Re: [O] Can't follow links with id property

2011-07-19 Thread Memnon Anon
Suvayu Ali  writes:

> I can't follow links with an ID property. I have attached a minimal
> example org file. Org complains it cannot find a match and prompts to
> create a new headline. Answering yes to the prompt creates a new
> headline like this:
>
> * id:9dfdc23e-f9ce-413b-b950-fc20fd152e42
>
>
> Debugger entered--Lisp error: (error "No match")
>   signal(error ("No match"))
>   error("No match")
>   org-link-search(#("id:9dfdc23e-f9ce-413b-b950-fc20fd152e42" 0 39 (org-attr 
> nil)) nil 119)
>   eval((org-link-search #("id:9dfdc23e-f9ce-413b-b950-fc20fd152e42" 0 39 
> (org-attr nil)) nil 119))
>   byte-code("~\210\301!\207" [cmd eval] 2)
>   org-open-at-point(nil)
>   call-interactively(org-open-at-point nil nil)

I can not reproduce that with your minimal example with
Org-mode version 7.6 (release_7.6.120.g0b9c.dirty) on
GNU Emacs 23.3.1 (i486-pc-linux-gnu, GTK+ Version 2.24.3) of 2011-04-10
on raven, modified by Debian

Memnon




Re: [O] Scheduling calling debugger

2011-07-19 Thread Memnon Anon
Suvayu Ali  writes:

> The error at the end was generated on attempting to reschedule a
> headline like this:
>
> ** TODO Read note on fitter
>SCHEDULED: <2011-07-19 Tue>
>
> Debugger entered--Lisp error: (invalid-function 
> org-loop-over-siblings-in-active-region)
>   org-loop-over-siblings-in-active-region("Scheduled to <2011-07-21 Thu>")
>   org-schedule(nil)
>   call-interactively(org-schedule nil nil)
> 
> PS: this is with emacs -Q with Org-mode version 7.6
> release_7.6.100.gde4d on GNU Emacs 24.0.50.1

I can not reproduce that with 
Org-mode version 7.6 (release_7.6.120.g0b9c.dirty) on
GNU Emacs 23.3.1 (i486-pc-linux-gnu, GTK+ Version 2.24.3) of 2011-04-10
on raven, modified by Debian

Memnon




[O] Fwd: Commenting a diary sexp line??

2011-07-19 Thread Alan E. Davis
I finally Archived this subheading.  I am trying to get
org-mobile/mobile-org running on my new Android phone, and org-mobile-push
choked on three sexps.

Alan


On Tue, Jul 19, 2011 at 2:54 AM, suvayu ali wrote:

> Hi,
>
> On Tue, Jul 19, 2011 at 7:48 AM, Michael Markert
>  wrote:
> >> :| * APPT Daily Scrum
> >> :| <%%(let ((dayname (calendar-day-of-week date))(day (car (cdr
> date(memq dayname '(1 2 3 4 5)))>
> >> :|[2009-07-01 Wed]
> >> :`
> >> #+END_EXAMPLE
> >
> > Anyway: Begin the org-sexp line with a `#' - the usual org comment
> character.
> >
>
> I also faced this once and was expecting using the COMMENT keyword on
> the headline will do the trick but it doesn't. I had to use # before
> the sexp.
>
> So my question is, should org be ignoring the COMMENT keyword on
> headlines when a sexp is present. I would be inclined to call this a
> bug as a scheduled headline would be ignored in the presence of
> COMMENT.
>
> > Michael
>
> --
> Suvayu
>
> Open source is the future. It sets us free.
>


[O] [bug] Org-capture bug due to recent dired-buffers related feature

2011-07-19 Thread Puneeth Chaganti
Hi Nicolas,

The recent commit that adds a dired-buffer related feature, breaks
org-capture when dired-mode has not been loaded.  The dired-buffers
variable becomes available only when dired-mode has been loaded
atleast once.

Thanks,
Puneeth

Git bisect output, just for reference.

819fbec64160c3c33884b116734c01f56be7606b is the first bad commit
commit 819fbec64160c3c33884b116734c01f56be7606b
Author: Nicolas Goaziou 
Date:   Mon Jul 18 17:42:01 2011 +0200

org-capture: %F is directory when capture starts in a dired buffer

* lisp/org-capture.el (org-capture): if no file is associated to
  current buffer, check dired buffer and try to retreive a possibly
  directory associated.

:04 04 2ae961f6f609dbc28aa8e727df5a04465991645d
02aef5b5063d0642d4b260b7567a1e135bf73a14 M  lisp



Re: [O] Remove current heading from refile targets?

2011-07-19 Thread Jason Dunsmore
Bastien  writes:

> Jason Dunsmore  writes:
>
>> Hm, I don't see any change with or without org-completion-use-ido set.
>> The current heading still shows up in the refile targets.
>
> Weird.  I double-check and have the current heading filtered out of the
> refile targets.  Can you check again and/or send a small test file?

It looks like it removes top-level headings from the refile targets, but
nothing below that.  For example, in the org file below, place the
cursor on Subheading1 and type "M-x org-refile".  The current
heading will be in the list of refile targets.

--8<---cut here---start->8---
* Heading1
** Subheading1
* Heading2
--8<---cut here---end--->8---



Re: [O] calculation question

2011-07-19 Thread Nick Dokos
Bastien  wrote:

> Jude DaShiell  writes:
> 
> > After I use C-C } can I use c-p c-n c-l and c-r to move one cell up on 
> > cell down one cell left and one cell right respectively?
> 
> You can use C-n C-p to move down and up by one line, but you cannot use
> C-r and C-l are these are fundamental Emacs keybindings doing something
> else.  
> 
> You can navigate through cells using TAB: it will go to the next cell on
> the same row, or to the first cell on the next row if you are at the
> last cell in a row.
> 

... and S-TAB to move in the other direction.

Nick



[O] [org-babel] a patch with fortran support

2011-07-19 Thread Sergey Litvinov
Please consider an implementation of fortran support for
org-babel. The patch adds contrib/babel/langs/ob-fortran.el
(modification of lisp/ob-C.el) and
testing/examples/ob-fortran-test.org with tests.
From a18cbc80770d985d6ca6bdada07120f7daf65c02 Mon Sep 17 00:00:00 2001
From: Litvinov Sergey 
Date: Sun, 17 Jul 2011 15:31:03 +0200
Subject: [PATCH] Add fortran support to babel

---
 contrib/babel/langs/ob-fortran.el|  191 ++
 testing/examples/ob-fortran-test.org |   67 
 2 files changed, 258 insertions(+), 0 deletions(-)
 create mode 100644 contrib/babel/langs/ob-fortran.el
 create mode 100644 testing/examples/ob-fortran-test.org

diff --git a/contrib/babel/langs/ob-fortran.el b/contrib/babel/langs/ob-fortran.el
new file mode 100644
index 000..bb6948f
--- /dev/null
+++ b/contrib/babel/langs/ob-fortran.el
@@ -0,0 +1,191 @@
+;;; ob-fortran.el --- org-babel functions for fortran
+;; Copyright (C) 2010  Free Software Foundation, Inc.
+
+;; Author: Sergey Litvinov (based on ob-C.el by Eric Schulte)
+;; Keywords: literate programming, reproducible research, fortran
+;; Homepage: http://orgmode.org
+;; Version: 7.6
+
+;; This file is part of GNU Emacs.
+
+;; GNU Emacs is free software: you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; GNU Emacs is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with GNU Emacs.  If not, see .
+
+;;; Commentary:
+
+;; Org-Babel support for evaluating fortran code.
+;;
+
+;;; Code:
+
+;; Org-Babel support for evaluating fortran code.
+;;
+
+(require 'ob)
+(require 'ob-eval)
+(require 'cc-mode)
+
+(declare-function org-entry-get "org"
+		  (pom property &optional inherit literal-nil))
+
+(defvar org-babel-tangle-lang-exts)
+(add-to-list 'org-babel-tangle-lang-exts '("fortran" . "F90"))
+
+(defvar org-babel-default-header-args:fortran '())
+
+(defvar org-babel-fortran-compiler "gfortran"
+  "fortran command used to compile a fortran source code file into an
+  executable.")
+
+(defun org-babel-execute:fortran (body params)
+  "Execute BODY according to PARAMS.  This function calls
+`org-babel-execute:fortran'."
+  (org-babel-execute:fortran body params))
+
+(defun org-babel-execute:fortran (body params)
+"Execute a block of fortran code with org-babel.  This function is
+called by `org-babel-execute-src-block'."
+  (org-babel-fortran-execute body params))
+
+(defun org-babel-expand-body:fortran (body params)
+  "Expand a block of fortran code with org-babel according to it's
+header arguments (calls `org-babel-fortran-expand')."
+  (org-babel-fortran-expand body params))
+
+(defun org-babel-execute:fortran (body params)
+  "Execute a block of fortran code with org-babel.  This function is
+called by `org-babel-execute-src-block'."
+  (org-babel-fortran-execute body params))
+
+(defun org-babel-expand-body:fortran (body params)
+  "Expand a block of fortran code with org-babel according to it's
+header arguments (calls `org-babel-fortran-expand')."
+  (org-babel-fortran-expand body params))
+
+(defun org-babel-fortran-execute (body params)
+  "This function should only be called by `org-babel-execute:fortran'"
+  (let* ((tmp-src-file (org-babel-temp-file
+			"fortran-src-"
+			".F90"))
+ (tmp-bin-file (org-babel-temp-file "fortran-bin-"))
+ (cmdline (cdr (assoc :cmdline params)))
+ (flags (cdr (assoc :flags params)))
+ (full-body (org-babel-fortran-expand body params))
+ (compile
+	  (progn
+	(with-temp-file tmp-src-file (insert full-body))
+	(org-babel-eval
+	 (format "%s -o %s %s %s"
+		 org-babel-fortran-compiler
+		 (org-babel-process-file-name tmp-bin-file)
+		 (mapconcat 'identity
+(if (listp flags) flags (list flags)) " ")
+		 (org-babel-process-file-name tmp-src-file)) ""
+((lambda (results)
+   (org-babel-reassemble-table
+	(if (member "vector" (cdr (assoc :result-params params)))
+	(let ((tmp-file (org-babel-temp-file "f-")))
+	  (with-temp-file tmp-file (insert results))
+	  (org-babel-import-elisp-from-file tmp-file))
+	  (org-babel-read results))
+	(org-babel-pick-name
+	 (cdr (assoc :colname-names params)) (cdr (assoc :colnames params)))
+	(org-babel-pick-name
+	 (cdr (assoc :rowname-names params)) (cdr (assoc :rownames params)
+ (org-babel-trim
+   (org-babel-eval
+	(concat tmp-bin-file (if cmdline (concat " " cmdline) "")) "")
+
+(defun org-babel-fortran-expand (body params)
+  "Expand a block of fortran or fortran code with org-babel according

[O] problems with org-edit-special and python

2011-07-19 Thread Dirk Scharff
Hi all!

I'm fairly new to emacs (and org-mode :)), so I'm sorry in advance for 
eventually missing something completely obvious. While I kind of expect my 
problem to be something with my emacs setup it does only happen with org-mode 
so I'm posting it here.

My test file (for learning purposes) contains the following (empty) code-block: 
#+source : the_beginning
#+begin_src python
  
#+end_src

When I try to run org-edit-special (C-c ') in the python source block an empty 
buffer is opened as expected. My mini-buffer states the following:
"Language mode 'python-mode' fails with: "Invalid file-name". 
Trying to call python-mode manually in the new buffer doesn't work. (It works 
fine in other buffers). I can't leave the new buffer by using C-c' again. 

I tried the same with a latex code block and it worked without problems. 

I'm quite satisfied with my emacs python setup, which seems to run perfectly 
fine on its own. 

I have to admit I don't even know where to start for resolving this. Can 
someone point me in the right direction? 

best regards,
Dirk


Re: [O] [bug] cannot execute shell code blocks

2011-07-19 Thread Eric Schulte
Robert McIntyre  writes:

> BTW, this only fails to evaluate when :cache yes is present, as shown by
> this example
>
> #+begin_src sh
> echo " Checked out revision 7881."
> #+end_src
>
> #+results:
> : Checked out revision 7881.
>
> #+begin_src sh :cache yes
> echo " Checked out revision 7881."
> #+end_src
>
> gives error:
> progn: Symbol's function definition is void: org-babel-result-hash
>

I introduced this problem when I pushed up the fix for your previous
cache related bug report.  I've just pushed up a fix for this new issue.

Please let me know if you experience any continued problems.

Thanks -- Eric

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



Re: [O] Thanks for Lilypond export (and minor comments)

2011-07-19 Thread suvayu ali
On Tue, Jul 19, 2011 at 2:29 PM, Bernt Hansen  wrote:
> With Suvayu's model you would only merge for the release and that means
> the new master won't have the same level of testing exposure before a
> release is created.  We don't have full coverage of org-mode's features
> in the ERT testing framework (far from it) and the more day-to-day
> testing we get during development the better.
>

Yes, this is the reason why in my original post I commented this model
might be better suited for larger and more complicated projects (where
a more stable master might be desirable). :)

In any case, I had proposed the model just as another (remote)
possibility. But I think we agreed the current model seems to work
best right now. :)

> Regards,
> --
> Bernt

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Use org for jobs/resume writing?

2011-07-19 Thread suvayu ali
Hi,

On Tue, Jul 19, 2011 at 12:34 PM, Puneeth Chaganti  wrote:
> Hi Nathan,
>
> On 7/19/11, Nathan Neff  wrote:
> [..]
>> Now that org has odt-export and of course HTML, etc. I'm re-thinking using
>> .org
>> for resume writing.
>>
>> Anyone else?
>
> I have recently started using Org-mode for my Resume [1].  I have
> created a custom LaTeX stylesheet, that I use, for the LaTeX export.
>

I have also used org for résumé. But since I am strictly an academic,
I didn't bother to write any custom styles. I did a sub-tree export to
LaTeX using these settings:

** Curriculum Vitae
:PROPERTIES:
:EXPORT_FILE_NAME: suvayu_cv.pdf
:EXPORT_TITLE: Curriculum Vitae
:EXPORT_AUTHOR: Suvayu Ali
:CATEGORY: cv
:END:
#+OPTIONS: H:2 num:nil toc:nil TeX:t


> HTH,
> Puneeth


-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Thanks for Lilypond export (and minor comments)

2011-07-19 Thread Bernt Hansen
Bastien  writes:

> Hi Suvayu,
>
> thanks for sharing this suggestion and to make it so clear.
>
> I understand the model you describe and I see why it's appropriate for
> projects like "git" -- as IIUC, your proposal is very close to the one
> described by git's maintainer.
>

> - The latest git HEAD is stable enough so that many people live on it,
>   and can send feedback on patches.

> It's all based on the idea "if it works, don't break it".
>
> But I'm open to any change if (and when) we need it.

Here's my take on Suvayu's proposal.

Personally I don't think it makes sense to keep separate topic branches
in the public git repo for major parts of org-mode functionality since
that would require merging the branches to master to get all of the
functionality.  Topic branches (even for the git project) are generally
short-lived and for the developer's current set of patches until the
feature is merged into master.  At that point the developer normally
deletes the topic branch.

Junio (the git maintainer) keeps topic branches in his git development
repo for active topics which are merged to maint, master, next, and pu
integration branches.  Only the integration branches are normally pushed
to the public git repo that everyone clones.  When a topic branch is
merged to maint, or master it is normally deleted.

Lots of people use org-mode for different aspects of the functionality
it provides - I doubt anyone uses *all* of the features available in
org-mode - I know I don't.

The main advantage I see of keeping the current model is that people
(including me) run directly from the tip of the master branch - I
usually update at least weekly.  This has the advantage that users who
do this are testing the current development codebase and reporting
problems early as they are encountered.  This helps to fix problems
early before it's time to create a new release.

With Suvayu's model you would only merge for the release and that means
the new master won't have the same level of testing exposure before a
release is created.  We don't have full coverage of org-mode's features
in the ERT testing framework (far from it) and the more day-to-day
testing we get during development the better.

Regards,
-- 
Bernt



[O] Org-capture from Firefox: ^M or not ^M?

2011-07-19 Thread Sebastien Vauban
Hello,

In the exact same conditions (I mean, Emacs settings, etc.), when I capture
some regions from Web pages, they sometimes:

- are mixed "all one one line"
  Example: 
http://lists.gnu.org/archive/html/help-gnu-emacs/2007-03/msg00670.html

- are copied as on the screen, but with ending ^M at every line
  Example: http://www.emacswiki.org/emacs/DiaryMode

I'm not sure anymore whether or when it is correct:
- region on multiple lines (as on the screen), and
- no ending ^M...

Questions:

- Do you see the same behavior as mine?  I'm on Windows XP with Firefox
  3.6.18.

- Is there some work around so that you would not have to fiddle with the
  copied text?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] feature request

2011-07-19 Thread MidLifeXis at PerlMonks
Recommendation: use something like GIT (or one of the other fine source control 
systems out there) to checkpoint your work, and save the history of your org 
files.  It can even be set up in emacs to periodically save all org files and 
check in a snapshot.


HTH,
Brian



From: Jude DaShiell 
To: emacs-orgmode@gnu.org
Sent: Monday, July 18, 2011 4:36 PM
Subject: [O] feature request

A little data destruction protection.  I put together a table and had to 
destroy all copies of it after having tried to set up averages for a 
couple columns.  The averages didn't work and data got zeroed out and I 
lost an entire column of data that way.  One of my problems I'm sure was 
caused because I tried data gathering first then tried modifying the 
original table and adding the formulas later.  Next time I attempt 
anything with org and mathematics, I'll write my data set down in braille 
and ought to have done that with this data set as well.  What might have 
helped here a little is if a column is going to be put into existing 
columns the column inserts rather than overwrites any column that might be 
there.  The broken table I ended up with had six columns and two of those 
were single space columns out to the right with nothing in them.  There 
ought to have been before I did anything with formulas at most four 
columns in the table.  I did enter time stamps in as two separated date 
and time fields originally then when I read what all could be put into 
time stamps, I consolidated those first two columns into a single time 
stamp column.  I don''t know if that consolidation did further damage or 
not.

Re: [O] Attachments and refiling

2011-07-19 Thread Gustav Wikström
Ok. I would really like attachments to be integrated with refiling though
even if it was a non-default option. Another feature that could improve the
use of attachments is to allow links to the attached folders also via the
C-c C-l interface in a similar way as stored links (C-c l ). I.E to get the
attachment-folder as an item in the C-c C-l buffer with TAB-completion.

regards
G

2011/7/16 Darlan Cavalcante Moreira 

>
> I use org-attach regularly and consider it to be a great feature of
> org-mode. Since I only attach to the sub-tree (instead of to a different
> file) I have not this problem. However, sometimes a set the attach
> directory of two different headings to the same folder (when it makes
> sense) and if org always moved the attached files it would break the other
> sub-tree.
>
> An alternative is to change the attach directory in the archived entry to
> point to the original attach directory where the files are. When archiving
> to a file in a different folder org could ask if it should also move the
> attached files or simply change the attach directory accordingly (I would
> prefer this as the default if "ask" as the default was considered too
> annoying).
>
> --
> Darlan
>
> At Fri, 15 Jul 2011 16:55:06 +0200,
> Gustav Wikström  wrote:
> >
> > [1  ]
> > Hello Bastien!
> >
> > To clarify a bit. Lets say I have a file c:\temp\agenda.org (I'm calling
> it
> > file 'a').
> >
> > When marked with TODO item: done, headings in this file are archived to
> > another file called c:\temp\archive\agenda.org_archive ('b')
> >
> > If i use C-c C-a to attach a file to a certain topic in 'a' and then
> refile
> > this topic to 'b', when done the attachment still resides in c:\temp\data
> > and will not be found when looking at the attachment in 'b'.
> >
> > Thus my question is if it is possible to also refile the attachment so
> the
> > attachment-folder resides in c:\temp\archive\data and is avaliable in
> 'b'?
> >
> > /Gustav
> >
> > 2011/7/15 Bastien 
> >
> > > Hi Gustav,
> > >
> > > Gustav Wikström  writes:
> > >
> > > > Is it possible to make attachment-folders move with the headings when
> > > > refiling them to other locations?
> > >
> > > I'm not sure what you mean.
> > >
> > > Can you give an example?
> > >
> > > --
> > >  Bastien
> > >
> > [2  ]
> >
>


[O] Scheduling calling debugger

2011-07-19 Thread Suvayu Ali
Hi Orgers,

Scheduling or rescheduling seems to be invoking the debugger for me (I
run emacs with debug-on-error set to t). Although it doesn't seem to do
anything wrong to the scheduled entry. Strange!

The error at the end was generated on attempting to reschedule a
headline like this:

** TODO Read note on fitter
   SCHEDULED: <2011-07-19 Tue>


Debugger entered--Lisp error: (invalid-function 
org-loop-over-siblings-in-active-region)
  org-loop-over-siblings-in-active-region("Scheduled to <2011-07-21 Thu>")
  org-schedule(nil)
  call-interactively(org-schedule nil nil)


PS: this is with emacs -Q with Org-mode version 7.6
release_7.6.100.gde4d on GNU Emacs 24.0.50.1

-- 
Suvayu

Open source is the future. It sets us free.



[O] Can't follow links with id property

2011-07-19 Thread Suvayu Ali
Hi everyone,

I can't follow links with an ID property. I have attached a minimal
example org file. Org complains it cannot find a match and prompts to
create a new headline. Answering yes to the prompt creates a new
headline like this:

* id:9dfdc23e-f9ce-413b-b950-fc20fd152e42


Debugger entered--Lisp error: (error "No match")
  signal(error ("No match"))
  error("No match")
  org-link-search(#("id:9dfdc23e-f9ce-413b-b950-fc20fd152e42" 0 39 (org-attr 
nil)) nil 119)
  eval((org-link-search #("id:9dfdc23e-f9ce-413b-b950-fc20fd152e42" 0 39 
(org-attr nil)) nil 119))
  byte-code("~\210\301!\207" [cmd eval] 2)
  org-open-at-point(nil)
  call-interactively(org-open-at-point nil nil)


-- 
Suvayu

Open source is the future. It sets us free.
* B oscillations

The oscillations can be smeared:
+ convoluted with the [[id:9dfdc23e-f9ce-413b-b950-fc20fd152e42][acceptance 
function]]
+ further enhanced by detector resolution effects (e.g. time resn).


* Acceptance
  :PROPERTIES:
  :ID:   9dfdc23e-f9ce-413b-b950-fc20fd152e42
  :END:

In LHCb acceptance is a function of (proper?) time (B decay time / B
decay length / PV-SV distance). Combined effect of,
+ non-uniform geometrical acceptance (as LHCb is not hermetic)
+ and triggering on a min. time interval (or displacement) from IP/PV.
  Ensures a long lived B.



[O] problems with org-edit-special and python (2nd try to post)

2011-07-19 Thread Dirk Scharff
Hey, I tried to post this yesterday and it doesn't seem like it worked 
by now (I didn't see it showing up on the news interface). I'm sorry if 
this ends up being a double post!



Hi all!

I'm fairly new to emacs (and org-mode :)), so I'm sorry in advance for 
eventually missing something completely obvious. While I kind of expect 
my problem to be something with my emacs setup it does only happen with 
org-mode so I'm posting it here.


My test file (for learning purposes) contains the following (empty) code-block:
#+source : the_beginning
#+begin_src python

#+end_src

When I try to run org-edit-special (C-c ') in the python source block 
an empty buffer is opened as expected. My mini-buffer states the 
following:

"Language mode 'python-mode' fails with: "Invalid file-name".
Trying to call python-mode manually in the new buffer doesn't work. (It 
works fine in other buffers). I can't leave the new buffer by using 
C-c' again.


I tried the same with a latex code block and it worked without problems.

I'm quite satisfied with my emacs python setup, which seems to run 
perfectly fine on its own.


I have to admit I don't even know where to start for resolving this. 
Can someone point me in the right direction?


best regards,
Dirk





Re: [O] Use org for jobs/resume writing?

2011-07-19 Thread Puneeth Chaganti
Hi Nathan,

On 7/19/11, Nathan Neff  wrote:
[..]
> Now that org has odt-export and of course HTML, etc. I'm re-thinking using
> .org
> for resume writing.
>
> Anyone else?

I have recently started using Org-mode for my Resume [1].  I have
created a custom LaTeX stylesheet, that I use, for the LaTeX export.

HTH,
Puneeth

[1] -  https://github.com/punchagan/resume



Re: [O] Commenting a diary sexp line??

2011-07-19 Thread suvayu ali
Hi,

On Tue, Jul 19, 2011 at 7:48 AM, Michael Markert
 wrote:
>> :|     * APPT Daily Scrum
>> :|     <%%(let ((dayname (calendar-day-of-week date))(day (car (cdr 
>> date(memq dayname '(1 2 3 4 5)))>
>> :|    [2009-07-01 Wed]
>> :`
>> #+END_EXAMPLE
>
> Anyway: Begin the org-sexp line with a `#' - the usual org comment character.
>

I also faced this once and was expecting using the COMMENT keyword on
the headline will do the trick but it doesn't. I had to use # before
the sexp.

So my question is, should org be ignoring the COMMENT keyword on
headlines when a sexp is present. I would be inclined to call this a
bug as a scheduled headline would be ignored in the presence of
COMMENT.

> Michael

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Use org for jobs/resume writing?

2011-07-19 Thread Bastien
Hi Nathan,

Nathan Neff  writes:

> Now that org has odt-export and of course HTML, etc. I'm re-thinking
> using .org for resume writing.
>
> Anyone else?

I'm not using Org for resumes, but yes, I would love to see some good
CSS for the HTML export and some good style.xml for the ODT export...

Crossing fingers,

-- 
 Bastien



Re: [O] calculation question

2011-07-19 Thread Bastien
Jude DaShiell  writes:

> After I use C-C } can I use c-p c-n c-l and c-r to move one cell up on 
> cell down one cell left and one cell right respectively?

You can use C-n C-p to move down and up by one line, but you cannot use
C-r and C-l are these are fundamental Emacs keybindings doing something
else.  

You can navigate through cells using TAB: it will go to the next cell on
the same row, or to the first cell on the next row if you are at the
last cell in a row.

HTH,

-- 
 Bastien



Re: [O] calculation question

2011-07-19 Thread Jude DaShiell
After I use C-C } can I use c-p c-n c-l and c-r to move one cell up on 
cell down one cell left and one cell right respectively?

On Tue, 19 Jul 2011, Bastien wrote:

> Hi Jude,
> 
> Please type C-c } on a table -- it displays coordinates of the 
> cells so that you can more easily refer to the right one.
> 
> HTH,
> 
> 





Re: [O] elnode: emacs webserver exposes org files ...... !

2011-07-19 Thread Sebastien Vauban
Hi Sander,

Sander Boer wrote:
> I just read this:
> http://nic.ferrier.me.uk/blog/2010_10/elnode
>
> it is an asynchronous webserver in emacs that can take anything in emacs
> (like org files) and serve it up...

Very interesting!

It somehow goes in the direction of Emacs ubiquity, or even Org à la "Google
Docs"? Org v8? ;-)

> I haven't played with it yet, but it sound awesome !

The same applies to "templating in Emacs". Maybe something worth for
org-publish? See http://emacswiki.org/emacs/NicFerrier

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] calculation question

2011-07-19 Thread Bastien
Hi Bart,

Bart Bunting  writes:

> I have noticed that emacspeak does not read anything done using
> overlays.  I am presuming the column and row labels are done this way.

Yes, the references are displayed as an overlay.

> I'm sure like all things emacs that this can be fixed given enough elisp
> knowledge.  Perhaps it's worth Jude or I asking on the emacspeak list
> for some advice as to how to solve this problem.

Please do -- I'm not using emacspeak myself but I'm interested in
improving accessibility for tables.

Best regards,

-- 
 Bastien



Re: [O] [bug] cannot execute shell code blocks

2011-07-19 Thread Robert McIntyre
BTW, this only fails to evaluate when :cache yes is present, as shown by
this example

#+begin_src sh
echo " Checked out revision 7881."
#+end_src

#+results:
: Checked out revision 7881.

#+begin_src sh :cache yes
echo " Checked out revision 7881."
#+end_src

gives error:
progn: Symbol's function definition is void: org-babel-result-hash


sorry about the confusing message earlier.

sincerely,
--Robert McIntyre



On Tue, Jul 19, 2011 at 3:10 AM, Robert McIntyre  wrote:

> I can't execute any sh code blocks for this file anymore.  This has to be a
> very recently introduced problem.
>
>
>
>
> #+BABEL: :exports both :results verbatim :noweb yes :cache yes
>
>
> * Setup
>
> Code Execution no longer works for this file.
> I get instead:
> progn: Symbol's function definition is void: org-babel-result-hash
>
> This must have been a very recent change -- the results blocks are
> from executing these blocks in the morning.
>
> org-version gives:
> release_7.6-116-g90d7
> Org-mode version 7.6 (release_7.6.116.g90d7)
>
> sincerely,
> Robert McIntyre
>
> First, I checked out the source to jMonkeyEngine using the following
> command:
>
> #+begin_src sh
> # svn checkout http://jmonkeyengine.googlecode.com/svn/trunk/engine jme3
> sleep 2;
> echo " Checked out revision 7881."
> #+end_src
>
> #+results[41b64eeb0a6cd4c98f3d52ace4342bfde961aeab]:
> :  Checked out revision 7881.
>
> Building jMonkeyEngine is easy enough:
>
> #+begin_src sh
> #cd jme3
> #ant jar | tail -n 2
> sleep 2;
> echo "BUILD SUCCESSFUL\nTotal time: 11 seconds";
> #+end_src
>
> #+results[6f2a3e338f959eebdee983364c8c621ed0e49618]:
> : BUILD SUCCESSFUL
> : Total time: 11 seconds
>
>
>
> sincerely,
> --Robert McIntyre
>


Re: [O] Exporting to wiki syntax from org mode

2011-07-19 Thread Jambunathan K

Puneeth

If you are so inclined (and wouldn't mind wasting away some hacker
cycles), you could use org-lparse.el for creating the moinmoin exporter.

Start with my test.org and org-odt.el and just go with the flow till you
get the expected org-moinmoin.el. I was able to create a "works for me"
docbook exporter in about a day's time.

If you actually take up my suggestion, I would really like to see your
notes on both your org-moinmoins.

Jambunathan K.

-- 



[O] [bug] cannot execute shell code blocks

2011-07-19 Thread Robert McIntyre
I can't execute any sh code blocks for this file anymore.  This has to be a
very recently introduced problem.




#+BABEL: :exports both :results verbatim :noweb yes :cache yes


* Setup

Code Execution no longer works for this file.
I get instead:
progn: Symbol's function definition is void: org-babel-result-hash

This must have been a very recent change -- the results blocks are
from executing these blocks in the morning.

org-version gives:
release_7.6-116-g90d7
Org-mode version 7.6 (release_7.6.116.g90d7)

sincerely,
Robert McIntyre

First, I checked out the source to jMonkeyEngine using the following
command:

#+begin_src sh
# svn checkout http://jmonkeyengine.googlecode.com/svn/trunk/engine jme3
sleep 2;
echo " Checked out revision 7881."
#+end_src

#+results[41b64eeb0a6cd4c98f3d52ace4342bfde961aeab]:
:  Checked out revision 7881.

Building jMonkeyEngine is easy enough:

#+begin_src sh
#cd jme3
#ant jar | tail -n 2
sleep 2;
echo "BUILD SUCCESSFUL\nTotal time: 11 seconds";
#+end_src

#+results[6f2a3e338f959eebdee983364c8c621ed0e49618]:
: BUILD SUCCESSFUL
: Total time: 11 seconds



sincerely,
--Robert McIntyre