[O] Bug: New exporter and latex table export with floats in engineering notation [8.0-pre (release_8.0-pre-355-g0480d0 @ /appl/org-mode/lisp/)]

2013-04-10 Thread Dieter Wilhelm
Aloha (),

please try to latexport the following table with the latest and greatest

| 3E5 | 3.2e3 | 3.3E-4|

and you will still receive this output

\begin{tabular}{rrr}
3\,(5)  3.2\,(3)  3.3\,(-4)\\
\end{tabular}

which is looking like

3 (5) 3.2 (3) 3.3 (-4)

what can I do to receive reals in tables with engineering notation?

--
Thanks
Dieter


Emacs  : GNU Emacs 24.3.3 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10)
 of 2013-03-24 on urmel
Package: Org-mode version 8.0-pre (release_8.0-pre-355-g0480d0 @ 
/appl/org-mode/lisp/)

current state:
==
(setq
 org-src-lang-modes '((ANSYS . ansys) (ocaml . tuareg) (elisp . 
emacs-lisp) (ditaa . artist)
  (asymptote . asy) (dot . fundamental) (sqlite . sql)
  (calc . fundamental) (C . c) (cpp . c++) (screen 
. shell-script))
 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-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 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-date-timestamp-format %Y-%m-%d
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-from-is-user-regexp \\Dieter Wilhelm\\
 org-html-postamble t
 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-copy-to-kill-ring t
 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-export-allow-BIND t
 org-export-with-tags 'not-in-toc
 org-use-speed-commands t
 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-hide-inline-tasks
  org-cycle-show-empty-lines 
org-optimize-window-after-visibility-change)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-html-postamble-format '((en
  p class=\author\Author: %a (%e)/p\np 
class=\date\Modification date: %C /p\np class=\creator\Generated by %c 
/p\n)
 (de
  p class=\author\Autor: %a (%e)/p\np 
class=\date\Letzte Änderung: %C /p\np class=\creator\Erzeugt von %c 
/p\n)
 (fr
  p class=\author\Auteur: %a (%e)/p\np 
class=\date\Date de la modification: %C /p\np class=\creator\Produit 
par %c /p\n)
 )
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-export-with-drawers nil
 org-link-abbrev-alist '((att . org-attach-expand-link))
 org-export-allow-bind-keywords t
 org-babel-tangle-lang-exts '((ansys . mac) (emacs-lisp . el))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-export-latex-listings t
 org-link-mailto-program '(compose-mail %a %s)
 org-agenda-files '(~/org/private.org)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-confirm-babel-evaluate nil
 org-src-fontify-natively t
 org-publish-project-alist '((org-notes :sitemap-title Die Dünenhof-Seite 
:auto-sitemap t
  :base-directory ~/org/www/ :base-extension 
org :publishing-directory
  ~/www.duenenhof-wilhelm2.de/ :recursive t 
:publishing-function
  org-html-publish-to-html :headline-levels 4 
:auto-preamble nil :exclude
  template.*\\|navigation.*)
 (org-static :base-directory ~/org/www/ 
:base-extension
  
css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|org\\|htm\\|ico
  :publishing-directory 
~/www.duenenhof-wilhelm2.de/ :recursive t
  :publishing-function org-publish-attachment)
 (duenenhof :components (org-notes 
org-static)))
 org-export-latex-classes '((scrartcl
 

Re: [O] Bug: New exporter and latex table export with floats in engineering notation [8.0-pre (release_8.0-pre-355-g0480d0 @ /appl/org-mode/lisp/)]

2013-04-10 Thread Nicolas Goaziou
Hello,

Dieter Wilhelm die...@duenenhof-wilhelm.de writes:

 please try to latexport the following table with the latest and greatest

 | 3E5 | 3.2e3 | 3.3E-4|

 and you will still receive this output

 \begin{tabular}{rrr}
 3\,(5)  3.2\,(3)  3.3\,(-4)\\
 \end{tabular}

 which is looking like

 3 (5) 3.2 (3) 3.3 (-4)

 what can I do to receive reals in tables with engineering notation?

See `org-latex-table-scientific-notation'.


Regards,

-- 
Nicolas Goaziou



Re: [O] MobileOrg app not available in the Belgian App Store?

2013-04-10 Thread Rainer M. Krug
Sean Escriva sean.escr...@gmail.com writes:

 Hi All,

 I'm the current maintainer for the MobileOrg github repo. I'm
 currently working on getting the app back in the app store as soon as
 possible. Within 2 weeks depending on the review process, according to
 the previous maintainer that's where it got hung up before so I'll
 have to wait and see.

 Alex who runs the spandrel.org account is helping out as his time permits.

 The current release works with the latest Dropbox API and also
 provides a new option to launch in capture mode. I have been testing a
 debug build on my device for about 2 weeks and am satisfied with it
 enough to get it back in the store and available for all.

 Feature requests/issues/support will all be handled via github issues
 as much as possible, but feel free to contact me directly as well if
 you like.

 I'll send an update to the list as soon as there's any more info.

Good to hear - I am looking forward to it.

Thanks,

Rainer


 Glad there's still people that find it useful!

 thanks,
 -sean


 On Mon, Apr 8, 2013 at 8:02 AM, Rainer M. Krug rai...@krugs.de wrote:
 Guido Van Hoecke gui...@gmail.com writes:

 Hi,

 rai...@krugs.de (Rainer M. Krug) writes:

 Guido Van Hoecke gui...@gmail.com writes:

 Guido Van Hoecke gui...@gmail.com writes:

 Hi Holger and David

 On 05/04/13 17:51, Holger Wenzel wrote:
 Hi Guido,

 I wanted to install the MobileOrg app on my iPhone, but iTunes claims
 that there is no such app in the Belgian App Store?!

 Did I miss something?

 did you go to http://mobileorg.ncogni.to/
 Yep, they link to the appstore, and the app is not available

 Yes. I think there was a problem with the Dropbox API changing. It
 looks like a patch has been submitted that fixes the issue but I think
 there was also some complication with api keys or something. The
 change-over of maintainer probably complicates things as well.

 Well, I got the source from GitHub and built it with XCode.

 Building for the Simulatore works fine. However building for the iPhone
 fails. I'll open a separate thread for that rather than highjack this
 thread.

 Fixed by getting latest GHUnitIOS.framework from
 https://github.com/downloads/gabriel/gh-unit/GHUnitIOS-0.5.6.zip

 So if you guys have access to a MAC and XCode, this is one way to get it
 on your devices :)

 Now the obvious question from somebody who neither has a Mac nor knows
 anything about the intricacies of the Apple app store:

 What is the problem at the moment with releasing the working version for
 iOS? I would really much like to have it back as I seem to be
 approaching emacs-land (first org-mode, now gnus, and next?).

 I'm just passing this on to mobile...@spandrel.org which is the contact
 address listed at https://github.com/mobileorg/mobileorg

 Great - thanks.


 Hope this helps,


 Hope so to - at least a clarification and possibley a time line.

 Cheers,

 Rainer


 Guido


 Cheers,

 Rainer
 #secure method=pgpmime mode=sign

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

 Centre of Excellence for Invasion Biology
 Stellenbosch University
 South Africa

 Tel :   +33 - (0)9 53 10 27 44
 Cell:   +33 - (0)6 85 62 59 98
 Fax :   +33 - (0)9 58 10 27 44

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

 email:  rai...@krugs.de

 Skype:  RMkrug

#secure method=pgpmime mode=sign

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

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

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

email:  rai...@krugs.de

Skype:  RMkrug



Re: [O] Google calendar sync - what is recommended?

2013-04-10 Thread Rainer M. Krug
Eric S Fraga e.fr...@ucl.ac.uk writes:

 Rainer M. Krug rai...@krugs.de writes:

 [...]

 discussion recently which I did not follow to closely. Which approach is
 the recommended / most stable approach in syncing google calendar with
 org?

 We are in a state of flux.  For quite a while, I used a two way
 upload/download approach based on icalendar export from org to Google
 and an awk script to convert Google calendar information into org.  See

 http://orgmode.org/worg/org-tutorials/org-google-sync.html

 This is not a synchronisation approach.

True - I have seen that one.


 However, more recently, I moved to org-caldav for syncing.  There is a
 link to this package from that web page as well (at the end).  This
 works really nicely.

 The problem is that Google has decided to no longer allow caldav access
 to their Calendar system from sometime later this year, requiring people
 to access the data in the calendar via the REST API.

Google is doing strange hings at the moment - google reader, caldav, ...


 I have moved back to the two way upload/download procedure mentioned
 above.

Hm - I am thinking... We'll see what is coming out of this.


 PS: org-unrelated gnus questions:

 1) how can I insert these [1] footnotes in message-mode?

Perfect - thanks


 Use footnote-mode

 http://www.emacswiki.org/emacs/FootnoteMode

 2) how can I quote or enclose a block with these brackets in acsii code?

 I do not understand this question.  Sorry.

Please see the ASCII block thread - that one answers my question

Thanks a lot,

Rainer


 HTH,
 eric
#secure method=pgpmime mode=sign

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

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

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

email:  rai...@krugs.de

Skype:  RMkrug



Re: [O] Google calendar sync - what is recommended?

2013-04-10 Thread Rainer M. Krug
Sebastien Vauban wxhgmqzgw...@spammotel.com writes:

 Hi Rainer,

 Rainer M. Krug wrote:
 PS: org-unrelated gnus questions:

 1) how can I insert these [1] footnotes in message-mode?

 See org-footnote.

 2) how can I quote or enclose a block with these brackets in acsii code?

 In Gnus, C-c M-m (that is, the command message-mark-inserted-region).


Thanks a lot - both are now solved.

Cheers,

Rainer

 Best regards,
   Seb
#secure method=pgpmime mode=sign

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

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

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

email:  rai...@krugs.de

Skype:  RMkrug



Re: [O] Google calendar sync - what is recommended?

2013-04-10 Thread Rainer M. Krug
Torsten Wagner torsten.wag...@gmail.com writes:


 Hi Rainer,


 I have to agree with Rasmus, the question is, do you really want to
 sync to google calendar or do you want to sync your smartphone
 calendar (most likely an Android-based phone) with org-mode? 

No - iPad and hopefully soon iPhone. But also web access and integration
with gmail

 In case
 of the last, you might omit using google calendar completely and use
 another service with caldav support. If you have access to an own
 server (a PC which can be reached from the internet), you might be
 able to even install your own solution.  There is an android app [1]
 which allows syncing of caldav-servers with the Android calendar in
 the same way like the google calendar (in the background, without any
 user-interaction after initial set-up). Unfortunately, it is not free,
 but I would say it is worth the money.

I have used a different calender before, and it would work (I guess) but
I grew so used to the google calendar and its features / interface /
quirks that I am reluctant at the moment (while moving to emacs) to also
move calendars. 

 E.g. I use SOGo + org-caldav + CalDAV-Sync to sync between my
Android-based phone, a web-based calendar and org-mode. Works great.

 BTW. There is another Android app (CardDAV), which does the same for your 
 address book.

 Hope that helps a bit

It gives me something to think about...


 Torsten

 [1] CalDAV-Sync beta

 CC: Completely OT but it seems you use notmuch too, did you manage to get 
 address-completion working in notmuch?

Yup - I use goosync as described on the notmuch website and it works -
although not as fast as I would like it to work, but I can live with
it. Any particular questions?

Cheers,

Rainer


 On 9 April 2013 17:11, Rainer M. Krug rai...@krugs.de wrote:

 Hi

 As you might guess from my recent mails, I am moving away from
 thunderbird to org-mode. After having my emails covered and fighting
 with the addressbook (using goobokk as described here
 http://notmuchmail.org/emacstips/#index15h2 but would like to move to
 ASynK https://karra-asynk.appspot.com/ if I can get it to work and to
 understand bbdb...) and hoping that I can also get toodledo synced, I
 want to sync my google calendar with org. Now there was quite siome
 discussion recently which I did not follow to closely. Which approach is
 the recommended / most stable approach in syncing google calendar with
 org?

 Thanks,

 Rainer

 PS: org-unrelated gnus questions:

 1) how can I insert these [1] footnotes in message-mode?
 2) how can I quote or enclose a block with these brackets in acsii 
 code?

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

 Centre of Excellence for Invasion Biology
 Stellenbosch University
 South Africa

 Tel :       +33 - (0)9 53 10 27 44
 Cell:       +33 - (0)6 85 62 59 98
 Fax :       +33 - (0)9 58 10 27 44

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

 email:      rai...@krugs.de

 Skype:      RMkrug

#secure method=pgpmime mode=sign

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

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

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

email:  rai...@krugs.de

Skype:  RMkrug



Re: [O] MobileOrg app not available in the Belgian App Store?

2013-04-10 Thread Guido Van Hoecke
Sean Escriva sean.escr...@gmail.com writes:

 Hi All,

 I'm the current maintainer for the MobileOrg github repo. I'm
 currently working on getting the app back in the app store as soon as
 possible. Within 2 weeks depending on the review process, according to
 the previous maintainer that's where it got hung up before so I'll
 have to wait and see.

 Alex who runs the spandrel.org account is helping out as his time permits.

 The current release works with the latest Dropbox API and also
 provides a new option to launch in capture mode. I have been testing a
 debug build on my device for about 2 weeks and am satisfied with it
 enough to get it back in the store and available for all.

 Feature requests/issues/support will all be handled via github issues
 as much as possible, but feel free to contact me directly as well if
 you like.

 I'll send an update to the list as soon as there's any more info.

 Glad there's still people that find it useful!

Well, it's looking great so far :)

Thanks for your effort!


Guido


 thanks,
 -sean


 On Mon, Apr 8, 2013 at 8:02 AM, Rainer M. Krug rai...@krugs.de wrote:
 Guido Van Hoecke gui...@gmail.com writes:

 Hi,

 rai...@krugs.de (Rainer M. Krug) writes:

 Guido Van Hoecke gui...@gmail.com writes:

 Guido Van Hoecke gui...@gmail.com writes:

 Hi Holger and David

 On 05/04/13 17:51, Holger Wenzel wrote:
 Hi Guido,

 I wanted to install the MobileOrg app on my iPhone, but iTunes claims
 that there is no such app in the Belgian App Store?!

 Did I miss something?

 did you go to http://mobileorg.ncogni.to/
 Yep, they link to the appstore, and the app is not available

 Yes. I think there was a problem with the Dropbox API changing. It
 looks like a patch has been submitted that fixes the issue but I think
 there was also some complication with api keys or something. The
 change-over of maintainer probably complicates things as well.

 Well, I got the source from GitHub and built it with XCode.

 Building for the Simulatore works fine. However building for the iPhone
 fails. I'll open a separate thread for that rather than highjack this
 thread.

 Fixed by getting latest GHUnitIOS.framework from
 https://github.com/downloads/gabriel/gh-unit/GHUnitIOS-0.5.6.zip

 So if you guys have access to a MAC and XCode, this is one way to get it
 on your devices :)

 Now the obvious question from somebody who neither has a Mac nor knows
 anything about the intricacies of the Apple app store:

 What is the problem at the moment with releasing the working version for
 iOS? I would really much like to have it back as I seem to be
 approaching emacs-land (first org-mode, now gnus, and next?).

 I'm just passing this on to mobile...@spandrel.org which is the contact
 address listed at https://github.com/mobileorg/mobileorg

 Great - thanks.


 Hope this helps,


 Hope so to - at least a clarification and possibley a time line.

 Cheers,

 Rainer


 Guido


 Cheers,

 Rainer
 #secure method=pgpmime mode=sign

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

 Centre of Excellence for Invasion Biology
 Stellenbosch University
 South Africa

 Tel :   +33 - (0)9 53 10 27 44
 Cell:   +33 - (0)6 85 62 59 98
 Fax :   +33 - (0)9 58 10 27 44

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

 email:  rai...@krugs.de

 Skype:  RMkrug




Re: [O] [babel] Bugs for Emacs Lisp code blocks

2013-04-10 Thread Sebastien Vauban
Hi Eric,

Sebastien Vauban wrote:
 Eric Schulte wrote:
 Sebastien Vauban wxhgmqzgw...@spammotel.com writes:
 Eric Schulte wrote:
 Emacs Lisp is an exception in terms of colname processing, it has default
 header arguments set to pass column names through to the code block,
 where the processing may be done trivially in Emacs Lisp.

 OK, but I don't understand the precedence of header arguments. I thought
 that a header argument given on the code block preempted all the other
 values (system-wide default for all languages, language defaults,
 file-wide arguments, and subtree arguments).

 Why isn't this true here as well?

 That is what is happening here, although combinations of :hlines and
 :colnames can be tricky. Especially weird, is that if you want to *unset* a
 header argument which is set at a higher level, you need to set it to '(),
 as in :colnames '().

 #+name: unset-colnames-example-input
 | a | b |
 |---+---|
 | 1 | 2 |
 | 3 | 4 |

 ** Having no =:colnames= header argument (case 1)

 I understand that the following example does have =:colnames= set to =yes=:
 it is neither unset nor changed on the code block specification.

 #+begin_src emacs-lisp :var data=unset-colnames-example-input
   data
 #+end_src

 #+results:
 | a | b |
 |---+---|
 | 1 | 2 |
 | 3 | 4 |

 Hence, this result is what is expected.

 ** Using =:colnames no= header argument (case 2)

 #+begin_src emacs-lisp :var data=unset-colnames-example-input :colnames no
   data
 #+end_src

 #+results:
 | a | b |
 |---+---|
 | 1 | 2 |
 | 3 | 4 |

 Here, I still don't understand why I do see the table header line: I did
 change the default =:colnames yes= specification to =:colnames no= on the
 code block. I did override the default value. Why is the =no= argument not
 respected?

This still escapes me.

 ** Using =:colnames ()= header argument (case 6)

 As you told me, to unset the =:colnames yes= header argument, we must use:

 #+begin_src emacs-lisp :var data=unset-colnames-example-input :colnames ()
   data
 #+end_src

 #+results:
 | 1 | 2 |
 | 3 | 4 |

 That does work.

 What is still unclear to me as well, is why =()= and =nil= aren't the same
 from Babel's point of view?

However, I think I understood this one: it is because nil is interpreted as a
string, not as the empty list; right?

That's because strings aren't quoted, right?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Google calendar sync - what is recommended?

2013-04-10 Thread Fabrice Popineau
2013/4/10 Rainer M. Krug rai...@krugs.de


 It gives me something to think about...


You might have a look here too :

git://github.com/bateast/google-calendar

It provides the ability to retrieve your Google Calendar by using their
API, not caldav.

Thanks to Baptiste Fouques.

Fabrice


Re: [O] Org as a static site generator

2013-04-10 Thread 'Mash (Thomas Herbert)
On 2013-04-01 13:12+0200, David Engster wrote:
 I'd like to use Org as a static site generator. I know quite a few
 people use Org to manage their sites, so I'd like to know what's already
 available and what I'd need to add to make this working properly.

 I know of course how to export a bunch of Org files to HTML through the
 publishing features. However, that's not really cutting it, I'm afraid.

 Thing of a typical HTML5 template having a header, nav, footer,
 and article. I'd like Org to include the different exported files into
 the article section, and the rest to remain the same. The nav would
 contain a global navigation menu, also highlighting the current active
 section (though CSS, no JS please).

 Has anybode done something like this?

 -David


I rolled my own called Orgile.

http://toshine.org/etc/orgile-emacs-org-mode-file-html-parser-php-publishing-tool/

I would love someone to help me develop classOrgile.php the org-mode
file to HTML parser can be used as a stand-alone PHP class in what
ever tool you want.

I am not much of a developer so this is a garden-shed effort, but as
you can see with http://toshine.org it turned out pretty clean, and
allows me to stay in Emacs and just push up the .org file via Git and
Orgile does the rest.

Note: I have tweaked my current Orgile code on my current site versus
the public version on github, so may need to compare the two and
republish to github.

'Mash



Re: [O] Is there a limit to number of entries in org-feed.el?

2013-04-10 Thread Memnon Anon
Aditya Mandayam adity...@gmail.com writes:

 I tried using org-feed:

 http://orgmode.org/worg/org-contrib/org-feed.html

 and it returns 70 entries when I try to update. Is there a limit to
 the amount it can pull? Or is it me?

FWIW, with a quick test, I can't reproduce that.
Some more information about your setup would be useful, here is what I
tested with:

ELISP (emacs-version)
GNU Emacs 24.3.50.1 (i486-pc-linux-gnu, GTK+ Version 3.4.2)\n 
of 2013-04-04 on dex, modified by Debian
ELISP (org-version t t)
Org-mode version 8.0-pre 
 (release_8.0-pre-213-g6caddb @ /home/memnon/bin/elisp/org-latest/lisp/)
ELISP org-feed-alist
((Alles 
   http://www.pro-linux.de/NB3/rss/1/2/rss10_alles.xml; 
   ~/test.org Alles Entries)
 (Nachrichten 
   http://www.pro-linux.de/NB3/rss/2/2/rss10_aktuell.xml; 
   ~/test.org Nachrichten Entries)
 (Security 
   http://www.pro-linux.de/NB3/rss/5/2/rss10_sicherheit.xml; 
   ~/test.org Security Entries)
 (Spiegel Topmeldungen 
   http://www.spiegel.de/schlagzeilen/tops/index.rss; 
   ~/test.org Spiegel Top Entries)
 (Spiegel Eilmeldungen 
   http://www.spiegel.de/schlagzeilen/eilmeldungen/index.rss; 
   ~/test.org Spiegel Eil Entries)
 (Spiegel Alles 
  http://www.spiegel.de/schlagzeilen/index.rss; 
  ~/test.org Spiegel Alles Entries))

,[ M-x org-feed-update-all; Example output *Messages* ]
| Contacting host: 127.0.0.1:8118
| Saving file /home/memnon/test.org...
| Wrote /home/memnon/test.org
| Added 0 new item from feed Alles to file test.org, 
|   heading Alles Entries
| Contacting host: 127.0.0.1:8118
| Saving file /home/memnon/test.org...
| Wrote /home/memnon/test.org
| Added 0 new item from feed Nachrichten to file test.org, 
|   heading Nachrichten Entries
| Contacting host: 127.0.0.1:8118
| Saving file /home/memnon/test.org...
| Wrote /home/memnon/test.org
| Added 0 new item from feed Security to file test.org, 
|   heading Security Entries
| Contacting host: 127.0.0.1:8118
| No new items in feed Spiegel Topmeldungen
| Contacting host: 127.0.0.1:8118
| No new items in feed Spiegel Eilmeldungen
| Contacting host: 127.0.0.1:8118
| Clipboard pasted as level 2 subtree [2 times]
| Position saved to mark ring, go back with C-c .
| Saving file /home/memnon/test.org...
| Wrote /home/memnon/test.org
| Added 2 new items from feed Spiegel Alles to file test.org, 
|   heading Spiegel Alles Entries
| 2 new entries from 6 feeds
`

Memnon
-- 
(org) Feedback :
For bug reports, please first try to reproduce the bug with the
latest version of Org available [...]. If the bug persists, prepare 
a report and provide as much information as possible [...]




Re: [O] Is there a limit to number of entries in org-feed.el?

2013-04-10 Thread Memnon Anon
Memnon Anon gegendosenflei...@googlemail.com writes:

 ,[ M-x org-feed-update-all; Example output *Messages* ]
[...]
 | 2 new entries from 6 feeds
 `

And in a previous run, I got:
72 new entries from 6 feeds

So, I can see no upper limit in the code at a first glance, and even if
there is one, it's not 70.

Memnon




Re: [O] Enriched/Org is a colorful Org

2013-04-10 Thread Suvayu Ali
On Wed, Apr 10, 2013 at 09:32:44AM +0530, Jambunathan K wrote:
 
 See Side note towards the end of this message
 
 http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14157#8
 

This request is common enough; every time it comes up overlays are
proposed as a solution.  It would be good if this is available even as a
library outside of Org.

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] converting people to Emacs and org-mode

2013-04-10 Thread Suvayu Ali
My comment is off topic here, but couldn't help it ...

On Tue, Apr 09, 2013 at 07:59:08PM -0400, 42 147 wrote:
 It was very interesting psychologically to remind oneself of this state of
 mind. To most people a program is a shortcut icon on the desktop, not a
 bunch of disparate files that coalesce into something like Emacs.

There was an ad-hoc survey by some news show, BBC Click I think, which
asked people to distinguish what they understand by a web browser and a
search engine.  About half thought they were one and the same.

;)

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Enriched/Org is a colorful Org

2013-04-10 Thread Carsten Dominik

On 10 apr. 2013, at 11:54, Suvayu Ali fatkasuvayu+li...@gmail.com wrote:

 On Wed, Apr 10, 2013 at 09:32:44AM +0530, Jambunathan K wrote:
 
 See Side note towards the end of this message
 
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14157#8
 
 
 This request is common enough; every time it comes up overlays are
 proposed as a solution.  It would be good if this is available even as a
 library outside of Org.

Yes, overlays are better.  However, maybe I am just no getting it, but what is 
even the purpose of facemenu?  AFAICS, the faces are non-permanent, so when I 
save the file and reopen it, all the faces are gone.  I really cannot see a 
useful application for this.

- Carsten




[O] Using a table value within the text (dynamic variable)?

2013-04-10 Thread 'Mash (Thomas Herbert)
I was wondering if it was possible at all to use like a variable within a
document that would reference a table cell, and could then be
dynamically updated when the table cell was?

The reason I ask is that I would like to have have tabular data held
in another document and then write my document referencing and
including the data within the text, so I only have to change the
external data and the document would be updated automatically.

Example...

#+TBLNAME: example
|-+-|
| Foo | Bar |
|-+-|
|  22 | 43  |
|  44 | 54  |
|-+-|

Lorem ipsum dolor sit amet, @remote(example,B2) consectetur adipiscing elit. 
Nullam
vehicula lobortis sem, ut viverra lorem elementum quis. Etiam ac lacus
eu ante molestie vehicula. Maecenas sed viverra sem. Proin mattis
fermentum orci, sed tempus nibh feugiat eget.

Would become...

Lorem ipsum dolor sit amet, 43 consectetur adipiscing elit. Nullam
vehicula lobortis sem, ut viverra lorem elementum quis. Etiam ac lacus
eu ante molestie vehicula. Maecenas sed viverra sem. Proin mattis
fermentum orci, sed tempus nibh feugiat eget.


Thoughts?



Re: [O] Enriched/Org is a colorful Org

2013-04-10 Thread Torsten Wagner
Hmmm
as application an ambient-light org-mode coloring

just joking

Torsten




On 10 April 2013 12:16, Carsten Dominik carsten.domi...@gmail.com wrote:


 On 10 apr. 2013, at 11:54, Suvayu Ali fatkasuvayu+li...@gmail.com wrote:

  On Wed, Apr 10, 2013 at 09:32:44AM +0530, Jambunathan K wrote:
 
  See Side note towards the end of this message
 
 http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14157#8
 
 
  This request is common enough; every time it comes up overlays are
  proposed as a solution.  It would be good if this is available even as a
  library outside of Org.

 Yes, overlays are better.  However, maybe I am just no getting it, but
 what is even the purpose of facemenu?  AFAICS, the faces are non-permanent,
 so when I save the file and reopen it, all the faces are gone.  I really
 cannot see a useful application for this.

 - Carsten





Re: [O] Enriched/Org is a colorful Org

2013-04-10 Thread Suvayu Ali
Hi Carsten,

On Wed, Apr 10, 2013 at 12:16:28PM +0200, Carsten Dominik wrote:
 
 On 10 apr. 2013, at 11:54, Suvayu Ali fatkasuvayu+li...@gmail.com wrote:
 
  On Wed, Apr 10, 2013 at 09:32:44AM +0530, Jambunathan K wrote:
  
  See Side note towards the end of this message
  
 http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14157#8
  
  
  This request is common enough; every time it comes up overlays are
  proposed as a solution.  It would be good if this is available even as a
  library outside of Org.
 
 Yes, overlays are better.  However, maybe I am just no getting it, but
 what is even the purpose of facemenu?  AFAICS, the faces are
 non-permanent, so when I save the file and reopen it, all the faces
 are gone.  I really cannot see a useful application for this.

AFAIR, the use cases presented so far involved adding highlighting-like
information in Org files.  If the overlays are generated consistently
based on the user's setup, it doesn't matter if they are non-permanent
(as in not part of the Org file, but dependent on the Emacs setup
instead).  Of course this means the highlighting information will not be
portable; but I don't think people mind that.

I personally do not find any use for the feature as such; although it
might be interesting to be able to insert plain text cookies in Org
files and have them highlighted in some fashion.  I could then use a
list of ideas like this:

  Some topic ...
  1. Idea 1
  2. Idea 2 (?)

where I'm doubtful about idea (2); having (?) highlighted would remind
me of that.  Just an idea.

:)

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Enriched/Org is a colorful Org

2013-04-10 Thread Carsten Dominik

On 10 apr. 2013, at 12:48, Suvayu Ali fatkasuvayu+li...@gmail.com wrote:

 Hi Carsten,
 
 On Wed, Apr 10, 2013 at 12:16:28PM +0200, Carsten Dominik wrote:
 
 On 10 apr. 2013, at 11:54, Suvayu Ali fatkasuvayu+li...@gmail.com wrote:
 
 On Wed, Apr 10, 2013 at 09:32:44AM +0530, Jambunathan K wrote:
 
 See Side note towards the end of this message
 
   http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14157#8
 
 
 This request is common enough; every time it comes up overlays are
 proposed as a solution.  It would be good if this is available even as a
 library outside of Org.
 
 Yes, overlays are better.  However, maybe I am just no getting it, but
 what is even the purpose of facemenu?  AFAICS, the faces are
 non-permanent, so when I save the file and reopen it, all the faces
 are gone.  I really cannot see a useful application for this.
 
 AFAIR, the use cases presented so far involved adding highlighting-like
 information in Org files.  If the overlays are generated consistently
 based on the user's setup, it doesn't matter if they are non-permanent
 (as in not part of the Org file, but dependent on the Emacs setup
 instead).  Of course this means the highlighting information will not be
 portable; but I don't think people mind that.
 
 I personally do not find any use for the feature as such; although it
 might be interesting to be able to insert plain text cookies in Org
 files and have them highlighted in some fashion.  I could then use a
 list of ideas like this:
 
  Some topic ...
  1. Idea 1
  2. Idea 2 (?)
 
 where I'm doubtful about idea (2); having (?) highlighted would remind
 me of that.  Just an idea.

Yes, this would make sense if the highlighting would be reestablished
automatically next time you visit the file.  If not, it would be pretty
useless in my eyes.

- Carsten




Re: [O] Using a table value within the text (dynamic variable)?

2013-04-10 Thread Sebastien Vauban
'Mash Thomas Herbert wrote:
 I was wondering if it was possible at all to use like a variable within a
 document that would reference a table cell, and could then be
 dynamically updated when the table cell was?

 The reason I ask is that I would like to have have tabular data held
 in another document and then write my document referencing and
 including the data within the text, so I only have to change the
 external data and the document would be updated automatically.

 Example...

 #+TBLNAME: example
 |-+-|
 | Foo | Bar |
 |-+-|
 |  22 | 43  |
 |  44 | 54  |
 |-+-|

 Lorem ipsum dolor sit amet, @remote(example,B2) consectetur adipiscing elit. 
 Nullam
 vehicula lobortis sem, ut viverra lorem elementum quis. Etiam ac lacus
 eu ante molestie vehicula. Maecenas sed viverra sem. Proin mattis
 fermentum orci, sed tempus nibh feugiat eget.

 Would become...

 Lorem ipsum dolor sit amet, 43 consectetur adipiscing elit. Nullam
 vehicula lobortis sem, ut viverra lorem elementum quis. Etiam ac lacus
 eu ante molestie vehicula. Maecenas sed viverra sem. Proin mattis
 fermentum orci, sed tempus nibh feugiat eget.

 Thoughts?

Use an Org Babel (inline) code block which extracts part of the table. See
indexing variables.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Bug: New exporter and latex table export with floats in engineering notation [8.0-pre (release_8.0-pre-355-g0480d0 @ /appl/org-mode/lisp/)]

2013-04-10 Thread Dieter Wilhelm, H.
2013/4/10 Nicolas Goaziou n.goaz...@gmail.com:
 Hello,

 Dieter Wilhelm die...@duenenhof-wilhelm.de writes:

 please try to latexport the following table with the latest and greatest

 | 3E5 | 3.2e3 | 3.3E-4|

 and you will still receive this output

 \begin{tabular}{rrr}
 3\,(5)  3.2\,(3)  3.3\,(-4)\\
 \end{tabular}

 which is looking like

 3 (5) 3.2 (3) 3.3 (-4)

 what can I do to receive reals in tables with engineering notation?

 See `org-latex-table-scientific-notation'.

Thanks for the pointer. Amazing, Org is becaming more and more Emacs
like: The learning process never stops. :-)

I had to (require 'org-latex) to see the variable and can now setq or
#+bind: the thing, wonderful.

--
  Dieter

 Regards,

 --
 Nicolas Goaziou




Re: [O] Enriched/Org is a colorful Org

2013-04-10 Thread Sebastien Vauban
Carsten Dominik wrote:
 On 10 apr. 2013, at 12:48, Suvayu Ali fatkasuvayu+li...@gmail.com wrote:
 On Wed, Apr 10, 2013 at 12:16:28PM +0200, Carsten Dominik wrote:
 On 10 apr. 2013, at 11:54, Suvayu Ali fatkasuvayu+li...@gmail.com wrote:
 On Wed, Apr 10, 2013 at 09:32:44AM +0530, Jambunathan K wrote:
 
 See Side note towards the end of this message
 
   http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14157#8
 
 
 This request is common enough; every time it comes up overlays are
 proposed as a solution.  It would be good if this is available even as a
 library outside of Org.
 
 Yes, overlays are better.  However, maybe I am just no getting it, but
 what is even the purpose of facemenu?  AFAICS, the faces are
 non-permanent, so when I save the file and reopen it, all the faces
 are gone.  I really cannot see a useful application for this.
 
 AFAIR, the use cases presented so far involved adding highlighting-like
 information in Org files.  If the overlays are generated consistently
 based on the user's setup, it doesn't matter if they are non-permanent
 (as in not part of the Org file, but dependent on the Emacs setup
 instead).  Of course this means the highlighting information will not be
 portable; but I don't think people mind that.
 
 I personally do not find any use for the feature as such; although it
 might be interesting to be able to insert plain text cookies in Org
 files and have them highlighted in some fashion.  I could then use a
 list of ideas like this:
 
  Some topic ...
  1. Idea 1
  2. Idea 2 (?)
 
 where I'm doubtful about idea (2); having (?) highlighted would remind
 me of that.  Just an idea.

 Yes, this would make sense if the highlighting would be reestablished
 automatically next time you visit the file.  If not, it would be pretty
 useless in my eyes.

IIUC, I do use something similar: automatic highlighting of some words, hooked
on the mode (so, permanent... for me).

--8---cut here---start-8---
  (defface lvn/highlight-face
'((t (:weight normal :slant normal :box '(:line-width 1 :color #CC)
  :foreground #CC :background #88)))
Face for making FIXME and other warnings stand out.)

  (defvar lvn/highlight-org-regexps
\\(FIXME\\|BUG\\|XXX\\|[Ee]rror\\|[Ww]arning\\|WARNING\\)
Patterns to highlight (for Org mode only).)

  ;; set up highlighting of special patterns for Org mode only
  (dolist (mode '(org-mode))
(font-lock-add-keywords mode
 `((,lvn/highlight-org-regexps 1 'lvn/highlight-face prepend
--8---cut here---end---8---

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Enriched/Org is a colorful Org

2013-04-10 Thread Carsten Dominik

On 10 apr. 2013, at 13:20, Sebastien Vauban wxhgmqzgw...@spammotel.com 
wrote:

 Carsten Dominik wrote:
 On 10 apr. 2013, at 12:48, Suvayu Ali fatkasuvayu+li...@gmail.com wrote:
 On Wed, Apr 10, 2013 at 12:16:28PM +0200, Carsten Dominik wrote:
 On 10 apr. 2013, at 11:54, Suvayu Ali fatkasuvayu+li...@gmail.com wrote:
 On Wed, Apr 10, 2013 at 09:32:44AM +0530, Jambunathan K wrote:
 
 See Side note towards the end of this message
 
  http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14157#8
 
 
 This request is common enough; every time it comes up overlays are
 proposed as a solution.  It would be good if this is available even as a
 library outside of Org.
 
 Yes, overlays are better.  However, maybe I am just no getting it, but
 what is even the purpose of facemenu?  AFAICS, the faces are
 non-permanent, so when I save the file and reopen it, all the faces
 are gone.  I really cannot see a useful application for this.
 
 AFAIR, the use cases presented so far involved adding highlighting-like
 information in Org files.  If the overlays are generated consistently
 based on the user's setup, it doesn't matter if they are non-permanent
 (as in not part of the Org file, but dependent on the Emacs setup
 instead).  Of course this means the highlighting information will not be
 portable; but I don't think people mind that.
 
 I personally do not find any use for the feature as such; although it
 might be interesting to be able to insert plain text cookies in Org
 files and have them highlighted in some fashion.  I could then use a
 list of ideas like this:
 
 Some topic ...
 1. Idea 1
 2. Idea 2 (?)
 
 where I'm doubtful about idea (2); having (?) highlighted would remind
 me of that.  Just an idea.
 
 Yes, this would make sense if the highlighting would be reestablished
 automatically next time you visit the file.  If not, it would be pretty
 useless in my eyes.
 
 IIUC, I do use something similar: automatic highlighting of some words, hooked
 on the mode (so, permanent... for me).
 
 --8---cut here---start-8---
  (defface lvn/highlight-face
'((t (:weight normal :slant normal :box '(:line-width 1 :color #CC)
  :foreground #CC :background #88)))
Face for making FIXME and other warnings stand out.)
 
  (defvar lvn/highlight-org-regexps
\\(FIXME\\|BUG\\|XXX\\|[Ee]rror\\|[Ww]arning\\|WARNING\\)
Patterns to highlight (for Org mode only).)
 
  ;; set up highlighting of special patterns for Org mode only
  (dolist (mode '(org-mode))
(font-lock-add-keywords mode
 `((,lvn/highlight-org-regexps 1 'lvn/highlight-face prepend
 --8---cut here---end---8---

Yes, this is definitely very useful, I do similar stuff for FIXME etc.

- Carsten


 
 Best regards,
  Seb
 
 -- 
 Sebastien Vauban
 
 




Re: [O] [ox-latex] Bad default value for image width?

2013-04-10 Thread Rasmus
Nicolas,

 I don't like that tikz figures are wrapped in a resize box.  

 Set `org-latex-image-default-width' to .

But as my second email shows this still doesn't work with
captions. . .

This exmample:

#+BEGIN_SRC org
#+BEGIN_SRC emacs-lisp
(make-local-variable 'org-latex-image-default-width)
(setq org-latex-image-default-width )
#+END_SRC

#+NAME:firm-ts-fig
#+CAPTION: test
[[file:figs/test.tikz]]

no caption
[[file:figs/test.tikz]]
#+END_SRC

 That's not correct. It is always true because (:width ) means width
 becomes \\, not . IOW, `org-export-read-attribute' is unable to
 parse a real empty string.

I see. 

 This wouldn't help to solve the general problem. Though, you can change
 it in your config to something else, as suggested above.

I have.  But I don't think it's a sensible default.  It's against what
your usual stand of Org not trying to be too clever.  You would also
not put tables in resize boxes to make them fit on the page.


Here's another example where the default causes a non-sensible
behavior.

#+BEGIN_SRC org
#+BEGIN_SRC emacs-lisp :exports none
(url-copy-file http://orgmode.org/img/org-mode-unicorn-logo.png; logo.png)
#+END_SRC

* My raster picture

This is a low res. picture with the right size^{TM}

[[file:logo.png]]
#+END_SRC


   2. allow for a non-width (:width nil)
   3. make a better test for the resize box.

 Let me know and I might be able to look into it.



 I think the correct solution would be to fix `org-export-read-attribute'
 so it can read empty strings.

I think this is the solution to a general problem.  But I still find
the default width to be wrong.  It only works as intended when I have
a slightly too large picture.  And then, if anything, I'd want full
page width.  

It's a bad default for
  - Picture smaller than textwidth
  - Picture crafted to the document which shouldn't have a width.

It's a decent solution for 
  - pictures which are unintentionally larger than textwidth.  But IMO
it's my responsibility, and not Org's, to fix these
images/situations.


In usually exhibit good judgment of these matters, so I'll take your
word for it.  But I fail to see its usefulness as a default.

 If  is really read as ,  will still be read as , and
 it will not be possible to obtain \\.

Fine with me. 

 Another possibility is to read the empty string as the empty string
 instead of nil, that is

   #+attr_latex: :prop1 :prop2 1

I like the  better.  It works better with my intuitive logic.


–Rasmus


-- 
Hvor meget poesi tror De kommer ud af et glas isvand?




Re: [O] Enriched/Org is a colorful Org

2013-04-10 Thread Jambunathan K
Carsten Dominik carsten.domi...@gmail.com writes:

 On 10 apr. 2013, at 11:54, Suvayu Ali fatkasuvayu+li...@gmail.com wrote:

 On Wed, Apr 10, 2013 at 09:32:44AM +0530, Jambunathan K wrote:
 
 See Side note towards the end of this message
 
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14157#8
 
 
 This request is common enough; every time it comes up overlays are
 proposed as a solution.  It would be good if this is available even as a
 library outside of Org.

 Yes, overlays are better.  However, maybe I am just no getting it, but
 what is even the purpose of facemenu?  AFAICS, the faces are
 non-permanent, so when I save the file and reopen it, all the faces
 are gone.  I really cannot see a useful application for this.

Look up `enriched-mode' or just visit enriched.doc in `data-directory'
(/etc).

facemenu.el is internally used by `enriched-mode'.  Let the color markup
- encoding and decoding - be persisted by enriched mode.


 - Carsten



Re: [O] Using a table value within the text (dynamic variable)?

2013-04-10 Thread 'Mash (Thomas Herbert)
On 2013-04-10 13:16+0200, Sebastien Vauban wrote:
 'Mash Thomas Herbert wrote:
  I was wondering if it was possible at all to use like a variable within a
  document that would reference a table cell, and could then be
  dynamically updated when the table cell was?
 
  The reason I ask is that I would like to have have tabular data held
  in another document and then write my document referencing and
  including the data within the text, so I only have to change the
  external data and the document would be updated automatically.
 
  Example...
 
  #+TBLNAME: example
  |-+-|
  | Foo | Bar |
  |-+-|
  |  22 | 43  |
  |  44 | 54  |
  |-+-|
 
  Lorem ipsum dolor sit amet, @remote(example,B2) consectetur adipiscing 
  elit. Nullam
  vehicula lobortis sem, ut viverra lorem elementum quis. Etiam ac lacus
  eu ante molestie vehicula. Maecenas sed viverra sem. Proin mattis
  fermentum orci, sed tempus nibh feugiat eget.
 
  Would become...
 
  Lorem ipsum dolor sit amet, 43 consectetur adipiscing elit. Nullam
  vehicula lobortis sem, ut viverra lorem elementum quis. Etiam ac lacus
  eu ante molestie vehicula. Maecenas sed viverra sem. Proin mattis
  fermentum orci, sed tempus nibh feugiat eget.
 
  Thoughts?

 Use an Org Babel (inline) code block which extracts part of the table. See
 indexing variables.

 Best regards,
   Seb

 --
 Sebastien Vauban



OK thanks, I have never used Babel at all, but I believe I have found
the inline use.

src_lang[args]{code}

So I thought...

src_emacs-lisp[var: data=example-table[2:1]]{data}

But this does not work.

Two questions...

Am I right in saying even if I do get this to work, it would only
replace the inline code blocks (variables) on an export? It wouldn't work 
like a
hyperlink and translate and hide the code block underneath the
value?

Sorry I can't think of how to phrase that question better.



Re: [O] Enriched/Org is a colorful Org

2013-04-10 Thread Jambunathan K
Suvayu Ali fatkasuvayu+li...@gmail.com writes:

 On Wed, Apr 10, 2013 at 09:32:44AM +0530, Jambunathan K wrote:
 
 See Side note towards the end of this message
 
 http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14157#8
 

 This request is common enough; every time it comes up overlays are
 proposed as a solution.  It would be good if this is available even as a
 library outside of Org.

It is possible with little work of existing libraries.



Re: [O] Enriched/Org is a colorful Org

2013-04-10 Thread Jambunathan K

   ;; set up highlighting of special patterns for Org mode only
   (dolist (mode '(org-mode))
 (font-lock-add-keywords mode
  `((,lvn/highlight-org-regexps 1 'lvn/highlight-face prepend

hi-lock.el is for regexp based highlighting.

facemenu.el is for one-off, case-by-case highlighting.

If facemenu.el can be enhanced to use overlays and have it co-exist with
font lock based modes, one should be able to color code one's notes in a
text/org file and have it saved in a disk.

 Best regards,
   Seb



Re: [O] converting people to Emacs and org-mode

2013-04-10 Thread Doug Lewan
John,

Tutorials like the ones you mentioned would be very much appreciated.

After 5 months of learning about org-mode I am definitely still a noob. The 
manual looks great if you've already got a foot in the door, but for me it's 
been hard to know what direction to start learning in.

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

If the majority of cooking accidents happen in the kitchen, then why don't we 
just cook in other rooms?


-Original Message-
From: emacs-orgmode-bounces+dougl=shubertticketing@gnu.org 
[mailto:emacs-orgmode-bounces+dougl=shubertticketing@gnu.org] On Behalf Of 
John Hendy
Sent: Tuesday, 2013 April 09 18:27
To: 42 147
Cc: emacs-orgmode
Subject: Re: [O] converting people to Emacs and org-mode

On Tue, Apr 9, 2013 at 3:10 AM, 42 147 aeus...@gmail.com wrote:

 Hello mailing list,

 This might be considered off-topic.

 The question is the title: have you been able to convert many people to
 Emacs / org-mode? Are converts all programmers, or those versed in
 programming? -- Or have you converted non-programmers, e.g., anyone who
 edits text for a living?

I work at a large company with a fairly skewed age distribution (to
the upper end). Many just won't pick it up, but I definitely get some
head turns from others. I had a manager see me taking notes at a
meeting once and we went through the process of setting it up for him
on his computer. Windows idiosyncrasies do make the process harder for
really new users as it can be frustrating to both learn a completely
new program with finger-wrenching keystrokes *and* to constantly
troubleshoot the Windows-specific aspects of why that tutorial you
just tried to follow is not reproducible.

I've been meaning to make some tutorials trying to mimic real-life
use-cases that might justify picking up Org-mode. Some ideas:
- Walk through creation of a graph-heavy presentation in both PPT and
Org-mode/Beamer
   - Present the case where you get sent a couple additional data points
   - Show the tedious nature of updating the Excel data, updating all
plots, and copying/pasting into PPT
   - Show how if you update your csv you can simply re-export the Org
document and have them included

- Report writing
   - I have to write semi-annual reports on any projects
   - Word would require a lot of formatting stuff, assuming the data
you want is copy/pastable from other documents
   - *Everything* is in Org-mode for me (daily notes, reports, and
weekly team meeting presentations)
   - Show how I can easily copy/paste from Org docs into a report
while simply changing minimal text (mostly alignment and :width args)

- Notes/todo management (separate apps vs. having everything in one place)

- Just came up today: project management. I think showing MS Project
vs. Org + taskjuggler would be quite interesting for folks. If you're
already tracking todos in Org, making a project management tool out of
it is not that big of a step.

I think tutorials like this might help the process. In a lot of
instances, the initial interest gets hung up on Wait, *what* is the
program? as they try to wrestle with the mono-space font looking
program running. Making the sell, at least intuitively, might be a lot
easier if one could show Org compared to real-life common alternative
methods. The comfort folks have with their other methods is often
based on historical reasons and the sunk-cost fallacy.[1] There wasn't
a lot of reasoning that went into it -- it was simply taught as the
way and so that's what was adopted.

My company preaches Minitab as part of their Six Sigma/LEAN training.
I didn't want to leave Org, so I literally taught myself R so I
wouldn't have to be married to Minitab :)

Oh, and to your actual question (sorry for the digression), I'm a
Mechanical Engineer working in product development. I had one intro
level Java class in college and am certainly *not* a programmer. I
went on a quest for the perfect note-taking/todo manager at various
points in my working career (a short ~5 years at this point) and
learned Emacs specifically for Org-mode! I may be more geeky than
average compared to colleagues... but if you have a piece of software
that can get someone to learn Emacs just to use it... that's a win in
my book :)


John

P.S. I was using TiddlyWiki and the modified version, TeamTasks
(http://teamtasks.tiddlyspace.com) before and it took two attempts
before I finally stuck with Org.

[1] http://youarenotsosmart.com/2011/03/25/the-sunk-cost-fallacy/



Re: [O] New exporter and dates in tables

2013-04-10 Thread Nicolas Goaziou
Hello,

Carsten Dominik carsten.domi...@gmail.com writes:

 Some people throw in time stamps often while they work, just
 as a little label, indicating that they were working on this
 at a specific date, or that the entry was created on a specific
 date.  Many people I know have a hook that throws in such a
 time stamp in each new entry created.  This creates a lot of
 clutter when you print it, which is why you can turn off
 export of timestamps.

 That option was not meant for a contextual line like your
 first example.  If you use the time stamps in this way, you
 probably will not turn off timestamp export at all, you
 will just leave it on.  If you mix both ways of using
 time stamps - well, too bad.

 Tabular data is different because you certainly wanted
 that data in the table, so removing it will be confusing.

 Anyway, there's still another thing to ponder. Since everything in
 a table is data, what happens with tex:nil (LaTeX snippets)? Should
 this option also be ignored within a table? If not, how can we explain
 the difference with :nil?

 Tex macros are different.  This is an internal way of
 inserting special characters, and that syntax may get into
 your way in some specific projects.  Just like the fact
 that _ creates a subscript.  If you have to write text
 with lots of _ but you never mean a subscript, this can
 be really annoying.  So you can turn off subscripts as you
 can turn off interpretation of tex macros, as a convenience
 if the syntax gets in your way.  Then it should be turned
 off anywhere, table or not.

Fair enough. The following patch should do as decided in this thread.

WDYT?


Regards,

-- 
Nicolas Goaziou
From a2b4ef1ad24cbd816491122d0e969fecc6739377 Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou n.goaz...@gmail.com
Date: Wed, 10 Apr 2013 14:38:13 +0200
Subject: [PATCH] ox: Don't skip timestamps within tables

* lisp/ox.el (org-export--skip-p): Never skip a timestamp within
  a table.
(org-export-with-timestamps): Update docstring accordingly.
* testing/lisp/test-ox.el: Add test.
---
 lisp/ox.el  | 32 +++-
 testing/lisp/test-ox.el |  7 ++-
 2 files changed, 25 insertions(+), 14 deletions(-)

diff --git a/lisp/ox.el b/lisp/ox.el
index 7f33755..a9667d9 100644
--- a/lisp/ox.el
+++ b/lisp/ox.el
@@ -721,6 +721,9 @@ It can be set to `active', `inactive', t or nil, in order to
 export, respectively, only active timestamps, only inactive ones,
 all of them or none.
 
+This variable has no effect on timestamps within tables, which
+will always be exported.
+
 This option can also be set with the OPTIONS keyword, e.g.
 \:nil\.
   :group 'org-export-general
@@ -2013,19 +2016,22 @@ a tree with a select tag.
 	  (not (org-export-get-previous-element blob options
 (table-row (org-export-table-row-is-special-p blob options))
 (timestamp
- (case (plist-get options :with-timestamps)
-   ;; No timestamp allowed.
-   ('nil t)
-   ;; Only active timestamps allowed and the current one isn't
-   ;; active.
-   (active
-	(not (memq (org-element-property :type blob)
-		   '(active active-range
-   ;; Only inactive timestamps allowed and the current one isn't
-   ;; inactive.
-   (inactive
-	(not (memq (org-element-property :type blob)
-		   '(inactive inactive-range
+ ;; Timestamps in tables are not affected by `:with-timestamps'.
+ (unless (eq (org-element-type (org-export-get-parent-element blob))
+		 'table-row)
+   (case (plist-get options :with-timestamps)
+	 ;; No timestamp allowed.
+	 ('nil t)
+	 ;; Only active timestamps allowed and the current one isn't
+	 ;; active.
+	 (active
+	  (not (memq (org-element-property :type blob)
+		 '(active active-range
+	 ;; Only inactive timestamps allowed and the current one isn't
+	 ;; inactive.
+	 (inactive
+	  (not (memq (org-element-property :type blob)
+		 '(inactive inactive-range)
 
 
 ;;; The Transcoder
diff --git a/testing/lisp/test-ox.el b/testing/lisp/test-ox.el
index 6203f8b..0900037 100644
--- a/testing/lisp/test-ox.el
+++ b/testing/lisp/test-ox.el
@@ -408,7 +408,12 @@ Paragraph
 	  2012-04-29 sun. 10:45\n))
   (should
(equal (org-export-as 'test nil nil nil '(:with-timestamps inactive))
-	  [2012-04-29 sun. 10:45]\n)
+	  [2012-04-29 sun. 10:45]\n
+  (should
+   (equal | [2012-03-29 Thu] |\n
+	  (org-test-with-temp-text | [2012-03-29 Thu] |
+	(org-test-with-backend test
+	  (org-export-as 'test nil nil nil '(:with-timestamps nil)))
 
 (ert-deftest test-org-export/comment-tree ()
   Test if export process ignores commented trees.
-- 
1.8.2.1



Re: [O] Some %elements in org-html-postamble-format became too generous

2013-04-10 Thread Nicolas Goaziou
Hello,

Rick Frankel r...@rickster.com writes:

 On Sun, Apr 07, 2013 at 09:00:27PM +0200, Nicolas Goaziou wrote:
 Hello,
 
 Rick Frankel r...@rickster.com writes:
 
  On Sun, Apr 07, 2013 at 08:32:34PM +0200, Nicolas Goaziou wrote:
  Dieter Wilhelm die...@duenenhof-wilhelm.de writes:
   Or just using a default time string format which is language
   independent, like %Y-%m-%d.
  
  There's `org-html--timestamp-format', which is used for all timestamps
  in preamble, postamble and metadata. It's clearly an internal variable.
  I don't know if it is used because the format is required or because it
  saves copying over the same format string.
  
  Since I don't know the intent behind this, I can't tell if it could be
  made a defcustom.
 
  It was created just localize the definition. I see no reason not to
  make it a defcustom.
 
 Then what about this patch?

 Works for me.

Applied. Thank you.


Regards,

-- 
Nicolas Goaziou



Re: [O] Using a table value within the text (dynamic variable)?

2013-04-10 Thread Sebastien Vauban
'Mash Thomas Herbert wrote:
 OK thanks, I have never used Babel at all, but I believe I have found
 the inline use.

 src_lang[args]{code}

 So I thought...

 src_emacs-lisp[var: data=example-table[2:1]]{data}

 But this does not work.

  src_emacs-lisp[:var data=example-table[2,1]]{data}  should work (untested)
 ^^
 Two questions...

 Am I right in saying even if I do get this to work, it would only
 replace the inline code blocks (variables) on an export?

AFAIK, yes -- I've never really used inline code blocks.

But I think you could intermix real code blocks within paragraphs, if you
don't insert any blank line (= paragraph separator).

Or have a real block doing the work, exposing the answer in your Org buffer,
and have an inline code block to echo the answer.

 It wouldn't work like a hyperlink and translate and hide the code block
 underneath the value?

From what I understand from your question, no.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] New exporter and dates in tables

2013-04-10 Thread Carsten Dominik
This looks good to me - with my limited understanding of the exporter lingo.

Thanks!

- Carsten

On 10 apr. 2013, at 14:43, Nicolas Goaziou n.goaz...@gmail.com wrote:

 Hello,
 
 Carsten Dominik carsten.domi...@gmail.com writes:
 
 Some people throw in time stamps often while they work, just
 as a little label, indicating that they were working on this
 at a specific date, or that the entry was created on a specific
 date.  Many people I know have a hook that throws in such a
 time stamp in each new entry created.  This creates a lot of
 clutter when you print it, which is why you can turn off
 export of timestamps.
 
 That option was not meant for a contextual line like your
 first example.  If you use the time stamps in this way, you
 probably will not turn off timestamp export at all, you
 will just leave it on.  If you mix both ways of using
 time stamps - well, too bad.
 
 Tabular data is different because you certainly wanted
 that data in the table, so removing it will be confusing.
 
 Anyway, there's still another thing to ponder. Since everything in
 a table is data, what happens with tex:nil (LaTeX snippets)? Should
 this option also be ignored within a table? If not, how can we explain
 the difference with :nil?
 
 Tex macros are different.  This is an internal way of
 inserting special characters, and that syntax may get into
 your way in some specific projects.  Just like the fact
 that _ creates a subscript.  If you have to write text
 with lots of _ but you never mean a subscript, this can
 be really annoying.  So you can turn off subscripts as you
 can turn off interpretation of tex macros, as a convenience
 if the syntax gets in your way.  Then it should be turned
 off anywhere, table or not.
 
 Fair enough. The following patch should do as decided in this thread.
 
 WDYT?
 
 
 Regards,
 
 -- 
 Nicolas Goaziou
 From a2b4ef1ad24cbd816491122d0e969fecc6739377 Mon Sep 17 00:00:00 2001
 From: Nicolas Goaziou n.goaz...@gmail.com
 Date: Wed, 10 Apr 2013 14:38:13 +0200
 Subject: [PATCH] ox: Don't skip timestamps within tables
 
 * lisp/ox.el (org-export--skip-p): Never skip a timestamp within
  a table.
 (org-export-with-timestamps): Update docstring accordingly.
 * testing/lisp/test-ox.el: Add test.
 ---
 lisp/ox.el  | 32 +++-
 testing/lisp/test-ox.el |  7 ++-
 2 files changed, 25 insertions(+), 14 deletions(-)
 
 diff --git a/lisp/ox.el b/lisp/ox.el
 index 7f33755..a9667d9 100644
 --- a/lisp/ox.el
 +++ b/lisp/ox.el
 @@ -721,6 +721,9 @@ It can be set to `active', `inactive', t or nil, in order 
 to
 export, respectively, only active timestamps, only inactive ones,
 all of them or none.
 
 +This variable has no effect on timestamps within tables, which
 +will always be exported.
 +
 This option can also be set with the OPTIONS keyword, e.g.
 \:nil\.
   :group 'org-export-general
 @@ -2013,19 +2016,22 @@ a tree with a select tag.
 (not (org-export-get-previous-element blob options
 (table-row (org-export-table-row-is-special-p blob options))
 (timestamp
 - (case (plist-get options :with-timestamps)
 -   ;; No timestamp allowed.
 -   ('nil t)
 -   ;; Only active timestamps allowed and the current one isn't
 -   ;; active.
 -   (active
 - (not (memq (org-element-property :type blob)
 -'(active active-range
 -   ;; Only inactive timestamps allowed and the current one isn't
 -   ;; inactive.
 -   (inactive
 - (not (memq (org-element-property :type blob)
 -'(inactive inactive-range
 + ;; Timestamps in tables are not affected by `:with-timestamps'.
 + (unless (eq (org-element-type (org-export-get-parent-element blob))
 +  'table-row)
 +   (case (plist-get options :with-timestamps)
 +  ;; No timestamp allowed.
 +  ('nil t)
 +  ;; Only active timestamps allowed and the current one isn't
 +  ;; active.
 +  (active
 +   (not (memq (org-element-property :type blob)
 +  '(active active-range
 +  ;; Only inactive timestamps allowed and the current one isn't
 +  ;; inactive.
 +  (inactive
 +   (not (memq (org-element-property :type blob)
 +  '(inactive inactive-range)
 
 
 ;;; The Transcoder
 diff --git a/testing/lisp/test-ox.el b/testing/lisp/test-ox.el
 index 6203f8b..0900037 100644
 --- a/testing/lisp/test-ox.el
 +++ b/testing/lisp/test-ox.el
 @@ -408,7 +408,12 @@ Paragraph
 2012-04-29 sun. 10:45\n))
   (should
(equal (org-export-as 'test nil nil nil '(:with-timestamps inactive))
 -   [2012-04-29 sun. 10:45]\n)
 +   [2012-04-29 sun. 10:45]\n
 +  (should
 +   (equal | [2012-03-29 Thu] |\n
 +   (org-test-with-temp-text | [2012-03-29 Thu] |
 + (org-test-with-backend test
 +   (org-export-as 'test nil nil nil '(:with-timestamps nil)))
 
 (ert-deftest test-org-export/comment-tree ()
   

[O] [PATCH] org-contacts.el, add alias properties

2013-04-10 Thread Feng Shu
From 27f65b3939ca60ec7abf7d066b3aadfff44396a8 Mon Sep 17 00:00:00 2001
From: Feng Shu tuma...@gmail.com
Date: Wed, 10 Apr 2013 21:05:15 +0800
Subject: [PATCH] org-contacts.el, add name alias property.

* contrib/lisp/org-contacts.el (org-contacts-alias-property): add new
  varible
  (org-contacts-matcher): add org-contacts-alias-property to this list

Name alias is a very useful feature, especially for CJK users.
---
 contrib/lisp/org-contacts.el |7 +++
 1 个文件被修改,插入 7 行(+)

diff --git a/contrib/lisp/org-contacts.el b/contrib/lisp/org-contacts.el
index 65eeea8..a3c4aed 100644
--- a/contrib/lisp/org-contacts.el
+++ b/contrib/lisp/org-contacts.el
@@ -81,6 +81,12 @@ When set to nil, all your Org files will be used.
   :type 'string
   :group 'org-contacts)
 
+(defcustom org-contacts-alias-property ALIAS
+  Name of the property for contact name alias.
+  :type 'string
+  :group 'org-contacts)
+
+
 (defcustom org-contacts-birthday-format Birthday: %l (%Y)
   Format of the anniversary agenda entry.
 The following replacements are available:
@@ -129,6 +135,7 @@ The following replacements are available:
 
 (defcustom org-contacts-matcher
   (mapconcat 'identity (list org-contacts-email-property
+			 org-contacts-alias-property
 			 org-contacts-tel-property
 			 org-contacts-address-property
 			 org-contacts-birthday-property)
-- 
1.7.10.4



-- 


Re: [O] New exporter and dates in tables

2013-04-10 Thread Bastien
Hi all,

Note that Org 8.0-pre comes with a new export option
`org-export-with-planning' which handles the export of
SCHEDULED / DEADLINE / CLOSED time-stamps.

This used to be the job of org-export-with-timestamps.

I guess many people who used (setq org-export-with-timestamps nil)
now want (setq org-export-with-planning nil) and which works well
with (setq org-export-with-timestamps 'inactive).

So I'm wondering: would the setup above spare us with this exception?

I know people sometimes throw inactive time-stamps, but those small
indications would better fit in a commented line.

WDYT?

Best,

-- 
 Bastien



Re: [O] [PATCH] org-contacts.el, add alias properties

2013-04-10 Thread Bastien
Hi Feng,

Feng Shu tuma...@gmail.com writes:

 From 27f65b3939ca60ec7abf7d066b3aadfff44396a8 Mon Sep 17 00:00:00 2001
 From: Feng Shu tuma...@gmail.com
 Date: Wed, 10 Apr 2013 21:05:15 +0800
 Subject: [PATCH] org-contacts.el, add name alias property.

 * contrib/lisp/org-contacts.el (org-contacts-alias-property): add new
   varible
   (org-contacts-matcher): add org-contacts-alias-property to this list

Applied, thanks.

-- 
 Bastien



Re: [O] blank todo kw does not delete closed ts

2013-04-10 Thread Bastien
Hi Samuel,

Samuel Wales samolog...@gmail.com writes:

 Changing a doneified entry to blank todo state leaves a
 closed ts.

 #+BEGIN_SRC org
   ,* DONE doneify
   CLOSED: [2013-04-09 Tue 14:11]
   ,* now change to blank todo kw -- notice the closed ts
   CLOSED: [2013-04-09 Tue 14:11]
 #+END_SRC

 Perhaps it would be more intuitive for newcomers, and safer
 for expiry searches like +CLOSED\-1m\ where not
 everybody thinks to try to match all done todo keywords (not
 even sure what the convention is for that), to remove the
 ts.

I'm not sure about this one.  Seems logical to keep the CLOSED
information for tasks that have been done once and that do not
have (new) active TODO keywords yet.

-- 
 Bastien



Re: [O] converting people to Emacs and org-mode

2013-04-10 Thread Bastien
Hi,

42 147 aeus...@gmail.com writes:

 However, on the issue of tutorials, I did save my entire IM logs. It might
 be an interesting presentation technique -- to read a real, natural
 step-by-step working through of Emacs with someone completely computer
 illiterate.

I would love to read something like this!

One of my favorite Go books is Kage's Secret Chronicles of Handicap
Go.  This is a dialogue between two Go players with different tastes
and styles, weaknesses and strengths.  Readers are always entertained
and learn a lot, just because the informal chatting contains so much
useful (though indirect) information on how players reads the game.

http://www.amazon.com/Kages-Secret-Chronicles-Handicap-Go/dp/0870403869

IM logs on learning Org might tell a lot on how users reads their
Emacs/Org interface.

Good idea :)

-- 
 Bastien



Re: [O] Is there a limit to number of entries in org-feed.el?

2013-04-10 Thread Bastien
Memnon Anon gegendosenflei...@googlemail.com writes:

 So, I can see no upper limit in the code at a first glance, and even if
 there is one, it's not 70.

I guess the upper limit is from the RSS feed itself: for dynamically
created feed, it makes sense to have a limit.

2 cents,

-- 
 Bastien



Re: [O] org-babel: two confirmations for org/HTML macro?

2013-04-10 Thread Bastien
Hi Stefan,

Stefan Vollmar voll...@nf.mpg.de writes:

 When exporting this code (new exporter), I need two confirmations:

 Evaluate this org code block (html-ex1)...
 Evaluate this emacs-lisp block...

 I can understand the first question, but why the second?

A mystery to me too, perhaps either Eric or Nicolas may explain.

 What is the best way to safely auto-confirm for this simple
 application?

Setting `org-confirm-babel-evaluate' locally to nil?

HTH,

-- 
 Bastien



Re: [O] minor bug in babel with silent output and remote R session

2013-04-10 Thread Bastien
Hi Thomas,

thanks for the follow-up.

Thomas Alexander Gerds t...@biostat.ku.dk writes:

 I think that I can describe the problem a bit better now. It is not
 related to the silent option but occurs whenever :results value.

 Emacs freezes due to the following line in
 org-babel-comint-eval-invisibly-and-wait-for-file 

 (while (not (file-exists-p file)) (sit-for (or period 0.25)))

 it seems that R cannot transfer the file and hence this is an endless
 loop.

I'm not knowledgeable enough in this area to provide a fix, maybe
someone else will.

Best,

-- 
 Bastien



Re: [O] need a org-contacts feature

2013-04-10 Thread Torsten Wagner
Hi,

do I understand correct, that you want to enter the pinyin transcription to
search for the desired hànzì?
Not sure whether this is possible. I guess you are aware of the emacs input
methods?!
A dictionary method like you describe might be doable with yasnippet.
http://capitaomorte.github.io/yasnippet/

However, it would only be practical for the most common words.

Hope that helps a bit

Greetings

Torsten


On 9 April 2013 12:10, Feng Shu tuma...@gmail.com wrote:


 org-contacts is very useful, but it can't be work well with CJK users
 for CJK input method, I need a feature like this:

 1. If I search  string 你好 ,the result will be: 你好

 2. if  I  have a dict function in which there is  '(nihao 你好) or
 '(nh 你好)

 3. the feature I expect is like:  when I search nihao or nh ,the
 result will be 你好


 Thanks





 --




Re: [O] Using a table value within the text (dynamic variable)?

2013-04-10 Thread 'Mash (Thomas Herbert)
On 2013-04-10 15:07+0200, Sebastien Vauban wrote:
 'Mash Thomas Herbert wrote:
  OK thanks, I have never used Babel at all, but I believe I have found
  the inline use.
 
  src_lang[args]{code}
 
  So I thought...
 
  src_emacs-lisp[var: data=example-table[2:1]]{data}
 
  But this does not work.

   src_emacs-lisp[:var data=example-table[2,1]]{data}  should work (untested)
  ^^
  Two questions...
 
  Am I right in saying even if I do get this to work, it would only
  replace the inline code blocks (variables) on an export?

 AFAIK, yes -- I've never really used inline code blocks.

 But I think you could intermix real code blocks within paragraphs, if you
 don't insert any blank line (= paragraph separator).

 Or have a real block doing the work, exposing the answer in your Org buffer,
 and have an inline code block to echo the answer.

  It wouldn't work like a hyperlink and translate and hide the code block
  underneath the value?

 From what I understand from your question, no.

 Best regards,
   Seb

 --
 Sebastien Vauban



Thanks for the correction, this works.

src_emacs-lisp[:var data=example[1,1]]{data}

Nice point about separating one code block to do the work and the
inline to echo.

Thinking through this the whole thing, it may be an overkill for my
needs. I am rather going to just use tables in the text to represent
data, rather than describe it directly in a paragraph. As always
though, Org and Babel prove themselves again in terms of possibility.

Thanks again,

'Mash



Re: [O] [BUG?] org-clone-subtree-with-time-shift

2013-04-10 Thread Bastien
Hi David,

David Rogers davidandrewrog...@gmail.com writes:

 Is this something where the default has been changed recently?

This behavior is new in 8.0-pre -- when in doubts, check the next
release notes:

  http://orgmode.org/Changes.html

I'm still in the process of completing these notes for the next
release, but this is a good start.

HTH,

-- 
 Bastien



Re: [O] need a org-contacts feature

2013-04-10 Thread Feng Shu
Torsten Wagner torsten.wag...@gmail.com writes:

 Hi,

 do I understand correct, that you want to enter the pinyin
 transcription to search for the desired hànzì?

It's right, but want I want to know is: how to hook this kind of 
function into org-contacts.el.

But I find a simple way: add alias properties to org-contacts.el

#+begin_example
* 你好
 :PROPERTIES: 
 :ALIAS: nh
 :EMAIL: 601651...@qq.com
 :PHONE: 15133912738 
#+end_example

When I search 'nh' ,I can get 你好 contact



 Not sure whether this is possible. I guess you are aware of the emacs
 input methods?!

I have found a function that can transcript hanzi to pinyin

 A dictionary method like you describe might be doable with yasnippet. 
 http://capitaomorte.github.io/yasnippet/

 However, it would only be practical for the most common words.

 Hope that helps a bit

 Greetings

 Torsten

 On 9 April 2013 12:10, Feng Shu tuma...@gmail.com wrote:

 org-contacts is very useful, but it can't be work well with CJK
 users
 for CJK input method, I need a feature like this:
 
 1. If I search string 你好 ,the result will be: 你好
 
 2. if I have a dict function in which there is '(nihao 你好)
 or '(nh 你好)
 
 3. the feature I expect is like: when I search nihao or nh ,
 the result will be 你好
 
 
 Thanks
 
 
 
 
 
 --

-- 



Re: [O] Bug: org-agenda-undo does not work on repeated tasks [7.9.3d (7.9.3d-dist @ /home/wlin/.emacs-lisp/org/lisp/)]

2013-04-10 Thread Bastien
Hi Wanrong,

Wanrong Lin wrg...@gmail.com writes:

 Emacs  : GNU Emacs 23.3.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.5)
  of 2011-08-14 on allspice, modified by Debian
 Package: Org-mode version 7.9.3d (7.9.3d-dist @
 /home/myth/.emacs-lisp/org/lisp/)

 To reproduce:

 In an org agenda buffer, mark a task as done. Then, run org-agenda-undo. If
 the task is a repeated task like this:

 * TODO A weekly repeated task
   SCHEDULED: 2013-03-03 Sun +1w

 After mark a task as done from the agenda buffer, it becomes:

 * TODO A weekly repeated task
   SCHEDULED: 2013-03-10 Sun +1w
   :LOGBOOK:
   - State DONE   from TODO   [2013-03-03 Sun 12:43]
   :END:
   :PROPERTIES:
   :LAST_REPEAT: [2013-03-03 Sun 12:43]
   :END:

 Then, if I run org-agenda-undo (with C-z) in agenda buffer,

 * TODO A weekly repeated task
   SCHEDULED: 2013-03-10 Sun +1w
   :LOGBOOK:
   :END:
   :PROPERTIES:
   :LAST_REPEAT: [2013-03-03 Sun 12:43]
   :END:

 As you can see, the LOGBOOK changed, but the SCHEDULED time did not go back
 to the original.

 Thanks for looking into it.

Thanks a lot for reporting this obscure bug.  It is now fixed.

-- 
 Bastien



Re: [O] phone links...

2013-04-10 Thread Michael Strey
FYI, I just posted the following mail to the MobileOrg mailing list.

,
| Hello,
| 
| I'm using a contact data base inspired by org-contacts, where contact
| details are stored in the properties drawer.
| 
| First question: Are there any plans to show drawer content in the MobileOrg
| read view (not only in the edit view)?
| 
| The contact details contain phone numbers as well.  Recently we had some
| discussion about phone links in the Org-Mode mailing list.  This inspired
| me to make a little test with various forms of links and phone numbers.
| 
| I synchronised the following contact with MobileOrg.
| 
| #+BEGIN_SRC org
| ** Surname, Name
| :PROPERTIES:
| :EMAIL:te...@test.de; n...@test.de
| :PHONE:+493514129535; +491766626196
| :END:
| 
| Visible as link and working:
| [[tel:+493514129535][+49 (0)351 41295-35]]
| [[tel:+49 (351) 41295-35][+49 (0)351 41295-35]]
| 
| Visible as link but not working:
| [[phone:+493514129535][+49 (0)351 41295-35]]
| 
| Not recognized as links by MobileOrg:
| [[tel:+49 351 4129535]]
| [[tel:+493514129535]]
| [[phone:+49 351 4129535]]
| [[phone:+49 (351) 4129535]]
| [[phone:+493514129535]]
| 
| Not working:
| +493514129535
| +49 351 4129535
| +49 351 41295-35
| +49 (351) 4129535
| #+END_SRC
| 
| In MobileOrg some of the above links are displayed as links and some not.
| The links with the key tel: lead me to the phone application on my
| smartphone, those with the key phone don't.  Pure numbers sometimes lead
| to the phone app but only parts of the complete number are transmitted.
| 
| What is the reason for the tel: links working and the phone: links not?
| AFAIK non of them is supported yet by Org-Mode.
`


-- 
Michael Strey 
www.strey.biz



[O] js-info problem

2013-04-10 Thread J. David Boyd
I see an error in my message buffer when starting up:

Problems while trying to load feature `org-jsinfo'.

Any ideas how to fix this?  I can't even find an org-jsinfo in the org source
directory.

Dave




Re: [O] js-info problem

2013-04-10 Thread Bastien
Hi David,

da...@adboyd.com (J. David Boyd) writes:

 I see an error in my message buffer when starting up:

 Problems while trying to load feature `org-jsinfo'.

 Any ideas how to fix this?  I can't even find an org-jsinfo in the org source
 directory.

There is no org-jsinfo.el file in Org 8.0, so you need to remove 
(require 'org-jsinfo) from your configuration if you use Org 8.0.

-- 
 Bastien



Re: [O] Enriched/Org is a colorful Org

2013-04-10 Thread Eli Zaretskii
 From: Carsten Dominik carsten.domi...@gmail.com
 Date: Wed, 10 Apr 2013 12:16:28 +0200
 Cc: emacs-orgmode@gnu.org
 
 
 On 10 apr. 2013, at 11:54, Suvayu Ali fatkasuvayu+li...@gmail.com wrote:
 
  On Wed, Apr 10, 2013 at 09:32:44AM +0530, Jambunathan K wrote:
  
  See Side note towards the end of this message
  
 http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14157#8
  
  
  This request is common enough; every time it comes up overlays are
  proposed as a solution.  It would be good if this is available even as a
  library outside of Org.
 
 Yes, overlays are better.

I beg the Org developers to please be very careful when introducing
expensive display features such as overlays into Org.  Org already
puts the Emacs display engine to its limits in many of its popular
features; adding overlays to this mess might be too much.

I don't know enough about Org to understand why overlays are being
considered instead of text properties, but feel free to describe the
issues (preferably on emacs-devel) and start a discussion about the
possible alternatives.



Re: [O] [ox-html] bug in documentation of org-html-table-row-tags

2013-04-10 Thread Achim Gratz
Nicolas Goaziou writes:
 Sorry, but using this has quadratic complexity with the number of
 rows...

 That's true. But that doesn't matter unless you plan to export thousand
 row tables. Anyway, patches welcome.

I've been thinking about this… the way I currently see it is that the
row-number should be a property of the table-row, just like the
rwo-group is.


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

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




Re: [O] org-agenda-write taking very long (probably because of babel)

2013-04-10 Thread Bastien
Hi Karl and Achim,

Achim Gratz strom...@nexgo.de writes:

 I have worked with Karl to try and find what caused this change in
 behaviour and it wasn't anything to do with my patch or even recently,
 but the switch from the old to the new exporter framework for producing
 the iCalendar files.  The patch in question is buried in commit
 0a01e52aa1:

This is now fixed, thanks.

-- 
 Bastien



Re: [O] Enriched/Org is a colorful Org

2013-04-10 Thread Jambunathan K
Eli Zaretskii e...@gnu.org writes:

 I beg the Org developers to please be very careful when introducing
 expensive display features such as overlays into Org.  Org already
 puts the Emacs display engine to its limits in many of its popular
 features; adding overlays to this mess might be too much.

We shouldn't be afraid of building a prototype or release the feature
with a warning you are on your own.

 I don't know enough about Org to understand why overlays are being
 considered instead of text properties, but feel free to describe the
 issues (preferably on emacs-devel) and start a discussion about the
 possible alternatives.

From Org side of things, it is the rigidity of Org syntax wrt emphasis
etc.  From user side of things, an ability to color code his notes (and
possibly create an exported document that retains those highlights.)

The intention is to really keep the discussion moving and see what comes
out of it.



Re: [O] [ox-latex] Bad default value for image width?

2013-04-10 Thread Nicolas Goaziou
Hello,

Rasmus ras...@gmx.us writes:

 Set `org-latex-image-default-width' to .

 But as my second email shows this still doesn't work with
 captions. . .

 This exmample:

 #+BEGIN_SRC org
 #+BEGIN_SRC emacs-lisp
 (make-local-variable 'org-latex-image-default-width)
 (setq org-latex-image-default-width )
 #+END_SRC

 #+NAME:firm-ts-fig
 #+CAPTION: test
 [[file:figs/test.tikz]]

 no caption
 [[file:figs/test.tikz]]
 #+END_SRC

The problem is different here. More on this below.

 This wouldn't help to solve the general problem. Though, you can change
 it in your config to something else, as suggested above.

 I have.  But I don't think it's a sensible default.  It's against what
 your usual stand of Org not trying to be too clever.  You would also
 not put tables in resize boxes to make them fit on the page.

This is different. You always build tables from LaTeX so they are, in
a way, normalized. On the other hand, images can be imported from
various sources, with different sizes and resolutions.

 I think this is the solution to a general problem.  But I still find
 the default width to be wrong.  It only works as intended when I have
 a slightly too large picture.  And then, if anything, I'd want full
 page width.  

 It's a bad default for
   - Picture smaller than textwidth
   - Picture crafted to the document which shouldn't have a width.

 It's a decent solution for 
   - pictures which are unintentionally larger than textwidth.  But IMO
 it's my responsibility, and not Org's, to fix these
 images/situations.

Exactly.

I'm not selling you the default value as the perfect solution: it isn't,
obviously. I even agree that in most situations, no default value is
better.

However, in my experience, the worst situation is the image (much)
larger than textwidth, which makes it difficult to even read the
produced document. It isn't as bad for enlarged small pictures.

So, the current default is good to control the worst case. And since
there is no decent solution in all situations, it makes sense here.
I think the same applies to default wrap width (.48\textwidth), which
ensures that the display will be coherent.

Now, the .7\textwidth for floats is harder to explain. I don't feel
very strong about it, and I don't mind removing it (meaning
`org-latex-image-default-width' would also apply
 to floats).

 If  is really read as ,  will still be read as , and
 it will not be possible to obtain \\.

 Fine with me. 

 Another possibility is to read the empty string as the empty string
 instead of nil, that is

   #+attr_latex: :prop1 :prop2 1

 I like the  better.  It works better with my intuitive logic.

I have pushed a patch which should fix your initial problem about :width
 not being taken into account.  Could you confirm the new behaviour
works as expected?


Regards,

-- 
Nicolas Goaziou



[O] Is Mobile Org for iPhone dead?

2013-04-10 Thread Bill Day
Just wondering.

-- 
Bill Day
williamson@gmail.com


Re: [O] Is Mobile Org for iPhone dead?

2013-04-10 Thread Bastien
Hi Bill,

Bill Day williamson@gmail.com writes:

 Just wondering.

http://article.gmane.org/gmane.emacs.orgmode/70148

-- 
 Bastien



Re: [O] Org as a static site generator

2013-04-10 Thread Bastien
'Mash (Thomas Herbert) mash...@toshine.net writes:

 I rolled my own called Orgile.

 http://toshine.org/etc/orgile-emacs-org-mode-file-html-parser-php-publishing-tool/

Oh, nice!  I added a pointer in Worg:
http://orgmode.org/worg/org-tools/index.html

-- 
 Bastien



Re: [O] [ox-html] bug in documentation of org-html-table-row-tags

2013-04-10 Thread Nicolas Goaziou
Hello,

Achim Gratz strom...@nexgo.de writes:

 Nicolas Goaziou writes:
 Sorry, but using this has quadratic complexity with the number of
 rows...

 That's true. But that doesn't matter unless you plan to export thousand
 row tables. Anyway, patches welcome.

 I've been thinking about this… the way I currently see it is that the
 row-number should be a property of the table-row, just like the
 rwo-group is.

The row-group isn't a property of the table-row. It is computed in
`org-export-table-row-group'.

A simple optimization would be to memoize row numbers. But, as I stated
earlier, this is not the bottleneck here. Huge tables are not, IMO,
common enough to justify this.


Regards,

-- 
Nicolas Goaziou



Re: [O] org babel problems with (org-babel-read *R*)

2013-04-10 Thread Thomas Alexander Gerds

works again. thanks very much for fixing this so quickly! 


Eric Schulte schulte.e...@gmail.com writes:

 Charles Berry ccbe...@ucsd.edu writes:

 Thomas Alexander Gerds tag at biostat.ku.dk writes:

 
 
 after upgrading to the latest bleeding edge version I have problems
 executing org-babel R blocks where the session is named *R*. the
 error is this:
 
 ELISP (org-babel-read *R*) *** Eval error *** Symbol's value as
 variable is void: *R*
 
 did I miss any conventions or is this a bug?
 
 This commit
 http://orgmode.org/cgit.cgi/org-mode.git/commit
 /?id=bde2348c9ecc87972d21a46a91d73ad3916650b8
 broke all my :session *R* headers.
 But :session *R* works.
 C-h f org-babel-read should mention *XYZ* is treated as lisp.
 Maybe (org-babel-read \*R*\) works for you.
 Or I suppose you could hack this with (setq *R* *R*)
 HTH,



 I just pushed up a fix.  Sorry for the bug.
--
Thomas A. Gerds -- Assoc. Prof. Department of Biostatistics
University of Copenhagen, Øster Farimagsgade 5, 1014 Copenhagen, Denmark
Office: CSS-15.2.07 (Gamle Kommunehospital)
tel: 35327914 (sec: 35327901) 



Re: [O] Enriched/Org is a colorful Org

2013-04-10 Thread Eli Zaretskii
 From: Jambunathan K kjambunat...@gmail.com
 Cc: Carsten Dominik carsten.domi...@gmail.com,  emacs-orgmode@gnu.org
 Date: Wed, 10 Apr 2013 22:13:46 +0530
 
 Eli Zaretskii e...@gnu.org writes:
 
  I beg the Org developers to please be very careful when introducing
  expensive display features such as overlays into Org.  Org already
  puts the Emacs display engine to its limits in many of its popular
  features; adding overlays to this mess might be too much.
 
 We shouldn't be afraid of building a prototype or release the feature
 with a warning you are on your own.

Fear has nothing to do with this.  Good software design takes into
consideration the particulars and the limitation of the
infrastructure, and tries to avoid limitations and weak spots in that
infrastructure.  Building a house on shaky ground is silly; at best it
is waste of effort.

 From Org side of things, it is the rigidity of Org syntax wrt emphasis
 etc.  From user side of things, an ability to color code his notes (and
 possibly create an exported document that retains those highlights.)

I meant technical details.  The above is too high-level to be useful.

 The intention is to really keep the discussion moving and see what comes
 out of it.

My intent was to advise people not to go in directions that can hardly
be fruitful.  Of course, if they want to...



Re: [O] [ox-latex] Bad default value for image width?

2013-04-10 Thread Rasmus

Nicolas,

Nicolas Goaziou n.goaz...@gmail.com writes:

 It's a bad default for
   - Picture smaller than textwidth
   - Picture crafted to the document which shouldn't have a width.

 It's a decent solution for 
   - pictures which are unintentionally larger than textwidth.  But IMO
 it's my responsibility, and not Org's, to fix these
 images/situations.

 Exactly.

 I'm not selling you the default value as the perfect solution: it isn't,
 obviously. I even agree that in most situations, no default value is
 better.

Agree.

 However, in my experience, the worst situation is the image (much)
 larger than textwidth, which makes it difficult to even read the
 produced document. It isn't as bad for enlarged small pictures.

Perhaps.  I'm not convinced.  If the float width is removed I can
change the default and never be affected by these design choices and
it's all good.

 Now, the .7\textwidth for floats is harder to explain. I don't feel
 very strong about it, and I don't mind removing it (meaning
 `org-latex-image-default-width' would also apply
  to floats).

Using org-latex-image-default-width is more reasonable IMO.  Then at
least there won't be any 'nasty' surprises when adding caption and for
me I can set the default width to  and be done with it.

For people who use it it might also be reasonable to introduce a
org-latex-wrap-image-default-width or making
org-latex-image-default-width a list ordered by type of element/float
type.

E.g. '((float . .9\\textwidth) (wrap . .5\\textwidth)). . . 

 I like the  better.  It works better with my intuitive logic.

 I have pushed a patch which should fix your initial problem about :width
  not being taken into account.  Could you confirm the new behaviour
 works as expected?

I'll check it out and report back.  I can't access git from this
network (high port numbers are blocked for security reasons) so I'll
only try it out later.

Thanks,
Rasmus.

-- 
Hooray!




Re: [O] Attributes on HTML tables?

2013-04-10 Thread François Pinard
Christian Moe m...@christianmoe.com writes:

 XHTML is also fussy about quoting attribute values, and about escaping
 special characters as HTML entities, including the ampersand (), and
 including inside attribute values.  I'm guessing the exporter already
 does the right thing here.

Org can of course take care of XTHML fussiness, there is likely no
problem there.

While on this subject! :-)

Could Org allow the output of HTML5 rather than XHTML, under the control
of some option?  I've read that some frameworks really expect HTML5 to
work properly, such an option might ease inter-operation between
exported Org and such frameworks.

François



[O] evil-mode movement keys in the agenda?

2013-04-10 Thread Marcelo de Moraes Serpa
Hi list,

Is there a way to setup the movement keys in the agenda to hjkl? I use
evil-mode with my org files, and when I open the agenda, I always have to
remember not to use hjkl to move around, which is kind of annoying :)

Cheers!

- Marcelo.


Re: [O] Is Mobile Org for iPhone dead?

2013-04-10 Thread Sean Escriva
Hi Bill,

No, in fact it's very much alive.

Because of the recent interest I created an issue for those that would
like to track the status:
https://github.com/MobileOrg/mobileorg/issues/24

thanks for the interest!
-sean

On Wed, Apr 10, 2013 at 9:59 AM, Bastien b...@gnu.org wrote:
 Hi Bill,

 Bill Day williamson@gmail.com writes:

 Just wondering.

 http://article.gmane.org/gmane.emacs.orgmode/70148

 --
  Bastien




Re: [O] Some %elements in org-html-postamble-format became too generous

2013-04-10 Thread Dieter Wilhelm
Nicolas Goaziou n.goaz...@gmail.com writes:

 Hello,

 Rick Frankel r...@rickster.com writes:

 On Sun, Apr 07, 2013 at 08:32:34PM +0200, Nicolas Goaziou wrote:
 Dieter Wilhelm die...@duenenhof-wilhelm.de writes:
  Or just using a default time string format which is language
  independent, like %Y-%m-%d.
 
 There's `org-html--timestamp-format', which is used for all timestamps
 in preamble, postamble and metadata. It's clearly an internal variable.
 I don't know if it is used because the format is required or because it
 saves copying over the same format string.
 
 Since I don't know the intent behind this, I can't tell if it could be
 made a defcustom.

 It was created just localize the definition. I see no reason not to
 make it a defcustom.

 Then what about this patch?

It works like a charm, thanks

--
Dieter


 Regards,

 -- 
 Nicolas Goaziou
 From 91283eedf89bd8b74b68f127737478a7a9b4d670 Mon Sep 17 00:00:00 2001
 From: Nicolas Goaziou n.goaz...@gmail.com
 Date: Sun, 7 Apr 2013 20:59:26 +0200
 Subject: [PATCH] ox-html: Add defcustom for timestamps in metadata

 * lisp/ox-html.el (org-html-metadata-timestamp-format): New variable,
   renamed from `org-html--timestamp-format'.
 (org-html--build-meta-info, org-html-format-spec,
 org-html--build-pre/postamble): Use new variable.
 ---
  lisp/ox-html.el | 23 +--
  1 file changed, 13 insertions(+), 10 deletions(-)

 diff --git a/lisp/ox-html.el b/lisp/ox-html.el
 index d09cc0f..3fe97dd 100644
 --- a/lisp/ox-html.el
 +++ b/lisp/ox-html.el
 @@ -136,10 +136,6 @@
  (defvar org-html-format-table-no-css)
  (defvar htmlize-buffer-places)  ; from htmlize.el
  
 -(defvar org-html--timestamp-format %Y-%m-%d %a %H:%M
 -  FORMAT used by `format-time-string' for timestamps in
 -preamble, postamble and metadata.)
 -
  (defvar org-html--pre/postamble-class status
CSS class used for pre/postamble)
  
 @@ -912,6 +908,14 @@ org-info.js for your website.
  (list :tag Postamble (const :format  postamble)
(string :tag  id) (string :tag element
  
 +(defcustom org-html-metadata-timestamp-format %Y-%m-%d %a %H:%M
 +  Format used for timestamps in preamble, postamble and metadata.
 +See `format-time-string' for more information on its components.
 +  :group 'org-export-html
 +  :version 24.4
 +  :package-version '(Org . 8.0)
 +  :type 'string)
 +
   Template :: Mathjax
  
  (defcustom org-html-mathjax-options
 @@ -1432,7 +1436,7 @@ INFO is a plist used as a communication channel.
   (format
(when :time-stamp-file
   (format-time-string
 -  (concat !--  org-html--timestamp-format  --\n
 +  (concat !--  org-html-metadata-timestamp-format  --\n
   (format
meta http-equiv=\Content-Type\ 
 content=\text/html;charset=%s\/\n
(or (and org-html-coding-system
 @@ -1500,7 +1504,7 @@ INFO is a plist used as a communication channel.
  used in the preamble or postamble.
`((?t . ,(org-export-data (plist-get info :title) info))
  (?d . ,(org-export-data (org-export-get-date info) info))
 -(?T . ,(format-time-string org-html--timestamp-format))
 +(?T . ,(format-time-string org-html-metadata-timestamp-format))
  (?a . ,(org-export-data (plist-get info :author) info))
  (?e . ,(mapconcat
   (lambda (e)
 @@ -1509,7 +1513,7 @@ used in the preamble or postamble.
   , ))
  (?c . ,(plist-get info :creator))
  (?C . ,(let ((file (plist-get info :input-file)))
 -  (format-time-string org-html--timestamp-format
 +  (format-time-string org-html-metadata-timestamp-format
(if file (nth 5 (file-attributes file))
  (current-time)
  (?v . ,(or org-html-validation-link 
 @@ -1552,10 +1556,9 @@ communication channel.
 (format
  p class=\date\%s: %s/p\n
  (org-html--translate Created info)
 -(format-time-string org-html--timestamp-format)))
 +(format-time-string org-html-metadata-timestamp-format)))
   (when (plist-get info :with-creator)
 -   (format p class=\creator\%s/p\n
 -   creator))
 +   (format p class=\creator\%s/p\n creator))
   (format p class=\xhtml-validation\%s/p\n
   validation-link
   (t (format-spec

-- 
Best wishes

H. Dieter Wilhelm
Darmstadt
Germany



Re: [O] org-babel: two confirmations for org/HTML macro?

2013-04-10 Thread Achim Gratz
Bastien writes:
 I can understand the first question, but why the second?

 A mystery to me too, perhaps either Eric or Nicolas may explain.

That's because lob calls get wrapped internally in an anonymous
emacs-lisp source block that then feeds through the result from the
actual call as elisp.  The attached patch should suppress the
confirmation for the wrapper call.  To the best of my knowledge nothing
dangerous can happen with that evaluation and all confirmations for the
call stack down from there have already taken place according to the
users' setup.

Since the test suite doesn't really test confirmation at all, it would
be nice if someone with a good variety of Babel calls could check if the
number of confirmations stay the same with and without the patch.  I
don't think I have test cases that cover all possible combinations.

From 7909cf5e52c2ab244c1b6ea67dada6e8a2eebb20 Mon Sep 17 00:00:00 2001
From: Achim Gratz strom...@stromeko.de
Date: Wed, 10 Apr 2013 20:28:31 +0200
Subject: [PATCH] Babel: avoid superfluous confirmation for internal wrapper

* lisp/ob-exp.el (org-babel-exp-results): Suppress user confirmation
  of the emacs-lisp wrapper execution around a lob call.

* lisp/ob-lob.el (org-babel-lob-execute): Suppress user confirmation
  of the emacs-lisp wrapper execution around a lob call.
---
 lisp/ob-exp.el | 3 ++-
 lisp/ob-lob.el | 7 +--
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/lisp/ob-exp.el b/lisp/ob-exp.el
index 0d98690..3c70e92 100644
--- a/lisp/ob-exp.el
+++ b/lisp/ob-exp.el
@@ -411,7 +411,8 @@ (defun org-babel-exp-results (info type optional silent hash)
 	   ((equal type 'lob)
 	(save-excursion
 	  (re-search-backward org-babel-lob-one-liner-regexp nil t)
-	  (org-babel-execute-src-block nil info)
+	  (let (org-confirm-babel-evaluate)
+		(org-babel-execute-src-block nil info))
 
 
 (provide 'ob-exp)
diff --git a/lisp/ob-lob.el b/lisp/ob-lob.el
index 4c89485..5366989 100644
--- a/lisp/ob-lob.el
+++ b/lisp/ob-lob.el
@@ -116,6 +116,7 @@ (defun org-babel-lob-get-info ()
 	 (list (length (if (= (length (match-string 12)) 0)
 			   (match-string 2) (match-string 11)
 
+(defvar org-babel-default-header-args:emacs-lisp) ; dynamic binding from ob-emacs-lisp
 (defun org-babel-lob-execute (info)
   Execute the lob call specified by INFO.
   (let* ((mkinfo (lambda (p) (list emacs-lisp results p nil nil (nth 2 info
@@ -136,8 +137,10 @@ (defun org-babel-lob-execute (info)
 	(save-excursion (goto-char (org-babel-where-is-src-block-result))
 			(forward-line 1)
 			(message %S (org-babel-read-result)))
-  (prog1 (org-babel-execute-src-block
-	  nil (funcall mkinfo (org-babel-process-params pre-params)))
+  (prog1 (let* ((proc-params (org-babel-process-params pre-params))
+		 org-confirm-babel-evaluate)
+	   (org-babel-execute-src-block
+		nil (funcall mkinfo proc-params)))
 	;; update the hash
 	(when new-hash (org-babel-set-current-result-hash new-hash))
 
-- 
1.8.2.1



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

Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra


[O] agenda: personal priority for today

2013-04-10 Thread Michael Heinrich
Hi everyone,

I came from planner-mode and use kind of GTD also in org-mode.  One
thing I still miss in org-mode is the flexibility of moving tasks up and
down on the today page.

Typically I schedule the next actions for today which I want to do today
so that they appear in my agenda buffer.   The agenda buffer for today
is my working buffer (like the today page in planner-mode).  There I
want something like in planner mode where I can move tasks up and down
for creating an order of these tasks for today regardless of the real
priority of a task.  I need something like a second priority (perhaps as
a PROPERTY) with a sorting function only valid in the agenda buffer.

Does anybody have that already in his drawer or othe ideas?

Thanks and regards,
Michael.




[O] todo-state change: agenda buffer scrolls

2013-04-10 Thread Michael Heinrich
hi everyone,

I use org 7.9.4 and I do not quite remember since which version I
observe the following behaviour:

whenever I change the todo state of a task in the agenda this task
becomes line 1 in my agenda buffer.  This is really annoying for me. 
How can I change to the old behaviour where the agenda buffer is not
scrolled down?

Thanks and regards,
Michael.



Re: [O] todo-state change: agenda buffer scrolls

2013-04-10 Thread John Wiegley
 Michael Heinrich mich...@haas-heinrich.de writes:

 whenever I change the todo state of a task in the agenda this task becomes
 line 1 in my agenda buffer.  This is really annoying for me.  How can I
 change to the old behaviour where the agenda buffer is not scrolled down?

I'll second this, I just noticed this recently and I too would like to go back
to the previous behavior.

Thanks,
  John



Re: [O] agenda: personal priority for today

2013-04-10 Thread John Wiegley
 Michael Heinrich mich...@haas-heinrich.de writes:

 I came from planner-mode and use kind of GTD also in org-mode.  One
 thing I still miss in org-mode is the flexibility of moving tasks up and
 down on the today page.

Hi Michael, planner author here and now org-mode user too. :)

You'll have to change the positions of the items within the Org file itself.
It would be great if there was a single key to do this and then very quickly
update the agenda view.

John



Re: [O] Attributes on HTML tables?

2013-04-10 Thread Nicolas Goaziou
Hello,

Christian Moe m...@christianmoe.com writes:

 If I understand the question correctly, I think the union is the correct
 answer, with provided attributes overwriting defaults for the same
 attributes.

 In the example we started with, the defaults would create

   table border=2 cellspacing=0 cellpadding=6 rules=groups
   frame=hsides

 If the user specifies

   #+attr_html: :border 2 :rules all :frame border :title My table

 I would expect the result

   table border=2 cellspacing=0 cellpadding=6 rules=all
   frame=border title=My table

Thank you for all the information.

I have pushed a patch along these lines.

Caveat: `org-html-table-tag' is now named
`org-html-table-default-attributes' and expect a plist as its value.
Also, a nil value will remove the property from the attributes.

Could you test it and confirm this is now behaving in a desirable way?


Regards,

-- 
Nicolas Goaziou



Re: [O] agenda: personal priority for today

2013-04-10 Thread Samuel Wales
Yes, it is possible.

I use priorities locally.  That is, they sort in the outline and do
not have global semantics.  Therefore, they have no meaning in the
agenda.  Perhaps someday I will figure out how to remove the cookies
from the agenda.

You can do the opposite from me, using priorities only in the agenda,
but it sounds like you want both.  Not a bad idea.

There are two concepts:

  1] global priorities
  2] per-agenda-view priorities

I am not sure which you are referring to.  1] can be done using a
property and user-defined sorting in the agenda.  It can also be done
using a tag [aa bb cc].

2] would require storing the view type.

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.  This means YOU.



Re: [O] Enriched/Org is a colorful Org

2013-04-10 Thread Carsten Dominik

On 10.4.2013, at 18:21, Eli Zaretskii e...@gnu.org wrote:

 From: Carsten Dominik carsten.domi...@gmail.com
 Date: Wed, 10 Apr 2013 12:16:28 +0200
 Cc: emacs-orgmode@gnu.org
 
 
 On 10 apr. 2013, at 11:54, Suvayu Ali fatkasuvayu+li...@gmail.com wrote:
 
 On Wed, Apr 10, 2013 at 09:32:44AM +0530, Jambunathan K wrote:
 
 See Side note towards the end of this message
 
   http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14157#8
 
 
 This request is common enough; every time it comes up overlays are
 proposed as a solution.  It would be good if this is available even as a
 library outside of Org.
 
 Yes, overlays are better.
 
 I beg the Org developers to please be very careful when introducing
 expensive display features such as overlays into Org.  Org already
 puts the Emacs display engine to its limits in many of its popular
 features;

Hi Eli,

this is interesting input, I was not aware of this.  Has this been discussed 
before, can you point me to relevant threads, and what are the symptoms of the 
display engine being at its limits?

Regards

- Carsten

 adding overlays to this mess might be too much.
 
 I don't know enough about Org to understand why overlays are being
 considered instead of text properties, but feel free to describe the
 issues (preferably on emacs-devel) and start a discussion about the
 possible alternatives.
 




[O] test-org-babel/inline-src-blocks FAILED

2013-04-10 Thread Sebastien Vauban
Hello,

I'm just trying to reuse ERT and run the tests on my (new, Bastien ;-))
machine.

Results:

--8---cut here---start-8---
Ran 372 tests, 371 results as expected, 1 unexpected (2013-04-10 22:04:05+0200)
10 expected failures

1 unexpected results:
   FAILED  test-org-babel/inline-src-blocks
--8---cut here---end---8---

More information:

--8---cut here---start-8---
   passed   72/372  test-org-babel/get-src-block-info-tangle
executing Sh code block...
Wrote /cygdrive/c/Users/Seb/AppData/Local/Temp/ob-input-9128wq
1
executing Sh code block...
Wrote /cygdrive/c/Users/Seb/AppData/Local/Temp/ob-input-912VZM
3
Test test-org-babel/inline-src-blocks backtrace:
  (cl-block-wrapper (catch (quote --cl-block-nil--) (let* ((i 6) (fram
  (block nil (let* ((i 6) (frame nil) (--cl-var-- nil)) (while (progn
  (loop for i from 6 for frame = (backtrace-frame i) while frame colle
  ert--record-backtrace()
  (let* ((condition (first more-debugger-args)) (type (case (car condi
  (cond ((member* first-debugger-arg (quote (lambda debug t exit nil))
  (case first-debugger-arg ((lambda debug t exit nil) (apply (ert--tes
  (ecase first-debugger-arg ((lambda debug t exit nil) (apply (ert--te
  (let* ((more-debugger-args debugger-args) (first-debugger-arg (if mo
  (progn (let* ((more-debugger-args debugger-args) (first-debugger-arg
  (destructuring-bind (first-debugger-arg rest more-debugger-args) de
  ert--run-test-debugger([cl-struct-ert--test-execution-info [cl-struc
  (lambda (G7765 rest debugger-args) (ert--run-test-debugger (symbol-
  apply((lambda (G7765 rest debugger-args) (ert--run-test-debugger (s
  (lambda (rest --cl-rest--) (apply (quote (lambda (G7765 rest debug
  signal(ert-test-failed (((should (equal 2 (org-babel-execute-src-blo
  ert-fail(((should (equal 2 (org-babel-execute-src-block))) :form (eq
  (if (unwind-protect (setq value-796 (apply fn-794 args-795)) (setq f
  (let (form-description-798) (if (unwind-protect (setq value-796 (app
  (let ((value-796 (quote ert-form-evaluation-aborted-797))) (let (for
  (let ((fn-794 (function equal)) (args-795 (list 2 (org-babel-execute
  (unwind-protect (let ((fn-794 (function equal)) (args-795 (list 2 (o
  (let ((save-match-data-internal (match-data))) (unwind-protect (let
  (progn (move-end-of-line 1) (re-search-forward org-babel-inline-src-
  (progn (progn (move-end-of-line 1) (re-search-forward org-babel-inli
  (macrolet ((at-next (rest body) (\` (progn (move-end-of-line 1) (re
  (save-restriction (macrolet ((at-next (rest body) (\` (progn (move-
  (progn (org-id-goto 54cb8dc3-298c-4883-a933-029b3c9d4b18) (setq to
  (unwind-protect (progn (org-id-goto 54cb8dc3-298c-4883-a933-029b3c9
  (let ((save-match-data-internal (match-data))) (unwind-protect (prog
  (save-match-data (org-id-goto 54cb8dc3-298c-4883-a933-029b3c9d4b18
  (progn (save-match-data (org-id-goto 54cb8dc3-298c-4883-a933-029b3c
  (unwind-protect (progn (save-match-data (org-id-goto 54cb8dc3-298c-
  (let ((wconfig (current-window-configuration))) (unwind-protect (pro
  (save-window-excursion (save-match-data (org-id-goto 54cb8dc3-298c-
  (unwind-protect (save-window-excursion (save-match-data (org-id-goto
  (let* ((id-location (org-id-find 54cb8dc3-298c-4883-a933-029b3c9d4b
  (org-test-at-id 54cb8dc3-298c-4883-a933-029b3c9d4b18 (macrolet ((a
  (lambda nil (org-test-at-id 54cb8dc3-298c-4883-a933-029b3c9d4b18 (
  funcall((lambda nil (org-test-at-id 54cb8dc3-298c-4883-a933-029b3c9
  (let ((debugger (list (quote lambda) (quote (rest --cl-rest--)) (li
  (unwind-protect (let ((debugger (list (quote lambda) (quote (rest -
  (let ((wconfig (current-window-configuration))) (unwind-protect (let
  (unwind-protect (let ((wconfig (current-window-configuration))) (unw
  (save-current-buffer (set-buffer temp-buffer) (unwind-protect (let (
  (let ((temp-buffer (generate-new-buffer  *temp*))) (save-current-b
  (catch (quote ert--pass) (let ((temp-buffer (generate-new-buffer  *
  (progn (progn (progn (or (and (vectorp (symbol-value --cl-info--)) (
  (let ((--cl-info-- (make-symbol --info--))) (setf (symbol-value --
  (lexical-let ((info ert-test-execution-info)) (setf (ert--test-execu
  ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
  (let ((ert--should-execution-observer (list (quote lambda) (quote (
  (unwind-protect (let ((ert--should-execution-observer (list (quote l
  (let ((--cl-info-- (make-symbol --info--)) (--cl-should-form-accu-
  (unwind-protect (let ((--cl-info-- (make-symbol --info--)) (--cl-s
  (let ((--cl-begin-marker-- (make-symbol --begin-marker--))) (setf
  (lexical-let ((begin-marker (with-current-buffer (get-buffer-create
  (catch (quote --cl-block-error--) (lexical-let ((begin-marker (with-
  (cl-block-wrapper (catch (quote --cl-block-error--) (lexical-let ((b
  (block error (lexical-let ((begin-marker (with-current-buffer (get-b
  ert-run-test([cl-struct-ert-test 

Re: [O] [ox-latex] Bad default value for image width?

2013-04-10 Thread Nicolas Goaziou
Rasmus ras...@gmx.us writes:

 Perhaps.  I'm not convinced.

Since I didn't introduce this feature in new exporter (it was already in
the previous one), it may be interesting to know the motivation of the
person who originally introduced it. I think it was Bastien (Cc'ed).

 If the float width is removed I can change the default and never be
 affected by these design choices and it's all good.

Done.

 For people who use it it might also be reasonable to introduce
 a org-latex-wrap-image-default-width or making
 org-latex-image-default-width a list ordered by type of element/float
 type.

 E.g. '((float . .9\\textwidth) (wrap . .5\\textwidth)). . . 

I'm not sure we need to go that far.

 I'll check it out and report back.  I can't access git from this
 network (high port numbers are blocked for security reasons) so I'll
 only try it out later.

Thank you.


Regards,

-- 
Nicolas Goaziou



Re: [O] Enriched/Org is a colorful Org

2013-04-10 Thread Sebastien Vauban
Hi Carsten,

Carsten Dominik wrote:
 On 10.4.2013, at 18:21, Eli Zaretskii e...@gnu.org wrote:
 From: Carsten Dominik carsten.domi...@gmail.com
 On 10 apr. 2013, at 11:54, Suvayu Ali fatkasuvayu+li...@gmail.com wrote:
 This request is common enough; every time it comes up overlays are
 proposed as a solution.  It would be good if this is available even as a
 library outside of Org.
 
 Yes, overlays are better.
 
 I beg the Org developers to please be very careful when introducing
 expensive display features such as overlays into Org.  Org already
 puts the Emacs display engine to its limits in many of its popular
 features;

 this is interesting input, I was not aware of this. Has this been discussed
 before, can you point me to relevant threads, and what are the symptoms of the
 display engine being at its limits?

 adding overlays to this mess might be too much.

I guess Eli simply means, in a general way, that overlays do negatively impact
display performance, as you said as well a couple of times:

  ╭
  │ From: Carsten Dominik carsten.domi...@gmail.com
  │ Subject: Re: performance problems with drawers
  │ Newsgroups: gmane.emacs.orgmode
  │ To: Al gman...@wilec.net
  │ Cc: emacs-orgmode@gnu.org
  │ Date: Wed, 8 Jul 2009 07:05:53 +0200 (3 years, 39 weeks, 3 days ago)
  │ 
  │ Hi Al,
  │ 
  │ first of all, I cannot reproduce the fact that drawers have such
  │ a major influence on time, wit a test file that I created to
  │ be similar to what you describe.
  │ 
  │ There is a way to speed up drawer handling, by using text properties
  │ instead of overlays.  How have some vague plans to do this, but nothing
  │ concrete or soon.
  │ 
  │ - Carsten
  ╰

and

  ╭
  │ From: Carsten Dominik carsten.domi...@gmail.com
  │ Subject: Re: fontification and icon issues
  │ Newsgroups: gmane.emacs.orgmode
  │ To: David O'Toole dto1...@gmail.com
  │ Cc: emacs-orgmode@gnu.org
  │ Date: Thu, 24 Sep 2009 10:46:24 +0100 (3 years, 28 weeks, 2 days ago)
  │ 
  │ On Sep 22, 2009, at 4:11 PM, David O'Toole wrote:
  │  [...]
  │ 
  │  2. using add-text-properties to specify a display property (or even just
  │  a face) for any part of an org headline text kills the fontification of
  │  the rest of the text (TODO keyword and leading stars unaffected.) I'm
  │  trying to use font-lock-add-keywords to display the images.
  │ 
  │ Can you make an example file, and maybe a small function that does set these
  │ properties, so that I can see what you mean?
  │ 
  │ - Carsten
  │ 
  │  Maybe I should use overlays instead?
  │ 
  │ This can be done, but if every line in a very large file gets
  │ an overlay, performance is severely degraded.
  │ 
  │ - Carsten
  ╰

 I don't know enough about Org to understand why overlays are being
 considered instead of text properties, but feel free to describe the
 issues (preferably on emacs-devel) and start a discussion about the
 possible alternatives.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] test-org-babel/inline-src-blocks FAILED

2013-04-10 Thread Achim Gratz
Sebastien Vauban writes:
 Hello,

 I'm just trying to reuse ERT and run the tests on my (new, Bastien ;-))
 machine.

 Results:

 Ran 372 tests, 371 results as expected, 1 unexpected (2013-04-10 
 22:04:05+0200)
 10 expected failures

 1 unexpected results:
FAILED  test-org-babel/inline-src-blocks

 More information:

Yes, but not the interesting ones, like which Emacs you use.  Anyway,
this is a known problem with some Emacs versions on Windows and it only
happens in batch mode so it can't be debugged.


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

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] Emacs org-mode mailing list filter by category / tag?

2013-04-10 Thread Buddy Butterfly
Am 09.04.2013 13:02, schrieb Buddy Butterfly:
 Hi Bastian,
 
 true ;-)
 I just wanted to know the best method.
 
 Thanks,
 Matt
 
 
 
 Am 09.04.2013 11:52, schrieb Bastien:
 Hi Buddy,

 Buddy Butterfly buddy.butter...@web.de writes:

 how to configure the group to subscribe to in gnus
 directly (.emacs file)? When configuring news.gmane.org as server
 gnus hangs for long time and server closes connection.
 I guess it times out requesting all groups.
 Please take this discussion to the Gnus mailing list:
   http://www.gnus.org/resources.html

 You cannot both complain that there are too many messages
 on this list and add new off-topic ones ;)

 Thanks!

 
 
 

test




Re: [O] org-babel header documentation

2013-04-10 Thread Sebastien Vauban
Eric Schulte wrote:
 Eric Abrahamsen e...@ericabrahamsen.net writes:
 Eric Schulte schulte.e...@gmail.com writes:
 Exists on Worg? Sorry for my obtuseness, but I'm not finding it.

 http://orgmode.org/worg/org-contrib/babel/header-args.html

 Great! I just saw mention of the wrap header argument in another thread
 but that doesn't appear on this page, could we trouble you to add it? It
 would be *great* to have one canonical spot listing all the
 possibilities...

 I think this page is more for ancillary notes and tricks, the canonical spot
 is the manual, and it does mention the wrap header argument (apparently the
 preferred name is drawer). See the following.

 http://orgmode.org/manual/results.html

To add a note:

  ╭
  │ `:results wrap' is deprecated but still supported.
  ╰

since Org 7.9.2.

Best regards,
  Seb

-- 
Sebastien Vauban



Re: [O] test-org-babel/inline-src-blocks FAILED

2013-04-10 Thread Sebastien Vauban
Hello Achim,

Achim Gratz wrote:
 Sebastien Vauban writes:
 I'm just trying to reuse ERT and run the tests on my (new, Bastien ;-))
 machine.

 Results:

 Ran 372 tests, 371 results as expected, 1 unexpected (2013-04-10 
 22:04:05+0200)
 10 expected failures

 1 unexpected results:
FAILED  test-org-babel/inline-src-blocks

 More information:

 Yes, but not the interesting ones, like which Emacs you use.  Anyway,
 this is a known problem with some Emacs versions on Windows and it only
 happens in batch mode so it can't be debugged.

GNU Emacs 24.3.1 (i386-mingw-nt6.2.9200) of 2013-03-12 on VBOX

on Windows, yes.

Best regards,
  Seb

-- 
Sebastien Vauban




[O] [babel] Drop `:results code'?

2013-04-10 Thread Sebastien Vauban
Hello,

Shouldn't we, for the sake of simplifying the multiple options, drop the
support for `:results code'?

It is completely redundant (though, less powerful) with `:wrap'.

Best regards,
  Seb

-- 
Sebastien Vauban




[O] failed execution of bibtex2html

2013-04-10 Thread Levy, Roger
Hi,

I'm having trouble getting \cite commands to work within org-mode for HTML 
export -- I get the error Executing bibtex2html failed when I run 
org-export-as-html.  I'm running Aquamacs 2.4 (based on GNU Emacs 23.3.50.1) 
and org-mode version 7.9.4.  Any advice would be much appreciated! (Note that 
emacs *can* find and execute bibtex2html.)  I append a minimal example of the 
error.

Many thanks,

Roger


***


Minimal example: .org file is (note that levy:2008 is in rpl.bib, which is in 
the current directory):

***

#+TITLE: test
#+AUTHOR: Me

\cite{levy:2008}

#+BIBLIOGRAPHY: rpl plain

***

Running M-x org-export-as-html gives me the following error in the *Backtrace* 
buffer:

Debugger entered--Lisp error: (error Executing bibtex2html failed)
  signal(error (Executing bibtex2html failed))
  ad-Orig-error(Executing bibtex2html failed)
  apply(ad-Orig-error Executing bibtex2html failed)
  error(Executing bibtex2html failed)
  (progn (error Executing bibtex2html failed))
  (if (not (eq 0 ...)) (progn (error Executing bibtex2html failed)))
  (when (not (eq 0 ...)) (error Executing bibtex2html failed))
  (let (extra-args cite-list end-hook tmp-files) (dolist (elt opt) (when ... 
...)) (when (assoc limit opt) (org-exp-bibtex-docites ...) (let ... ... ... 
...)) (when (not ...) (error Executing bibtex2html failed)) (dolist (f 
tmp-files) (delete-file f)))
  (cond ((eq org-export-current-backend ...) (let ... ... ... ... ...) 
(with-temp-buffer ...)) ((eq org-export-current-backend ...) (concat 
\n#+LATEX: \\bibliographystyle{ style } \n#+LATEX: \\bibliography{ file 
}\n)))
  (replace-match (cond (... ... ...) (... ...)) t t)
  (let ((file ...) (style ...) (opt ...)) (replace-match (cond ... ...) t t))
  (while (re-search-forward ^#\\+BIBLIOGRAPHY:[]+\\(\\S-+\\)[  
]+\\(\\S-+\\)\\([^
\n]*\\) nil t) (let (... ... ...) (replace-match ... t t)))
  (save-window-excursion (setq oebp-cite-plist (quote nil)) (goto-char 
(point-min)) (while (re-search-forward ^#\\+BIBLIOGRAPHY:[  ]+\\(\\S-+\\)[ 
 ]+\\(\\S-+\\)\\([^
\n]*\\) nil t) (let ... ...)) (when (eq org-export-current-backend ...) 
(org-exp-bibtex-docites ...) (org-exp-bibtex-docites ...)))
  org-export-bibtex-preprocess()
  run-hooks(org-export-preprocess-hook)
  (progn (erase-buffer) (insert string) (setq case-fold-search t) (let (...) 
(remove-text-properties ... ... ...)) (org-export-kill-licensed-text) (let 
(...) (org-mode)) (setq case-fold-search t) (org-clone-local-variables 
source-buffer ^\\(org-\\|orgtbl-\\)) (org-install-letbind) (run-hooks (quote 
org-export-preprocess-hook)) (untabify (point-min) (point-max)) 
(org-export-handle-include-files-recurse) (run-hooks (quote 
org-export-preprocess-after-include-files-hook)) 
(org-export-remove-archived-trees archived-trees) 
(org-export-remove-comment-blocks-and-subtrees) (org-export-handle-export-tags 
(plist-get parameters :select-tags) (plist-get parameters :exclude-tags)) 
(run-hooks (quote org-export-preprocess-after-tree-selection-hook)) 
(org-export-remove-tasks (plist-get parameters :tasks)) (when (plist-get 
parameters :footnotes) (org-footnote-normalize nil parameters)) 
(org-export-mark-list-end) (org-export-preprocess-apply-macros) (run-hooks 
(quote org-export-preprocess-after-macros-hook)) (org-export-blocks-preprocess) 
(org-export-mark-list-properties) 
(org-export-replace-src-segments-and-examples) 
(org-export-protect-colon-examples) (org-export-convert-protected-spaces) (setq 
target-alist (org-export-define-heading-targets target-alist)) (run-hooks 
(quote org-export-preprocess-after-headline-targets-hook)) 
(org-export-remember-html-container-classes) 
(org-export-remove-or-extract-drawers drawers (plist-get parameters :drawers)) 
(when (plist-get parameters :skip-before-1st-heading) (goto-char ...) (when ... 
... ... ...)) (when (plist-get parameters :add-text) (goto-char ...) (insert 
... \n)) (org-export-remove-headline-metadata parameters) (setq target-alist 
(org-export-handle-invisible-targets target-alist)) (run-hooks (quote 
org-export-preprocess-before-selecting-backend-code-hook)) 
(org-export-select-backend-specific-text) (org-export-protect-quoted-subtrees) 
(org-export-remove-clock-lines) (org-export-protect-verbatim) 
(org-export-mark-blockquote-verse-center) (run-hooks (quote 
org-export-preprocess-after-blockquote-hook)) (unless (plist-get parameters 
:timestamps) (org-export-remove-timestamps)) (setq target-alist 
(org-export-attach-captions-and-attributes target-alist)) 
(org-export-mark-radio-links) (run-hooks (quote 
org-export-preprocess-after-radio-targets-hook)) 
(org-export-concatenate-multiline-links) (run-hooks (quote 
org-export-preprocess-before-normalizing-links-hook)) 
(org-export-normalize-links) ...)
  (unwind-protect (progn (erase-buffer) (insert string) (setq case-fold-search 
t) (let ... ...) (org-export-kill-licensed-text) (let ... ...) (setq 
case-fold-search t) (org-clone-local-variables source-buffer 
^\\(org-\\|orgtbl-\\)) 

Re: [O] todo-state change: agenda buffer scrolls

2013-04-10 Thread Bastien
Hi Michael and John,

John Wiegley jo...@newartisans.com writes:

 Michael Heinrich mich...@haas-heinrich.de writes:

 whenever I change the todo state of a task in the agenda this task becomes
 line 1 in my agenda buffer.  This is really annoying for me.  How can I
 change to the old behaviour where the agenda buffer is not scrolled down?

 I'll second this, I just noticed this recently and I too would like to go back
 to the previous behavior.

Yes, there is this problem in 7.9.4.  It is not in 8.0-pre.

Can one of you test and confirm?

Thanks,

-- 
 Bastien



Re: [O] evil-mode movement keys in the agenda?

2013-04-10 Thread Bastien
Hi Marcelo,

Marcelo de Moraes Serpa celose...@gmail.com writes:

 Is there a way to setup the movement keys in the agenda to hjkl?

You can play around with `org-agenda-mode-map'.

-- 
 Bastien



Re: [O] ctrl-enter and alt-enter behaviour in current org

2013-04-10 Thread Bastien
Hi Matt,

Matt Price mopto...@gmail.com writes:

 after updating to the current git version yesterday, I'm noticing a
 change in keybindings.  Previously, if I wasi n a ist inside a
 headline:

 * Heading
 - list item
 - list item 2

 Alt-Enter would create a new list item, while
 Ctrl-Enter would create a new headline.

 Now, I'm finding that both keys are creating new ist items.  Is this
 the intended behaviour? Can I customize it somehow/somewhere?  I'd
 like to go back to the old bindings, they seemed more flexible.

This should be fixed now, let me know.

-- 
 Bastien



Re: [O] agenda: personal priority for today

2013-04-10 Thread Bastien
John Wiegley jo...@newartisans.com writes:

 You'll have to change the positions of the items within the Org file itself.
 It would be great if there was a single key to do this and then very quickly
 update the agenda view.

This is tempting in imagination but I think the real implementation
would be limited and a bit fragile.

Limited because you would have to restrict moving around agenda
entries to Org entries of the same level, and a bit fragile because
you'll have to 100% that (folded) entries are not corrupted when moved
around, e.g. from one org agenda file to another.

So, better to play with something non-interactive and have a property
for sorting in the agenda only.

-- 
 Bastien



Re: [O] Bug: org-insert-heading-respect-content inserts at the wrong level if target heading is invisible [7.9.2 (release_7.9.2-883-g6fb36e.dirty @ /home/dlm/share/org-mode.git/lisp/)]

2013-04-10 Thread Bastien
Hi James,

James Harkins jamshar...@gmail.com writes:

 On Tue, Mar 5, 2013 at 1:41 AM, Bastien b...@gnu.org wrote:
 There is some obscure issues here... I fixed various things in
 `org-insert-heading' in master, but inserting in invisible parts of
 the subtree is still unstable.  So I went and used the workaround you
 suggested (i.e. org-show-subtree) in the maint branch, so that it will
 be in 7.9.4.

 Apologies -- this seems to be the issue that wouldn't die -- but I
 have to report another failure with this.

Thanks for the detailed report -- I pushed a fix.

I used (org-insert-heading-respect-content '(16) t) so that new
headings are added at the end of the parent subtree.

Can you confirm it works fine for you?

Thanks,

-- 
 Bastien



Re: [O] agenda: personal priority for today

2013-04-10 Thread Christopher Allan Webber
Bastien writes:

 John Wiegley jo...@newartisans.com writes:

 You'll have to change the positions of the items within the Org file itself.
 It would be great if there was a single key to do this and then very quickly
 update the agenda view.

 This is tempting in imagination but I think the real implementation
 would be limited and a bit fragile.

 Limited because you would have to restrict moving around agenda
 entries to Org entries of the same level, and a bit fragile because
 you'll have to 100% that (folded) entries are not corrupted when moved
 around, e.g. from one org agenda file to another.

 So, better to play with something non-interactive and have a property
 for sorting in the agenda only.

I wonder if we had a property that was basically sorting on very large
numbers?  When you add something to the agenda and there aren't any
sorted items, it creates a property with some median-ish very large
number.  As you move things up and down on the agenda it sorts in random
ranges between the chunks of huge number space per item.  This would be
a goofy but workable solution?



Re: [O] agenda: personal priority for today

2013-04-10 Thread Bastien
Hi Christopher,

Christopher Allan Webber cweb...@dustycloud.org writes:

 I wonder if we had a property that was basically sorting on very large
 numbers?  When you add something to the agenda and there aren't any
 sorted items, it creates a property with some median-ish very large
 number.  As you move things up and down on the agenda it sorts in random
 ranges between the chunks of huge number space per item.  This would be
 a goofy but workable solution?

I don't know -- it's hard to make sure we speak about the same things
when brainstorming like this.  Where would you store the property you
are talking to (for example)?  Sorry for the non-romantic question :)

-- 
 Bastien



[O] [Help] Which function can get a head's context

2013-04-10 Thread Feng Shu

#+begin_example

* head1  :tag1:

#+end_example

How can I get 'head1'


Feng Shu




-- 



Re: [O] org-babel: two confirmations for org/HTML macro?

2013-04-10 Thread Bastien
Hi Achim,

(Sorry, I pushed a fix for the compiler warning that your patch also
solves.)

Achim Gratz strom...@nexgo.de writes:

 Since the test suite doesn't really test confirmation at all, it would
 be nice if someone with a good variety of Babel calls could check if the
 number of confirmations stay the same with and without the patch.  I
 don't think I have test cases that cover all possible combinations.

Please let's go and apply this, that's the best way to have more
people testing it.  Thanks!

-- 
 Bastien



Re: [O] [Help] Which function can get a head's context

2013-04-10 Thread Bastien
Bastien b...@gnu.org writes:

 (nth 4 (org-heading-components))

... also (org-element-at-point) !

-- 
 Bastien



Re: [O] [Help] Which function can get a head's context

2013-04-10 Thread Feng Shu
Thanks Bastien
-- 



Re: [O] js-info problem

2013-04-10 Thread J. David Boyd
Bastien b...@gnu.org writes:

 Hi David,

 da...@adboyd.com (J. David Boyd) writes:

 I see an error in my message buffer when starting up:

 Problems while trying to load feature `org-jsinfo'.

 Any ideas how to fix this?  I can't even find an org-jsinfo in the org
 source directory.

 There is no org-jsinfo.el file in Org 8.0, so you need to remove 
 (require 'org-jsinfo) from your configuration if you use Org 8.0.


Thanks, had a reference in my loaded org modules in custom.el...

Dave




Re: [O] Enriched/Org is a colorful Org

2013-04-10 Thread Carsten Dominik

On 10.4.2013, at 22:16, Sebastien Vauban wxhgmqzgw...@spammotel.com wrote:

 Hi Carsten,
 
 Carsten Dominik wrote:
 On 10.4.2013, at 18:21, Eli Zaretskii e...@gnu.org wrote:
 From: Carsten Dominik carsten.domi...@gmail.com
 On 10 apr. 2013, at 11:54, Suvayu Ali fatkasuvayu+li...@gmail.com wrote:
 This request is common enough; every time it comes up overlays are
 proposed as a solution.  It would be good if this is available even as a
 library outside of Org.
 
 Yes, overlays are better.
 
 I beg the Org developers to please be very careful when introducing
 expensive display features such as overlays into Org.  Org already
 puts the Emacs display engine to its limits in many of its popular
 features;
 
 this is interesting input, I was not aware of this. Has this been discussed
 before, can you point me to relevant threads, and what are the symptoms of 
 the
 display engine being at its limits?
 
 adding overlays to this mess might be too much.
 
 I guess Eli simply means, in a general way, that overlays do negatively impact
 display performance, as you said as well a couple of times:

Yes, but Eli says that Org already severely tests the
display engine, and he uses the word mess, even though
we mostly use text properties for faces and other
display-related things.  So I was wondering if there is
something we should put onto our todo list.

Of course, Org already uses overlays, for example for
folding (as does outline.el), and for temporary marking
of text like during src block editing.  But as your digging
shows, I ave avoided them in the past, and we are also not
using them for org-indent.el, for example.

The reason why I said overlays would be better is simply
that they would allow to add display properties in a
persistent way that would not interfere that our
font-lock-unfontify-region function removes face and
invisibility text properties.  So they are better for
implementing hand-made faces selection that should overrule
font-lock.

- Carsten


 
  ╭
  │ From: Carsten Dominik carsten.domi...@gmail.com
  │ Subject: Re: performance problems with drawers
  │ Newsgroups: gmane.emacs.orgmode
  │ To: Al gman...@wilec.net
  │ Cc: emacs-orgmode@gnu.org
  │ Date: Wed, 8 Jul 2009 07:05:53 +0200 (3 years, 39 weeks, 3 days ago)
  │ 
  │ Hi Al,
  │ 
  │ first of all, I cannot reproduce the fact that drawers have such
  │ a major influence on time, wit a test file that I created to
  │ be similar to what you describe.
  │ 
  │ There is a way to speed up drawer handling, by using text properties
  │ instead of overlays.  How have some vague plans to do this, but nothing
  │ concrete or soon.
  │ 
  │ - Carsten
  ╰
 
 and
 
  ╭
  │ From: Carsten Dominik carsten.domi...@gmail.com
  │ Subject: Re: fontification and icon issues
  │ Newsgroups: gmane.emacs.orgmode
  │ To: David O'Toole dto1...@gmail.com
  │ Cc: emacs-orgmode@gnu.org
  │ Date: Thu, 24 Sep 2009 10:46:24 +0100 (3 years, 28 weeks, 2 days ago)
  │ 
  │ On Sep 22, 2009, at 4:11 PM, David O'Toole wrote:
  │  [...]
  │ 
  │  2. using add-text-properties to specify a display property (or even just
  │  a face) for any part of an org headline text kills the fontification of
  │  the rest of the text (TODO keyword and leading stars unaffected.) I'm
  │  trying to use font-lock-add-keywords to display the images.
  │ 
  │ Can you make an example file, and maybe a small function that does set 
 these
  │ properties, so that I can see what you mean?
  │ 
  │ - Carsten
  │ 
  │  Maybe I should use overlays instead?
  │ 
  │ This can be done, but if every line in a very large file gets
  │ an overlay, performance is severely degraded.
  │ 
  │ - Carsten
  ╰
 
 I don't know enough about Org to understand why overlays are being
 considered instead of text properties, but feel free to describe the
 issues (preferably on emacs-devel) and start a discussion about the
 possible alternatives.
 
 Best regards,
  Seb
 
 -- 
 Sebastien Vauban
 
 




[O] Patchwork?

2013-04-10 Thread Michael Gauland
I haven't been able to connect to the patchwork server mentioned on the Worg
for the last couple of days. Is this link outdated, or is the server
temporarily unavailable?

Kind Regards,
Mike Gauland





Re: [O] org-babel: two confirmations for org/HTML macro?

2013-04-10 Thread Achim Gratz
Bastien writes:
 (Sorry, I pushed a fix for the compiler warning that your patch also
 solves.)

Not in master, though?

 Achim Gratz strom...@nexgo.de writes:

 Since the test suite doesn't really test confirmation at all, it would
 be nice if someone with a good variety of Babel calls could check if the
 number of confirmations stay the same with and without the patch.  I
 don't think I have test cases that cover all possible combinations.

 Please let's go and apply this, that's the best way to have more
 people testing it.  Thanks!

Please wait for Eric to chime in.


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