Re: [O] A mail client that is org-mode compatible

2013-01-02 Thread Gour
On Tue, 01 Jan 2013 13:36:16 +0100
Daniel Clemente n142...@gmail.com wrote:

   I used gnus from 2008 to 2010 but could not make it work as I
 wanted. It seemed to value some things that I didn't (e.g. scoring,
 splitting, NNTP-style everywhere) whereas it didn't shine in other
 areas I needed (e.g. multiple SMTP servers, usability). Wanderlust
 was working perfectly since the first moment, and didn't require
 hacking, just configuration.

Thank you. I'll give it a try.


Sincerely,
Gour


-- 
There is no possibility of one's becoming a yogī, O Arjuna, 
if one eats too much or eats too little, sleeps too much 
or does not sleep enough.

http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810


signature.asc
Description: PGP signature


Re: [O] A mail client that is org-mode compatible

2013-01-02 Thread Gour
On Tue, 01 Jan 2013 18:57:46 +0100
Alan Schmitt alan.schm...@polytechnique.org wrote:


 I use mu4e, and what I really like about it is that the links are
 stable, even when moving mail from outside (like a web mail app or a
 mobile device). I could never get the registry to work well with gnus
 to solve this.

That's very cool feature, but lack of nntp is problem 'cause out of 24
mailing lists which I follow, 23 are followed via gmane, so mu4e cannot
provide complete solution for me.


Sincerely,
Gour

-- 
The intricacies of action are very hard to understand. 
Therefore one should know properly what action is, 
what forbidden action is, and what inaction is.

http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810


signature.asc
Description: PGP signature


Re: [O] HTML Export inserting weird characters

2013-01-02 Thread Bastien
Hi Avdi,

Avdi Grimm a...@avdi.org writes:

 Given a minimal org-mode file with some Ruby code in it, the code
 section in the exported HTML has a bunch of garbage characters added
 to each line, like '#57344;#57345;#57345;'.

I can't reproduce this.  Is this with emacs -q?
Can you reproduce with other languages than Ruby?

Best,

-- 
 Bastien



Re: [O] A mail client that is org-mode compatible

2013-01-02 Thread Suvayu Ali
On Mon, Dec 31, 2012 at 08:29:12AM +0100, Gour wrote:
 
 I'd also like to use Notmuch for quick searching and would fetch
 mail via getmail and use locally running dovecot for serving IMAP...

I use notmuch for indexing only, and read and send emails from mutt.
Although I do not use gnus, I do use emacs as my editor (hence
message-mode) to compose emails; there I find Org is supported rather
well.  For linking to emails, I have been using org-notmuch quite
successfully for the last year now.

If you are interested, feel free to ask I can share more details.

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] patch for org-contacts to ignore radio_marks when completing

2013-01-02 Thread Bastien
Hi Daniel,

Daniel Clemente n142...@gmail.com writes:

   But name is John and you will get: John j...@email.com
   With the patch you get a bare name:  John j...@email.com
   So that new function should „clean“ the name: remove radio marks, emphasis, 
 bold, etc. I did only radio marks..

I see.  I applied a slightly modified patch in master, thanks.

-- 
 Bastien



Re: [O] Using Org-mode file format for storing configuration data

2013-01-02 Thread Karl Voit
* Daniel Clemente n142...@gmail.com wrote:
 El Sun, 30 Dec 2012 19:04:25 +0100 Karl Voit va escriure:
 
 I plan to implement a new weblog system that parses Org-mode
 files and generates (static) HTML output. Yes, I am aware that
 there are other solutions out there but I do not like them for
 various reasons.[1]

   Nice! I also don't like existing solutions and I was thinking on
   writing some Python to do the export. But the complexities of
   exporting are so well resolved in elisp that it's much easier to
   invoke elisp code than to write your own in Python.

Sorry, I can not use the fabulous elisp because it would take me to
develop my blog SW for years - I'd have to learn elisp from scratch.
Surely, an elisp primer should not try to write something like a web
log as his first elisp project.

 So for my new system, I am thinking of using Org-mode files for
 writing (and parsing) the user-defined preferences.

   I happened to be thinking the same two days ago.

   - In Python I have to parse a basic sub-set of Org-mode format
   anyhow. An additional parser would be more work to do.

   Don't do it from scratch; there are already some parsers which
   work. I tried: https://github.com/bjonnh/PyOrgMode

I did not start to evaluate current Org-parsers in Python but I am
very sceptic that I will be able to use such a parser. I plan to do
many intelligent transformations on the parser level such as
id:heading42 -
http://my.bog.com//MM/DD/articleofheading42.html; and so forth.

But we'll see.

 - Possible methods to store configuration/settings of a weblog system
   that scans Org-mode files to generate HTML:
   - in drawers: see below
   - in tables: see below
   - in tags: see below
   - other possibilities?

From the ones you say, I prefer property drawers. It's the most
DB-like and it's analogous to storing data (well, strings).
You don't need all the table benefits (reordering, exporting,
formatting, formulae, …).  Nor the tags benefits (search,
multiple tags, …)

Ack.

 My focus is user friendly maintenance and overview including
 in-line documentation of the preferences.

   Of course, storing configuration in .org is very utopic (being
   all .org), but I would prefer *not* to do it. I would use a
   simple ~/.file.conf with some variables in the usual style:

 # a comment
 path=~/web/
 # where to export images
 images=~/web/images

OK, the usual INI format. I've done this a couple of times already.

   I think this wins for usability and „friendly maintenance“,
   since people know it and it works. And it allows you to define
   many projects (e.g. check the configuration file for the program
   unison).

I wanted to check, whether there is something in the idea of using
the same Org format for configuration as well. So far I tend to use
INI once more.

   But I think it's more important to center efforts in developing
   a good exporter web publisher. As you said, the current ones are
   not powerful enough.

Sorry, there seems to be a misunderstanding.

My exporter will be a *very basic one*. At least for the first
versions.  The issues that drove me to plan my own new blog system
are related to completely other areas.

If you want to have a good Org to HTML engine, you definitely
don't want to use my future blogging system.

-- 
Karl Voit




Re: [O] org-goto bug

2013-01-02 Thread Bastien
Hi Tyler,

Tyler Smith tyler.sm...@mail.mcgill.ca writes:

 According to the manual, and the help window that pops up when you
 call it, org-goto should accept a few one-letter commands to move up
 one level (u), quit (q), move to the next (n) or previous(p) heading.
 However, whenever I try any of these keys, they are interpreted as
 the search string for isearch. My set-up is provided below. I have
 confirmed that this is also the case when I start emacs with 'emacs
 -Q', so I don't think I've done this in my config.

there were even more problems in this area -- using the *Help* buffer
wasn't a good idea, customizing `org-goto-auto-isearch' wasn't taken
into account, etc.

So thanks for reporting this, I fixed the problem you reported.

Best,

-- 
 Bastien



Re: [O] A mail client that is org-mode compatible

2013-01-02 Thread Igor Sosa Mayor


Am Wed, Jan 02, 2013 at 08:57:14AM +, Suvayu Ali wrote:
 
 I use notmuch for indexing only, and read and send emails from mutt.
 Although I do not use gnus, I do use emacs as my editor (hence
 message-mode) to compose emails; there I find Org is supported rather
 well.  For linking to emails, I have been using org-notmuch quite
 successfully for the last year now.
 
 If you are interested, feel free to ask I can share more details.

I also would be interested in your orgmode + notmuch config...

thanks in advance!


-- 
:: Igor Sosa Mayor :: joseleopoldo1...@gmail.com ::
:: GnuPG: 0x1C1E2890   :: http://www.gnupg.org/  ::
:: jabberid: rogorido  ::::


pgpd6ybfSq_1F.pgp
Description: PGP signature


Re: [O] A mail client that is org-mode compatible

2013-01-02 Thread Viktor Rosenfeld
Hi,

Suvayu Ali wrote:

 On Mon, Dec 31, 2012 at 08:29:12AM +0100, Gour wrote:
 
 I use notmuch for indexing only, and read and send emails from mutt.
 Although I do not use gnus, I do use emacs as my editor (hence
 message-mode) to compose emails; there I find Org is supported rather
 well.  For linking to emails, I have been using org-notmuch quite
 successfully for the last year now.
 
 If you are interested, feel free to ask I can share more details.

I'm interested in your mutt+notmuch setup.

Happy new year!

Cheers,
Viktor



Re: [O] Org Mobile and Adroid 2.3.6

2013-01-02 Thread Martin Butz

Hello,

in case anyone is interested, here is a short report what I found out:

+ I tested mobileorg on my Android phone without encryption and with 
synchronization via Ubuntu one. Seems to work. However: I do not want to 
store unencrypted org-files on a remote server.


+ I am able to enscrypt files through emacs but I am not able to decrypt 
these files on my smartphones.


+ I was confused reading something like Be sure you are using MobileOrg 
1.5+ and Org-mode 7.02+ and Next, open MobileOrg and enter your 
encryption password in the Settings tab. Perform a sync, and you are 
done. [1] It turned out, that this is only meant for the iPhone version.


+ It seems to be possible to set up decryption via APG on an Android 
phone but I have not found out how. See e.g. [2] I found other hints on 
the web, which state, that all files to be used by mobileorg and 
enscryption should have a file ending like pgp. Some people say you 
have to decrypt files manually. I stopped experimenting though, it 
obviously seems quite complecated.


+ Nevertheless it's very tempting to have all my org-notes and schedules 
on my phone. I will wait until I can manage to make sure that encryption 
is being used.


Thanks
Martin

[1] http://mobileorg.ncogni.to/doc/getting-started/encryption/
[2] 
https://groups.google.com/forum/?fromgroups=#!topic/mobileorg-android/LqswbeNoyAQ



Am 22.12.2012 12:40, schrieb Martin Butz:

Hi,

does anyone have a working and fully functional orgmobile installation
on a smartphone with Android 2.3.6 (meine: Samsung Ace)?

It seems, that mine is not complete. E.g. using the setup wizard I was
prompted to provide a folder for the storage of the org-files. But I
could not set this option, because I was not able to choose a folder.
Nevertheless the synchronization with Ubuntu One basically works
although I do not have a clue, where mobileorg stores the files.

The next problem is, I use encryption (org-mobile-use-encryption), which
works. But how can I bring orgmobile to descrypt the files?

Thanks
Martin




--

| G. Martin Butz, m...@mkblog.org, 0421 98749324, www.mkblog.org |




Re: [O] iOS MobileOrg transition updates

2013-01-02 Thread Alan Schmitt
Hello,

I'm resurrecting this old thread after some recent messages about
mobileorg for Android and how I'd really like to see it on my iPhone.

Kyle Sexton writes:

 All,

 I've been working with Richard Moreland on the transition to being the
 new maintainer of MobileOrg on iOS.

 * Things that have happened during transition

 ** Mailing list
 A new mailing list for application discussion has been created which
 you can register for at
 http://www.org-mobile.org/mailman/listinfo/org-mobile.

 ** Website
 A new domain, http://www.org-mobile.org has been created to house the
 mailing list and public website of the project.

The web site seems to be down.

 ** App Store
 A new version of the application has been published on iTunes connect
 and is awaiting Apple's review before being added to the Apple
 store.

I searched for it but could not find it. Is there a link to it?

Thanks a lot,

Alan



Re: [O] Org Mobile and Adroid 2.3.6

2013-01-02 Thread Brian van den Broek
On 2 Jan 2013 07:49, Martin Butz m...@mkblog.org wrote:

 Hello,

 in case anyone is interested, here is a short report what I found out:

 + I tested mobileorg on my Android phone without encryption and with
synchronization via Ubuntu one. Seems to work. However: I do not want to
store unencrypted org-files on a remote server.

snip

 + Nevertheless it's very tempting to have all my org-notes and schedules
on my phone. I will wait until I can manage to make sure that encryption is
being used.

 Thanks
 Martin

snip

Hi Martin,

Have you considered using the SD card for syncing? It is a bit more of a
hassle than syncing with a server, but it works well enough to satisfy this
owner of a tin foil hat :-)

Best,

Brian vdB


Re: [O] Org Mobile and Adroid 2.3.6

2013-01-02 Thread Martin Butz

Hi Brian,

Am 02.01.2013 16:36, schrieb Brian van den Broek:

[...]


Have you considered using the SD card for syncing? It is a bit more of a
hassle than syncing with a server, but it works well enough to satisfy this
owner of a tin foil hat :-)


yes and no;) I briefly thought of it and might give it a try.

Anyway, both solutions bring up a more general issue which I haven't 
really thought of, since I owned the smartphone only recently: the 
encryption of all relevant data on the smartphone (which to me seems 
even more important, if I carry my org-mode files on a phone).


But this is beyond this list...

Nevertheless I am courious: Do you encrypt your data in case of loss of 
the phone?


Thanks for the response
Martin

--

| G. Martin Butz, m...@mkblog.org, 0421 98749324, www.mkblog.org |




Re: [O] Org Mobile and Adroid 2.3.6

2013-01-02 Thread Brian van den Broek
On 2 January 2013 11:29, Martin Butz m...@mkblog.org wrote:
 Hi Brian,

 Am 02.01.2013 16:36, schrieb Brian van den Broek:

 [...]


 Have you considered using the SD card for syncing? It is a bit more of a
 hassle than syncing with a server, but it works well enough to satisfy
 this
 owner of a tin foil hat :-)


 yes and no;) I briefly thought of it and might give it a try.

 Anyway, both solutions bring up a more general issue which I haven't really
 thought of, since I owned the smartphone only recently: the encryption of
 all relevant data on the smartphone (which to me seems even more important,
 if I carry my org-mode files on a phone).

 But this is beyond this list...

 Nevertheless I am courious: Do you encrypt your data in case of loss of the
 phone?


Hi Martin and all,

[This may be veering off topic; if anyone minds, please feel free to
let me know.]

Any data that is truly private is encrypted within org using
org-crypt. None of that is in my agenda files, so those files never
make their way to the phone. A purely phone encyption solution would
not work for me as I almost always take my netbook with my full suite
or org files in to work. My office is secure enough that I will leave
the netbook there from time to time, but not so secure that I am
willing to have the truly private data live on in unencrypted. (It
does have full disk encryption, but in a triumph of ease over
security, I often leave the netbook suspended, thus leaving the disk
unlocked.)

I use mobile-org primary to sync with the phone's own calendar (and
thus to get notifications for tasks and appointments ithout obviously
sharing my details with google) and, since recent versions of mobile
org for Android enabled this to work for me, quick capture on the
phone. With the small screen and my usually having a proper computer
at hand, I don't consult my org files on the phone very often. At
least on my form-factor of phone, the mobile org for Android UI makes
reading org files there a bit awkward.

If I know that I have data stored in org that I will need to consult
on the phone, I usually copy paste into some another app that makes it
easier to read on the go. I have had success with both Wikilin
https://play.google.com/store/apps/details?id=com.mosharu.wikilinhl=en
and Simple Notepad
https://play.google.com/store/apps/details?id=org.mightyfrog.android.simplenotepadfeature=search_result#?t=W251bGwsMSwxLDEsIm9yZy5taWdodHlmcm9nLmFuZHJvaWQuc2ltcGxlbm90ZXBhZCJd.
Sadly, neither is FLOSS.

The UI of Wikilin isn't as good for reading on the phone as is Simple
Notepad, but its data files are stored as plain text on the SD card
making editing them from a real computer much easier.

HTH,

Brian vdB



[O] Can't get 'sh' blocks working

2013-01-02 Thread Ken Williams
I'm having some trouble getting 'sh' babel blocks to work.  Here's a minimal 
test case, with the output after pressing C-c C-c:

#+begin_src sh
  echo foo
#+end_src

#+RESULTS:
: Error: unexpected symbol in echo foo

In my .emacs file, I have the following:

(org-babel-do-load-languages
'org-babel-load-languages
'((emacs-lisp . t)
   (sh . t)
   (R . t)))



I tried to create a stack trace for this error, but I hit a snag when I did 
C-u M-x org-reload RET: Cannot open load file: 
/usr/local/share/emacs/24.1/lisp/org/org-agenda.el .  I'm not sure where 
that's coming from, I don't have any mention of agenda stuff in my .emacs.

Any pointers for the 'sh' error or for getting a stack trace?  Thanks.

--
Ken Williams, Senior Research Scientist
WindLogics
http://windlogics.com



CONFIDENTIALITY NOTICE: This e-mail message is for the sole use of the intended 
recipient(s) and may contain confidential and privileged information. Any 
unauthorized review, use, disclosure or distribution of any kind is strictly 
prohibited. If you are not the intended recipient, please contact the sender 
via reply e-mail and destroy all copies of the original message. Thank you.


Re: [O] A mail client that is org-mode compatible

2013-01-02 Thread Robert Goldman
I have a closely related question:

I use multiple devices, so I need to have an IMAP server that really is
an IMAP server, instead of something the just serves up messages to be
downloaded.  I have multiple folders, and I read messages from different
clients.

I haven't been able to figure out an org-mode compatible mail reader
that doesn't seem to want me to pull down all the messages to a local
server.  [I'm ok if it doesn't read nntp.]

Thunderbird, which I have been using, doesn't support links to messages.
 OTOH, it has the best IMAP client I have found, so I keep coming back
to it.

Gnus:  I regret to say that despite having tried it at least three
times, I have never managed to wrap my head around the gnus doctrine
that mail is just news, so I cannot use it.

VM:  I used to use VM, but at least when I was using it, it demanded
local storage, and did not include a full-fledged IMAP client.

any other suggestions?

Maybe this could go onto worg



Re: [O] How to generate agenda view tasks of all states?

2013-01-02 Thread joakim
Bastien b...@altern.org writes:

 Hi Joakim,

 joa...@verona.se writes:

 I would like to experiment with a graphical view of all tasks I've ever
 finished, produced with graphviz or something.

 However, I can't seem to reliably generate a suitable view for further
 processing. For some reason arg 0 only shows TODO items, not all states.

 Here is some tentative code, that is supposed to setup a local state so
 my customizations doesnt affect the view. Am I missing something?

 (let ((org-agenda-todo-list-sublevels t)
   (org-agenda-todo-ignore-with-date nil)
   (org-todo-keywords '((sequence TODO  DONE CANCELLED 
 dummystate))) )
   
   (org-todo-list 0))

 This works:

   (let ((org-agenda-todo-list-sublevels t)
 (org-agenda-todo-ignore-with-date nil)
 (org-not-done-regexp (regexp-opt org-todo-keywords-1 t)))
 (org-todo-list))

 (org-todo-list) should be called with no argument.

 You need to set `org-not-done-regexp' so that done tasks are not
 skipped, which is the default behavior of `org-todo-list'.


Thanks, this does inded seem to work!

 HTH,

-- 
Joakim Verona



Re: [O] Can't get 'sh' blocks working

2013-01-02 Thread Ken Williams
Sorry I forgot to include my version information:

Emacs  : GNU Emacs 24.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.10.4)
of 2012-07-13 on x.windlogics.local
Package: Org-mode version 7.8.11

current state:
==
(setq
org-export-babel-evaluate nil
org-export-preprocess-before-selecting-backend-code-hook 
'(org-beamer-select-beamer-code)
org-tab-first-hook '(org-hide-block-toggle-maybe 
org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe)
org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
org-occur-hook '(org-first-headline-recenter)
org-export-html-preamble-format '((en
p class=\author\Author: a 
href=\mailto:%e\;%a/a/p\np class=\date\Date: %d/p\n)
   )
org-metaup-hook '(org-babel-load-in-session-maybe)
org-export-preprocess-before-normalizing-links-hook 
'(org-remove-file-link-modifiers)
org-confirm-shell-link-function 'yes-or-no-p
org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
   org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-babel-pre-tangle-hook '(save-buffer)
org-export-html-postamble nil
org-mode-hook '(#[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all 
append local] 5]
 #[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook 
org-babel-show-result-all append local] 5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe)
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines 
org-optimize-window-after-visibility-change)
org-export-latex-format-toc-function 'org-export-latex-format-toc-default
org-export-blocks '((src org-babel-exp-src-block nil)
 (export-comment org-export-blocks-format-comment t)
 (ditaa org-export-blocks-format-ditaa nil)
 (dot org-export-blocks-format-dot nil))
org-export-first-hook '(org-beamer-initialize-open-trackers)
org-export-interblocks '((src org-babel-exp-non-block-elements))
org-confirm-elisp-link-function 'yes-or-no-p
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-export-html-postamble-format '((en
 p class=\author\Author: %a 
(%e)/p\np class=\date\Date: %d/p\np class=\creator\Generated by 
%c/p\n)
)
org-babel-load-languages '((emacs-lisp . t) (sh . t) (R . t))
org-alphabetical-lists t
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-confirm-babel-evaluate nil
)

From: Ken Williams
Sent: Wednesday, January 02, 2013 1:03 PM
To: emacs-orgmode@gnu.org
Subject: Can't get 'sh' blocks working

I'm having some trouble getting 'sh' babel blocks to work.  Here's a minimal 
test case, with the output after pressing C-c C-c:

#+begin_src sh
  echo foo
#+end_src

#+RESULTS:
: Error: unexpected symbol in echo foo

In my .emacs file, I have the following:

(org-babel-do-load-languages
'org-babel-load-languages
'((emacs-lisp . t)
   (sh . t)
   (R . t)))



I tried to create a stack trace for this error, but I hit a snag when I did 
C-u M-x org-reload RET: Cannot open load file: 
/usr/local/share/emacs/24.1/lisp/org/org-agenda.el .  I'm not sure where 
that's coming from, I don't have any mention of agenda stuff in my .emacs.

Any pointers for the 'sh' error or for getting a stack trace?  Thanks.

--
Ken Williams, Senior Research Scientist
WindLogics
http://windlogics.com



CONFIDENTIALITY NOTICE: This e-mail message is for the sole use of the intended 
recipient(s) and may contain confidential and privileged information. Any 
unauthorized review, use, disclosure or distribution of any kind is strictly 
prohibited. If you are not the intended recipient, please contact the sender 
via reply e-mail and destroy all copies of the original message. Thank you.


[O] monthly budget with year summary using tables

2013-01-02 Thread Carl Bolduc
I would like to move my budget from MS Excel to Org-Mode. I currently have
one Excel sheet per month with all the transactions as well as a summary
sheet that uses sumif functions.

Assuming the following format for the monthly table:

#+tblname: january
| date | transaction | amount | category  |
|--+-++---|
|   01 | iga | 50 | groceries |
|   01 | echo| 30 | car   |
|   02 | iga | 47 | groceries |

How can I get the following summary table?

| category  | january | february |
|---+-+--|
| groceries |  97 |  |
| car   |  30 |  |

I found this post on the mailing list that suggest to use babel:
http://www.mail-archive.com/emacs-orgmode@gnu.org/msg22736.html

However, I need help to understand how I can put the resulting sums inside
the summary table.

Thanks,
Carl


Re: [O] Can't get 'sh' blocks working

2013-01-02 Thread Nick Dokos
Ken Williams ken.willi...@windlogics.com wrote:

 I’m having some trouble getting ‘sh’ babel blocks to work.  Here’s a minimal 
 test case, with the output after pressing C-c C-c:
 
 #+begin_src sh
 
   echo foo
 
 #+end_src
 
 #+RESULTS:
 
 : Error: unexpected symbol in echo foo
 
 In my .emacs file, I have the following:
 
 (org-babel-do-load-languages
 
 'org-babel-load-languages
 
 '((emacs-lisp . t)
 
(sh . t)
 
(R . t)))
 
 I tried to create a stack trace for this error, but I hit a snag when I did 
 “C-u M-x org-reload RET”: “Cannot open load file: 
 /usr/local/share/emacs/24.1/lisp/org/org-agenda.el” .  I’m not sure where 
 that’s coming from, I don’t have any mention of agenda stuff in my .emacs.
 
 Any pointers for the ‘sh’ error or for getting a stack trace?  Thanks.
 

Can't reproduce the sh problem with more-or-less current org:

Org-mode version 7.9.2 (release_7.9.2-911-g460c4d @ 
/home/nick/elisp/org-mode/lisp/)

How are you installing org? built-in, elpa, tarball, git? What version are you 
running?


Nick




[O] Bug: ditaa images export as links in LaTeX [7.9.2 (release_7.9.2-944-gaf5514 @ c:/emacs/site-lisp/org-mode/lisp/)]

2013-01-02 Thread Gary Oberbrunner
The following org file, when exported as LaTeX - PDF, contains only a
link to the schema.png file, not the graphics.  The .tex has \href where
I think it should have \includegraphics.

I'm using the latest org-mode git source from today. Emacs 24 nightly on
Windows 7.

It happens with emacs -q (just load-library org, org-babel-load-languages
ditaa, and export as LaTeX).


Some stuff.

#+BEGIN_SRC ditaa :file schema.png :cmdline -r -S
+--+  +--+
| foo  |  |  |
| ++--+  |
| |  bar   |  | ..   |
| ||  | hi   |
+-++  +--+
#+END_SRC



Emacs  : GNU Emacs 24.3.50.1 (i386-mingw-nt6.1.7601)
 of 2012-11-19 on MS-W7-DANI
Package: Org-mode version 7.9.2 (release_7.9.2-944-gaf5514 @
c:/emacs/site-lisp/org-mode/lisp/)

current state:
==
(setq
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
 org-export-latex-packages-alist '((cm fullpage nil) (compact
titlesec nil)
   ( paralist nil) ( color nil))
 org-export-with-LaTeX-fragments 'dvipng
 org-export-latex-hyperref-format Sec. \\ref{%s} (%s)
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 org-tab-first-hook '(org-hide-block-toggle-maybe
org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-hide-inline-tasks org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-confirm-babel-evaluate nil
 org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
 org-export-with-toc nil
 org-babel-pre-tangle-hook '(save-buffer)
 org-occur-hook '(org-first-headline-recenter)
 org-export-latex-after-blockquotes-hook
'(org-special-blocks-convert-latex-special-cookies)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-default-notes-file c:/Users/garyo/Documents/My Dropbox/org/notes.org
 org-alphabetical-lists t
 org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 org-export-preprocess-after-blockquote-hook
'(org-special-blocks-make-special-cookies)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-mode-hook '(#[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all append local] 5]
 #[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-babel-show-result-all append
local]
   5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-directory c:/Users/garyo/Documents/My Dropbox/org
 org-from-is-user-regexp nil
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
   org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-startup-folded nil
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-export-html-after-blockquotes-hook
'(org-special-blocks-convert-html-special-cookies)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-babel-tangle-lang-exts '((latex . tex) (python . py)
(emacs-lisp . el))
 org-babel-load-languages '((emacs-lisp . t) (R . t) (python . t) (ditaa .
t) (latex . t)
(sql . t))
 org-confirm-shell-link-function 'yes-or-no-p
 )


-- 
Gary


[O] accented letters in pdf export

2013-01-02 Thread Tyler Smith
Hi,

I'm using org 7.9.2, with the new exporter dispatcher from org-export. When
I try to include accented letters, such as \'e, they don't work. When I
export to pdf using C-c C-e p, the resulting tex file shows $\backslash$'e
where I had \'e in the org file. Other macros, like \alpha, work fine.

How do I include accented letters in my pdflatex exports?

Thanks,

Tyler


Re: [O] accented letters in pdf export

2013-01-02 Thread Thomas S. Dye
Tyler Smith tyler.sm...@mail.mcgill.ca writes:

 Hi,

 I'm using org 7.9.2, with the new exporter dispatcher from org-export. When
 I try to include accented letters, such as \'e, they don't work. When I
 export to pdf using C-c C-e p, the resulting tex file shows $\backslash$'e
 where I had \'e in the org file. Other macros, like \alpha, work fine.

 How do I include accented letters in my pdflatex exports?

Please see the variable org-entities (C-h v org-entities).  You'll want
something like \eacute instead of \'e, etc.

There is also org-entities-user for additions to the entity lookup
table.  I have this:

  (setq org-entities-user nil)
  (add-to-list 'org-entities-user '(space \\  nil   –))
  (add-to-list 'org-entities-user '(amacron \\={a} nil #0257 a a 
ā))
  (add-to-list 'org-entities-user '(emacron \\={e} nil #0275 e e 
ē))
  (add-to-list 'org-entities-user '(imacron \\={i} nil #0299 i i 
ī))
  (add-to-list 'org-entities-user '(omacron \\={o} nil #0333 o o 
ō))
  (add-to-list 'org-entities-user '(umacron \\={u} nil #0363 u u 
ū))
  (add-to-list 'org-entities-user '(Amacron \\={A} nil #0256 A A 
Ā))
  (add-to-list 'org-entities-user '(Emacron \\={E} nil #0274 E E 
Ē))
  (add-to-list 'org-entities-user '(Imacron \\={I} nil #0298 I I 
Ī))
  (add-to-list 'org-entities-user '(Omacron \\={O} nil #0332 O O 
Ō))
  (add-to-list 'org-entities-user '(Umacron \\={U} nil #0362 U U 
Ū))
  (define-key org-mode-map (kbd C-c e) 'org-export-dispatch)

Also, note that C-c C-e p is typically bound to the old exporter, so you
might be using the old exporter, rather than the new one.  The
(define-key ...) above calls the new exporter with C-c e.

hth,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] accented letters in pdf export

2013-01-02 Thread Doug Lewan
Exporting to LaTeX or PDF includes this line:

\usepackage[utf8]{inputenc}

And that seems to cope quite well with the actual accented characters.

If you learn an input method (latin-1-prefix is probably a good place to 
start), then accented characters just fall through to the LaTeX and the right 
thing happens.

`C-u C-\ latin-1-prefix' will set the input method. `C-h I' will get you help 
on it.

,Douglas
Douglas Lewan
Shubert Ticketing
(201) 489-8600 ext 224

When I do good, I feel good. When I do bad, I feel bad and that's my religion. 
- Abraham Lincoln

From: emacs-orgmode-bounces+dougl=shubertticketing@gnu.org 
[mailto:emacs-orgmode-bounces+dougl=shubertticketing@gnu.org] On Behalf Of 
Tyler Smith
Sent: Wednesday, 2013 January 02 15:28
To: Emacs-orgmode@gnu.org
Subject: [O] accented letters in pdf export

Hi,

I'm using org 7.9.2, with the new exporter dispatcher from org-export. When I 
try to include accented letters, such as \'e, they don't work. When I export to 
pdf using C-c C-e p, the resulting tex file shows $\backslash$'e where I had 
\'e in the org file. Other macros, like \alpha, work fine.
How do I include accented letters in my pdflatex exports?
Thanks,

Tyler




Re: [O] accented letters in pdf export

2013-01-02 Thread Nick Dokos
Tyler Smith tyler.sm...@mail.mcgill.ca wrote:

 I'm using org 7.9.2, with the new exporter dispatcher from
 org-export. When I try to include accented letters, such as \'e, they
 don't work. When I export to pdf using C-c C-e p, the resulting tex
 file shows $\backslash$'e where I had \'e in the org file. Other
 macros, like \ alpha, work fine.

 How do I include accented letters in my pdflatex exports?
 

That looks like a bug in the new exporter (the old exporter handles it
properly).  You can get accented letters by entering the character in
e.g. utf-8 and arranging for tex to do the right thing (which I think
it does by default with unicode in org's latex export).  You can use an
input method to simplify entering such things as well.

Here's a quick intro (there are many other ways to accomplish this):

o Set your language environment to utf-8

  (set-language-environment UTF-8)

o Open a new org file in an emacs buffer: C-x C-f foo.org RET
  The new file should have a U:--- designation on the mode line.

o Set your default input method to TeX:

  (set-input-method TeX)

  The mode line should now show \U:---

o Enter some text with accented characters - the TeX input method allows
  you to enter an accented e with \'e or \`e for example, but what ends up
  in the buffer is the accented character itself (in utf-8 encoding).

o Export to latex/pdf. Assuming the tex file  includes

  \usepackage[utf8]{inputenc}
  \usepackage[T1]{fontenc}

  then TeX will do the right thing.


For more on the TeX aspects, see the TeX FAQ 
http://www.tex.ac.uk/cgi-bin/texfaq2html
and search for inputenc.

Nick



[O] Bug: ditaa images export as links in LaTeX [7.9.2 (release_7.9.2-944-gaf5514 @ c:/emacs/site-lisp/org-mode/lisp/)]

2013-01-02 Thread Gary Oberbrunner

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.


The following org file, when exported as LaTeX - PDF, contains only a
link to the schema.png file, not the graphics.  The .tex has \href where
I think it should have \includegraphics.

I'm using the latest git source from today.


Some stuff.

#+BEGIN_SRC ditaa :file schema.png :cmdline -r -S
+--+  +--+
| foo  |  |  |
| ++--+  |
| |  bar   |  | ..   |
| ||  | hi   |
+-++  +--+
#+END_SRC



Emacs  : GNU Emacs 24.3.50.1 (i386-mingw-nt6.1.7601)
 of 2012-11-19 on MS-W7-DANI
Package: Org-mode version 7.9.2 (release_7.9.2-944-gaf5514 @ 
c:/emacs/site-lisp/org-mode/lisp/)

current state:
==
(setq
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point 
org-babel-execute-safely-maybe)
 org-export-latex-packages-alist '((cm fullpage nil) (compact titlesec 
nil)
   ( paralist nil) ( color nil))
 org-export-with-LaTeX-fragments 'dvipng
 org-export-latex-hyperref-format Sec. \\ref{%s} (%s)
 org-export-preprocess-before-selecting-backend-code-hook 
'(org-beamer-select-beamer-code)
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe 
org-babel-header-arg-expand)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-hide-inline-tasks org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-confirm-babel-evaluate nil
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-export-with-toc nil
 org-babel-pre-tangle-hook '(save-buffer)
 org-occur-hook '(org-first-headline-recenter)
 org-export-latex-after-blockquotes-hook 
'(org-special-blocks-convert-latex-special-cookies)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-default-notes-file c:/Users/garyo/Documents/My Dropbox/org/notes.org
 org-alphabetical-lists t
 org-export-preprocess-before-normalizing-links-hook 
'(org-remove-file-link-modifiers)
 org-export-preprocess-after-blockquote-hook 
'(org-special-blocks-make-special-cookies)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-mode-hook '(#[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all 
append local] 5]
 #[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook 
org-babel-show-result-all append local]
   5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-directory c:/Users/garyo/Documents/My Dropbox/org
 org-from-is-user-regexp nil
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
   org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-startup-folded nil
 org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
 org-export-html-after-blockquotes-hook 
'(org-special-blocks-convert-html-special-cookies)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-babel-tangle-lang-exts '((latex . tex) (python . py) (emacs-lisp 
. el))
 org-babel-load-languages '((emacs-lisp . t) (R . t) (python . t) (ditaa . t) 
(latex . t)
(sql . t))
 org-confirm-shell-link-function 'yes-or-no-p
 )



Re: [O] accented letters in pdf export

2013-01-02 Thread Nick Dokos
Nick Dokos nicholas.do...@hp.com wrote:

 Tyler Smith tyler.sm...@mail.mcgill.ca wrote:
 
  How do I include accented letters in my pdflatex exports?
  
 
 That looks like a bug in the new exporter (the old exporter handles it
 properly).

Eh, I rushed to judgment. It's probably by design, given Tom's mail and
after doing some reading on org-entities.

Nick



Re: [O] Bug: ditaa images export as links in LaTeX [7.9.2 (release_7.9.2-944-gaf5514 @ c:/emacs/site-lisp/org-mode/lisp/)]

2013-01-02 Thread Nick Dokos
Gary Oberbrunner ga...@genarts.com wrote:

 The following org file, when exported as LaTeX - PDF, contains only a
 link to the schema.png file, not the graphics.  The .tex has \href where
 I think it should have \includegraphics.
 
 I'm using the latest git source from today.
 
 
 Some stuff.
 
 #+BEGIN_SRC ditaa :file schema.png :cmdline -r -S
 +--++--+
 | foo  ||  |
 | ++--+  |
 | |  bar   || ..   |
 | ||| hi   |
 +-+++--+
 #+END_SRC
 
 

Probably because of commit 4aaf1a4df2c7a5e7c398c29fed121b049cccf78b.
After doing

  (setq org-export-latex-inline-images t)

it works correctly for me.

Nick




Re: [O] Bug: ditaa images export as links in LaTeX [7.9.2 (release_7.9.2-944-gaf5514 @ c:/emacs/site-lisp/org-mode/lisp/)]

2013-01-02 Thread Bastien
Hi Gary and Nick,

Nick Dokos nicholas.do...@hp.com writes:

 Probably because of commit 4aaf1a4df2c7a5e7c398c29fed121b049cccf78b.
 After doing

   (setq org-export-latex-inline-images t)

 it works correctly for me.

indeed -- the commit was not complete, it is now.

Thanks!

-- 
 Bastien



[O] Babel related bug in elpa version 20121231

2013-01-02 Thread Robert Horn

I'm experimenting with starterkit on a new machine and have run into a
bug in org-mode elpa version 20121231.

With the stock distribution org-mode (7.8.11) in emacs 24.2 there is no
problem.  With the elpa version 20121231 I get an error, see the
attached output from emacs --debug-init.

It's not clear to me why the condition is failing in
org-babel-strip-protective-commas.  This works properly in 7.8.11. It
shouldn't be taking the path that leads to org-strip-protective-commas.

The environment is the unmodified git repository for the
emacs24-starter-kit, and this error is from the first #+begin_src
emacs-lisp in the personalized startup file.  

This work is on a new machine.  It doesn't have the org-mode git
repository readily available.  If there is an easy way to get
intermediate versions from elpa I can try those relatively easily to
isolate the change that triggers this error better.

For now the workaround is to revert the org-mode package, get the
startups the way I want them, and then re-activate the org-mode
package.

R Horn
rjh...@alum.mit.edu

Debugger entered--Lisp error: (void-function org-strip-protective-commas)
  org-strip-protective-commas(1 77)
  org-babel-strip-protective-commas((add-hook 'text-mode-hook\n
  '(lambda () (visual-line-mode))) emacs-lisp)
  org-babel-parse-src-block-match()
  org-babel-get-src-block-info(light)
  org-babel-tangle-collect-blocks(emacs-lisp)
  org-babel-tangle(nil /home/hornrj/.emacs.d/hornrj.el emacs-lisp)
  org-babel-tangle-file(/home/hornrj/.emacs.d/hornrj.org 
/home/hornrj/.emacs.d/hornrj.el emacs-lisp)
  org-babel-load-file(/home/hornrj/.emacs.d/hornrj.org)
  (cond ((file-exists-p encrypted-org) (org-babel-load-file encrypted-org)) 
((file-exists-p encrypted-el) (load encrypted-el)) ((file-exists-p literate) 
(org-babel-load-file literate)) ((file-exists-p plain) (load plain)))
  (let* ((path (expand-file-name base starter-kit-dir)) (literate (concat path 
.org)) (encrypted-org (concat path .org.gpg)) (plain (concat path .el)) 
(encrypted-el (concat path .el.gpg))) (cond ((file-exists-p encrypted-org) 
(org-babel-load-file encrypted-org)) ((file-exists-p encrypted-el) (load 
encrypted-el)) ((file-exists-p literate) (org-babel-load-file literate)) 
((file-exists-p plain) (load plain
  (catch (quote --cl-block-sk-load--) (let* ((path (expand-file-name base 
starter-kit-dir)) (literate (concat path .org)) (encrypted-org (concat path 
.org.gpg)) (plain (concat path .el)) (encrypted-el (concat path 
.el.gpg))) (cond ((file-exists-p encrypted-org) (org-babel-load-file 
encrypted-org)) ((file-exists-p encrypted-el) (load encrypted-el)) 
((file-exists-p literate) (org-babel-load-file literate)) ((file-exists-p 
plain) (load plain)
  (cl-block-wrapper (catch (quote --cl-block-sk-load--) (let* ((path 
(expand-file-name base starter-kit-dir)) (literate (concat path .org)) 
(encrypted-org (concat path .org.gpg)) (plain (concat path .el)) 
(encrypted-el (concat path .el.gpg))) (cond ((file-exists-p encrypted-org) 
(org-babel-load-file encrypted-org)) ((file-exists-p encrypted-el) (load 
encrypted-el)) ((file-exists-p literate) (org-babel-load-file literate)) 
((file-exists-p plain) (load plain))
  (block sk-load (let* ((path (expand-file-name base starter-kit-dir)) 
(literate (concat path .org)) (encrypted-org (concat path .org.gpg)) (plain 
(concat path .el)) (encrypted-el (concat path .el.gpg))) (cond 
((file-exists-p encrypted-org) (org-babel-load-file encrypted-org)) 
((file-exists-p encrypted-el) (load encrypted-el)) ((file-exists-p literate) 
(org-babel-load-file literate)) ((file-exists-p plain) (load plain)
  sk-load(hornrj)
  (let ((elisp-dir (expand-file-name src starter-kit-dir)) (user-dir 
(expand-file-name user-login-name starter-kit-dir))) (add-to-list (quote 
load-path) elisp-dir) (when (file-exists-p elisp-dir) (let ((default-directory 
elisp-dir)) (normal-top-level-add-subdirs-to-load-path))) (sk-load system-name) 
(sk-load user-login-name) (when (file-exists-p user-dir) (add-to-list (quote 
load-path) user-dir) (mapc (function sk-load) (remove-duplicates (mapcar 
(function remove-extension) (directory-files user-dir t 
.*.\\(org\\|el\\)\\(\\.gpg\\)?$)) :test (function string=)
  (progn (fset (quote remove-extension) (function* (lambda (name) (block 
remove-extension (string-match 
\\(.*?\\).\\(org\\(\\.el\\)?\\|el\\)\\(\\.gpg\\)?$ name) (match-string 1 
name) (let ((elisp-dir (expand-file-name src starter-kit-dir)) (user-dir 
(expand-file-name user-login-name starter-kit-dir))) (add-to-list (quote 
load-path) elisp-dir) (when (file-exists-p elisp-dir) (let ((default-directory 
elisp-dir)) (normal-top-level-add-subdirs-to-load-path))) (sk-load system-name) 
(sk-load user-login-name) (when (file-exists-p user-dir) (add-to-list (quote 
load-path) user-dir) (mapc (function sk-load) (remove-duplicates (mapcar 
(function remove-extension) (directory-files user-dir t 
.*.\\(org\\|el\\)\\(\\.gpg\\)?$)) :test 

Re: [O] How to convert to odt with specific styles?

2013-01-02 Thread Tom Davey
 But considering that no one made such a request, he removed it from
 org-e-odt.el.  I can re-instate the removed changes in to org-e-odt.el.

I agree, that would be great. I have the same use case as Joakim:
frequent exports to MS Word templates with predefined style sets.

Thanks very much!

Tom Davey

On Tue, Jan 1, 2013 at 5:52 PM, Bastien b...@altern.org wrote:
 Jambunathan K kjambunat...@gmail.com writes:

 But considering that no one made such a request, he removed it from
 org-e-odt.el.  I can re-instate the removed changes in to org-e-odt.el.

 That'd be great.  Thanks!

 --
  Bastien




-- 
--
Tom Davey
t...@tomdavey.com
New York NY USA



Re: [O] org-indirect-buffer-display applies to unrelated things

2013-01-02 Thread Nick Dokos
Samuel Wales samolog...@gmail.com wrote:

 ===
 org-indirect-buffer-display is a variable defined in `org.el'.
 Its value is new-frame
 Original value was other-window
 
 Documentation:
 How should indirect tree buffers be displayed?
 This applies to indirect buffers created with the commands
 M-x org-tree-to-indirect-buffer and M-x org-agenda-tree-to-indirect-buffer.
 ...
 ===
 
 That's excellent for manual creation of a new frame.  However, it also
 creates a new frame with (setq org-agenda-follow-indirect t).
 
 Is this intended?
 

It would seem so: org-agenda-follow-indirect is used in a single place:

,
| (defun org-agenda-do-context-action ()
|   Show outline path and, maybe, follow mode window.
|   (let ((m (org-get-at-bol 'org-marker)))
| (when (and (markerp m) (marker-buffer m))
|   (and org-agenda-follow-mode
|  (if org-agenda-follow-indirect
|  (org-agenda-tree-to-indirect-buffer nil)
|(org-agenda-show)))
|   (and org-agenda-show-outline-path
|  (org-with-point-at m (org-display-outline-path t))
`

If it is not nil, org-agenda-tree-to-indirect-buffer is called, so this
case falls under the spell of org-indirect-buffer-display.

Nick

 Thanks.
 
 Samuel
 
 -- 
 The Kafka Pandemic: http://thekafkapandemic.blogspot.com
 
 The disease DOES progress.  MANY people have died from it.  ANYBODY
 can get it.  There is no hope without action.
 



[O] Globally set categories overwhelm tree inheritance

2013-01-02 Thread William Léchelle
Happy new year list :)

Constructing a custom agenda using (org-entry-get (point) CATEGORY t) in an
org-agenda-skip-function, I found a rare case of strangely inherited property,
when a #+Category:foo line is present (at the top of the file) :

If an entry has no property drawer, it correctly inherits its CATEGORY property
from its hierarchy, but if it *has* one, *not* featuring a category property,
then the #+Category one supersedes that of the entry's hierarchy.

I know #+Category is obsolete, and for subtree-category differentiation
properties are the way to go, but I thought of it as a file-local fallback
value, and apparently it's not reliable for this either, as it infringes
inheritance logic when property drawers are present.

Reporting just in case someone else still uses #+Category and bumps into it.



Re: [O] Bug: Table export to [tc]sv doesn't convert \vert [7.8.11]

2013-01-02 Thread Nathan Trapuzzano
Bastien b...@altern.org writes:

 Hi Nathan,

 Nathan Trapuzzano nbt...@nbtrap.com writes:

 Of course the particular implementation will have to be seen before it
 can be accepted, but I'd like to get the spec accepted (provisionally)
 before setting to work on it.

 As a start, you can look at the way org-e-*.el backend export tables,
 (use `org-e-ascii-table-cell' as an entry point).  What we need is a
 callback function to convert entities in cells, in org-export.el.

 Since we already have org-entities, I would use it together with
 `org-entity-get-representation' to convert entities from the \vert{}
 representation to the | character (in the ASCII backend.)

 Here's what I propose:

 1. Do away with \vert{} entirely, leaving just \vert as an escape
 sequence standing for |, no matter where it appears. \vert{}
 unnecesarily complicates things, in my opinion.

 Better to rely on org-entities and the way entities are treated so far.

I only recently started using org-mode, let alone looking at the
source. I'll see what you mean if I get the time.

 2. The escape sequence must itself be escapable, wherefore I propose
 to give the backslash special meaning in front of the string
 vert. Specifically:

   a. An even number of consecutive backslashes followed by vert
   stands for that number of backslashes divided by two followed by
   vert.

   b. An odd number of consecutive backslashes followed by vert
   stands for that many backslashes integer-divided by two, followed by
   |.

 For example, \vert exports to |, \\vert to \vert, \\\vert to
 \|, vert to \\vert, and so on. Obviously, upon importing,
 the reverse of the above will be carried out.

 I would not take that route -- from experience, escaping espace
 sequences can drive you mad, and all this is not intuitive for users.

The problem with not escaping escape sequences is that there always ends
up being some string of characters that cannot be represented. As for
driving one mad, I think that +vert is much simpler to understand
than \\(\\bvert\\b\\|vert{}\\), especially if the latter only
applies when the row in which the sequence falls is not escaped as you
describe below.

 I would simply convert entities by default and use a special table 
 cookie in lines where you do not want the conversion to happen.

 For example:

 | Header 1 | Header 2 |
 |--+--|
 | \vert{}  | ABC  |

 = convert to | 

 But:

 |   | Header 1 | Header 2 |
 |---+--+--|
 | \ | \vert{}  | ABC  |

 Don't convert.  The \ char is free and a good choice here.

This would apply the escape to the entire row. I supposed it's better
than the way things are now, but it's still not a very good solution in
my mind.



[O] bug#13254: org-odt: Batch exports creates data loss, deletes original org file

2013-01-02 Thread Glenn Morris

Please can we have the relevant patch installed in emacs-24.