Re: [O] Problem with make and autoloads

2011-05-30 Thread suvayu ali
On Thu, May 26, 2011 at 9:56 AM, Matt Lundin m...@imapmail.org wrote:
 Recently, autoloads ceased to work in my local org-mode installation.

 My typical update routine is to:

 1. Pull the most recent changes into my local org-mode repository,
   located at ~/org-mode.
 2. Run make clean  make.

 My .emacs file contains the following lines:

 --8---cut here---start-8---
 (add-to-list 'load-path ~/org-mode/lisp)
 (require 'org-install)
 --8---cut here---end---8---

I see identical behaviour after I updated org today.

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] (French/german) Collecting holidays?

2011-05-30 Thread Christian Egli
Philipp Haselwarter philipp.haselwar...@gmx.de writes:

 Would it make sense to share setups for `holiday-local-holidays'? Maybe
 on worg or emacs-wiki?

 I'm looking for french and german holidays, if anyone happens to have
 those set up :)

Have you checked
http://www.emacswiki.org/emacs/CalendarLocalization#toc12?

-- 
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland




Re: [O] orgmode/beamer - won't export blocks

2011-05-30 Thread Benjamin Slade
Hi Seb,

So you don't include LaTeX packages that you always want to be loaded
in the .emacs config? I have a bunch of packages that I would need for
my beamer presentations and it would be nice just to have them
automatically included every time.

By the bye, I found the old config code from here:
http://emacs-fu.blogspot.com/2009/10/writing-presentations-with-org-mode-and.html

cheers,
  --Ben
-
From:   Sebastien Vauban
Subject:Re: [O] orgmode/beamer - won't export blocks
Date:   Fri, 27 May 2011 23:35:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt)

Hi Benjamin,

Benjamin Slade wrote:
 Thank you for the help.

 Yes, removing the configuration code from .emacs results in the
 correct behaviour (i.e. blocks are now exported properly).

Where did you find that way to do?  I guess in old threads... Is it still on
Worg, this should be removed.

 Quick question -- is there still a way of setting up beamer/orgmode
 configuration in .emacs?

Why are you asking that?  It's even better: you don't need any special
configuration anymore (like before) for beamer to work out of the box.

The only lines I still have in my .emacs about beamer are:

#+begin_src emacs-lisp
;; XXX 2010-03-25 TEMP Fix for conflict TikZ/hyperref: loading
;; `atbegshi' before document class beamer
(add-to-list 'org-export-latex-classes
 '(beamer
   \\RequirePackage{atbegshi}
   \\documentclass{beamer}\n
   org-beamer-sectioning))
#+end_src

Maybe even not needed anymore...

Best regards,
  Seb

-- 
Sébastien Vauban



[O] [PATCH] Makefile robustness tweak

2011-05-30 Thread Barak A. Pearlmutter
From 7c79ea0a21ad6d2646958d25c298a1ac9624e9f6 Mon Sep 17 00:00:00 2001
From: Barak A. Pearlmutter barak+...@cs.nuim.ie
Date: Sun, 29 May 2011 22:20:31 +0100
Subject: [PATCH] fail to rm or build incorrect files when doc directory 
nonexistent

---
 Makefile |   24 
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/Makefile b/Makefile
index 9693fd3..239ab2e 100644
--- a/Makefile
+++ b/Makefile
@@ -238,30 +238,30 @@ lisp/org-install.el: $(LISPFILES0) Makefile
mv org-install.el lisp
 
 doc/org: doc/org.texi
-   (cd doc; $(MAKEINFO) --no-split org.texi -o org)
+   (cd doc  $(MAKEINFO) --no-split org.texi -o org)
 
 doc/org.pdf: doc/org.texi
-   (cd doc; $(TEXI2PDF) org.texi)
+   (cd doc  $(TEXI2PDF) org.texi)
 
 doc/orgguide.pdf: doc/orgguide.texi
-   (cd doc; $(TEXI2PDF) orgguide.texi)
+   (cd doc  $(TEXI2PDF) orgguide.texi)
 
 doc/org.html: doc/org.texi
-   (cd doc; $(TEXI2HTML) --no-split -o org.html org.texi)
+   (cd doc  $(TEXI2HTML) --no-split -o org.html org.texi)
UTILITIES/manfull.pl doc/org.html
 
 doc/orgcard.pdf: doc/orgcard.tex
-   (cd doc; pdftex orgcard.tex)
+   (cd doc  pdftex orgcard.tex)
 
 doc/orgcard.txt: doc/orgcard.tex
-   (cd doc; perl ../UTILITIES/orgcard2txt.pl orgcard.tex  orgcard.txt)
+   (cd doc  perl ../UTILITIES/orgcard2txt.pl orgcard.tex  orgcard.txt)
 
 doc/orgcard_letter.tex: doc/orgcard.tex
perl -pe 's/\\pdflayout=\(0l\)/\\pdflayout=(1l)/' \
doc/orgcard.tex  doc/orgcard_letter.tex
 
 doc/orgcard_letter.pdf: doc/orgcard_letter.tex
-   (cd doc; pdftex orgcard_letter.tex)
+   (cd doc  pdftex orgcard_letter.tex)
 
 # Below here are special targets for maintenance only
 
@@ -427,11 +427,11 @@ cleancontrib:
 cleanelc:
rm -f $(ELCFILES)
 cleandoc:
-   (cd doc; rm -f org.pdf org org.html orgcard.pdf orgguide.pdf)
-   (cd doc; rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs)
-   (cd doc; rm -f *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps)
-   (cd doc; rm -f orgcard_letter.tex orgcard_letter.pdf)
-   (cd doc; rm -rf manual)
+   -(cd doc  rm -f org.pdf org org.html orgcard.pdf orgguide.pdf)
+   -(cd doc  rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg 
*.pgs)
+   -(cd doc  rm -f *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps)
+   -(cd doc  rm -f orgcard_letter.tex orgcard_letter.pdf)
+   -(cd doc  rm -rf manual)
 
 cleanrel:
rm -rf RELEASEDIR
-- 
1.7.2.5




Re: [O] [Announce] A GitHub Issues interface for Org-mode

2011-05-30 Thread William Henney
Hi Puneeth

On Sun, May 29, 2011 at 11:43 PM, Puneeth Chaganti puncha...@gmail.com wrote:
 William,

 Thanks for trying it out!


No problem - anything to avoid doing my real work

 On Mon, May 30, 2011 at 9:16 AM, William Henney when...@gmail.com wrote:

 This looks very promising - thanks! It is a shame though that the body
 of the issue and the comments don't get synched (I see that you have
 these listed as TODO). I also noticed that if I type any text directly

 This is Experimental and I am open to suggestions, but one of the
 problems I have is that the GitHub API v3 is unstable and causing some
 trouble. I initially had a version, where the BODY of the issue was
 being sync-ed, but after a while, I stopped getting the body of the
 issue in the JSON. I'm not sure what went wrong, but a simple GET
 using curl also failed to give me the body.  I shall look at it again,
 in a short while.


Is the v2 API missing some features you need? Maybe it would be better
to use that until v3 is out of beta


 under the issue's heading in my org file, then this text is /wiped/
 when I execute =org-ghi-update-current-issue=. However, any
 subheadings (and their text) do survive, but they never get synched
 back to GitHub.

 I haven't figured out what would be the right way to do this. I am
 open to any suggestions from your side.


Well, the wiping of text directly below an issue's level 2 heading is
a data-loss bug, so I would suggest that you certainly don't do that
:)

With respect to sub-headings (level 3 or below) that are added by hand
to the github.org file, I would suggest that by default you do not
sync them with GitHub. Maybe you could have a function called
something like org-ghi-make-heading-a-comment that would work in a
similar way to org-ghi-make-todo-an-issue. However, it seems that
GitHub issue comments only understand markdown syntax, not org syntax,
so unless the comment is just simple text it would require an export
step (https://github.com/alexhenning/ORGMODE-Markdown might help
there).

Cheers

Will


-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia



Re: [O] orgmode/beamer - won't export blocks

2011-05-30 Thread Sebastien Vauban
Hi Benjamin,

Benjamin Slade wrote:
 So you don't include LaTeX packages that you always want to be loaded in the
 .emacs config?

No, I tend to avoid doing such. This really is the worst place to think of...
because your .emacs file is personal. Then, you cannot (easily) share any of
your custom with anybody...

 I have a bunch of packages that I would need for my beamer presentations and
 it would be nice just to have them automatically included every time.

If you want to do so, either put your list of packages

- in an Org file that you #+INCLUDE as needed, or
- in your own theme (that's what I generally end up doing).

Both are better places, IMHO, for customs.

Best regards,
  Seb

-- 
Sébastien Vauban




Re: [O] git submodule and the bzr mirror on launchpad

2011-05-30 Thread Eric Schulte
Hi,

Memnon Anon gegendosenflei...@googlemail.com writes:

 Hi,

 I am trying to familiarize myself with bazaar, so I had a look at the
 org-mode bzr mirror of the git repo.

  https://code.launchpad.net/org-mode

 It fails to import since a couple of weeks, probably since 
 this commit:
 ,
 | commit 509ee52b5317cbcd4a611f57980038c7249363ce
 | Author: Eric Schulte schulte.e...@gmail.com
 | Date:   Sun Oct 3 10:50:21 2010 -0600
 `

 Turns out that there is some trouble handling git submodules in the
 import; (see: https://bugs.launchpad.net/bzr/+bug/402814 ) 
 they are working on this issue.

 Am I right that since march there is only the jump.el submodule?

That is correct, the only submodule is jump.el which isn't required for
normal use, but is included for navigation of the testing framework.
See the contents of the .gitmodules file in the Org-mode directory

,[.gitmodules]
| [submodule testing/jump]
|   path = testing/jump
|   url = git://github.com/eschulte/jump.el.git
`

 
 I am not familiar with git, but I was wondering if there is another
 way in this miraculous toolbox that is git - other than submodule - to
 get the current behaviour.


Not that I can think of.


 It is not worth significant effort, especially because there is hope
 this issue will be solved on launchpads/bzr side hopefully soon, but if
 there is an easy and quick way, it would be nice to get the bzr mirror 
 (and with it the daily .deb snapshots for ubuntu) back running.


Is it possible to simply ignore the jump submodule (maybe skip that
commit) and then move forward with bzr synchronization.  There's no need
to include jump in the bzr repository as it's entirely optional and is
only needed for writing/using the test suite (which doesn't happen that
frequently anyways).

If there is no way to skip that commit on the bzr-synchronization side,
it shouldn't be difficult to create an alternate git repository which
mirrors the main repo but skips the submodule commit.  Once this is
setup the bzr repository could track this alternate git repository.

Hope this helps -- Eric


 - Memnon







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



Re: [O] orgmode/beamer - won't export blocks

2011-05-30 Thread Benjamin Slade
Hi Seb,

Many thanks for your reply. One last question: do you have an example
(or a link to an explanation about) making one's own theme? (I
understand the #+INCLUDE option).

cheers,
  --Ben

 Message: 20
 Date: Mon, 30 May 2011 16:42:03 +0200
 From: Sebastien Vauban wxhgmqzgw...@spammotel.com
 To: emacs-orgmode@gnu.org
 Subject: Re: [O] orgmode/beamer - won't export blocks
 Message-ID: 80boykxnb8@somewhere.org
 Content-Type: text/plain; charset=utf-8

 Hi Benjamin,

 Benjamin Slade wrote:
 So you don't include LaTeX packages that you always want to be loaded in the
 .emacs config?

 No, I tend to avoid doing such. This really is the worst place to think of...
 because your .emacs file is personal. Then, you cannot (easily) share any of
 your custom with anybody...

 I have a bunch of packages that I would need for my beamer presentations and
 it would be nice just to have them automatically included every time.

 If you want to do so, either put your list of packages

 - in an Org file that you #+INCLUDE as needed, or
 - in your own theme (that's what I generally end up doing).

 Both are better places, IMHO, for customs.

 Best regards,
  Seb



Re: [O] (French/german) Collecting holidays?

2011-05-30 Thread Philipp Haselwarter
awesome :)
hadn't seen those

-- 
Philipp Haselwarter




[O] TAB

2011-05-30 Thread Ido Magal
With TAB being overloaded with visibility cycling, how do I insert a regular
tab (\t) ?


Re: [O] TAB

2011-05-30 Thread Samuel Wales
C-q

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
I support the Whittemore-Peterson Institute (WPI)
===
Extreme bigotry against people with serious diseases is still extreme bigotry.



Re: [O] orgmode/beamer - won't export blocks

2011-05-30 Thread Sebastien Vauban
Hi Benjamin,

Benjamin Slade wrote:
 I have a bunch of packages that I would need for my beamer presentations and
 it would be nice just to have them automatically included every time.

 If you want to do so, either put your list of packages

 - in an Org file that you #+INCLUDE as needed, or
 - in your own theme (that's what I generally end up doing).

 Both are better places, IMHO, for customs.

 Many thanks for your reply. One last question: do you have an example
 (or a link to an explanation about) making one's own theme? (I
 understand the #+INCLUDE option).

I haven't yet found a real tutorial about making his own Beamer theme. I just
copied one of beamers themes and modified it to meet my needs.

After you have a new theme, run texhash so that LaTeX finds the new theme --
if needed.

An extract from my file `beamerthemesva.sty':

#+begin_src latex
% Copyright 2010, 2011 by Seb Vauban

\ProvidesPackage{beamerthemesva}[2011/05/26 v1.0 sva beamer theme]

\usefonttheme{sva}% Put yours, or a default one
\usecolortheme{sva}% Put yours, or a default one
\useinnertheme{sva}% Put yours, or a default one
\useoutertheme{sva}% Put yours, or a default one

% Color hyperref links and urls
\definecolor{sva-color-link}{HTML}{1968BA} % blue
\definecolor{sva-color-url}{HTML}{003399} % darker blue
\hypersetup{%
colorlinks=true,% avoid the red boxed around cross-references
linkcolor=sva-color-link,% color of internal links
urlcolor=sva-color-url, % color of external links
}%
#+end_src

Check how the currently existing theme are created. Not that hard. Not that
easy, though...

Best regards,
  Seb

-- 
Sebastien Vauban




[O] [PATCH] extend doc strings of priority defcustoms

2011-05-30 Thread Michael Brand
* org.el (org-default-priority):
document dependency on org-priority-start-cycle-with-default
* org.el (org-priority-start-cycle-with-default):
document dependency on org-default-priority

TINYCHANGE
---
 lisp/org.el |8 ++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 498c606..a729440 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -2488,14 +2488,18 @@ Must have a larger ASCII number than
`org-highest-priority'.

 (defcustom org-default-priority ?B
   The default priority of TODO items.
-This is the priority an item get if no explicit priority is given.
+This is the priority an item gets if no explicit priority is given.
+Required to be between `org-highest-priority' and `org-lowest-priority'
+if `org-priority-start-cycle-with-default' is non-nil, else it is not
+possible to start cycling on an empty tag.
   :group 'org-priorities
   :type 'character)

 (defcustom org-priority-start-cycle-with-default t
   Non-nil means start with default priority when starting to cycle.
 When this is nil, the first step in the cycle will be (depending on the
-command used) one higher or lower that the default priority.
+command used) one higher or lower than the default priority.
+If non-nil see also `org-default-priority'.
   :group 'org-priorities
   :type 'boolean)

-- 
1.7.4.2



Re: [O] TAB

2011-05-30 Thread Darlan Cavalcante Moreira

Try C-q TAB.

C-q inserts the next character literally. This is useful to insert control
characters.

--
Darlan

At Mon, 30 May 2011 10:07:29 -0700,
Ido Magal i...@idomagal.com wrote:
 
 [1  text/plain; UTF-8 (7bit)]
 With TAB being overloaded with visibility cycling, how do I insert a regular
 tab (\t) ?
 [2  text/html; UTF-8 (7bit)]
 



Re: [O] TAB

2011-05-30 Thread Ido Magal
Perfect! Thanks!

To the powers that be I'd recommend adding a note, explaining how to get a
literal TAB, in the following two places:

http://orgmode.org/manual/Visibility-cycling.html
http://orgmode.org/orgcard.txt

These are the top results for googling orgmode tab

Cheers!


On Mon, May 30, 2011 at 11:27, Darlan Cavalcante Moreira
darc...@gmail.comwrote:


 Try C-q TAB.

 C-q inserts the next character literally. This is useful to insert control
 characters.

 --
 Darlan

 At Mon, 30 May 2011 10:07:29 -0700,
 Ido Magal i...@idomagal.com wrote:
 
  [1  text/plain; UTF-8 (7bit)]
  With TAB being overloaded with visibility cycling, how do I insert a
 regular
  tab (\t) ?
  [2  text/html; UTF-8 (7bit)]
 




Re: [O] [Patch] For the Manual: using org-crypt

2011-05-30 Thread Ian Barton
Here is the patch. Thanks to Christian for his help. I have edited the 
text to take into account Jambunathans comments.


Ian.

On 27/05/11 11:47, Carsten Dominik wrote:

Actually, please just make the section in texi formatting, I or someone else 
will link it in into the manual structure.  This is difficult to get right with 
a patch.  Please take Jambunathans comments int account.

Thanks

- Carsten

On May 27, 2011, at 12:38 PM, Ian Barton wrote:


On 27/05/11 10:15, Christian Egli wrote:

Carsten Dominikcarsten.domi...@gmail.com   writes:


Is anyone working on making this a complete patch?

Sorry, no.


I'll have a go and try to make a proper patch against the current manual. Don't 
blame me if the manual breaks:)

Ian.








From 1861079c6db46c9be36dbbc30ef5d738d5d14193 Mon Sep 17 00:00:00 2001
From: Ian Barton i...@wilkesley.net
Date: Mon, 30 May 2011 18:48:33 +0100
Subject: [PATCH] Add section about org-crypt.el.

---
 doc/org.texi |   30 +-
 1 files changed, 29 insertions(+), 1 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index e13af4b..91cd199 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -12773,6 +12773,7 @@ emacs -Q --batch -l $ORGINSTALL \
 * Clean view::  Getting rid of leading stars in the outline
 * TTY keys::Using Org on a tty
 * Interaction:: Other Emacs packages
+* org-crypt.el::Encrypting Org files
 @end menu
 
 
@@ -13449,7 +13450,7 @@ tty you would rather use @kbd{C-c .} to re-insert the timestamp.
 @end multitable
 
 
-@node Interaction,  , TTY keys, Miscellaneous
+@node Interaction, org-crypt.el, TTY keys, Miscellaneous
 @section Interaction with other packages
 @cindex packages, interaction with other
 Org lives in the world of GNU Emacs and interacts in various ways
@@ -13658,6 +13659,33 @@ another key for this command, or override the key in
 
 @end table
 
++@node org-crypt.el,  , Interaction, Miscellaneous
++@section org-crypt.el
++@cindex @file{org-crypt.el}
++@cindex @code{org-decrypt-entry}
+
+Org-crypt will encrypt the text of an entry, but not the headline, or
+properties. Org-crypt uses the Emacs EasyPG library to encrypt and decrypt
+files.
+
+Any text below a headline that has a @samp{:crypt:} tag will be
+automatically be encrypted when the file is saved. If you want to use a
+different tag just customize the @code{org-crypt-tag-matcher} setting.
+
+To use org-crypt it is suggested that you have the following in your
+@file{.emacs}:
+
+@example
+(require 'org-crypt)
+(org-crypt-use-before-save-magic)
+(setq org-tags-exclude-from-inheritance (quote (crypt)))
+;; GPG key to use for encryption
+;; Either the Key ID or set to nil to use symmetric encryption.
+(setq org-crypt-key nil)
+@end example
+
+Excluding the crypt tag from inheritance prevents already encrypted text
+being encrypted again.
 
 @node Hacking, MobileOrg, Miscellaneous, Top
 @appendix Hacking
-- 
1.7.4.1



Re: [O] [Orgmode] Re: [Feature Request] Cross headings in tables

2011-05-30 Thread Achim Gratz
Hi Carsten,

Carsten Dominik carsten.domi...@gmail.com writes:
 this looks pretty good.  One thing I found missing is that
 header lines should be exempted from column formulas being
 applied.  This works for the headlines at the top of the
 table, but not in the middle.

thank you for having a look.  You are right, but this looks like
something that goes a bit deeper than my current understanding, I'm
afraid.

Header lines don't appear to be marked in any way, but simply skipped
over before starting the formula calculation.  Consequently, the column
formula is evaluated for any header line when doing a C-c * directly in
the header, which might be considered a bug.  I won't touched this
aspect of the code since it will probably have farther reaching
consequences if changed.  I quickly hacked in some extra stuff that
looks for cross headers and skips them while the full table is updated —
but I'm not sure this is the right thing to do and the way the program
logic works requires me to check certain pathological cases twice, which
is a bit ugly.  I've just rebased against current master and pushed
everything back to the repo.

 Also documentation in the manual is missing - one
 or two sentences in the right place should be enough.

Sure, but I'd like to get it working correctly first. :-)

I'm using this code at work and things have gone smoothly, but I only
use the HTML backend and certainly don't exercise the full breadth of
the table functionality (obviously no column formulas were used by me,
for instance).

While testing I stumbled upon this: if a buffer has no undo information
associated, org-self-insert-command produces an error while trying to
edit the formula.  This code path may need to be protected against this
(admittedly rare) case, I've been triggering it while testing your
example directly in the gnus article buffer.

Debugger entered--Lisp error: (wrong-type-argument listp t)
  cadr(t)
  (not (cadr buffer-undo-list))
  (and ( org-self-insert-command-undo-counter 0) buffer-undo-list (not (cadr 
buffer-undo-list)) (setcdr buffer-undo-list (cddr buffer-undo-list)))
  (if (= org-self-insert-command-undo-counter 20) (setq 
org-self-insert-command-undo-counter 1) (and ( 
org-self-insert-command-undo-counter 0) buffer-undo-list (not ...) (setcdr 
buffer-undo-list ...)) (setq org-self-insert-command-undo-counter (1+ 
org-self-insert-command-undo-counter)))
  (if (not (eq last-command ...)) (setq org-self-insert-command-undo-counter 1) 
(if (= org-self-insert-command-undo-counter 20) (setq 
org-self-insert-command-undo-counter 1) (and ... buffer-undo-list ... ...) 
(setq org-self-insert-command-undo-counter ...)))
  (if org-self-insert-cluster-for-undo (if (not ...) (setq 
org-self-insert-command-undo-counter 1) (if ... ... ... ...)))
  (cond ((and org-use-speed-commands ...) (cond ... ... ... ...)) ((and ... ... 
... ...) (let ... ... ... ... ...)) (t (setq org-table-may-need-update t) 
(self-insert-command N) (org-fix-tags-on-the-fly) (if 
org-self-insert-cluster-for-undo ...)))
  org-self-insert-command(1)


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

Factory and User Sound Singles for Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds




Re: [O] [PATCH] extend doc strings of priority defcustoms

2011-05-30 Thread Michael Brand
In the meantime I understand better what happens. I rewrote the doc
strings and added an error message to avoid the wrong error No
priority cookie found in line for the case of org-default-priority
out of range. My previous patch is to be replaced by this one:

* org.el (org-default-priority): Document dependency on
org-priority-start-cycle-with-default.
(org-priority-start-cycle-with-default): Document dependency on
org-default-priority.
(org-priority): Error added for case of org-default-priority out of
range.
---
 lisp/org.el |   20 
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 498c606..241fa11 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -2488,14 +2488,20 @@ Must have a larger ASCII number than
`org-highest-priority'.

 (defcustom org-default-priority ?B
   The default priority of TODO items.
-This is the priority an item get if no explicit priority is given.
+This is the priority an item gets if no explicit priority is given.
+When starting to cycle on an empty priority the first step in the cycle
+depends on `org-priority-start-cycle-with-default'.  The resulting first
+step priority must not exceed the range from `org-highest-priority' to
+`org-lowest-priority' which means that `org-default-priority' has to be
+in this range exclusive or inclusive the range boundaries.
   :group 'org-priorities
   :type 'character)

 (defcustom org-priority-start-cycle-with-default t
   Non-nil means start with default priority when starting to cycle.
 When this is nil, the first step in the cycle will be (depending on the
-command used) one higher or lower that the default priority.
+command used) one higher or lower than the default priority.
+See also `org-default-priority'.
   :group 'org-priorities
   :type 'boolean)

@@ -12306,12 +12312,18 @@ ACTION can be `set', `up', `down', or a character.
(if (and (not have) (eq last-command this-command))
(setq new org-lowest-priority)
  (setq new (if (and org-priority-start-cycle-with-default (not have))
-   org-default-priority (1- current)
+   org-default-priority (1- current)))
+ (when ( (upcase new) org-highest-priority)
+   (error
+See `org-default-priority' for range limit exceeded here
((eq action 'down)
(if (and (not have) (eq last-command this-command))
(setq new org-highest-priority)
  (setq new (if (and org-priority-start-cycle-with-default (not have))
-   org-default-priority (1+ current)
+   org-default-priority (1+ current)))
+ (when ( (upcase new) org-lowest-priority)
+   (error
+See `org-default-priority' for range limit exceeded here
(t (error Invalid action)))
   (if (or ( (upcase new) org-highest-priority)
  ( (upcase new) org-lowest-priority))
-- 
1.7.4.2



[O] Bug in latex description list export

2011-05-30 Thread Robert Goldman
I stumbled across a /very/ weird bug in latex export.  The bug arises
when there is

1.  A footnote in a description list

2.  The word description appears in the footnote and

3.  The word description is flush to the left margin.

See the attached .org file

* Header

+ item 1 :: definition,[fn:1]
+ item 2 :: another definition this time one that runs on and on off the right
margin and onto the next line
+ item 3 :: A third item to replicate my original bug

* Footnotes

[fn:1] Here's a footnote that breaks the description list.  The problem arises
when the word
description appears in the left margin.


Re: [O] TAB

2011-05-30 Thread Michael Markert
On 30 May 2011, Ido Magal wrote:
 Perfect! Thanks!

 To the powers that be I'd recommend adding a note, explaining how to
 get a literal TAB, in the following two places:

 http://orgmode.org/manual/Visibility-cycling.html
 http://orgmode.org/orgcard.txt

 These are the top results for googling orgmode tab

Well the point is, that it isn't whatsoever related to orgmode but to
Emacs. And searching for `emacs insert tab' gives helpful results
already in the first hit.

Michael


pgpiyFDNkdXja.pgp
Description: PGP signature


[O] Problem with latex export of anchors

2011-05-30 Thread Robert Goldman
The latex exporter mistakenly leaves the text of anchors in the exported
text.

I have reported this before --- see
http://thread.gmane.org/gmane.emacs.orgmode/41414

I am attaching an org-mode file that shows a minimal test case, and the
corresponding exported latex

My earlier posting proposed a fix, but that doesn't seem to have gone
anywhere.

best,
r

* Header 

* Another header hereIsATarget

* The last header


anchor-export-bug.tex
Description: TeX document


[O] Unwanted (progn ) when Tangling Lisp Code

2011-05-30 Thread Mark Cox
Hi,

When tangling lisp source code blocks, the tangled code is wrapped in
a `(progn ,@body). For example,
the block
#+begin_src lisp :tangle example.lisp
(defun mischief ()
  (/ 1 0))
#+end_src
produces
: (progn (defun mischief ()
:   (/ 1 0))
: )

With the attached patch, the tangling process now produces
:
: (defun mischief ()
:   (/ 1 0))

Thanks
Mark

Here is the patch.

diff --git a/lisp/ob-lisp.el b/lisp/ob-lisp.el
index a810d86..3382418 100644
--- a/lisp/ob-lisp.el
+++ b/lisp/ob-lisp.el
@@ -54,7 +54,7 @@
   (format (%S (quote %S)) (car var) (cdr var)))
 vars \n  )
)\n body ))
- (format (progn %s) body)
+ body
 (if (or (member code result-params)
(member pp result-params))
(format (pprint %s) body)
@@ -65,7 +65,7 @@
   (require 'slime)
   (org-babel-reassemble-table
(with-temp-buffer
- (insert (org-babel-expand-body:lisp body params))
+ (insert (format (progn\n  %s) (org-babel-expand-body:lisp body params)))
  ((lambda (result)
(if (member output (cdr (assoc :result-params params)))
(car result)



Re: [O] TAB

2011-05-30 Thread Ido Magal
On Mon, May 30, 2011 at 15:14, Michael Markert 
markert.mich...@googlemail.com wrote:


 Well the point is, that it isn't whatsoever related to orgmode but to
 Emacs. And searching for `emacs insert tab' gives helpful results
 already in the first hit.


Fair enough.  It never occurred to me that emacs might not support the
native literal TAB. Thanks.


[O] export problems

2011-05-30 Thread Eric Abrahamsen
Export has recently stopped working for me: any C-c C-e gives me:

org-export: Symbol's function definition is void:
internal-temp-output-buffer-show

Instead of an export menu. Org is up to date git, and I get this even
starting with emacs -Q. I haven't seen a chorus of complaints here, so I
assume it still has to be me, somehow, but does anyone know why this
would be happening? I'm on Ubuntu Natty, running:

GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.24.4) of 2011-04-04
on rothera, modified by Debian

Thanks!
Eric




Re: [O] TAB

2011-05-30 Thread Ben Finney
Ido Magal i...@idomagal.com writes:

 Fair enough. It never occurred to me that emacs might not support the
 native literal TAB. Thanks.

Emacs does, in its Fundamental mode and many others. But just about
every interesting mode will map the TAB key to something else. So the
issue is a common one for all Emacs users, not special to Org mode.

-- 
 \ “Anyone who is not shocked by quantum theory has not understood |
  `\  it.” —Niels Bohr |
_o__)  |
Ben Finney