[Orgmode] Re: Example for beamer export with blocks and twocolumn

2010-12-10 Thread Loris Bennett
Loris Bennett  writes:

> suvayu ali  writes:
>
>> Hi Loris,
>>
>> On Thu, Dec 9, 2010 at 3:55 PM, Loris Bennett
>>  wrote:
>>> Hi,
>>>
>>> Is there a complete example of getting blocks and two-columns to work
>>> with beamer export? The corresponding code is not being generated in the
>>> latex file. I assume there is something wrong with my
>>> org-export-latex-classes. I'm using Org-mode 7.3 with Emacs 23.1.1.
>>>
>>
>> This is an example from a resent presentation I gave. This shows up as
>> a plot on the left column and 2 equations related to the plot on the
>> right column.
>>
>>
>> #+BEAMER_FRAME_LEVEL: 3
>>
>> .
>>
>> * Some Section
>> ** Some Subsection
>> *** \subsecname \\ some description
>>  Columns   :B_columns:
>>  :PROPERTIES:
>>  :BEAMER_env: columns
>>  :END:
>>
>> * 0.4   :B_column:
>>   :PROPERTIES:
>>   :BEAMER_env: column
>>   :END:
>>   #+ATTR_LaTeX: width=4.5cm,height=6cm,angle=0
>>   [[file:~/org/path/to/image1.png]]
>>
>> * 0.5   :B_column:
>>   :PROPERTIES:
>>   :BEAMER_env: column
>>   :END:
>> ** Smearing function :B_ignoreheading:
>>:PROPERTIES:
>>:BEAMER_env: ignoreheading
>>:END:
>>$$\Bigg\} E_{\parallel} \rightarrow T_1 \times E_{\parallel} +
>>T_2 \times \mathcal{G}$$ \vspace{6 mm}
>>
>>$$\Bigg\}E_{\perp} \rightarrow T_3 \times E_{\perp} + T_4
>>\times \mathcal{G}$$ \vspace{6 mm}
>>
>>
>>> Loris
>>
>> Hope this helps.
>
> Thanks for the reply. However, I my problem is not with the main
> presentation part of the org file.
>
> What I would really like to see is
>
> 1. the preamble to the presentation where the MACROs LaTeX_CLASS options
> etc. are given
>
> 2. The value org-export-latex-classes
>
> I have found various examples, but when I put it together, structures
> such as blocks and two-column just are not exported to the LaTeX file.
>
> Could some one provide me with a *complete* example?
>
> Thanks
>
> Loris

OK, reading the replies I received, I realised that my
org-export-latex-classes was borked, due to my somewhat random
tweaking. I removed the customisation and, hey presto, blocks and
two-column appeared.

Thank for the help

-- 
Dr. Loris Bennett
ZEDAT Computer Centre
Freie Universität Berlin
Berlin, Germany


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Fontification of blocks

2010-12-10 Thread Sébastien Vauban
Hi,

In order to make the blocks stand out more clearly in the mix of prose, code
and table results of many Babel Org files, I've added 2 new faces:

- org-block-begin-line
- org-block-end-line

These apply to the line just before and after the block's body:

#+srcname: top-10-dossiers-with-many-prestations
#+begin_src sql <<< org-block-begin-line
SELECT TOP 10 prsPfiID_fk, COUNT(*) AS '# Prestations'
FROM prestations
GROUP BY prsPfiID_fk
ORDER BY COUNT(*) DESC
#+end_src <<< org-block-end-line

Not only for =src=, but also for =verse=, =quote=, etc.

This patch takes care of the correct fontification, both in native style, and
in the "no native fontification" style:

diff --git a/lisp/org.el b/lisp/org.el
index e03e9ca..f57c09b 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5137,8 +5137,8 @@ will be prompted for."
 	  (add-text-properties
 	   beg end
 	   '(font-lock-fontified t font-lock-multiline t))
-	  (add-text-properties beg beg1 '(face org-meta-line))
-	  (add-text-properties end1 (+ end 1) '(face org-meta-line))
+	  (add-text-properties beg beg1 '(face org-block-begin-line))
+	  (add-text-properties end1 (+ end 1) '(face org-block-end-line))
 	; for end_src
 	  (cond
 	   ((and lang org-src-fontify-natively)
@@ -5149,9 +5149,9 @@ will be prompted for."
 	; end of source block
 	   ((not org-fontify-quote-and-verse-blocks))
 	   ((string= block-type "quote")
-		(add-text-properties beg1 end1 '(face org-quote)))
+		(add-text-properties beg1 (1+ end1) '(face org-quote)))
 	   ((string= block-type "verse")
-		(add-text-properties beg1 end1 '(face org-verse
+		(add-text-properties beg1 (1+ end1) '(face org-verse
 	  t))
 	   ((member dc1 '("title:" "author:" "email:" "date:"))
 	(add-text-properties
@@ -5167,7 +5167,7 @@ will be prompted for."
 	   ((not (member (char-after beg) '(?\  ?\t)))
 	;; just any other in-buffer setting, but not indented
 	(add-text-properties
-	 beg (match-end 0)
+	 beg (1+ (match-end 0))
 	 '(font-lock-fontified t face org-meta-line))
 	t)
 	   ((or (member dc1 '("begin:" "end:" "caption:" "label:"

Best regards,
  Seb

-- 
Sébastien Vauban

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Fontification of blocks

2010-12-10 Thread Sébastien Vauban
Hi,

In order to make the blocks stand out more clearly in the mix of prose, code
and table results of many Babel Org files, I've added 2 new faces:

- org-block-begin-line
- org-block-end-line

These apply to the line just before and after the block's body:

#+srcname: top-10-dossiers-with-many-prestations
#+begin_src sql <<< org-block-begin-line
SELECT TOP 10 prsPfiID_fk, COUNT(*) AS '# Prestations'
FROM prestations
GROUP BY prsPfiID_fk
ORDER BY COUNT(*) DESC
#+end_src <<< org-block-end-line

Not only for =src=, but also for =verse=, =quote=, etc.

This patch takes care of the correct fontification, both in native style, and
in the "no native fontification" style:

diff --git a/lisp/org.el b/lisp/org.el
index e03e9ca..f57c09b 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5137,8 +5137,8 @@ will be prompted for."
 	  (add-text-properties
 	   beg end
 	   '(font-lock-fontified t font-lock-multiline t))
-	  (add-text-properties beg beg1 '(face org-meta-line))
-	  (add-text-properties end1 (+ end 1) '(face org-meta-line))
+	  (add-text-properties beg beg1 '(face org-block-begin-line))
+	  (add-text-properties end1 (+ end 1) '(face org-block-end-line))
 	; for end_src
 	  (cond
 	   ((and lang org-src-fontify-natively)
@@ -5149,9 +5149,9 @@ will be prompted for."
 	; end of source block
 	   ((not org-fontify-quote-and-verse-blocks))
 	   ((string= block-type "quote")
-		(add-text-properties beg1 end1 '(face org-quote)))
+		(add-text-properties beg1 (1+ end1) '(face org-quote)))
 	   ((string= block-type "verse")
-		(add-text-properties beg1 end1 '(face org-verse
+		(add-text-properties beg1 (1+ end1) '(face org-verse
 	  t))
 	   ((member dc1 '("title:" "author:" "email:" "date:"))
 	(add-text-properties
@@ -5167,7 +5167,7 @@ will be prompted for."
 	   ((not (member (char-after beg) '(?\  ?\t)))
 	;; just any other in-buffer setting, but not indented
 	(add-text-properties
-	 beg (match-end 0)
+	 beg (1+ (match-end 0))
 	 '(font-lock-fontified t face org-meta-line))
 	t)
 	   ((or (member dc1 '("begin:" "end:" "caption:" "label:"

Best regards,
  Seb

-- 
Sébastien Vauban

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Combination of =code= and Description

2010-12-10 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I would like to have a description as follow:

- - first :: some text
- - second :: some more text
- - =code= :: some additional text

but =code= is not formatted as bold. If I say

- - \bold{=code=} :: some additional text

I get, as one could expect, "=code=" in bold.

Is it possible to get code in bold?

Cheers,

Rainer

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

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:+33 - (0)9 53 10 27 44
Cell:   +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:  rai...@krugs.de

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

iEYEARECAAYFAk0B/0wACgkQoYgNqgF2egp63gCfaAkADwvJobTVcjmhY8JSnEO1
MpIAnj/SHyA84dm4aM+kVH0RlLb4tdlL
=v6du
-END PGP SIGNATURE-

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Fontification of blocks

2010-12-10 Thread David O'Toole
Hi Sebastien,

I give a definite Vote++ to this feature!

2010/12/10 Sébastien Vauban :
> Hi,
>
> In order to make the blocks stand out more clearly in the mix of prose, code
> and table results of many Babel Org files, I've added 2 new faces:
>
> - org-block-begin-line
> - org-block-end-line
>
> These apply to the line just before and after the block's body:
>
> #+srcname: top-10-dossiers-with-many-prestations
> #+begin_src sql                                     <<< org-block-begin-line
> SELECT TOP 10 prsPfiID_fk, COUNT(*) AS '# Prestations'
> FROM prestations
> GROUP BY prsPfiID_fk
> ORDER BY COUNT(*) DESC
> #+end_src                                             <<< org-block-end-line
>
> Not only for =src=, but also for =verse=, =quote=, etc.
>
> This patch takes care of the correct fontification, both in native style, and
> in the "no native fontification" style:
>
>
>
> Best regards,
>  Seb
>
> --
> Sébastien Vauban
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] newlines in capture templates from the customize buffer

2010-12-10 Thread suvayu ali
Hi everyone,

I am having some trouble writing capture templates with newlines from
the customise buffer. From all the examples I see in the manual and
Worg, it seems simply putting \n within the template string should
work. But entering a "\n" in the template escapes the "\n" when saving
to file and the saved template ends up looking like this,

"** %^{prompt|TODO|WInP} %? %^G\\n%^t"

Entering a newline pressing [RET] works. But then in my init.el it is
stored as a carriage return rather than "\n", making it ugly. Is there
a way to enter newlines in the customise buffer which is saved as
"\n"?

Thanks for any thoughts.

-- 
Suvayu

Open source is the future. It sets us free.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] newlines in capture templates from the customize buffer

2010-12-10 Thread Giovanni Ridolfi
suvayu ali  writes:

> Hi everyone,
>
> I am having some trouble writing capture templates with newlines from
> the customise buffer. 
> From all the examples I see in the manual and
> Worg, it seems simply putting \n within the template string should
> work. 
No. You see the variable edited by hand, not what you get from the 
customize buffer.

> But entering a "\n" in the template escapes the "\n" when saving
> to file and the saved template ends up looking like this,
>
> "** %^{prompt|TODO|WInP} %? %^G\\n%^t"
>
> Entering a newline pressing [RET] works. But then in my init.el it is
> stored as a carriage return rather than "\n", making it ugly. 

If you don't like the 
you can edit your init.el file and substitute  with \n
by hand:

M-% C-q C-j \n


> Is there
> a way to enter newlines in the customise buffer which is saved as
> "\n"?
I don't think so.

cheers
Giovanni

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Fast tag selection can split window wrongly

2010-12-10 Thread Carsten Dominik


On Dec 9, 2010, at 4:59 PM, Leo wrote:


On 2010-12-09 15:41 +, Anthony Lander wrote:
To fix the horizontal splitting, try adding this to your .emacs  
(works

for me):

(setq split-width-threshold most-positive-fixnum)

 -anthony


I have sent in a suggestion on how to fix it. I think the fault is at
org not taking that into account.


Hi Leo,

I am not sure I have your suggestion at hand.  Can you please repeat it?

Thanks.

- Carsten




Cheers,
Leo

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] checkbox bug

2010-12-10 Thread Leo
Hello Carsten,

I can't seem to toggle (C-c C-c) a checkbox like this:

- [ ]xyz

but the following is fine:

- [ ] xyz

So the space is significant. Is this a bug?

Thanks.
-- 
Leo


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Release 7.4

2010-12-10 Thread Carsten Dominik


Dear all,

here it is, release 7.4, my final release before Bastien takes
over in Januari.  There is not a huge amount of new features,
but I want to hand over with a pretty clean state, so this is
the sole reason for releasing now.  Not all the patches in the
queue made it, these will be taken care of in the next few days.

Thanks to the many contributors to this release.

As always:  Enjoy!

- Carsten

 Version 7.4
 ===

Incompatible changes
~

Agenda: rework ndays and span handling
===

The variable =org-agenda-ndays= is obsolete - please use
=org-agenda-span= instead.

Thanks to Julien Danjou for this.

Details


Improvements with inline tasks and indentation
===

There is now a configurable way on how to export inline tasks.  See
the new variable =org-inlinetask-export-templates=.

Thanks to Nicolas Goaziou for coding these changes.

Agenda: Added a bulk "scattering" command
==

=B S= in the agenda buffer will cause tasks to be rescheduled a random
number of days into the future, with 7 as the default.  This is useful
if you've got a ton of tasks scheduled for today, you realize you'll
never deal with them all, and you just want them to be distributed
across the next N days.  When called with a prefix arg, rescheduling
will avoid weekend days.

Thanks to John Wiegley for this.

In-buffer completion is now done using John Wiegleys pcomplete.el
==

Thanks to John Wiegley for much of this code.

Sending radio tables from org buffers is now allowed
=

Org radio tables can no also be sent inside Org buffers.  Also,
there is a new hook which get called after a table has been sent.

Thanks to Seweryn Kokot.

Command names shown in manual
==

The reference manual now lists command names for most commands.
Thanks to Andreas Röhler who started this project.

Allow ap/pm times in agenda time grid
==

Times in the agenda can now be displayed in am/pm format.  See the new
variable =org-agenda-timegrid-use-ampm=.  Thanks to C. A. Webber for
a patch to this effect.

Rewriten clock table code
==

The entire clocktable code has been rewritten to add more options and
to make hacking time reports easier.

Thanks to Erwin Vrolijk for a patch introducing clock tables for
quarters.

Babel
==

Add =msosql= engine to sql code blocks
---
SQL code blocks can now be executed using the =myosql= engine on
Windows systems.

Thanks to Sebastien Vauban for this contribution.

Python code blocks now accept a =preamble= header argument
---
This allows specification of coding declarations and library imports
which must take place in the beginning of a file of executed python
code (note this header argument is used during code block evaluation
unlike the =shebang= header argument which is used during tangling).
For example


  #+begin_src python :preamble # -*- coding: utf-8 -*- :return s
  s = "é"
  #+end_src

Thanks to Vincent Beffara for this idea.

Code block name is shown during evaluation query
-
When the user is queried about the evaluation of a named code block
the name of the code block is now displayed.

Thanks to Tom Dye for this suggestion.

Clojure code blocks results insertion
--
The results of Clojure code blocks have been improved in two ways.
1. lazy sequences are now expanded for insertion into the Org-mode
   buffer
2. pretty printing of results is now possible with both "code" and
   "data" pretty print formats

Thanks to Rick Moynihan for suggesting these changes.

Python code blocks now accept a =:return= header argument
--
This alleviates the need to explicitly insert return statements into
the bode of Python code blocks.  This change both
- allows the same python code blocks to be run both in sessions and
  externally
- removes the floating =return= statements which violated python
  syntax

Thanks to Darlan Cavalcante for proposing this feature.

=:results wrap= header argument wraps code block results
-
The new =:results wrap= wraps code blocks results in a custom
environment making it possible to offset their contents during
export.  For example


  #+begin_src emacs-lisp :results wrap
"code block results"
  #+end_src

  #+results:
  #+BEGIN_RESULT
  code block results
  #+END_RESULT

Thanks to Sebastien Vauban for persistently suggesting this enhancement.

Code block error buffer wiped clean between executio

[Orgmode] Re: Release 7.4

2010-12-10 Thread Sébastien Vauban
Hi Carsten,

Carsten Dominik wrote:
> here it is, release 7.4. [...] As always:  Enjoy!

I'll do.

I did update my git working copy, and restarted Emacs. Though, when calling:

#+begin_src emacs-lisp
(org-version)
#+end_src

I get

#+results:
: Org-mode version 7.3 (release_7.4.2.g32f816.dirty)

What could explain this diff in numbers: a mismatch in my configuration, or
something forgotten in one of Org's code files?

Best regards,
  Seb

-- 
Sébastien Vauban


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Release 7.4

2010-12-10 Thread Gregor Zattler
Hi Sébastien,
* Sébastien Vauban  [10. Dec. 2010]:
> Carsten Dominik wrote:
>> here it is, release 7.4. [...] As always:  Enjoy!
> I did update my git working copy, and restarted Emacs. Though,
> when calling:
> 
> #+begin_src emacs-lisp
> (org-version)
> #+end_src
> 
> I get
> 
> #+results:
> : Org-mode version 7.3 (release_7.4.2.g32f816.dirty)

I track branch amint and get 
Org-mode version 7.3 (release_7.4)

Ciao, Gregor
-- 
 -... --- .-. . -.. ..--.. ...-.-

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Latex: exporting a tree

2010-12-10 Thread Jörg Hagmann
I checked the problem below with the latest (7.4 alias "7.3") version 
and it is still there.

Could somebody look into that?
Emacs 23.2 on OS X 10.6.5

Thanks, Jörg
With today's pull, exporting a subtree to latex (C-cC-e 1 l) truncates 
a table at the horizontal line and eliminates the text between the 
table and the next heading. It works when exporting the whole file 
(C-cC-e l).


---Minimal example--
* Test
  :PROPERTIES:
  :COLUMNS: %15ITEM(Lecture) %number %Date %hours{+} %status{X/}
  :status_ALL: "[ ]" "[X]"
  :END:

#+BEGIN: columnview :hlines 1 :id local :maxlevel 2
| Lecture |   number | Date | hours | status |
|-+--+--+---+|
| * Test  |  |  | 2 | [0/1]  |
| ** One  | 16.1.7.1 | [2010-12-13 Mon 10:15-12:00] | 2 | [ ]|
#+END:

Some text

** One
   :PROPERTIES:
   :Date: [2010-12-13 Mon 10:15-12:00]
   :hours: 2
   :number: 16.1.7.1
   :status:   [ ]
   :END:
-End of minimal example--- 


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Release 7.4

2010-12-10 Thread Julien Danjou
On Fri, Dec 10 2010, Sébastien Vauban wrote:

> #+results:
> : Org-mode version 7.3 (release_7.4.2.g32f816.dirty)
>
> What could explain this diff in numbers: a mismatch in my configuration, or
> something forgotten in one of Org's code files?

I think Carsten forgot to change `org-version' in org.el.

-- 
Julien Danjou
❱ http://julien.danjou.info


pgpRHCdFniL7m.pgp
Description: PGP signature
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Generate list of all tags in use?

2010-12-10 Thread Matt Lundin
Uriel Avalos  writes:

> That's a start but not quite what I was looking for. First, I thinking
> of a global tag list. Second, I was thinking in terms of some kind of
> agenda view. That function just ouputs the buffer tags in the
> mini-buffer at the bottom.

Did you see this post?

http://permalink.gmane.org/gmane.emacs.orgmode/34069

- Matt

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] About entering latex code in an org file

2010-12-10 Thread Curiouslearn
Hi,

I am new to both emacs and org-mode. Org-mode sounds really cool and I
am trying to use it to make notes for a project. I have some latex
symbols that I need to enter in the file.
As a background:
(1) I read in the manual that for latex code I do not need to enclose
math inside $ $.
(2) I have many words with "_" in the their names, so as mentioned in
the manual, I added
#+OPTIONS: ^:{}
#+OPTIONS: _:{}
to my .org file.

In fact, the my file is
-
#+OPTIONS: ^:{}
#+OPTIONS: _:{}
#+LATEX_HEADER: \setlength{\parskip}{2ex plus 0.5ex minus 0.2ex}
#+LATEX_HEADER: \setlength{\parindent}{0in}

* TODO Write an aspiration_review function
  The function should do the following:
  1. Investigates if \pi_{g}  \geq  0.05  and \bar{\pi} \geq  ASP_LEVEL


** Investigate if

-
The problem is that when I export this using 'C-c C- e l' to latex,
some parts that should be enclosed in $ $ sign are not enclosed. This
is the relevant line copied and pasted from the exported .tex file

\item Investigates if $\pi$$_\{g\}$  \geq  0.05  and \bar{\pi} \geq
ASP\_{}LEVEL

Can someone please let me know what is happening?

Thanks very much for all those who have been working on org-mode.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [BUG]? org-agenda-filter-by-tag

2010-12-10 Thread Maximilian Matthé
Hello,

I'm using current version of org-mode (just pulled). I want to filter my
agenda view (C-c a a) by a Tag. I want the agenda to only show items
that have the tag :pruef: set. 

So I open the agenda (C-c a a) and type / to filter. The minibuffer
says: Filter by tag [ ], [TAB], and so on.

Typing Space hides all items that have a tag set. Typing TAB lets me
type sth. in the minibuffer. But with no tab-completion (tab just
inserts a tab) and pressing Return inserts a newline. C-g gives "Quit"
but the minibuffer stays active. The only solution to get out the
minibuffer is to press ESC ESC ESC. 

I think this is not the right behavior. So, how can I filter the agenda
view for a specified tag?

Regards, Max


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] How do I insert just a time stamp in a capture template?

2010-12-10 Thread Juan Pechiar
%(sexp) allows to include lisp expressions in a capture template.

%(format-time-string "%H:%M") should insert the current time.

Regards,
.j.

On Wed, Dec 08, 2010 at 10:08:32PM +, Charles Cave wrote:
> I use the following template
>
> ("l" "Log Time"
> entry (file+datetree "c:/charles/My Dropbox/GTD/timelog.org")
> "** %U - %^{Activity}  :TIME:")
> )
>
> A typical entry from this template looks like:
>
> * 2010
> ** 2010-12-December
> *** 2010-12-09 Thursday
>  [2010-12-09 Thu 08:10] - Arrived at the office   :TIME:
>
> I would like to just have the time in the headline not the complete date time
> stamp.
>
> I couldn't find a % extension in the documenation
> (9.1.3.2 Template expansion)

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Babel &amp; sh &amp; Windows

2010-12-10 Thread Srinivas
Thanks Michael, the extra echo statement did the trick.


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] About entering latex code in an org file

2010-12-10 Thread Pierre de Buyl

Hello,

I am no expert either but I think that the automated detection of  
latex snippets (that is, no explicit $) will only enclose in $ parts  
that cannot be reproduced in text.


I suggest that if you want a complete expression like \pi_{g}  \geq   
0.05 to be translated to $\pi_{g}  \geq  0.05$ instead of $\pi$$_{g} 
$  \geq  0.05 you should do the enclosing manually.


HTH,

Pierre


Le 10 déc. 10 à 10:17, Curiouslearn a écrit :


Hi,

I am new to both emacs and org-mode. Org-mode sounds really cool and I
am trying to use it to make notes for a project. I have some latex
symbols that I need to enter in the file.
As a background:
(1) I read in the manual that for latex code I do not need to enclose
math inside $ $.
(2) I have many words with "_" in the their names, so as mentioned in
the manual, I added
#+OPTIONS: ^:{}
#+OPTIONS: _:{}
to my .org file.

In fact, the my file is
-- 
---

#+OPTIONS: ^:{}
#+OPTIONS: _:{}
#+LATEX_HEADER: \setlength{\parskip}{2ex plus 0.5ex minus 0.2ex}
#+LATEX_HEADER: \setlength{\parindent}{0in}

* TODO Write an aspiration_review function
  The function should do the following:
  1. Investigates if \pi_{g}  \geq  0.05  and \bar{\pi} \geq   
ASP_LEVEL



** Investigate if

-- 
---

The problem is that when I export this using 'C-c C- e l' to latex,
some parts that should be enclosed in $ $ sign are not enclosed. This
is the relevant line copied and pasted from the exported .tex file

\item Investigates if $\pi$$_\{g\}$  \geq  0.05  and \bar{\pi} \geq
ASP\_{}LEVEL

Can someone please let me know what is happening?

Thanks very much for all those who have been working on org-mode.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Feature request [7.3]

2010-12-10 Thread Dave Abrahams
At Wed, 08 Dec 2010 16:20:44 +,
Eric S Fraga wrote:
> 
> Dave Abrahams  writes:
> 
> > When using Org for planning, I often find myself corrupting my Org
> > files.  All kinds of things can go wrong, but the basic issue is that
> 
> I do have a couple of rules I follow to avoid problems. 
> 
> 1. I usually have a blank line between the meta data (scheduled,
>properties) and any subsequent text, whether part of that entry or
>the following headline.  I accomplish this by ensuring that my
>capture templates all insert such a blank line, typically followed by
>the date of insertion.

Nice idea; I'll get right on it.

> 
> 2. I also always use the =C-c C-d=, =C-c C-s= and =C-c C-x p= sequences
>to manage the meta data so org takes care of keeping things sane.

Understood; I do that too ... well, sometimes I add properties
manually but only because I forget the keybinding, and I always get
that right because it's trivially easy.  The problems creep in when
I'm not watching carefully and typing fast, or maybe when my
3-year-old visits my keyboard, or... life happens.  Then things can
effectively drop off my TODO list silently, which is really
problematic!  I know there are ways to mitigate the risk, but I really
want a new feature: in general I really don't want Org to *let* me
edit most of the file as plain text most of the time.

> However:
> 
> [...]
> 
> > So I'm requesting some more help from Org in maintaining proper Org
> > syntax.  Could Org have a mode that prevents things from being modified
> > incorrectly?  For example, it'd be awesome if dates were smart (TAB into
> > one, hit return, get a smart date editor).  
> 
> This would be quite nice, even something as simple as having RET, within
> a time stamp, doing the equivalent of org-time-stamp or
> org-time-stamp-inactive depending on the current state of the time
> stamp.

Right.  But Org could be smart about the whole "grammar" of items and
only allow freeform editing where it wouldn't do any serious damage.

> > It'd be great if there were a way to make the ID property
> > read-only (or really really hard to change).
> 
> This is where column mode comes in quite handy?  

Link please?

> I tend to use column mode to edit properties and so I never come
> near the ID property as it usually isn't displayed.

My properties are usually collapsed, so I usually don't see them
either.  But I don't want a special mode.  I want org to understand
and manage its own syntax.

> > I'd love it if there were a way to create a link to an org
> > item that narrows the view to just that item, so I don't inadvertently
> > mess anything else up.  
> 
> org-narrow-to-subtree does some of this...

Yes, some of it, but not all of it.  But the point is that these are
just examples.  I think Org wasn't designed with the idea that it
would end up having much of a "grammar," but it grew one.  I'm arguing
for a UI re-think for the tool Org has become.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [RFC] Self-configuring Org-mode files

2010-12-10 Thread Jeff Horn
On Fri, Dec 10, 2010 at 2:09 AM, Thomas S. Dye  wrote:
> 4) A super-function in the Library of Babel would set the buffer-local
> instance of every relevant Org-mode variable to its default state:
> #+source: lob-set-local-defaults
> #+begin_src emacs-lisp
> ...
> #+end_src

Would this function save the current state of each variable it changes
for restoration after the user exits the buffer?

-- 
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.com

http://www.failuretorefrain.com/jeff/

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [RFC] Self-configuring Org-mode files

2010-12-10 Thread Erik Iverson



Jeff Horn wrote:

On Fri, Dec 10, 2010 at 2:09 AM, Thomas S. Dye  wrote:

4) A super-function in the Library of Babel would set the buffer-local
instance of every relevant Org-mode variable to its default state:
#+source: lob-set-local-defaults
#+begin_src emacs-lisp
...
#+end_src


Would this function save the current state of each variable it changes
for restoration after the user exits the buffer?


Perhaps I'm mis-understanding, but Thomas' suggestion is to set the
variables *buffer-local*, not global, so once the buffer is killed,
so are the buffer-local versions of the variables.


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] hyperlinks executing multiline code snippets?

2010-12-10 Thread LanX
>
> Hi
>
> Don't know if this is trivially answered...
>
> I'm thinking about using org-mode for a collection of code-snippets which
> are executed by a click on a link
>
> My first idea was to use orgs hyperlink syntax but there I have two
> problems
> 1. something like [[shell:code][NAME]] can't be multiline
> 2. for  perl  code I'll need to escape certain characters when using
> [[shell:...] or [[elisp:...]
>
> my second idea was org-babel, but AFAI see
> 1. it seems to execute code-snippets only when exporting
> 2. the code can't be hidden behind a NAME in a link text
>
> Is there a way to combine both ways?
>
> A hyperlink which executes a codesnippet (which is per default folded
> away)?
>
> something like?
>
> * [[exec:following snippet][name]
> #+begin_src perl
> for $i (1..9){
>
>print $i;
> }
> #+end_src
>
>
> or
>
>
> * Title
> #+begin_src perl :hyperlink name
> for $i (1..9){
>
>print $i;
> }
> #+end_src
>
>
>
> Thanks for any help
>
> -- rolf
>

PS hope this will not produce a duplicate post, "gmail" != "googlemail"
confusion
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] About entering latex code in an org file

2010-12-10 Thread Curiouslearn
Giovannie, thanks very much for the reply. Your solution works well
for latex export.

Is there a way to make it work for the HTML export too? I thought
MathJax would take care of converting it to appropriate html file.
While \pi_g is appropriately converted, \geq is not. Also, \( \)
remain in the HTML. Perhaps, I am asking for too much and please let
me know if that is so. But if there is a way to write math in such a
way that it is compatible with both html and latex, I would like to
learn it.

Thanks again.



On Fri, Dec 10, 2010 at 10:50 AM, Giovanni Ridolfi
 wrote:
> Curiouslearn  writes:
>
>>
>> I am new to both emacs and org-mode. Org-mode sounds really cool and I
>> am trying to use it to make notes for a project.
>
> welcome!
>
>>  I have some latex
>> symbols that I need to enter in the file.
>> As a background:
>> (1) I read in the manual that for latex code I do not need to enclose
>> math inside $ $.
>> (2) I have many words with "_" in the their names, so as mentioned in
>> the manual, I added
>> #+OPTIONS: ^:{} _:{}
>> to my .org file.
>>
>> In fact, the my file is
>> -
>> #+OPTIONS: ^:{}
>> #+OPTIONS: _:{}
>> #+LATEX_HEADER: \setlength{\parskip}{2ex plus 0.5ex minus 0.2ex}
>> #+LATEX_HEADER: \setlength{\parindent}{0in}
>>
>> * TODO Write an aspiration_review function
>>   The function should do the following:
>>   1. Investigates if \pi_{g}  \geq  0.05  and \bar{\pi} \geq  ASP_LEVEL
>>
>>
>> ** Investigate if
>>
>> -
>> The problem is that when I export this using 'C-c C- e l' to latex,
>> some parts that should be enclosed in $ $ sign are not enclosed. This
>> is the relevant line copied and pasted from the exported .tex file
>>
>> \item Investigates if $\pi$$_\{g\}$  \geq  0.05  and \bar{\pi} \geq
>> ASP\_{}LEVEL
>>
>> Can someone please let me know what is happening?
>
> You can't have the cake and eat it.
>
> I suggest you to enclose LaTeX parts in \( \) (that are better handled
> than $'s) and keep the option
> #+OPTIONS:  ^:{} _:{}
>
>    1. Investigates if \( \pi_{g}  \geq \) 0.05  and \(\bar{\pi} \geq \) 
> ASP_LEVEL
>
> gives:
>       Investigates if \( \pi_{g}  \geq \) 0.05  and \(\bar{\pi} \geq \) 
> ASP\_{}LEVEL
>
> cheers,
> Giovanni
>
>

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [RFC] Self-configuring Org-mode files

2010-12-10 Thread Jeff Horn
Hah! You're right. Sorry for noise.

On Fri, Dec 10, 2010 at 11:13 AM, Erik Iverson  wrote:
>
>
> Jeff Horn wrote:
>>
>> On Fri, Dec 10, 2010 at 2:09 AM, Thomas S. Dye  wrote:
>>>
>>> 4) A super-function in the Library of Babel would set the buffer-local
>>> instance of every relevant Org-mode variable to its default state:
>>> #+source: lob-set-local-defaults
>>> #+begin_src emacs-lisp
>>> ...
>>> #+end_src
>>
>> Would this function save the current state of each variable it changes
>> for restoration after the user exits the buffer?
>>
> Perhaps I'm mis-understanding, but Thomas' suggestion is to set the
> variables *buffer-local*, not global, so once the buffer is killed,
> so are the buffer-local versions of the variables.
>
>



-- 
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.com

http://www.failuretorefrain.com/jeff/

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] About entering latex code in an org file

2010-12-10 Thread Curiouslearn
Hi Pierre,

I tried to enclose it manually, however, the conversion inserts its
own $ signs preceded by a slash. There were some stray $ signs left in
the document after conversion.

Thanks.

On Fri, Dec 10, 2010 at 10:57 AM, Pierre de Buyl
 wrote:
> Hello,
>
> I am no expert either but I think that the automated detection of latex
> snippets (that is, no explicit $) will only enclose in $ parts that cannot
> be reproduced in text.
>
> I suggest that if you want a complete expression like \pi_{g}  \geq  0.05 to
> be translated to $\pi_{g}  \geq  0.05$ instead of $\pi$$_{g}$  \geq  0.05
> you should do the enclosing manually.
>
> HTH,
>
> Pierre
>
>
> Le 10 déc. 10 à 10:17, Curiouslearn a écrit :
>
>> Hi,
>>
>> I am new to both emacs and org-mode. Org-mode sounds really cool and I
>> am trying to use it to make notes for a project. I have some latex
>> symbols that I need to enter in the file.
>> As a background:
>> (1) I read in the manual that for latex code I do not need to enclose
>> math inside $ $.
>> (2) I have many words with "_" in the their names, so as mentioned in
>> the manual, I added
>> #+OPTIONS: ^:{}
>> #+OPTIONS: _:{}
>> to my .org file.
>>
>> In fact, the my file is
>>
>> -
>> #+OPTIONS: ^:{}
>> #+OPTIONS: _:{}
>> #+LATEX_HEADER: \setlength{\parskip}{2ex plus 0.5ex minus 0.2ex}
>> #+LATEX_HEADER: \setlength{\parindent}{0in}
>>
>> * TODO Write an aspiration_review function
>>  The function should do the following:
>>  1. Investigates if \pi_{g}  \geq  0.05  and \bar{\pi} \geq  ASP_LEVEL
>>
>>
>> ** Investigate if
>>
>>
>> -
>> The problem is that when I export this using 'C-c C- e l' to latex,
>> some parts that should be enclosed in $ $ sign are not enclosed. This
>> is the relevant line copied and pasted from the exported .tex file
>>
>> \item Investigates if $\pi$$_\{g\}$  \geq  0.05  and \bar{\pi} \geq
>> ASP\_{}LEVEL
>>
>> Can someone please let me know what is happening?
>>
>> Thanks very much for all those who have been working on org-mode.
>>
>> ___
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Org-protocol / Chrome on Linux

2010-12-10 Thread Ross Patterson
Mattias Jämting  writes:

> Hello again,
>
> For reference, this is how i finally got org-protocol to work in
> chrome on ubuntu 10.10:
>
> The problem was that chrome was running xdg-open for handling external
> protocols. xdg-open, or it's companion gvfs-open, couldn't parse the
> rather complex URL which the org-capture bookmarklet generated.

I found a minimal test case and filed a bug for this:

https://bugs.launchpad.net/ubuntu/+source/libgnome/+bug/688436

The key to this is that using "%2F" in the URL *path* causes gvfs-open
and gnome-open to raise an error.

$ gvfs-open "http://foo.com/bar%2Fqux";
gvfs-open: http://foo.com/bar%2Fqux: error opening location: Operation not 
supported

While this is a bug in those packages, I've always thought the
org-protocol URL format was problematic.  Why not use URL query args
instead?  Note that gvfs-open and gnome-open handle that just fine:

$ gvfs-open "http://foo.com?blah=bar%2Fqux";

It seems like org-protocol would have fewer edge case problems and would
have URLs that would make more sense to more people if we used URL query
args instead:

 
org-protocol://store-link?URL=http%3A%2F%2Ffoo.com&TITLE=Bar%20Qux&BODY=blah%20blah

If this sounds good, I'd be happy to submit patches for this.  Provided
there's something available in emacs for parsing URL query args.

Ross

> So i realized that xdg-open is just a shell-script so  then i modified
> the function open-gnome() in it like this:
>
> open_gnome()
> {
> # Handle org-protocol
> if (echo "$1" | grep -q '^org-protocol://'); then
>   emacsclient "$1"
> else  
> # This is the standard way...
> if gvfs-open --help 2>/dev/null 1>&2; then
> gvfs-open "$1"
>   else
> gnome-open "$1"
> fi
> fi
> ...
> }
>
> Suddenly all works. Remember to back-up xdg-open if you want to try this.
>
> Mattias
>
> 2010/9/30 Sebastian Rose :
>> Sebastian Rose  writes:
>>> Mattias Jämting  writes:
 Yes i'm running a pretty standard Ubuntu 10.04 setup.

 I managed to get it working on chrome by removing the
 encodeURIComponent command on location.href.

 I could simulate it in the terminal like this.

 matt...@helium:~$ xdg-open 
 org-protocol://capture://http%3A%2F%2Forgmode.org
 Error showing URL: Operation not supported
 matt...@helium:~$ xdg-open org-protocol://capture://http://orgmode.org>>> 
 matt...@helium:~$ (worked)

 Strange that it worked in FF. Maybe Chrome and FF encodes URIs differently?
>>>
>>>
>>> Ooops!
>>>
>>> I just was going to blame Google.
>>>
>>> Looking into the ECMA standard, I found this:
>>>
>>> 15.1.3 URI Handling Function Properties
>>>
>>>        ... ...
>>>
>>>        A URI is composed of a sequence of components separated by
>>>        component separators. The general form
>>>        is:
>>>                  Scheme : First / Second ; Third ? Fourth
>>>
>>>        where the italicised names represent components and the “:”, “/”,
>>>        “;” and “?” are reserved characters used as separators. The
>>>        encodeURI and decodeURI functions are intended to work with
>>>        complete URIs; they assume that any reserved characters in the
>>>        URI are intended to have special meaning and so are not
>>>        encoded. The encodeURIComponent and decodeURIComponent functions
>>>        are intended to work with the individual component parts of a
>>>        URI; they assume that any reserved characters represent text and
>>>        so must be encoded so that they are not interpreted as reserved
>>>        characters when the component is part of a complete URI.
>>>
>>>
>>> That document states "encodeURI" is to be used with complete URIs (as
>>> the name says...).  Funny.  Chrome is the only browser that works like
>>> that :)
>>>
>>> I'll go and adjust the docs.
>>>
>>>
>>> Thanks for your Report!!
>>>
>>
>>
>>
>> Actually --- errr --- there is nothing to adjust.  The docs are exactly
>> right.
>>
>> This is because of some örfflkjsgs in xdg-open.
>>
>> No one ever said something about xdg-open.  Org-protocol is supposed to
>> work with emacsclient:
>>
>> matt...@helium:~$ emacsclient 
>> org-protocol://capture://http%3A%2F%2Forgmode.org
>>
>>
>> works.
>>
>>
>>  Sebastian
>>
>>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Example for beamer export with blocks and twocolumn

2010-12-10 Thread suvayu ali
On Fri, Dec 10, 2010 at 8:42 AM, Loris Bennett
 wrote:
> What I would really like to see is
>
> 1. the preamble to the presentation where the MACROs LaTeX_CLASS options
> etc. are given
>

I gave that, only one line for me. (there are other lines but they are
not related to columns) Here it is again,


#+COLUMNS: %40ITEM %10BEAMER_env(Env) %9BEAMER_envargs(Env Args)
%4BEAMER_col(Col) %10BEAMER_extra(Extra)


> 2. The value org-export-latex-classes
>

I didn't customise anything, this is the default.

(("article" "\\documentclass[11pt]{article}"
  ("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}")
  ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
  ("\\paragraph{%s}" . "\\paragraph*{%s}")
  ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
 ("report" "\\documentclass[11pt]{report}"
  ("\\part{%s}" . "\\part*{%s}")
  ("\\chapter{%s}" . "\\chapter*{%s}")
  ("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}")
  ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
 ("book" "\\documentclass[11pt]{book}"
  ("\\part{%s}" . "\\part*{%s}")
  ("\\chapter{%s}" . "\\chapter*{%s}")
  ("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}")
  ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
 ("beamer" "\\documentclass{beamer}" org-beamer-sectioning))


> I have found various examples, but when I put it together, structures
> such as blocks and two-column just are not exported to the LaTeX file.

Hope this helps.

-- 
Suvayu

Open source is the future. It sets us free.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Bug: capture with PROPERTIES [7.3 commit-972b0a58...]

2010-12-10 Thread Giovanni Ridolfi

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


Emacs  : GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600)
 of 2010-05-08 on G41R2F1
Package: Org-mode version 7.3 commit-972b0a581eff180bcdc15883d2fe30c4cc24996a


Hello everyone,

I found a bug in the insertion of PROPERTies in capture templates.

 TEST FILE: --
 -*- mode: org; -*-

(setq org-capture-templates
'(
("q" "element" entry (file+headline "test.org" "capture") "*** %^{prompt} \n 
:PROPERTIES:\n :ID: lab \n %^{Element}p  \n %^{Number}p \n %^{Type}p \n 
:Feeling: %? \n :Comment:  \n :END:"
)
))
* capture
:PROPERTIES:
:Element_ALL: H He Li Na Hg
:Number_ALL:  1  2  3 4  80
:Type_ALL: gas solid liquid
:END:

---
1. set my capture template
2. call capture template.
3. Enter headline: "first test",  
   so far so good.
4. Now you are requested to insert a PROPERTY
   and the buffer appears as:   

 4th  step --
***  first test
 :PROPERTIES:
 :ID: lab 

 %^{Number}p 
 %^{Type}p 
 :Feeling: %? 
 :Comment:  
 :END:
--
Value for Element:  ||   cursor is here



5. enter He 

BUG: the layout of the buffer is broken:

---
*** first test 
 :PROPERTIES:
 :ID: lab 
  ---|  a blank line is here
 |  
 %^{Type}p   |
 :Feeling: %?|
 :Comment:   |
 :Element:  He   <---|  the property is inserted here!
 :END:
--
Value for Number:  ||   (cursor is here)
-

The line of the property is inserted at the end 
of the Properties drawer, but before :END:. 

Not where the prompt was, and where I expected to find it.

--- A complete test: --
** second test 
 :PROPERTIES:
 :ID: lab 
   .   I put the "." to highligh the eol
  .
  .
 :Feeling: mickey mouse[1]
 :Comment:  
 :Element:  He
 :Number:   2
 :Type: gas
 :END:
[1] http://www.ncbi.nlm.nih.gov/pmc/articles/PMC1117755/


cheers,
Giovanni

current state:
==
(setq
 org-log-done 'time
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-capture-templates '(("q" "element" entry (file+headline "test.org" 
"capture")
  "*** %^{prompt} \n :PROPERTIES:\n :ID: lab \n 
%^{Element}p  \n %^{Number}p \n %^{Type}p \n :Feeling: %? \n :Comment:  \n 
:END:")
 )
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-capture-before-finalize-hook '(org-clock-in)
 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-finalize-agenda-hook '(my-org-agenda-to-appt)
 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-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 '((lambda nil
  (org-add-hook (quote change-major-mode-hook) (quote 
org-show-block-all) (quote append) (quote local)))
 (lambda nil
  (org-add-hook (quote change-major-mode-hook) (quote 
org-babel-show-result-all) (quote append)
   (quote local))
  )
 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-enforce-todo-dependencies t
 org-occur-hook '(org-first-headline-recenter)
 org-export-preprocess-before-selecting-backend-code-hook 
'(org-beamer-select-beamer-code)
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc 
org-b

Re: [Orgmode] Fast tag selection can split window wrongly

2010-12-10 Thread Leo
On 2010-12-10 10:11 +, Carsten Dominik wrote:
> Hi Leo,
>
> I am not sure I have your suggestion at hand.  Can you please repeat it?
>
> Thanks.
>
> - Carsten

I posted here: http://article.gmane.org/gmane.emacs.orgmode/34802. It
should have been on this thread but at the time of posting gmane was
very slow and I thought my last post was lost.

-- 
Leo

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Bug: capture with PROPERTIES [7.3 commit-972b0a58...]

2010-12-10 Thread Giovanni Ridolfi
(I'm sorry if I sent this twice)

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


Emacs  : GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600)
 of 2010-05-08 on G41R2F1
Package: Org-mode version 7.3 commit-972b0a581eff180bcdc15883d2fe30c4cc24996a


Hello everyone,

I found a bug in the insertion of PROPERTies in capture templates.

 TEST FILE: --
 -*- mode: org; -*-

(setq org-capture-templates
'(
("q" "element" entry (file+headline "test.org" "capture") "*** %^{prompt} \n 
:PROPERTIES:\n :ID: lab \n %^{Element}p  \n %^{Number}p \n %^{Type}p \n 
:Feeling: %? \n :Comment:  \n :END:"
)
))
* capture
:PROPERTIES:
:Element_ALL: H He Li Na Hg
:Number_ALL:  1  2  3 4  80
:Type_ALL: gas solid liquid
:END:

---
1. set my capture template
2. call capture template.
3. Enter headline: "first test",  
   so far so good.
4. Now you are requested to insert a PROPERTY
   and the buffer appears as:   

 4th  step --
***  first test
 :PROPERTIES:
 :ID: lab 

 %^{Number}p 
 %^{Type}p 
 :Feeling: %? 
 :Comment:  
 :END:
--
Value for Element:  ||   cursor is here



5. enter He 

BUG: the layout of the buffer is broken:

---
*** first test 
 :PROPERTIES:
 :ID: lab 
  ---|  a blank line is here
 |  
 %^{Type}p   |
 :Feeling: %?|
 :Comment:   |
 :Element:  He   <---|  the property is inserted here!
 :END:
--
Value for Number:  ||   (cursor is here)
-

The line of the property is inserted at the end 
of the Properties drawer, but before :END:. 

Not where the prompt was, and where I expected to find it.

--- A complete test: --
** second test 
 :PROPERTIES:
 :ID: lab 
   .   I put the "." to highligh the eol
  .
  .
 :Feeling: mickey mouse[1]
 :Comment:  
 :Element:  He
 :Number:   2
 :Type: gas
 :END:
[1] http://www.ncbi.nlm.nih.gov/pmc/articles/PMC1117755/


cheers,
Giovanni

current state:
==
(setq
 org-log-done 'time
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-capture-templates '(("q" "element" entry (file+headline "test.org" 
"capture")
  "*** %^{prompt} \n :PROPERTIES:\n :ID: lab \n 
%^{Element}p  \n %^{Number}p \n %^{Type}p \n :Feeling: %? \n :Comment:  \n 
:END:")
 )
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-capture-before-finalize-hook '(org-clock-in)
 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-finalize-agenda-hook '(my-org-agenda-to-appt)
 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-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 '((lambda nil
  (org-add-hook (quote change-major-mode-hook) (quote 
org-show-block-all) (quote append) (quote local)))
 (lambda nil
  (org-add-hook (quote change-major-mode-hook) (quote 
org-babel-show-result-all) (quote append)
   (quote local))
  )
 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-enforce-todo-dependencies t
 org-occur-hook '(org-first-headline-recenter)
 org-export-preprocess-before-selecting-backend-code-hook 
'(org-beamer-select-beamer-code)
 org-export-latex-final-hook '(org-beamer-amend

Re: [Orgmode] checkbox bug

2010-12-10 Thread Giovanni Ridolfi
Leo  writes:

> I can't seem to toggle (C-c C-c) a checkbox like this:
>
> - [ ]xyz
>
> but the following is fine:
>
> - [ ] xyz
>
> So the space is significant. Is this a bug?
No.
You have to leave the space like:

- this is a list

-this not

cheers,
Giovanni


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] hyperlinks executing multiline code snippets?

2010-12-10 Thread Eric Schulte
Hi LanX,

The following two options come to mind, although I'm not sure if any are
exactly what you're after.

* named code block and a #+call: line
#+source: counter
#+begin_src perl :results output :var to=5
for $i (1..$to){
   print $i;
}
#+end_src

#+results: counter
: 12345

#+call: counter(to=3)

#+results: counter(to=3)
: 123

C-c C-c on the call line to execute the counter block, the block does
not need to be located near the call line, and using the Library of
Babel could even be located in another file.

* using an elisp link
[[elisp:(sbe counter (to "8"))][count to 8]]

Clicking on the link above will also call the code block.

Best -- Eric

LanX  writes:

>>
>> Hi
>>
>> Don't know if this is trivially answered...
>>
>> I'm thinking about using org-mode for a collection of code-snippets which
>> are executed by a click on a link
>>
>> My first idea was to use orgs hyperlink syntax but there I have two
>> problems
>> 1. something like [[shell:code][NAME]] can't be multiline
>> 2. for  perl  code I'll need to escape certain characters when using
>> [[shell:...] or [[elisp:...]
>>
>> my second idea was org-babel, but AFAI see
>> 1. it seems to execute code-snippets only when exporting
>> 2. the code can't be hidden behind a NAME in a link text
>>
>> Is there a way to combine both ways?
>>
>> A hyperlink which executes a codesnippet (which is per default folded
>> away)?
>>
>> something like?
>>
>> * [[exec:following snippet][name]
>> #+begin_src perl
>> for $i (1..9){
>>
>>print $i;
>> }
>> #+end_src
>>
>>
>> or
>>
>>
>> * Title
>> #+begin_src perl :hyperlink name
>> for $i (1..9){
>>
>>print $i;
>> }
>> #+end_src
>>
>>
>>
>> Thanks for any help
>>
>> -- rolf
>>
>
> PS hope this will not produce a duplicate post, "gmail" != "googlemail"
> confusion
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] newlines in capture templates from the customize buffer

2010-12-10 Thread suvayu ali
Hi Giovanni,

On Fri, Dec 10, 2010 at 1:18 PM, Giovanni Ridolfi
 wrote:
> suvayu ali  writes:
>> Entering a newline pressing [RET] works. But then in my init.el it is
>> stored as a carriage return rather than "\n", making it ugly.
>
> If you don't like the 
> you can edit your init.el file and substitute  with \n
> by hand:
>
> M-% C-q C-j \n
>

I tried that, but changing some other variable or adding a new
template reverts it back to [RET].

>
>> Is there
>> a way to enter newlines in the customise buffer which is saved as
>> "\n"?
> I don't think so.
>

Thanks a lot Giovanni for confirming. I think I'll stop using
customize for this.

> cheers
> Giovanni
>


-- 
Suvayu

Open source is the future. It sets us free.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] About entering latex code in an org file

2010-12-10 Thread Giovanni Ridolfi
Curiouslearn  writes:

>
> I am new to both emacs and org-mode. Org-mode sounds really cool and I
> am trying to use it to make notes for a project.

welcome!

>  I have some latex
> symbols that I need to enter in the file.
> As a background:
> (1) I read in the manual that for latex code I do not need to enclose
> math inside $ $.
> (2) I have many words with "_" in the their names, so as mentioned in
> the manual, I added
> #+OPTIONS: ^:{} _:{}
> to my .org file.
>
> In fact, the my file is
> -
> #+OPTIONS: ^:{}
> #+OPTIONS: _:{}
> #+LATEX_HEADER: \setlength{\parskip}{2ex plus 0.5ex minus 0.2ex}
> #+LATEX_HEADER: \setlength{\parindent}{0in}
>
> * TODO Write an aspiration_review function
>   The function should do the following:
>   1. Investigates if \pi_{g}  \geq  0.05  and \bar{\pi} \geq  ASP_LEVEL
>
>
> ** Investigate if
>
> -
> The problem is that when I export this using 'C-c C- e l' to latex,
> some parts that should be enclosed in $ $ sign are not enclosed. This
> is the relevant line copied and pasted from the exported .tex file
>
> \item Investigates if $\pi$$_\{g\}$  \geq  0.05  and \bar{\pi} \geq
> ASP\_{}LEVEL
>
> Can someone please let me know what is happening?

You can't have the cake and eat it.

I suggest you to enclose LaTeX parts in \( \) (that are better handled
than $'s) and keep the option 
#+OPTIONS:  ^:{} _:{} 

1. Investigates if \( \pi_{g}  \geq \) 0.05  and \(\bar{\pi} \geq \) 
ASP_LEVEL

gives:  
   Investigates if \( \pi_{g}  \geq \) 0.05  and \(\bar{\pi} \geq \) 
ASP\_{}LEVEL

cheers,
Giovanni


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] latex export of source code in lists

2010-12-10 Thread Andreas Leha
Hello Nicolas,

I can confirm that this is fixed now.  Thanks a lot!

Greetings,
Andreas

Am 09.12.2010 21:36, schrieb Nicolas Goaziou:
> Hello,
>
>   
>> Andreas Leha writes:
>> 
>   
>> Hi all, (how) can I have source code block in lists not breaking the
>> latex exported list?
>> 
> It should be fixed on git head.
>
> Regards,
>
> -- Nicolas
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>   
<>

smime.p7s
Description: S/MIME Cryptographic Signature
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-mode and ebib

2010-12-10 Thread Ali Tofigh
Hi everyone,

A while ago I asked on this list about connecting org-mode with ebib,
which is a bibtex database manager for emacs. Thanks to Joost Kremers,
there is now a solution.

I asked the developer of ebib, Joost Kremers, if he could write a
function that would start ebib on a given bibtex entry. He kindly
added this functionality to the 'ebib' function (which starts ebib in
emacs) and it is now available in the ebib git repository (see
http://ebib.sourceforge.net). If you are using ebib and would like to
get org-mode to open bibtex entries do the following:

1) Install the latest development version of ebib.

2) make sure ebib-preload-bib-files is set properly so that your .bib
file is loaded by ebib when ebib starts

3) add the following lines to your .emacs:
(org-add-link-type "ebib" 'ebib)

Now you can insert ebib links in your documents like this:
[[ebib:Jones1998][some paper title]]. Opening this link should now
result in ebib starting, loading your default bibtex database, and
highlighting the bibtex entry Jones1998. Alternatively, if you already
have started ebib, then opening the link will get you to the bibtex
entry in your opened ebib database.

/Ali Tofigh

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] eval: Invalid read syntax: "#"Error during redisplay: (void-function -mode)

2010-12-10 Thread Thomas S. Dye

Aloha all,

I get subject error when exporting this subtree to LaTeX:

* Export problem

#+begin_src emacs-lisp :results wrap :exports both
   "code block results"
#+end_src

#+begin_src emacs-lisp :var lst=a-list :results list
   (reverse lst)
#+end_src

The error goes away and LaTeX export succeeds if I get rid of  
the :exports header argument in the first source block, or get rid of  
the second code block.


I'm using Org-mode version 7.3 (release_7.4.2.g32f816.dirty)

All the best,
Tom

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [BUG]? org-agenda-filter-by-tag

2010-12-10 Thread Bernt Hansen
Hi Max,

That is definitely _not_ the behaviour I get.

maxi.mat...@googlemail.com (Maximilian Matthé) writes:

> I'm using current version of org-mode (just pulled). I want to filter my
> agenda view (C-c a a) by a Tag. I want the agenda to only show items
> that have the tag :pruef: set.
>
> So I open the agenda (C-c a a) and type / to filter. The minibuffer
> says: Filter by tag [ ], [TAB], and so on.

Everything is okay up to here...

> Typing Space hides all items that have a tag set.

It does? Cool - I learned something new today :)  All my tasks have tags
so this returns an empty list for me

>Typing TAB lets me
> type sth. in the minibuffer. But with no tab-completion (tab just
> inserts a tab) and pressing Return inserts a newline.

I get TAB completion in the minibuffer for tags so something must be
wrong in your setup.

At the 'Tag: ' prompt, if I hit C-h k TAB I get this

,
| TAB (translated from ) runs the command minibuffer-complete,
| which is an interactive compiled Lisp function.
| 
| It is bound to TAB,   .
| 
| (minibuffer-complete)
| 
| Complete the minibuffer contents as far as possible.
| Return nil if there is no valid completion, else t.
| If no characters can be completed, display a list of possible completions.
| If you repeat this command after it displayed such a list,
| scroll the window of possible completions.
| 
| [back]
`

I have a CANCELLED tag, if I type 'caTAB' it completes to CANCELLED for
me.

>C-g gives "Quit"
> but the minibuffer stays active.

C-g quits and the minibuffer is no longer active for me.

>The only solution to get out the
> minibuffer is to press ESC ESC ESC. 
>
> I think this is not the right behavior. So, how can I filter the agenda
> view for a specified tag?

What version of Emacs and org-mode are you using?

GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-11-03
on potassium, modified by Debian
Org-mode version 7.4 (release_7.4)

Regards,
Bernt

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] hyperlinks executing multiline code snippets?

2010-12-10 Thread LanX
Hi Eric

Thanks looks promising but I'm having problems to use it.

I noticed that babel is not a part of 6.30trans and did an upgrade to the
latest current version 7.4.

Unfortunately it's causing problems (all I did was updating a sym-link to
the new package)

Am I supposed to set additional PATHs?

bye
--Rolf

emacs-23.1.50 --no-site-file --debug-init emacs/tst.org


Debugger entered--Lisp error: (file-error "Cannot open load file"
"org-entities")
  require(org-entities)
  eval-buffer(#> nil
"/home/lanx/.emacs.d/elisp/org/org-mode/lisp/org.el" nil t)  ; Reading at
buffer position 3964

load-with-code-conversion("/home/lanx/.emacs.d/elisp/org/org-mode/lisp/org.el"
"/home/lanx/.emacs.d/elisp/org/org-mode/lisp/org.el" nil nil)
  load("/home/lanx/.emacs.d/elisp/org/org-mode/lisp/org.el")
...
---


emacs22 --no-site-file --debug-init emacs/tst.org


Debugger entered--Lisp error: (file-error "Cannot open load file"
"org-macs")
  require(org-macs)
  eval-buffer(#> nil
"/home/lanx/.emacs.d/elisp/org/org-mode/lisp/org.el" nil t)  ; Reading at
buffer position 3940
...






2010/12/10 Eric Schulte 

> Hi LanX,
>
> The following two options come to mind, although I'm not sure if any are
> exactly what you're after.
>
> * named code block and a #+call: line
> #+source: counter
> #+begin_src perl :results output :var to=5
> for $i (1..$to){
>   print $i;
> }
> #+end_src
>
> #+results: counter
> : 12345
>
> #+call: counter(to=3)
>
> #+results: counter(to=3)
> : 123
>
> C-c C-c on the call line to execute the counter block, the block does
> not need to be located near the call line, and using the Library of
> Babel could even be located in another file.
>
> * using an elisp link
> [[elisp:(sbe counter (to "8"))][count to 8]]
>
> Clicking on the link above will also call the code block.
>
> Best -- Eric
>
> LanX  writes:
>
> >>
> >> Hi
> >>
> >> Don't know if this is trivially answered...
> >>
> >> I'm thinking about using org-mode for a collection of code-snippets
> which
> >> are executed by a click on a link
> >>
> >> My first idea was to use orgs hyperlink syntax but there I have two
> >> problems
> >> 1. something like [[shell:code][NAME]] can't be multiline
> >> 2. for  perl  code I'll need to escape certain characters when using
> >> [[shell:...] or [[elisp:...]
> >>
> >> my second idea was org-babel, but AFAI see
> >> 1. it seems to execute code-snippets only when exporting
> >> 2. the code can't be hidden behind a NAME in a link text
> >>
> >> Is there a way to combine both ways?
> >>
> >> A hyperlink which executes a codesnippet (which is per default folded
> >> away)?
> >>
> >> something like?
> >>
> >> * [[exec:following snippet][name]
> >> #+begin_src perl
> >> for $i (1..9){
> >>
> >>print $i;
> >> }
> >> #+end_src
> >>
> >>
> >> or
> >>
> >>
> >> * Title
> >> #+begin_src perl :hyperlink name
> >> for $i (1..9){
> >>
> >>print $i;
> >> }
> >> #+end_src
> >>
> >>
> >>
> >> Thanks for any help
> >>
> >> -- rolf
> >>
> >
> > PS hope this will not produce a duplicate post, "gmail" != "googlemail"
> > confusion
> > ___
> > Emacs-orgmode mailing list
> > Please use `Reply All' to send replies to the list.
> > Emacs-orgmode@gnu.org
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Release 7.4

2010-12-10 Thread Carsten Dominik

Hi,

I am unable to reproduce this.

- Carsten

On Dec 10, 2010, at 3:24 PM, Sébastien Vauban wrote:


Hi Carsten,

Carsten Dominik wrote:

here it is, release 7.4. [...] As always:  Enjoy!


I'll do.

I did update my git working copy, and restarted Emacs. Though, when  
calling:


#+begin_src emacs-lisp
(org-version)
#+end_src

I get

#+results:
: Org-mode version 7.3 (release_7.4.2.g32f816.dirty)

What could explain this diff in numbers: a mismatch in my  
configuration, or

something forgotten in one of Org's code files?

Best regards,
 Seb

--
Sébastien Vauban


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] hyperlinks executing multiline code snippets?

2010-12-10 Thread LanX
ARGH ..


... just realised that I still need to run the makefile for installation.

Sorry! :)

2010/12/10 LanX 

> Hi Eric
>
> Thanks looks promising but I'm having problems to use it.
>
> I noticed that babel is not a part of 6.30trans and did an upgrade to the
> latest current version 7.4.
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] eval: Invalid read syntax: "#"Error during redisplay: (void-function -mode)

2010-12-10 Thread Nick Dokos
Thomas S. Dye  wrote:

> Aloha all,
> 
> I get subject error when exporting this subtree to LaTeX:
> 
> * Export problem
> 
> #+begin_src emacs-lisp :results wrap :exports both
>"code block results"
> #+end_src
> 
> #+begin_src emacs-lisp :var lst=a-list :results list
>(reverse lst)
> #+end_src
> 
> The error goes away and LaTeX export succeeds if I get rid of the
> :exports header argument in the first source block, or get rid of  the
> second code block.
> 
> I'm using Org-mode version 7.3 (release_7.4.2.g32f816.dirty)
> 

This sounds suspiciously like something that Seb ran into a few weeks ago:

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

but I'm not sure how that was resolved.

FWIW, I cannot reproduce it:

GNU Emacs 23.2.50.1 (i686-pc-linux-gnu, GTK+ Version 2.14.4) of 2010-10-27 on 
gamaville.dokosmarshall.org
Org-mode version 7.4 (release_7.4.5.gb0844.dirty)

Nick

> All the best,
> Tom
> 
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [BUG]? org-agenda-filter-by-tag

2010-12-10 Thread Maximilian Matthé
Hi!

> Hi Max,
>
> That is definitely _not_ the behaviour I get.
 ... snip ...
>>Typing TAB lets me
>> type sth. in the minibuffer. But with no tab-completion (tab just
>> inserts a tab) and pressing Return inserts a newline.
>
> I get TAB completion in the minibuffer for tags so something must be
> wrong in your setup.
>
> At the 'Tag: ' prompt, if I hit C-h k TAB I get this
>
> ,
> | TAB (translated from ) runs the command minibuffer-complete,
> ... snip ...
> | [back]
> `

Typing C-h k TAB in the minibuffer tells me:

TAB (translated from ) runs the command indent-for-tab-command,
which is an interactive compiled Lisp function.

It is bound to TAB.

(indent-for-tab-command &optional arg)

... and so on...


So my binding seems to behave different :(


>
> C-g quits and the minibuffer is no longer active for me.
>
>>The only solution to get out the
>> minibuffer is to press ESC ESC ESC. 
>>
>> I think this is not the right behavior. So, how can I filter the agenda
>> view for a specified tag?
>
> What version of Emacs and org-mode are you using?
>
> GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-11-03
> on potassium, modified by Debian
> Org-mode version 7.4 (release_7.4)
>
> Regards,
> Bernt

(org-version) C-x C-e
"Org-mode version 7.3 (release_7.4.2.g32f816)" 
I just pulled some hours ago (but it also happened with 7.3 also)

(emacs-version)
"GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
 of 2010-03-29 on rothera, modified by Debian"

So, what should I do? I'm going to try to compile a current version of
emacs but I guess thats not the reason...

Thanks for any more advice!

Regards, Max


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] eval: Invalid read syntax: "#"Error during redisplay: (void-function -mode)

2010-12-10 Thread Thomas S. Dye
So, Seb and I have two things that others can't reproduce: the error  
in the OP, and the version string for the latest Org-mode.


Tom

On Dec 10, 2010, at 8:15 AM, Nick Dokos wrote:


Thomas S. Dye  wrote:


Aloha all,

I get subject error when exporting this subtree to LaTeX:

* Export problem

#+begin_src emacs-lisp :results wrap :exports both
  "code block results"
#+end_src

#+begin_src emacs-lisp :var lst=a-list :results list
  (reverse lst)
#+end_src

The error goes away and LaTeX export succeeds if I get rid of the
:exports header argument in the first source block, or get rid of   
the

second code block.

I'm using Org-mode version 7.3 (release_7.4.2.g32f816.dirty)



This sounds suspiciously like something that Seb ran into a few  
weeks ago:


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

but I'm not sure how that was resolved.

FWIW, I cannot reproduce it:

GNU Emacs 23.2.50.1 (i686-pc-linux-gnu, GTK+ Version 2.14.4) of  
2010-10-27 on gamaville.dokosmarshall.org

Org-mode version 7.4 (release_7.4.5.gb0844.dirty)

Nick


All the best,
Tom

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] eval: Invalid read syntax: "#"Error during redisplay: (void-function -mode)

2010-12-10 Thread Nick Dokos
Thomas S. Dye  wrote:

> So, Seb and I have two things that others can't reproduce: the error
> in the OP, and the version string for the latest Org-mode.
> 

Looks that way :-)

BTW, can you get a backtrace for the OP?

Nick

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] eval: Invalid read syntax: "#"Error during redisplay: (void-function -mode)

2010-12-10 Thread Thomas S. Dye

Aloha Nick,

On Dec 10, 2010, at 8:34 AM, Nick Dokos wrote:


Thomas S. Dye  wrote:


So, Seb and I have two things that others can't reproduce: the error
in the OP, and the version string for the latest Org-mode.



Looks that way :-)

BTW, can you get a backtrace for the OP?

Nick



Here you go:

Debugger entered--Lisp error: (invalid-read-syntax "#")
  read("(progn #+end_src\n#+begin_src emacs-lisp :var lst=a- 
list :results list\n)")

  (eval (read (format "(progn %s)" ...)))
  (org-babel-reassemble-table (eval (read ...)) (org-babel-pick-name  
(cdr ...) (cdr ...)) (org-babel-pick-name (cdr ...) (cdr ...)))
  (save-window-excursion (org-babel-reassemble-table (eval ...) (org- 
babel-pick-name ... ...) (org-babel-pick-name ... ...)))
  org-babel-execute:emacs-lisp("#+end_src\n#+begin_src emacs- 
lisp :var lst=a-list :results list\n" ((:comments . "") (:shebang .  
"") (:cache . "no") (:noweb . "yes") (:tangle . "no") (:exports .  
"both") (:results . "replace wrap") (:colnames . "no") (:hlines .  
"yes") (:session . "none") (:result-type . value) (:result-params  
"replace" "wrap") (:rowname-names) (:colname-names)))
  funcall(org-babel-execute:emacs-lisp "#+end_src\n#+begin_src emacs- 
lisp :var lst=a-list :results list\n" ((:comments . "") (:shebang .  
"") (:cache . "no") (:noweb . "yes") (:tangle . "no") (:exports .  
"both") (:results . "replace wrap") (:colnames . "no") (:hlines .  
"yes") (:session . "none") (:result-type . value) (:result-params  
"replace" "wrap") (:rowname-names) (:colname-names)))

  ((lambda (result) (cond ... ... ...)) (funcall cmd body params))
  (setq result ((lambda ... ...) (funcall cmd body params)))
  (if (and (not arg) new-hash (equal new-hash old-hash)) (save- 
excursion (goto-char ...) (end-of-line 1) (forward-char 1) (setq  
result ...) (message ...) result) (message "executing %s code block 
%s..." (capitalize lang) (if ... ... "")) (setq result (... ...)) (org- 
babel-insert-result result result-params info new-hash indent lang)  
(run-hooks (quote org-babel-after-execute-hook)) result)
  (progn (fset (quote call-process-region) (function* ...)) (unless  
(fboundp cmd) (error "No org-babel-execute function for %s!" lang))  
(if (and ... new-hash ...) (save-excursion ... ... ... ... ... result)  
(message "executing %s code block%s..." ... ...) (setq result ...)  
(org-babel-insert-result result result-params info new-hash indent  
lang) (run-hooks ...) result))
  (unwind-protect (progn (fset ... ...) (unless ... ...)  
(if ... ... ... ... ... ... result)) (if --cl-letf-bound-- (fset ... -- 
cl-letf-save--) (fmakunbound ...)))
  (let* ((--cl-letf-bound-- ...) (--cl-letf-save-- ...)) (unwind- 
protect (progn ... ... ...) (if --cl-letf-bound-- ... ...)))
  (letf ((... ...)) (unless (fboundp cmd) (error "No org-babel- 
execute function for %s!" lang)) (if (and ... new-hash ...) (save- 
excursion ... ... ... ... ... result) (message "executing %s code block 
%s..." ... ...) (setq result ...) (org-babel-insert-result result  
result-params info new-hash indent lang) (run-hooks ...) result))
  (letf* ((... ...)) (unless (fboundp cmd) (error "No org-babel- 
execute function for %s!" lang)) (if (and ... new-hash ...) (save- 
excursion ... ... ... ... ... result) (message "executing %s code block 
%s..." ... ...) (setq result ...) (org-babel-insert-result result  
result-params info new-hash indent lang) (run-hooks ...) result))
  (flet ((call-process-region ... ...)) (unless (fboundp cmd) (error  
"No org-babel-execute function for %s!" lang)) (if (and ... new- 
hash ...) (save-excursion ... ... ... ... ... result) (message  
"executing %s code block%s..." ... ...) (setq result ...) (org-babel- 
insert-result result result-params info new-hash indent lang) (run- 
hooks ...) result))
  (unwind-protect (flet (...) (unless ... ...)  
(if ... ... ... ... ... ... result)) (setq call-process-region (quote  
org-babel-call-process-region-original)))
  (let* ((lang ...) (params ...) (cache\? ...) (result-params ...)  
(new-hash ...) (old-hash ...) (body ...) (cmd ...) (dir ...) (default- 
directory ...) (org-babel-call-process-region-original ...)  
(indent ...) result) (unwind-protect (flet ... ... ...) (setq call- 
process-region ...)))
  (progn (let* (... ... ... ... ... ... ... ... ... ... ... ...  
result) (unwind-protect ... ...)))

  (if (org-babel-confirm-evaluate info) (progn (let* ... ...)))
  (when (org-babel-confirm-evaluate info) (let*  
(... ... ... ... ... ... ... ... ... ... ... ... result) (unwind- 
protect ... ...)))
  (let ((info ...)) (when (org-babel-confirm-evaluate info)  
(let* ... ...)))
  org-babel-execute-src-block(nil ("emacs-lisp" "#+end_src\n# 
+begin_src emacs-lisp :var lst=a-list :results list\n" ((:comments .  
"") (:shebang . "") (:cache . "no") (:noweb . "yes") (:tangle . "no")  
(:exports . "both") (:results . "replace wrap") (:colnames . "no")  
(:hlines . "yes") (:session . "none") (:result-type . value) (:result- 
params "replace" "wrap"

[Orgmode] Re: [BUG]? org-agenda-filter-by-tag

2010-12-10 Thread Maximilian Matthé
Bernt Hansen  writes:

> Hi Max,
>
> That is definitely _not_ the behaviour I get.

Hi,

I've got the error, but I don't know why: 

-
(require 'ido)
(setq ido-everywhe 1)  ;; commenting only this out does not help
(setq ido-enable-flex-matching t)
(setq ido-max-work-file-list 50)
(setq ido-mode 1)  ;; commenting this out gives me correct behaviour for /
-

How can that be? I currently dont know where I'm using ido, but I guess
it's quite useful at times I dont even realize it's doing sth. So I
think I would not like to leave it. I'm using the ido-version that is
bundled with Ubuntu 10.10's emacs23.1

Regards, Max


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: newlines in capture templates from the customize buffer

2010-12-10 Thread Bernt Hansen
suvayu ali  writes:

> Hi Giovanni,
>
> On Fri, Dec 10, 2010 at 1:18 PM, Giovanni Ridolfi
>  wrote:
>> suvayu ali  writes:
>>> Entering a newline pressing [RET] works. But then in my init.el it is
>>> stored as a carriage return rather than "\n", making it ugly.
>>
>> If you don't like the 
>> you can edit your init.el file and substitute  with \n
>> by hand:
>>
>> M-% C-q C-j \n
>>
>
> I tried that, but changing some other variable or adding a new
> template reverts it back to [RET].

I just enter it in the capture buffer as C-j to get a new line in
the template.

-Bernt

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Release 7.4

2010-12-10 Thread Mike McLean


  
  
I have the same issue, showing 7.3 as org-version. The strange thing
is that my git history shows the 7.4 version patch.

$ git log -5 --format=oneline
  32f8161a7ce4ae6b60e24ba1ff2f9f2b0626e838 Update website to show
  7.4 as current release
  68b11caa9dff723e123cc207eed69fd40e4ae1c7 Merge branch 'maint'
  597e2863377fb8763cf6951e3b4e777b4616300d Release 7.4
  5e7fe70e815d78ede42c5b9f5aa430f1edf4e638 Changes for release 7.4
  1330048ba0b0fd7ca7bc4ab633ead2d93bca59f6 Keep byte compiler happy
  
  $ ack org-version lisp/org.el
  lisp/org.el:191:(defconst org-version "7.3"
  lisp/org.el:194:(defun org-version (&optional here)
  lisp/org.el:199:     (version org-version)
  lisp/org.el:17713: ["Show Version" org-version t]
  lisp/org.el:17750: (org-version)
  lisp/org.el:17866:  (org-version))
  lisp/org.el:19342:(defadvice outline-end-of-subtree (around
  prefer-org-version activate compile)

If I go back a few commits to 597e286 Release 7.4, the release
number is correct.


On 12/10/10 12:52 PM, Carsten Dominik wrote:
Hi,
  
  
  I am unable to reproduce this.
  
  
  - Carsten
  
  
  On Dec 10, 2010, at 3:24 PM, Sébastien Vauban wrote:
  
  
  Hi Carsten,


Carsten Dominik wrote:

here it is, release 7.4. [...] As
  always:  Enjoy!
  


I'll do.


I did update my git working copy, and restarted Emacs. Though,
when calling:


#+begin_src emacs-lisp

(org-version)

#+end_src


I get


#+results:

: Org-mode version 7.3 (release_7.4.2.g32f816.dirty)


What could explain this diff in numbers: a mismatch in my
configuration, or

something forgotten in one of Org's code files?


Best regards,

 Seb


-- 
Sébastien Vauban



___

Emacs-orgmode mailing list

Please use `Reply All' to send replies to the list.

Emacs-orgmode@gnu.org

http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  
  
  - Carsten
  
  
  
  
  
  ___
  
  Emacs-orgmode mailing list
  
  Please use `Reply All' to send replies to the list.
  
  Emacs-orgmode@gnu.org
  
  http://lists.gnu.org/mailman/listinfo/emacs-orgmode
  


-- 
  
 Security
  is mostly a superstition. It does not exist in nature, nor do
  the children of men as a whole experience it. Avoiding danger
  is no safer in the long run than outright exposure. Life is
  either a daring adventure, or nothing. – Hellen Keller 
 Mike McLean
  | Home: +1-904-419-7240 | Mobile/Work: +1-201-954-6256 |
  Fax: +1-888-359-2470 
          mike.mcl...@pobox.com 
  

  

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] hyperlinks executing multiline code snippets?

2010-12-10 Thread LanX
Hi

Don't know if this is trivially answered...

I'm thinking about using org-mode for a collection of code-snippets which
are executed by a click on a link

My first idea was to use orgs hyperlink syntax but there I have two problems
1. something like [[shell:code][NAME]] can't be multiline
2. for  perl  code I'll need to escape certain characters when using
[[shell:...] or [[elisp:...]

my second idea was org-babel, but AFAI see
1. it seems to execute code-snippets only when exporting
2. the code can't be hidden behind a NAME in a link text

Is there a way to combine both ways?

A hyperlink which executes a codesnippet (which is per default folded away)?

something like?

* [[exec:following snippet][name]
#+begin_src perl
for $i (1..9){
   print $i;
}
#+end_src


or


* Title
#+begin_src perl :hyperlink name
for $i (1..9){
   print $i;
}
#+end_src



Thanks for any help

-- rolf
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] hyperlinks executing multiline code snippets?

2010-12-10 Thread LanX
(hope this will not produce a duplicate post)

Hi
>
> Don't know if this is trivially answered...
>
> I'm thinking about using org-mode for a collection of code-snippets which
> are executed by a click on a link
>
> My first idea was to use orgs hyperlink syntax but there I have two
> problems
> 1. something like [[shell:code][NAME]] can't be multiline
> 2. for  perl  code I'll need to escape certain characters when using
> [[shell:...] or [[elisp:...]
>
> my second idea was org-babel, but AFAI see
> 1. it seems to execute code-snippets only when exporting
> 2. the code can't be hidden behind a NAME in a link text
>
> Is there a way to combine both ways?
>
> A hyperlink which executes a codesnippet (which is per default folded
> away)?
>
> something like?
>
> * [[exec:following snippet][name]
> #+begin_src perl
> for $i (1..9){
>
>print $i;
> }
> #+end_src
>
>
> or
>
>
> * Title
> #+begin_src perl :hyperlink name
> for $i (1..9){
>
>print $i;
> }
> #+end_src
>
>
>
> Thanks for any help
>
> -- rolf
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Release 7.4

2010-12-10 Thread Charles C. Berry

On Fri, 10 Dec 2010, Carsten Dominik wrote:


Hi,

I am unable to reproduce this.

- Carsten

On Dec 10, 2010, at 3:24 PM, Sébastien Vauban wrote:


Hi Carsten,

Carsten Dominik wrote:
> here it is, release 7.4. [...] As always:  Enjoy!

I'll do.

I did update my git working copy, and restarted Emacs. Though, when 
calling:


#+begin_src emacs-lisp
(org-version)
#+end_src

I get

#+results:
:  Org-mode version 7.3 (release_7.4.2.g32f816.dirty)

What could explain this diff in numbers: a mismatch in my configuration, or
something forgotten in one of Org's code files?


Perhaps, as noted here

http://permalink.gmane.org/gmane.emacs.orgmode/34511

it might be cured with a 'git fetch --tags'?

HTH,

Chuck




Best regards,
 Seb

--
Sébastien Vauban


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode



Charles C. BerryDept of Family/Preventive Medicine
cbe...@tajo.ucsd.eduUC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Here is my article on date-trees and capture mode

2010-12-10 Thread Eric S Fraga
Charles Cave  writes:

> Here is my article:
>
> http://members.optusnet.com.au/~charles57/GTD/datetree.html
>
> I welcome feedback so I can make the article as useful as possible.
>
> Charles

Very nice article.  Easy to follow and has enough examples to be quite
useful.  I will be interested in knowing how well you get on with your
logging experiment.  I tried something like this in the past but gave up
as I kept forgetting to capture changes in activities (too many
interruptions while in the office, basically).
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.232.g972b0)

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Example for beamer export with blocks and twocolumn

2010-12-10 Thread Eric S Fraga
Loris Bennett  writes:

[...]

> Thanks for the reply. However, I my problem is not with the main
> presentation part of the org file.
>
> What I would really like to see is
>
> 1. the preamble to the presentation where the MACROs LaTeX_CLASS options
> etc. are given

Loris,

did you have a look at the tutorial on Worg:

: http://orgmode.org/worg/org-tutorials/org-beamer/tutorial.php

it includes a link to an example presentation,

: http://orgmode.org/worg/sources/org-tutorials/org-beamer/presentation.org

one that works /out of the box/ with org, or should...  and the example
includes a slide that is basically what you are trying to do.

HTH,
eric

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.232.g972b0)

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: [MobileOrg] Specify files to be sync'ed

2010-12-10 Thread Eric S Fraga
Markus Heller  writes:

> Matthew Jones  writes:
>
>> Hey 
>> Markus,http://orgmode.org/manual/Pushing-to-MobileOrg.html#Pushing-to-MobileOrgIf
>>  you configure org-mobile-files to contain just the files you want copied 
>> over, then that is all that will be synced during an org-mobile-push
>
> D'oh, you'd *think* I'd be able to read the manual a bit more thoroughly
> ...  Thanks for banging my head on it, Matthew!!

If it's any consolation, only today I missed this as well when I wanted
to trim down the number of files transferred for mobile org.  I don't
understand why I missed it either as the text is clearly written.  Sigh.
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.232.g972b0)

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Agenda clock reports and tag filters

2010-12-10 Thread Bernt Hansen
Hi,

Dynamic clock reports can be filtered with :tags so they only show clock
results that match that tag.

Is it possible to automatically apply the current filter list in
org-agenda-filter for the agenda clock report you get with 'R'?  I'd
like some way to add :tags 'org-agenda-filter (or something similar) to
org-agenda-clockreport-parameter-plist so the displayed agenda clock
report shows only tasks that match the filter.

Is this possible?

Thanks,
Bernt


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Agenda clock reports and tag filters

2010-12-10 Thread Carsten Dominik


On Dec 10, 2010, at 10:17 PM, Bernt Hansen wrote:


Hi,

Dynamic clock reports can be filtered with :tags so they only show  
clock

results that match that tag.

Is it possible to automatically apply the current filter list in
org-agenda-filter for the agenda clock report you get with 'R'?  I'd
like some way to add :tags 'org-agenda-filter (or something similar)  
to

org-agenda-clockreport-parameter-plist so the displayed agenda clock
report shows only tasks that match the filter.

Is this possible?


That is what you get if you hang 100 commits behind :)

Try `C-u R'.

- Carsten


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org beamer conflicts

2010-12-10 Thread Andrea Crotti
I noticed a strange problem.
My emacs configuration uses orgmode from git, and loads it in this way:

(defun make-conf-path (path)
  (expand-file-name (concat base path)))

(add-to-list 'load-path (make-conf-path "org-mode/lisp"))
(add-to-list 'load-path (make-conf-path "org-mode/contrib/babel/lisp"))
(add-to-list 'load-path (make-conf-path "org-mode/contrib/babel/lisp/langs"))

;; this variable must be set BEFORE org-mode is loaded or it will have no effect
(setq org-replace-disputed-keys t)

(require 'org)

On an ubuntu 10.10 machine (with emacs 23.1) I wanted to use org-beamer,
and even if locate-library told me that I was using the right orgmode
(not the one shipped in) the variable org-export-latex-classes didn't
contain the entry "beamer", and then I could not export my presentation.

I fixed it using instead of require->load-file, but what I don't
understand is why it was using the other version, when locate-library
told me something else.

Any idea?


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org beamer conflicts

2010-12-10 Thread suvayu ali
On Fri, Dec 10, 2010 at 10:39 PM, Andrea Crotti
 wrote:
> I noticed a strange problem.
> My emacs configuration uses orgmode from git, and loads it in this way:
>
> (defun make-conf-path (path)
>  (expand-file-name (concat base path)))
>
> (add-to-list 'load-path (make-conf-path "org-mode/lisp"))
> (add-to-list 'load-path (make-conf-path "org-mode/contrib/babel/lisp"))
> (add-to-list 'load-path (make-conf-path "org-mode/contrib/babel/lisp/langs"))
>
> ;; this variable must be set BEFORE org-mode is loaded or it will have no 
> effect
> (setq org-replace-disputed-keys t)
>
> (require 'org)
>
> On an ubuntu 10.10 machine (with emacs 23.1) I wanted to use org-beamer,
> and even if locate-library told me that I was using the right orgmode
> (not the one shipped in) the variable org-export-latex-classes didn't
> contain the entry "beamer", and then I could not export my presentation.
>
> I fixed it using instead of require->load-file, but what I don't
> understand is why it was using the other version, when locate-library
> told me something else.
>
> Any idea?
>

The recommended way to use a separate org installation is with
`(require 'org-install)' not `(require 'org)'. See
.


-- 
Suvayu

Open source is the future. It sets us free.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Release 7.4

2010-12-10 Thread Bernt Hansen
I think this is fixed with a new commit on the master branch.

-Bernt

"Charles C. Berry"  writes:

> On Fri, 10 Dec 2010, Carsten Dominik wrote:
>
>> Hi,
>>
>> I am unable to reproduce this.
>>
>> - Carsten
>>
>> On Dec 10, 2010, at 3:24 PM, Sébastien Vauban wrote:
>>
>>> Hi Carsten,
>>>
>>> Carsten Dominik wrote:
>>> > here it is, release 7.4. [...] As always:  Enjoy!
>>>
>>> I'll do.
>>>
>>> I did update my git working copy, and restarted Emacs. Though, when
>>> calling:
>>>
>>> #+begin_src emacs-lisp
>>> (org-version)
>>> #+end_src
>>>
>>> I get
>>>
>>> #+results:
>>> :  Org-mode version 7.3 (release_7.4.2.g32f816.dirty)
>>>
>>> What could explain this diff in numbers: a mismatch in my configuration, or
>>> something forgotten in one of Org's code files?
>
> Perhaps, as noted here
>
>   http://permalink.gmane.org/gmane.emacs.orgmode/34511
>
> it might be cured with a 'git fetch --tags'?
>
> HTH,
>
> Chuck
>
>
>>>
>>> Best regards,
>>>  Seb
>>>
>>> -- 
>>> Sébastien Vauban
>>>
>>>
>>> ___
>>> Emacs-orgmode mailing list
>>> Please use `Reply All' to send replies to the list.
>>> Emacs-orgmode@gnu.org
>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>> - Carsten
>>
>>
>>
>>
>> ___
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>
> Charles C. BerryDept of Family/Preventive Medicine
> cbe...@tajo.ucsd.edu  UC San Diego
> http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: ID property for top-of-file?

2010-12-10 Thread Matt Lundin
Nathan Neff  writes:

> I like the org-id-goto function and use it all the time.
>
> I use org-id to jump to my "refile.org" file, but I always need
> to create a headline to store the ID property.
>
> I tried putting #+ID: foo property at the top of the file, but the
> org-id-goto function couldn't find foo unless I put it under a headline.
>
> Would this be a difficult feature to request?  I have several files that
> work this way, where I have to keep a dummy headline.

What advantages would this offer beyond what [[file:~/org/refile.org]]
or (find-file "~/org/refile.org") provide? 

Best,
Matt

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Agenda clock reports and tag filters

2010-12-10 Thread Bernt Hansen
Carsten Dominik  writes:

> On Dec 10, 2010, at 10:17 PM, Bernt Hansen wrote:
>
>> Hi,
>>
>> Dynamic clock reports can be filtered with :tags so they only show
>> clock
>> results that match that tag.
>>
>> Is it possible to automatically apply the current filter list in
>> org-agenda-filter for the agenda clock report you get with 'R'?  I'd
>> like some way to add :tags 'org-agenda-filter (or something similar)
>> to
>> org-agenda-clockreport-parameter-plist so the displayed agenda clock
>> report shows only tasks that match the filter.
>>
>> Is this possible?
>
> That is what you get if you hang 100 commits behind :)
>
> Try `C-u R'.

Awesome :) .. and I'm up-to-date now ... I just didn't know about the
prefix for R in the agenda.  :)

Thanks,
Bernt

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] hyperlinks executing multiline code snippets?

2010-12-10 Thread LanX
Hi Eric

thanks, after some fiddling I was able to make it work...

But do I get it right?

The snippet has to be explicitely named, I can't tell the hyperlink just to
take the next block?

Before I start trying it, is it theoretically possible to write an on
ob-multiline.el which parses the following lines?

I.e. is the current "point" known at execution time?

Out of curiosity, the manual says

> The org-babel-load-languages controls which languages are enabled for
evaluation (by default only emacs-lisp is enabled).

Is it done out of security reasons? Cause it wouldn't be a problem to start
a  process via elisp and (shell-command ...)

Next question:

shell-command normally prints the stdout into the minibuffer, but
org-hyperlink executions overwrite it with the return code.

Is this behaviour configurable?

Thanks for the help
  Rolf

PS: ob-perl.el says
-
(defun org-babel-perl-initiate-session (&optional session params)
  "Return nil because sessions are not supported by perl"
nil)
--
What is meant with supporting sessions? IIRC do packages like sepia.el fork
a perl process allowing bidirectional communication with emacs.

Or what kind of extra support is neccessary here?
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Problem publishing symbolic links

2010-12-10 Thread Aidan Gauland
Hi,

I am using Org-mode to run my website, and I have symbolic links to
files elsewhere in my home directory (which are dereferenced when
published).  When I org-publish the project, it doesn't re-publish the
symbolic links even if the target has changed.

Any idea what I could do to avoid manually copying the files that
org-publish should be publishing?

Thanks,
Aidan


signature.asc
Description: Digital signature
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] hyperlinks executing multiline code snippets?

2010-12-10 Thread LanX
>
>
> Before I start trying it, is it theoretically possible to write an on
> ob-multiline.el which parses the following lines?
>
> I.e. is the current "point" known at execution time?
>
>
it works.


I managed to create a new lisp defun which parses the following text,
extracts the code and executes it!

perfect! =)
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: [PATCH] Alphabetical ordered lists

2010-12-10 Thread Nathaniel Flath
Sory for the long delay - I got caught up in other work.

A patchaddressing the sisues brought up is attached.

Let me know of anything else.

Thanks,
Nathaniel Flath

On Fri, Nov 26, 2010 at 8:39 PM, Nathaniel Flath  wrote:
> I'm working on your comments, should have another patch in the next day or so.
>
> The only thing I had issue with was the comment about
> org-item-beginning-re:  I prefer it as a function for the reasons you
> mention, but I'm not particularly attached to this.  Does anyone else
> have an opinion?
>
> Thanks,
> Nathaniel Flath
>
> On Mon, Nov 22, 2010 at 10:37 AM, Nicolas Goaziou  wrote:
>> Hello,
>>
>>> Nathaniel Flath writes:
>>
>>> although I'm not an expert in the exporting. Let me know if there's
>>> anything else, or if I screwed up anything when trying to figure out
>>> how to make a git patch(looks like it worked, though.)
>>
>> I looked at your patch and here is what I've noticed so far:
>>
>>
>> - There's a bug in `org-cycle-list-bullet' where
>>  org-list-can-be-alphabetical is called with argument missing.
>>
>> - In `org-cycle-list-bullet', variable `top' stores list top point,
>>  make use of it instead of recomputing it.
>>
>> - There's a typo in `org-list-parse-list' (ogr-looking-at-p instead of
>>  org-looking-at-p)
>>
>> - Some parts of the patch are only white-space changes (for example a
>>  change in `org-list-automatic-rules' but there are others). You
>>  shouldn't include them, as it is not the purpose of the patch.
>>
>>  It doesn't help understanding your patch either.
>>
>> - Why did you remove all code comments about lists in org-docbook.el?
>>
>> - This is not a bug but are you sure you want to make
>>  org-item-beginning-re a function? I understand that it permits an
>>  user changing the value of `org-alphabetical-lists' to avoid
>>  reloading Org, but it looks like syntax overweight to me.
>>
>>  I mean, anyone wanting to look for a list item will have to remember
>>  that it must do a re-search on a function and not a string.
>>
>>
>> Hoping that helps,
>>
>> Regards,
>>
>> -- Nicolas
>>
>


0001-Added-support-for-alphabetical-patches-to-org-list.patch
Description: Binary data
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Two issues with :VISIBILITY: property

2010-12-10 Thread Cassio Koshikumo
Hi, Carsten,

I understand what you're saying. I've been looking at the functions
responsible for moving trees around and still can't get my head around
them. Not that this means much, as I'm just starting to dabble in some
elisp and don't have lots of experience with other languages either,
but I still see it would require a lot of work.

Let's see. If I manage to get a better hold of elisp, maybe I'll try
to make a patch. For now, those parenthesis still make my eyes
cross...

Thanks,

2010/12/9 Carsten Dominik :
> Hi Cassio,
>
> while I agree that it would be nice to keep the detailed
> visibility structure of a tree while moving it, the effort
> to implement that is rather large.
>
> Org moves the tree by cutting it out and pasting it back in.
>
> Outline visibility is done using overlays, not text properties.
> Overlays are lost when cutting and pasting text.
>
> So what one would have to do is save all the overlays, compute
> their relative distance to the tree head, and re-install
> them after pasting.  Possible, but an unproportional
> effort in my view.
>
> Org settles currently for this:
>
> When a tree is folded entirely, it will be folded after it has
> been moved.  When it is not folded entirely, then it will
> remain unfolded after the pasting.
>
> I think that this is entirely acceptable, so I don't view
> it as a bug.  Desirable - maybe yes, but not
> important in my view.
>
> - Carsten
>
> On Dec 7, 2010, at 1:12 AM, Cassio Koshikumo wrote:
>
>> Thanks a lot, Matt! The patch did correct the second issue.
>>
>> About the first one:
>>
>>> I cannot replicate this. When I move the headlines, they remain folded.
>>
>> It's strange that you cannot replicate this behavior. I got today's
>> snapshot and disabled all my customizations to try a vanilla install,
>> and it's still there.
>>
>> Just to make sure we're talking about the same thing: when you move
>> the Level 1 tree (the one that has the PROPERTY drawer) it really
>> keeps folded? I ask because I noticed that, if I move one of its
>> children, everything remains folded. But if I move the parent tree,
>> the entire tree gets expanded.
>>
>> By the way, it doesn't even take a VISIBILITY setting to cause this. Say I
>> have:
>>
>> * Chapter 1
>> Text under Chapter 1.
>>
>> ** Section A
>>  Text under Section A.
>>
>> * Chapter 2
>> Text under Chapter 2.
>>
>> ** Section B
>>  Text under Section B.
>>
>> Using S-TAB, I go to OVERVIEW:
>>
>> * Chapter 1...
>> * Chapter 2...
>>
>> Now I place the cursor on "Chapter 1" and press TAB:
>>
>> * Chapter 1
>> Text under Chapter 1.
>>
>> ** Section A...
>>
>> * Chapter 2...
>>
>> Right now, "Section A" remains folded, which is what you'd expect
>> (because "Chapter 1" is only showing its children). But, if I move
>> "Chapter 1" down, putting it after "Chapter 2", "Section A" gets
>> expanded:
>>
>> * Chapter 2...
>>
>> * Chapter 1
>> Text under Chapter 1.
>>
>> ** Section A
>>  Text under Section A.
>>
>> This behavior is absolutely consistent here... If you really cannot
>> replicate it, I wonder what could be causing it in my installation.
>>
>> Thanks again for your help and time,
>>
>> --
>> Cássio Koshikumo
>>
>> ___
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>



-- 
Cássio Koshikumo

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Turning off hyperref in latex export?

2010-12-10 Thread Jeff Horn
Hey orgsters,

Is there a way to turn off using the hyperref package for latex
export? Ideally, I'm looking for a local variable or something to
suppress inserting `\usepackage{hyperref}' and `\href{}{}' commands in
the exported tex source.

A quick search on Google and gmane turned up little.

Jeff

-- 
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.com

http://www.failuretorefrain.com/jeff/

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Turning off hyperref in latex export?

2010-12-10 Thread Thomas S. Dye

Aloha Jeff,

You might customize org-export-latex-default-packages-alist to suit  
your needs.


All the best,
Tom

On Dec 10, 2010, at 7:35 PM, Jeff Horn wrote:


Hey orgsters,

Is there a way to turn off using the hyperref package for latex
export? Ideally, I'm looking for a local variable or something to
suppress inserting `\usepackage{hyperref}' and `\href{}{}' commands in
the exported tex source.

A quick search on Google and gmane turned up little.

Jeff

--
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.com

http://www.failuretorefrain.com/jeff/

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode