Re: [O] Different face for org-table fields with formulas

2011-12-06 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/12/11 22:29, Dov Grobgeld wrote:
> I had a look at the org-mode sources and found that this was quite 
> trivial to implement on the source level. E.g. the following patch 
> embeds the output of an org formula in ~~ to make it org-verbatim.
> This is easily changed to another couple of characters that may
> then be set in org-emphasis-alist to whatever formatting I fancy.
> 
> index edcdbe1..9ad01d4 100644 --- a/lisp/org-table.el +++
> b/lisp/org-table.el @@ -2572,7 +2572,7 @@ $1->%s\n" orig
> formula form0 form)) (message ""))) (if (listp ev) (setq fmt nil ev
> "#ERROR")) (org-table-justify-field-maybe - (if fmt (format fmt
> (string-to-number ev)) ev)) + (format "~%s~" (if fmt (format
> fmt (string-to-number ev)) ev))) (if (and down (> ndown 0)
> (looking-at ".*\n[ \t]*|[^-]")) (call-interactively 'org-return) 
> (setq ndown 0)))
> 
> 

I haven't tried it out, but I think that would be very nice as a
standard feature in org.

Cheers,

Rainer

> 
> On Sun, Dec 4, 2011 at 09:15, Dov Grobgeld  > wrote:
> 
> Has anyone hacked up the use of using a different face for
> org-table fields with formulas. This would be useful for quickly
> realizing what are inputs and outputs in a org spreadsheet.
> Currently I do this by adding the formatting ";~%.4f~" to my
> formulas. But it would be nicer if this was a settable property.
> 
> Thanks! Dov
> 
> 


- -- 
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 :   +33 - (0)9 58 10 27 44

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

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk7dzR4ACgkQoYgNqgF2egoueACgiG4Cqjc97RyFZ+TzVsqBYkWU
mZUAn3Npki29EerHBQ54y7qEzi2K7pEC
=3eFu
-END PGP SIGNATURE-



Re: [O] org-capture-templates file+datetree+prompt question

2011-12-06 Thread Erik Hetzner
At Tue, 6 Dec 2011 08:43:34 +0100,
Carsten Dominik wrote:
> 
> 
> On 6.12.2011, at 07:04, Erik Hetzner wrote:
> 
> > Hi all,
> > 
> > I would like to use a capture template to capture calendar entries &
> > file them to a date tree organized calendar.org file.
>
> […]
>
> I tried to reproduce this.  When I do this and enter the date two
> days into the future (8 December), I get
> 
> * 2011
> ** 2011-12 Dezember
> *** 2011-12-08 Donnerstag
>  Test
>  <2011-12-06 Di>
> 
> So the headline uses in fact the date that was entered at the prompt,
> only the %t is replaced by the current date.  I would think this
> all works as expected.  Maybe I am missing something?
> 
> I see that when I do "k c" from the agenda, then indeed also the %t
> is replaced with the cursor date.  So indeed, this is a bit
> inconsistent.  What would be the right behavior?

Hi Carsten,

Maybe it does work as expected (although it should probably be
consistent, as you say). What I am looking for is some way to get the
date I was prompted for to use in the timestamp, so I get:

* 2011
** 2011-12 December
*** 2011-12-08 Thursday
 Test
 <2011-12-08 Thursday>

the idea being that I am entering a scheduled event.

I can’t figure a template replacement string (%-something) to make
this work.

Thanks for your help!

best, Erik
Sent from my free software system .


Re: [O] org-capture-templates file+datetree+prompt question

2011-12-06 Thread Carsten Dominik
Hi Erik,

if yout get the latest git version, this is how it is working now.
I agree that it is more consistent this way.

- Carsten

On 6.12.2011, at 09:23, Erik Hetzner wrote:

> At Tue, 6 Dec 2011 08:43:34 +0100,
> Carsten Dominik wrote:
>> 
>> 
>> On 6.12.2011, at 07:04, Erik Hetzner wrote:
>> 
>>> Hi all,
>>> 
>>> I would like to use a capture template to capture calendar entries &
>>> file them to a date tree organized calendar.org file.
>> 
>> […]
>> 
>> I tried to reproduce this.  When I do this and enter the date two
>> days into the future (8 December), I get
>> 
>> * 2011
>> ** 2011-12 Dezember
>> *** 2011-12-08 Donnerstag
>>  Test
>> <2011-12-06 Di>
>> 
>> So the headline uses in fact the date that was entered at the prompt,
>> only the %t is replaced by the current date.  I would think this
>> all works as expected.  Maybe I am missing something?
>> 
>> I see that when I do "k c" from the agenda, then indeed also the %t
>> is replaced with the cursor date.  So indeed, this is a bit
>> inconsistent.  What would be the right behavior?
> 
> Hi Carsten,
> 
> Maybe it does work as expected (although it should probably be
> consistent, as you say). What I am looking for is some way to get the
> date I was prompted for to use in the timestamp, so I get:
> 
> * 2011
> ** 2011-12 December
> *** 2011-12-08 Thursday
>  Test
> <2011-12-08 Thursday>
> 
> the idea being that I am entering a scheduled event.
> 
> I can’t figure a template replacement string (%-something) to make
> this work.
> 
> Thanks for your help!
> 
> best, Erik
> Sent from my free software system .




Re: [O] Exportation langage

2011-12-06 Thread Nick Dokos
Steve Prud'Homme  wrote:

> Hi,
> when i export something with orgmode everything is find now with
> latex. I don't have accent problem thanks...
> I have an other problem. How can I change Table of content to Table
> des matières in french. Author for Auteur, etc.
> Can i change the output langage in orgmode.
> Thanks
> 

C-h v org-export-default-language RET

Customize it to "fr".

Nick



Re: [O] [OT] The joy of elisp

2011-12-06 Thread Eric Schulte
Marcelo de Moraes Serpa  writes:

> Here's a new version:
>
> (defun find-wiki-by-tags (tags)
>   (interactive "sEnter tags: ")
> (shell-command (format "cd ~/org;  ack \"\\* tags.*(%s).*\" --all" tags)
> "mybuf")
> (set-buffer "mybuf")
> (beginning-of-buffer)
> (ignore-errors
>   (while (search-forward-regexp "\\(.*?\\):")
> (replace-match "[[~/org/\\1]]" )
> ))
> (org-mode)
> )
>
> Problems:
>
> 1) It's slow, not sure where the bottleneck is (ack in itself is fast, I
> suppose the problem lies in elisp's side)

A pure elisp implementation would likely be faster, maybe something like
the following would work as an improvement

(defun org-files ()
  "Return a list of the files in the \"~/org/\" directory."
  (directory-files "~/org/" nil ".*.org$"))

(defun collect-links (tag)
  "Collect links in \"~/org/\" including TAG."
  (save-window-excursion   ; save the current buffer and point
(let ((rx (format "^\\* tags.*%s" tag)) ; build a regexp for the given tag
  links); hold collected links
  (dolist (file (org-files)) ; for all files returned by `org-files'
(find-file (expand-file-name file "~/org/"))  ; in this file
(save-excursion
  (goto-char (point-min))   ; go to the beginning of the file
  (while (re-search-forward rx nil t) ; search for matches
(push (org-store-link nil) links ; save a link to the match
  links)))  ; return the collected links

(defun find-wiki-by-tag (tag)
  "Pop to a buffer of links to headlines \"~/org/\" in including TAG."
  (pop-to-buffer (set-buffer (generate-new-buffer "*tag-matches*")))
  (org-mode)
  (dolist (link (collect-links tag))
(insert link) (insert "\n")))

> 
> 2) The regexp is not optmized, and I'm getting some trash, although it
> lists the files for me so it works well enough now.
>

Try the `regexp-builder' function in one of your org files to
interactively build up a regexp and see what it matches.

In general the following two functions are very useful for finding
useful functions and documentation.

- describe-function :: used with tab completion to show documentation of
  functions

- elisp-index-search :: to look up documentation on broad elisp topics

Cheers,

>
> - Marcelo.
>
>
>
>
> On Mon, Dec 5, 2011 at 12:08 AM, Marcelo de Moraes Serpa <
> celose...@gmail.com> wrote:
>
>> Hi list!
>>
>> I decided to finally get my hands dirty and build a small function to
>> improve my org-based productivity system.
>>
>> Let me explain:
>>
>> I have a subdirectory under ~/org which has a bunch of files named after
>> different subjects. Originally it was supposed to model a wiki, but in
>> practice, I create a file there whenever I start studying a new (often
>> complex) subject and that I know I will come back often and edit / improve.
>> It's indeed like a wiki.
>>
>> However, I don't keep those files in the agenda. It would slow it down a
>> lot. To keep the organization as organic as possible, I simply use tags to
>> bring them together semantically. So, I have other files with items that
>> are tagged, say, business, and I have a "wiki file" with a headline like
>> this:
>>
>> * tags :business:
>>
>> 
>>
>> I use the tags headline to tag those files.
>>
>> Now, what I wanted was to get a list of files related to say, the business
>> tag. It's quite useful to find myself in the (good) chaos of tagged "wiki
>> files", I came up with a small elisp function that does just that!
>>
>> (progn
>> (shell-command "cd ~/org;  ack \"\\* tags.*(business).*\" --all" "mybuf")
>> (set-buffer "mybuf")
>> (beginning-of-buffer)
>> (ignore-errors
>>   (while (search-forward-regexp "\\(.*?\\):")
>> (replace-match "[[~/org/\\1]]" )
>> ))
>> (org-mode)
>> )
>>
>> Bear in mind this is my first elisp program ever. It's not even a function
>> yet, actually. But it works pretty well for what I want :)
>>
>> Took me around 1 hour to bring it up.
>>
>> The joy of breaking your head on something!
>>
>> Cheers!
>>
>> (Suggestions on how to improve it welcome!)
>>
>> Marcelo.
>>

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



[O] howto integrate blockdiag in org-babel?

2011-12-06 Thread OSiUX
Hi everybody! I recently discovered blockdiag [0] and org-export-diag,
how to integrate it as a new language of babel?

[0] http://blockdiag.com/en/
[1] https://github.com/xcezx/org-export-diag

-- 

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  AA70 93FD B6EF EB42 6920 7530 A799 B226 74C8 A3FE
  http://osiux.com http://wiki.buenosaireslibre.org


signature.asc
Description: Digital signature


Re: [O] org-capture-templates file+datetree+prompt question

2011-12-06 Thread Erik Hetzner
At Tue, 6 Dec 2011 09:26:03 +0100,
Carsten Dominik wrote:
> 
> Hi Erik,
> 
> if yout get the latest git version, this is how it is working now.
> I agree that it is more consistent this way.

Thanks, Carsten! I haven’t upgraded, but I copied the diff into my
org-capture.el, and it works great.

best, Erik
Sent from my free software system .


[O] Directional quotes in html

2011-12-06 Thread Herbert Sitz
In my exports to pdf standard double-quote and single-quote (apostrophe)
characters both get translated to corresponding pairs of opening and closing
quotes.  But in export to html both double- and single-quotes seem to be same
in resulting html as they were in the org text, non-paired, non-directional.

What is best way to get directional pairs of open- and close-quotes in html
export?

-- Herb




Re: [O] Directional quotes in html

2011-12-06 Thread Christian Moe

On 12/6/11 7:25 PM, Herbert Sitz wrote:

What is best way to get directional pairs of open- and close-quotes in html
export?

-- Herb


Hi, Herb,

I keep this in my .emacs:

(setq org-export-html-special-string-regexps
  (cons
   '(" \"\\([^\"]+\\)\"" . " “\\1”")
   org-export-html-special-string-regexps))

There may be a better way to do it altogether, and I'm sure the very 
simple regexp could be improved on (in fact, I'm posting this in the 
hope someone will improve on it), but it mostly works.


Yours,
Christian





Re: [O] [bug] Symbol's function definition is void: org-pop-to-buffer-same-window

2011-12-06 Thread Shelagh Manton
On Thu, 01 Dec 2011 11:40:11 -0300, Kenny Meyer wrote:

> I am getting the same message here upon calling various org-functions
> (e.g.: org-drill, org-submit-bug-report), since I have compiled org-mode
> from git, but I am not sure where exactly the error was introduced.
> 
>> Explicitly Loading `org-compat' does cure this problem...
> Requiring org-compat does not fix that here. Can you tell me where
> exactly you loaded org-compat?
> 
> Org-mode version 7.7 (release_7.7.617.gb1f2) GNU Emacs 24.0.50.1
> (x86_64-unknown-linux-gnu, GTK+ Version 3.2.0) of 2011-09-29
> 
> --
> Kenny Meyer
> 
> 
> 
> On Thu, Dec 1, 2011 at 9:51 AM, Sebastien Vauban
>  wrote:
>> Hello,
>>
>> In conditions which I consider unchanged (I speak of my emacs config
>> file), with the latest Org-mode version, I now have the message:
>>
>>    let*: Symbol's function definition is void:
>>    org-pop-to-buffer-same-window
>>
>> when doing, for example, `C-c C-x C-j' to jump on the currently clocked
>> item.
>>
>> Explicitly Loading `org-compat' does cure this problem... But we must
>> miss a `require' somewhere, but where?  In `org.el' itself?
>>
>> Best regards,
>>  Seb
>>
>> --
>> Sebastien Vauban
>>
>>

Hi

I've just been bitten by this as well. requiring org-compat manually did 
nothing. My config files have not changed, just pulled latest org-mode, 
did a make clean and make. Suddenly my org-drill sessions don't work. 

Regards

Shelagh




Re: [O] Directional quotes in html

2011-12-06 Thread Herbert Sitz
Christian Moe  christianmoe.com> writes:
> 
> Hi, Herb,
> 
> I keep this in my .emacs:
> 
> (setq org-export-html-special-string-regexps
>(cons
> '(" \"\\([^\"]+\\)\"" . " “\\1”")
> org-export-html-special-string-regexps))
> 
> There may be a better way to do it altogether, and I'm sure the very 
> simple regexp could be improved on (in fact, I'm posting this in the 
> hope someone will improve on it), but it mostly works.
> 
> Yours,
> Christian
> 

Christian -- Thanks a lot.  If there's nothing built in to Org to do it then
that looks like a good method.  

Question: Does this work only if quotes both appear on the same line of Org-mode
text?  Or is the regex applied to paragraph as a whole after it's been assembled
as part of export?

It looks like it does only double-quotes; makes me realize single quotes are a
bit harder because they're often used alone as apostrophes.  It seems like even
single-quote pairs could work well if you put beginning-of-word (\<) and
end-of-word (\<) regex anchors in there.  

Beginning-of-word and end-of-word anchors may be appropriate even for the
double-quote search, so maybe something like change below could be improvement.
Take it for what's it's worth, since I don't do emacs regexes.

> '("\<\"\\([^\"]+\\)\"\>" . " “\\1”")

-- Herb






Re: [O] Directional quotes in html

2011-12-06 Thread tycho garen
On Tue, Dec 06, 2011 at 06:25:09PM +, Herbert Sitz wrote:
> In my exports to pdf standard double-quote and single-quote (apostrophe)
> characters both get translated to corresponding pairs of opening and closing
> quotes.  But in export to html both double- and single-quotes seem to be same
> in resulting html as they were in the org text, non-paired, non-directional.

The directional quotes are processed by LaTeX and org have very little
to do with this.

> What is best way to get directional pairs of open- and close-quotes in html
> export?

http://daringfireball.net/projects/smartypants/

There's a php port that may be more your style.

Cheers,
sam

--
tycho(ish) @
ga...@tychoish.com
http://tychoish.com/
"don't get it right, get it written" -- james thurber


pgp2CZygUKFZg.pgp
Description: PGP signature


Re: [O] [bug] Symbol's function definition is void: org-pop-to-buffer-same-window

2011-12-06 Thread Nick Dokos
Shelagh Manton  wrote:

> On Thu, 01 Dec 2011 11:40:11 -0300, Kenny Meyer wrote:
> 
> > I am getting the same message here upon calling various org-functions
> > (e.g.: org-drill, org-submit-bug-report), since I have compiled org-mode
> > from git, but I am not sure where exactly the error was introduced.
> > 
> >> Explicitly Loading `org-compat' does cure this problem...
> > Requiring org-compat does not fix that here. Can you tell me where
> > exactly you loaded org-compat?
> > 
> > Org-mode version 7.7 (release_7.7.617.gb1f2) GNU Emacs 24.0.50.1
> > (x86_64-unknown-linux-gnu, GTK+ Version 3.2.0) of 2011-09-29
> > 
> > --
> > Kenny Meyer
> > 
> > 
> > 
> > On Thu, Dec 1, 2011 at 9:51 AM, Sebastien Vauban
> >  wrote:
> >> Hello,
> >>
> >> In conditions which I consider unchanged (I speak of my emacs config
> >> file), with the latest Org-mode version, I now have the message:
> >>
> >>    let*: Symbol's function definition is void:
> >>    org-pop-to-buffer-same-window
> >>
> >> when doing, for example, `C-c C-x C-j' to jump on the currently clocked
> >> item.
> >>
> >> Explicitly Loading `org-compat' does cure this problem... But we must
> >> miss a `require' somewhere, but where?  In `org.el' itself?
> >>
> >> Best regards,
> >>  Seb
> >>
> >> --
> >> Sebastien Vauban
> >>
> >>
> 
> Hi
> 
> I've just been bitten by this as well. requiring org-compat manually did 
> nothing. My config files have not changed, just pulled latest org-mode, 
> did a make clean and make. Suddenly my org-drill sessions don't work. 
> 

Did you restart emacs?

Nick

> Regards
> 
> Shelagh
> 
> 



Re: [O] Directional quotes in html

2011-12-06 Thread Herbert Sitz
tycho garen  tychoish.com> writes:
> 
> The directional quotes are processed by LaTeX and org have very little
> to do with this.

Ahh, thanks, I should have known that.

> 
> > What is best way to get directional pairs of open- and close-quotes in html
> > export?
> 
> http://daringfireball.net/projects/smartypants/

Thanks.  Looks like Christian Moe's method in different post is a simplified and
perhaps not quite as effective way of doing something similar.  

-- Herb




Re: [O] Directional quotes in html

2011-12-06 Thread Jambunathan K
tycho garen  writes:

> On Tue, Dec 06, 2011 at 06:25:09PM +, Herbert Sitz wrote:
>> In my exports to pdf standard double-quote and single-quote (apostrophe)
>> characters both get translated to corresponding pairs of opening and closing
>> quotes.  But in export to html both double- and single-quotes seem to be same
>> in resulting html as they were in the org text, non-paired, non-directional.
>
> The directional quotes are processed by LaTeX and org have very little
> to do with this.

If one has 

--8<---cut here---start->8---
(setq org-export-with-TeX-macros t)
--8<---cut here---end--->8---

then I believe something like

--8<---cut here---start->8---
\rdquo This is a quoted text \ldquo 
--8<---cut here---end--->8---

will do the trick. FWIW, a dump of quotations section in
org-entities.el.

,
| "** Quotations"
| ("quot" "\\textquotedbl{}" nil """ "\"" "\"" "\"")
| ("acute" "\\textasciiacute{}" nil "´" "'" "´" "´")
| ("ldquo" "\\textquotedblleft{}" nil "“" "\"" "\"" "“")
| ("rdquo" "\\textquotedblright{}" nil "”" "\"" "\"" "”")
| ("bdquo" "\\quotedblbase{}" nil "„" "\"" "\"" "„")
| ("lsquo" "\\textquoteleft{}" nil "‘" "`" "`" "‘")
| ("rsquo" "\\textquoteright{}" nil "’" "'" "'" "’")
| ("sbquo" "\\quotesinglbase{}" nil "‚" "," "," "‚")
| ("laquo" "\\guillemotleft{}" nil "«" "<<" "«" "«")
| ("raquo" "\\guillemotright{}" nil "»" ">>" "»" "»")
| ("lsaquo" "\\guilsinglleft{}" nil "‹" "<" "<" "‹")
| ("rsaquo" "\\guilsinglright{}" nil "›" ">" ">" "›")
`
-- 



Re: [O] Directional quotes in html

2011-12-06 Thread Christian Moe

On 12/6/11 9:37 PM, Herbert Sitz wrote:

Question: Does this work only if quotes both appear on the same line of Org-mode
text?  Or is the regex applied to paragraph as a whole after it's been assembled
as part of export?


Oops, that's embarrassing. I never even noticed. I'm not sure why it 
doesn't work -- the regexp /does/ catch multiline quotes.


Anyway, after some experimenting, the following mess seems to work in 
most cases:


#+begin_src
(setq org-export-html-special-string-regexps
  (append
   '(("\\(^\\|[ \"(]\\)'" . "\\1‘")
 ("\\([^ ]\\)'" . "\\1’")
 ("\\(^\\|[ (]\\)\"" . "\\1“")
 ("\"\\([ [:punct:]]\\|$\\)" . "”\\1"))
org-export-html-special-string-regexps))
#+end_src

At least, it should work
- if the opening single or double quotation mark comes at the 
beginning of the line, after a space, or after opening parenthesis,
- or if the opening single quotation mark comes after an opening 
double quotation mark,
- and if the closing double quotation mark comes before a space, 
before punctuation, including a closing parenthesis, or at the end of 
the line.


It will work if you put the period /after/ the closing quotation mark, 
"like this". Typographically, though, you should do it "like this."




It looks like it does only double-quotes; makes me realize single quotes are a
bit harder because they're often used alone as apostrophes.


The above now also handles single quotes, including apostrophes 
between word characters ("it's"). The rule is that any single quote 
that is not an opening quote is turned into a closing quote, which 
works for apostrophes too.


It also handles nested quotes (single quotes within double quotes). 
The following example should illustrate parentheses and nested quotes:


#+begin_example
Philosophy ain't easy ("being" is a surprisingly difficult concept,
but not as hard as "non-being"). Who said: "'Being' is a surprisingly
difficult concept, but not as hard as 'non-being'"?
#+end_example


It seems like even
single-quote pairs could work well if you put beginning-of-word (\<) and
end-of-word (\<) regex anchors in there.


I've experimented with those anchors, but ended up doing without them; 
punctuation mixes with quotation marks in odd ways.


Yours,
Christian



Re: [O] Emacs Prelude

2011-12-06 Thread Marcelo de Moraes Serpa
Wow! Evil is simply awesome! I like that it runs smoothly (differently from
viper-mode, which makes the whole text editing experience very slow when
using orgmode). Kudos to Evil's developers, and thank you for letting us
know about it!

On Mon, Dec 5, 2011 at 3:09 AM, Eric S Fraga  wrote:

> Marcelo de Moraes Serpa  writes:
>
> > Hi Tom,
> >
> > I'm very interested in the "vi emulation in emacs" subject. I've tried
> > viper-mode but it's quite slow with org, so I gave up on it. What's evil
> > and how's the vi emulation it provides? Could you elaborate on it? I'd
> > appreciate it, a lot.
> >
> > Thanks,
> >
> > Marcelo.
>
> Marcelo,
>
> I've been using evil (with org but also more generally) for a few months
> now.  It provides a very good vi emulation and, more importantly,
> strives to stay out of the way when necessary.  From the commentary in
> the evil.el file:
>
> ,
> | ;; Evil is an extensible vi layer for Emacs. It emulates the main
> | ;; features of Vim, and provides facilities for writing custom
> | ;; extensions.
> | ;;
> | ;; Evil lives in a Git repository. To obtain Evil, do
> | ;;
> | ;;  git clone git://gitorious.org/evil/evil.git
> | ;;
> | ;; Evil is discussed at ,
> | ;; a mailing list you can subscribe to at:
> | ;;
> | ;;
> http://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
> | ;;
> | ;; Subscription is not required; we usually reply within a few days
> | ;; and CC our replies back to you.
> `
>
> If you want modal editing and less cumbersome keystrokes for common
> commands, without losing the power that Emacs provides, evil is
> definitely worth considering.  I could not go back to vanilla emacs...
>
> --
> : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.90.1
> : using Org-mode version 7.7 (release_7.7.620.g7e49b)
>


Re: [O] [bug] Symbol's function definition is void: org-pop-to-buffer-same-window

2011-12-06 Thread Shelagh Manton
On Tue, 06 Dec 2011 16:19:36 -0500, Nick Dokos wrote:

> Shelagh Manton  wrote:
> 
>> On Thu, 01 Dec 2011 11:40:11 -0300, Kenny Meyer wrote:
>> 
>> > I am getting the same message here upon calling various org-functions
>> > (e.g.: org-drill, org-submit-bug-report), since I have compiled
>> > org-mode from git, but I am not sure where exactly the error was
>> > introduced.
>> > 
>> >> Explicitly Loading `org-compat' does cure this problem...
>> > Requiring org-compat does not fix that here. Can you tell me where
>> > exactly you loaded org-compat?
>> > 
>> > Org-mode version 7.7 (release_7.7.617.gb1f2) GNU Emacs 24.0.50.1
>> > (x86_64-unknown-linux-gnu, GTK+ Version 3.2.0) of 2011-09-29
>> > 
>> > --
>> > Kenny Meyer
>> > 
>> > 
>> > 
>> > On Thu, Dec 1, 2011 at 9:51 AM, Sebastien Vauban
>> >  wrote:
>> >> Hello,
>> >>
>> >> In conditions which I consider unchanged (I speak of my emacs config
>> >> file), with the latest Org-mode version, I now have the message:
>> >>
>> >>    let*: Symbol's function definition is void:
>> >>    org-pop-to-buffer-same-window
>> >>
>> >> when doing, for example, `C-c C-x C-j' to jump on the currently
>> >> clocked item.
>> >>
>> >> Explicitly Loading `org-compat' does cure this problem... But we
>> >> must miss a `require' somewhere, but where?  In `org.el' itself?
>> >>
>> >> Best regards,
>> >>  Seb
>> >>
>> >> --
>> >> Sebastien Vauban
>> >>
>> >>
>> >>
>> Hi
>> 
>> I've just been bitten by this as well. requiring org-compat manually
>> did nothing. My config files have not changed, just pulled latest
>> org-mode, did a make clean and make. Suddenly my org-drill sessions
>> don't work.
>> 
>> 
> Did you restart emacs?

Yes. I did just then and same thing.

Shelagh
> 
> Nick
> 
>> Regards
>> 
>> Shelagh
>> 
>>





[O] babel: tblname not being expanded into function/var

2011-12-06 Thread Nathan Neff
Hello,

I've been tinkering with different operating systems lately, and
the past couple of times I've tried to install my org-mode setup,
I receive this error:

>Symbol's value as variable is void: shortcut-definition list

My init.el loads org-mode-config.org using org-babel, like this:
(require 'org-install)
(org-babel-load-file "~/.emacs.d/org-mode-config.org")

Here's the relevant section of my org-mode-config.org file:

#+TBLNAME: shortcut-definition-list
| Blog   |  b| blog |
| Customer 1 |  m| customer1|

#+srcname: map-nav(shortcut-definition-list=shortcut-definition-list)
#+begin_src emacs-lisp
(require 'cl)
(defun map-navigation-shortcuts(shortcut-def)
(global-set-key (read-kbd-macro (nth 1 shortcut-def))
 (lexical-let ((shortcut-def shortcut-def))
   (lambda ()
 (interactive)
 (org-id-goto (nth 2 shortcut-def))
(mapcar #'map-navigation-shortcuts shortcut-definition-list)
#+end_src

-- end snippets ---
I've found that the babel-generated "org-mode-config.el" does *not* contain
a variable called "shortcut-definition-list" on my new OS (Arch
Linux).  On my Mac,
the org-mode-config.el *does* contain a variable called
"shortcut-definition-list".

On my new OS, I'm using Emacs version 23.3.1 and org-mode version 7.7 (latest).
I've run make clean && make && sudo make install in my src/org
directory, so I'm pretty
sure I'm using the right code.

I had this same problem when I ran Ubuntu 11.11, and I was pulling my
hair out trying to
get this problem fixed, and it suddenly went away!  This indicates to
me that it could be a
transient problem like having some temp files laying around or
something like that.

Any advice or help is appreciated!!

Thanks,
--Nate