Re: [O] Emacs user conference

2012-12-09 Thread joakim
Nic Ferrier nferr...@ferrier.me.uk writes:

 Nic Ferrier wrote:
 My understanding is that the guy who started the emacsconf.herokuapp.com
 IS planning to do a conference in London in March/April time.

 joa...@verona.se replied:

 That would be nice! Anyway, I wouldnt be able to put in much in the way
 of planning, so if a better organizer can find us a locale, that is
 probably for the best. (or I can ask our admin to help us, they are
 proficient at that sort of thing)

 well, as I say. It would be annoying if there were 2 at the same time.

 He *is* working on it. He has a venue. He has speakers (the emacsconf
 heroku app was setup by him).

 So I think you should maybe let him get on with it?


Cool, I'll do that.
-- 
Joakim Verona



Re: [O] The statement on what is orgmode.

2012-12-09 Thread David Rogers
Ivan Andrus darthand...@gmail.com writes:

 On Dec 7, 2012, at 9:50 AM, David Rogers davidandrewrog...@gmail.com wrote:

 And how about fantasy-but-would-be-really-useful features? Nearly unlimited.
 
 - Fully-functioning, practical Org-mode  Gnus  Emacs on a touch screen

 Would Emacs be Emacs without 5 modifier keys?

 - Optical character recognition within Emacs

 http://emacspeak.sourceforge.net/info/emacspeak_002docr.html

Unfortunately, implements everything to do with OCR... except the
important part. :) (Try our new OCR application! To make it run, all you
have to do is write your own OCR engine!) :P


 - Text entry by voice (including programming languages) within Emacs

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

Cool, I had no idea.


 - Hand-written text entry directly into Emacs, including filling in
 web forms

 Maybe if you speak Chinese: http://www.youtube.com/watch?v=hC6l8gDaYzQ


 And then comes the truly unlimited category of What, are you crazy???

 Yes, Emacs users are crazy!

 - Emacs Movie Editor

 Maybe you haven't heard of https://savannah.nongnu.org/projects/gneve/
 ?  I was originally going to just reply with just this link, but then
 I did some searching and found the rest.

Here again I had no idea.


 - Emacs Music Recording Studio

 Not a studio, but maybe a step in the right direction:
 http://emacswiki.org/emacs/erec.el

 - Emacs Audio-To-Text Song Lyrics Transcriber

 This one seems very hard, and in fact I could not find anyone who has
 tried.

This task is not easy for a lot of humans. No surprise that it's hard
for machines that don't even understand spoken language. (Code that
transcribes music notation from a recording would be even more difficult
and even more spectacular - but of course has nothing to do with Emacs,
except in the sense that Emacs has something to do with nearly
everything.) :)


-- 
David



Re: [O] export_file_name problem with new exporter

2012-12-09 Thread Alan Schmitt
Achim Gratz strom...@nexgo.de writes:

 Alan Schmitt writes:
 TINYCHANGE

 As much as you would wish it wasn't so, your patch exceeds the tiny
 change limit (not even counting your previous contributions) and you'll
 need signed copyright papers for this to go into Org and Emacs.

OK, there's something I'm missing here. First, the patch is a copy of
the same functions in org-e-latex with about 100 characters modified (by
repeatedly renaming latex into beamer in several places). I thought
it would qualify for a TINYCHANGE, but I guess this just proves I'm
not a lawyer ;-)

Second, I was under the impression that commits to contrib did not
participate to the 20 lines limit, as this directory is not included in
emacs. I put TINYCHANGE because Nicolas asked me when I did a small
change to org-e-latex.

I have actually signed and sent the papers to the FSF, I'm waiting to
get them back. Nevertheless it may be good to clarify whether the
TINYCHANGE restriction applies to files in contrib.

Best,

Alan



[O] babel perl issue

2012-12-09 Thread flav
Hello,
I am trying to use babel and I don't manage :

#+begin_src
perl

   print
toto\n;

#+end_src

When I do C-c C-o : No org-babel-execute function for perl!

In my .emacs :
(setq org-src-lang-modes (quote ((ocaml . tuareg) (elisp . emacs-lisp)
(ditaa . artist) (asymptote . asy) (dot . fundamental) (sqlite .
sql) (calc . fundamental) (C . c) (cpp . c++) (screen .
shell-script) (perl . perl

M-x org-version :

Org-mode version 7.9.2 (7.9.2-dist @ /usr/share/emacs/site-lisp/org/)

I am sorry, I am sure, I have not done it well, but if you can't help me !
-- 
flav


Re: [O] export_file_name problem with new exporter

2012-12-09 Thread Achim Gratz
Alan Schmitt writes:
 OK, there's something I'm missing here. First, the patch is a copy of
 the same functions in org-e-latex with about 100 characters modified (by
 repeatedly renaming latex into beamer in several places). I thought
 it would qualify for a TINYCHANGE, but I guess this just proves I'm
 not a lawyer ;-)

Yes, that is one of the murkier parts of what is or is not counted as a
contribution that needs copyright assigned and I don't claim to
understand the implications w.r.t. the 20 lines or less rule (or where
that 20 lines come from really, since you can do something substantial
in much less than 20 lines or something trivial in many more than 20).
However if you want to use that exemption, I guess it would be easier to
verify if that patch was made in two parts, one adding a literal copy
from org-e-latex (with a commit message that marks it as such) and the
second making those repetitive changes, marked as a TINYCHANGE.  Just a
suggestion.

 Second, I was under the impression that commits to contrib did not
 participate to the 20 lines limit, as this directory is not included in
 emacs. I put TINYCHANGE because Nicolas asked me when I did a small
 change to org-e-latex.

They don't usually, but the new exporter is scheduled to be moved into
Org core and at that time the copyright needs to be assigned, which is
why Nicolas is already keeping an eye on it.

 I have actually signed and sent the papers to the FSF, I'm waiting to
 get them back. Nevertheless it may be good to clarify whether the
 TINYCHANGE restriction applies to files in contrib.

Then I would think that everything should be resolved soon, however the
processing of papers can sometimes take a good deal of time.


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

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves




Re: [O] babel perl issue

2012-12-09 Thread Achim Gratz
flav writes:
 In my .emacs : 
 (setq org-src-lang-modes (quote ((ocaml . tuareg) (elisp .
 emacs-lisp) (ditaa . artist) (asymptote . asy) (dot .
 fundamental) (sqlite . sql) (calc . fundamental) (C . c) (cpp .
 c++) (screen . shell-script) (perl . perl

Scratch that.  You don't need to change anything for this variable (and
if you did it'd be better if you used customize).  What you want to do
is customize the Org Babel Load Languages in the Org Babel customize
group and add perl as a language so that ob-perl is loaded.


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

SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] export_file_name problem with new exporter

2012-12-09 Thread Suvayu Ali
On Sun, Dec 09, 2012 at 12:04:18PM +0100, Achim Gratz wrote:
 Alan Schmitt writes:
  I have actually signed and sent the papers to the FSF, I'm waiting to
  get them back. Nevertheless it may be good to clarify whether the
  TINYCHANGE restriction applies to files in contrib.
 
 Then I would think that everything should be resolved soon, however the
 processing of papers can sometimes take a good deal of time.
 

The FSF now accepts scans of the signed form I believe.  So the process
can be completed without using snail-mail.

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] export_file_name problem with new exporter

2012-12-09 Thread Jambunathan K
Suvayu Ali fatkasuvayu+li...@gmail.com writes:

 On Sun, Dec 09, 2012 at 12:04:18PM +0100, Achim Gratz wrote:
 Alan Schmitt writes:
  I have actually signed and sent the papers to the FSF, I'm waiting to
  get them back. Nevertheless it may be good to clarify whether the
  TINYCHANGE restriction applies to files in contrib.
 
 Then I would think that everything should be resolved soon, however the
 processing of papers can sometimes take a good deal of time.
 

 The FSF now accepts scans of the signed form I believe.  So the process
 can be completed without using snail-mail.

Depends on country of the contributor...

 Hope this helps,

-- 



[O] Custom agenda: search by tag and exclude DONE items

2012-12-09 Thread Karl Voit
Hi!

I want a custom agenda that lists all headings (not necessarily with
a state like TODO or NEXT) which are tagged with :borrowed: but
which are not in state DONE or CANCELED.

Should match:
* this item  :borrowed:   - no state!
* WAITING another item   :borrowed:
* TODO some item :borrowed:

Should *not* match:
* test item 1:foo:
* DONE returned item :borrowed:
* CANCELED aborted   :borrowed:

With «cB borrowed tags +borrowed» I do get DONE-entries as
well. 

With «cB borrowed tags-todo ...» I do think I need any state
like TODO or NEXT which I do not want as a requirement.

Do you have an idea on how I can achieve this?

Thanks!

-- 
Karl Voit




Re: [O] babel perl issue

2012-12-09 Thread Eric Schulte
Achim Gratz strom...@nexgo.de writes:

 flav writes:
 In my .emacs : 
 (setq org-src-lang-modes (quote ((ocaml . tuareg) (elisp .
 emacs-lisp) (ditaa . artist) (asymptote . asy) (dot .
 fundamental) (sqlite . sql) (calc . fundamental) (C . c) (cpp .
 c++) (screen . shell-script) (perl . perl

 Scratch that.  You don't need to change anything for this variable (and
 if you did it'd be better if you used customize).  What you want to do
 is customize the Org Babel Load Languages in the Org Babel customize
 group and add perl as a language so that ob-perl is loaded.


See http://orgmode.org/manual/Languages.html for the documentation on
how to activate and disable org-babel languages.

Best,

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



Re: [O] Exclude tag from custom agenda

2012-12-09 Thread Memnon Anon
Karl Voit devn...@karl-voit.at writes:

 What I want to achieve: on top, there should be my normal agenda
 (events, tasks, habits, ...) but minus elements tagged with
 reward.
[...]
 I think, that «(agenda  nil)» has to be modified but I don't know
 how.

I'm in a hurry, but lets see if I can give you something in 5 minutes.
We need a skip-by-tag function. gmane should help here
search...search

Mike McLean posted one in 2011, which still seems to work.
Lets make that a little more general:

#+begin_src emacs-lisp
;;; Based on http://article.gmane.org/gmane.emacs.orgmode/41427
  (defun my-skip-tag(tag)
Skip entries that are tagged TAG
(let* ((entry-tags (org-get-tags-at (point
  (if (member tag entry-tags)
  (progn (outline-next-heading) (point))
nil)))
#+end_src

Now, (agenda  nil) should be:

#+begin_src emacs-lisp
(agenda  
 ((org-agenda-skip-function '(my-skip-tagreward))
  (org-agenda-overriding-header Agenda (without rewards: )
#+end_src

That should do it.
Please give it a try :)

Memnon




Re: [O] Sort by Inactive Timestamp

2012-12-09 Thread Memnon Anon
Jeff Mickey j...@archlinux.org writes:

 Thank you Memnon! The (get-text-property 1 'org-marker a) is still
 voodoo to me, but that worked perfectly.

Hehe, it *is* black magic.
Carsten recommended to have a look at the org-cmp-* functions 
(http://article.gmane.org/gmane.emacs.orgmode/14634).

Those lines are basically cutpaste/killyank from org-cmp-todo-state in
org-agenda.el.

Follow Carstens advice
,[ http://article.gmane.org/gmane.emacs.orgmode/14634 ]
|You can look at these properties by pressing `C-u C-x =' on a line in 
 
|the agenda. 
`
and voodoo downgrades to black magic.

Gmane rocks!

Memnon





Re: [O] export_file_name problem with new exporter

2012-12-09 Thread Achim Gratz
Suvayu Ali writes:
 The FSF now accepts scans of the signed form I believe.  So the process
 can be completed without using snail-mail.

The snail mail part wasn't the limiting factor, at least in my case.
:-)


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




[O] [PATCH] re-introduce org-install for standalone Org

2012-12-09 Thread Achim Gratz

Here's the patch to re-introduce org-install.el again, now with
compatibility code for XEmacs.  The explanations are in the commit
message, but please ask if there are further questions.

From 29e382bebad0214fcb6eae0ae8b563fc70bb785b Mon Sep 17 00:00:00 2001
From: Achim Gratz strom...@stromeko.de
Date: Sun, 9 Dec 2012 17:10:47 +0100
Subject: [PATCH] re-introduce org-install.el

* lisp/org-install.el: Delete from version control, is autogenerated
  again.  An empty file should be provided in Emacs and for ELPA as
  before since it is not used there.

* .gitignore: Ignore org-install.el again, ignore
  org-autoloads.el (for ELPA).

* mk/org-fixup.el (org-make-org-loaddefs, org-make-autoloads),
  mk/default.mk: Rename org-make-org-loaddefs to
  org-make-org-autoloads.

* mk/org-fixup.el (org--autoload-rubric, org--update-file-autoloads,
  org--update-directory-autoloads): Internal functions that implement
  functionality missing from older Emacsen, especially for XEmacs.
  The implementations drop the generality (and complexity) of the
  original functions and are only useable in the context of the Org
  build system.

* mk/org-fixup.el (org-make-org-autolods): Arrange for org-install to
  collect the first-level autoload definitions for standalone
  Org (like loaddefs.el for Emacs and org-autoloads.el for package
  manager).  The second-level autoloads in org-loaddefs.el will be
  identical for all installations.  The first-level autoload
  definitions are automatically loaded by Emacs or package manager,
  respectively; for standalone Org, the user has to (require
  'org-install), as has been customary.

* mk/org-install-empty.el: New file, provide compatibility with
  standalone Org for ELPA and Emacs integration.

* mk/server.mk: Drop in compatibility org-install.el before creating
  the archive.

* lisp/Makefile: Arrange for two autoload files to be produced and
  remove backup files for these.

* mk/targets.mk, lisp/Makefile: Rename MAKE_ORG_INSTALL to
  MAKE_ORG_AUTOLOADS.

* lisp/org.el (org-reload): Do not reload org-install.org-install part2

Rationale: The introduction of org-loaddefs has made the standalone
version of Org quite different from the versions that are integrated
in Emacs or installed via ELPA.  To get the autoload definitions, it
is necessary to load org-loaddefs for a standalone version of Org,
while it is an error to do so otherwise (since the first-level
autoload definitions can not be loaded that way and may not be
compatible with the Org installation that provides org-loaddefs).
Since there is no default place for the first-level autoload
definitions to go in a standalone installation, this change
re-introduces org-install.el to be that place.  Since both Emacs and
ELPA provide such a place, org-install is an empty file for these
installations, provided for backward (and forward) compatibility with
a standalone Org installation.
---
 .gitignore  |  6 +++--
 lisp/Makefile   | 12 -
 lisp/org-install.el | 15 ---
 lisp/org.el |  2 +-
 mk/default.mk   |  4 +--
 mk/org-fixup.el | 71 -
 mk/org-install-empty.el | 21 +++
 mk/server.mk|  2 ++
 mk/targets.mk   |  2 +-
 9 files changed, 88 insertions(+), 47 deletions(-)
 delete mode 100644 lisp/org-install.el
 create mode 100644 mk/org-install-empty.el

diff --git a/.gitignore b/.gitignore
index a9d73ad..4060186 100644
--- a/.gitignore
+++ b/.gitignore
@@ -30,8 +30,10 @@
 orgcard_letter.tex
 orgcard.txt
 org
-org-loaddefs.el
-org-version.el
+lisp/org-autoloads.el
+lisp/org-install.el
+lisp/org-loaddefs.el
+lisp/org-version.el
 doc/org-version.inc
 org-*.tar*
 orgplus-*.tar*
diff --git a/lisp/Makefile b/lisp/Makefile
index 0e10c23..5dae2d9 100644
--- a/lisp/Makefile
+++ b/lisp/Makefile
@@ -15,7 +15,7 @@ ifneq ($(ORG_ADD_CONTRIB),)
 endif
 
 LISPV 	:= org-version.el
-LISPI 	:= org-loaddefs.el
+LISPI 	:= org-loaddefs.el org-install.el
 LISPA 	:= $(LISPV) $(LISPI)
 LISPB 	:= $(LISPA:%el=%elc) org-install.elc
 LISPF 	:= $(filter-out $(LISPA),$(sort $(wildcard *.el) $(_ORG_ADD_EL_)))
@@ -64,17 +64,15 @@ ifneq ($(ORG_ADD_CONTRIB),)
 	$(CP) $(addprefix ../contrib/lisp/,$(_ORG_ADD_EL_)) .
 endif
 
-autoloads:	cleanauto addcontrib $(LISPI) $(LISPV)
-
 $(LISPV):	$(LISPF)
 	@echo org-version: $(ORGVERSION) ($(GITVERSION))
 	@$(RM) $(@)
 	@$(MAKE_ORG_VERSION)
 
-$(LISPI):	$(LISPV) $(LISPF)
-	@echo org-loaddefs: $(ORGVERSION) ($(GITVERSION))
-	@$(RM) $(@)
-	@$(MAKE_ORG_INSTALL)
+autoloads:	cleanauto addcontrib $(LISPV) $(LISPF)
+	@echo Autoload generation: $(ORGVERSION) ($(GITVERSION))
+	@$(MAKE_ORG_AUTOLOADS)
+	@$(RM) $(LISPA:%=%~)
 
 install:	 compile $(LISPF)
 	if [ ! -d $(DESTDIR)$(lispdir) ] ; then \
diff --git a/lisp/org-install.el b/lisp/org-install.el
deleted file mode 100644
index aca019f..000
--- a/lisp/org-install.el
+++ /dev/null
@@ -1,15 +0,0 @@
-;;; org-install.el --- backward compatibility 

Re: [O] org-caldav: scripting for multiple calnedars?

2012-12-09 Thread David Engster
Detlef Steuer writes:
 What I'm trying to figure out at the moment, is how to setup a batch so, that
 say work.org goes into calendar work, family.org into calendar family 
 etc., 
 without asking for  user/password combinations.

That's not implemented. I guess you can workaround the problem by
calling org-caldav-sync several times, setting org-caldav-calendar-id
and org-caldav-files accordingly each time.

-David



Re: [O] babel perl issue

2012-12-09 Thread Achim Gratz
Eric Schulte writes:
 See http://orgmode.org/manual/Languages.html for the documentation on
 how to activate and disable org-babel languages.

That actually produces the error:

File mode specification error: (void-variable org-babel-tangle-lang-exts)

as the OP has found out (and I can reproduce it).

The reason is that none of the ob-lang.el files do a (require
ob-tangle), but try to change a defcustom in ob.tangle.el that is only
declared, but not yet available at the time.  I've quickfixed it by
moving the require for ob-tangle in org.el to the beginning of the file,
but this is now relying on the fact that org is implicitly loaded for
getting the major mode set up, so all the babel language files still
need to be cleaned up.

From 12d87c5d944b75f8acbd6cacb3351cede1d44525 Mon Sep 17 00:00:00 2001
From: Achim Gratz strom...@stromeko.de
Date: Sun, 9 Dec 2012 21:26:16 +0100
Subject: [PATCH] Keep requires at the beginning of the file

* lisp/org.el: Keep require forms at the beginning of the file.

Thanks to flav for providing an example that showed ob-tangle was
required too late.

Also, all ob-lang files should IMHO require ob-tangle instead of
declaring dynamic variables and relying on org.el to do the require.
---
 lisp/org.el | 62 ++---
 1 file changed, 31 insertions(+), 31 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index c5be3c5..42d4c0d 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -78,6 +78,37 @@ (defvar org-table-formula-constants-local nil
 (require 'find-func)
 (require 'format-spec)
 
+(require 'outline)
+(if (and (not (keymapp outline-mode-map)) (featurep 'allout))
+(error Conflict with outdated version of allout.el.  Load org.el before allout.el, or upgrade to newer allout, for example by switching to Emacs 22))
+(require 'noutline noutline 'noerror) ;; stock XEmacs does not have it
+
+;; Other stuff we need.
+(require 'time-date)
+(unless (fboundp 'time-subtract) (defalias 'time-subtract 'subtract-time))
+(require 'easymenu)
+(require 'overlay)
+
+(require 'org-macs)
+(require 'org-entities)
+;; (require 'org-compat) moved higher up in the file before it is first used
+(require 'org-faces)
+(require 'org-list)
+(require 'org-pcomplete)
+(require 'org-src)
+(require 'org-footnote)
+
+;; babel
+(require 'ob)
+(require 'ob-table)
+(require 'ob-lob)
+(require 'ob-ref)
+(require 'ob-tangle)
+(require 'ob-comint)
+(require 'ob-keys)
+
+(require 'font-lock)
+
 (let ((load-suffixes (list .el)))
   (load org-loaddefs 'noerror nil nil 'mustsuffix))
 
@@ -4939,35 +4970,6 @@ (defvar org-table-buffer-is-an nil)
 (defvar bidi-paragraph-direction)
 (defvar buffer-face-mode-face)
 
-(require 'outline)
-(if (and (not (keymapp outline-mode-map)) (featurep 'allout))
-(error Conflict with outdated version of allout.el.  Load org.el before allout.el, or upgrade to newer allout, for example by switching to Emacs 22))
-(require 'noutline noutline 'noerror) ;; stock XEmacs does not have it
-
-;; Other stuff we need.
-(require 'time-date)
-(unless (fboundp 'time-subtract) (defalias 'time-subtract 'subtract-time))
-(require 'easymenu)
-(require 'overlay)
-
-(require 'org-macs)
-(require 'org-entities)
-;; (require 'org-compat) moved higher up in the file before it is first used
-(require 'org-faces)
-(require 'org-list)
-(require 'org-pcomplete)
-(require 'org-src)
-(require 'org-footnote)
-
-;; babel
-(require 'ob)
-(require 'ob-table)
-(require 'ob-lob)
-(require 'ob-ref)
-(require 'ob-tangle)
-(require 'ob-comint)
-(require 'ob-keys)
-
 ;;;###autoload
 (define-derived-mode org-mode outline-mode Org
   Outline-based notes management and organizer, alias
@@ -5174,8 +5176,6 @@ (defvar org-mouse-map (make-sparse-keymap))
   (org-defkey org-mouse-map [(tab)] 'org-open-at-point)
   (org-defkey org-mouse-map \C-i 'org-open-at-point))
 
-(require 'font-lock)
-
 (defconst org-non-link-chars ]\t\n\r)
 (defvar org-link-types '(http https ftp mailto file news
 			 shell elisp doi message))
-- 
1.8.0.1




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

DIY Stuff:
http://Synth.Stromeko.net/DIY.html


Re: [O] Exclude tag from custom agenda

2012-12-09 Thread Karl Voit
* Memnon Anon gegendosenflei...@googlemail.com wrote:

 I'm in a hurry, but lets see if I can give you something in 5 minutes.

:-)

Following works:

,[ section within org-agenda-custom-commands ]
| (b borrowed stuff tags +borrowed (
|  (org-agenda-overriding-header stuff that I borrowed)
|  (org-agenda-skip-function 'tag-without-done-or-canceled)
|  ))
`

,[ you function ]
| (defun tag-without-done-or-canceled ()
|   Show items with tag \borrowed\ that are neither in \DONE\ or 
\CANCELED \ state.
|   (let ((state (org-entry-get (point) TODO)))
| (if (and (member borrowed (org-get-tags-at (point)))
|  (not (string= state DONE))
|  (not (string= state CANCELED)))
| nil ; do not skip
|   (line-end-position ; skip
`

Thanks very much! Very handy to me!

One little thing: there are not items listed that inherit the
«borrowed» tag from any higher level heading.  But I guess this is
something that could not be done easily in this case. Right?

-- 
Karl Voit




Re: [O] Custom agenda: search by tag and exclude DONE items

2012-12-09 Thread Karl Voit
* Karl Voit devn...@karl-voit.at wrote:
 Hi!

 I want a custom agenda that lists all headings (not necessarily with
 a state like TODO or NEXT) which are tagged with :borrowed: but
 which are not in state DONE or CANCELED.

Following works thanks to Memnon Anon:

,[ section within org-agenda-custom-commands ]
| (b borrowed stuff tags +borrowed (
|  (org-agenda-overriding-header stuff that I borrowed)
|  (org-agenda-skip-function 'tag-without-done-or-canceled)
|  ))
`

,[ you function ]
| (defun tag-without-done-or-canceled ()
|   Show items with tag \borrowed\ that are neither in \DONE\ or 
\CANCELED \ state.
|   (let ((state (org-entry-get (point) TODO)))
| (if (and (member borrowed (org-get-tags-at (point)))
|  (not (string= state DONE))
|  (not (string= state CANCELED)))
| nil ; do not skip
|   (line-end-position ; skip
`

Thanks very much! Very handy to me!

One little thing: there are not items listed that inherit the
«borrowed» tag from any higher level heading.  But I guess this is
something that could not be done easily in this case. Right?

-- 
Karl Voit




Re: [O] Exclude tag from custom agenda

2012-12-09 Thread Karl Voit
* Karl Voit devn...@karl-voit.at wrote:
 * Memnon Anon gegendosenflei...@googlemail.com wrote:

 I'm in a hurry, but lets see if I can give you something in 5 minutes.

 :-)

 Following works:

Sorry! I answered the wrong email :-(

My email was referring to another thread here.

-- 
Karl Voit




Re: [O] Exclude tag from custom agenda

2012-12-09 Thread Karl Voit
* Memnon Anon gegendosenflei...@googlemail.com wrote:
 Karl Voit devn...@karl-voit.at writes:

 What I want to achieve: on top, there should be my normal agenda
 (events, tasks, habits, ...) but minus elements tagged with
 reward.

 #+begin_src emacs-lisp
 ;;; Based on http://article.gmane.org/gmane.emacs.orgmode/41427
   (defun my-skip-tag(tag)
 Skip entries that are tagged TAG
 (let* ((entry-tags (org-get-tags-at (point
   (if (member tag entry-tags)
   (progn (outline-next-heading) (point))
 nil)))
 #+end_src

 #+begin_src emacs-lisp
 (agenda  
  ((org-agenda-skip-function '(my-skip-tagreward))
   (org-agenda-overriding-header Agenda (without rewards: )
 #+end_src

 That should do it.
 Please give it a try :)

Awesome! Works great!

Now I only need the DONE today section and a much faster CPU core
to generate my uber-agenda :-)

Thanks for your help!

-- 
Karl Voit




[O] Displaying Pretty fontification of source code blocks

2012-12-09 Thread Rodolfo Aramayo
Hi,
I have downloaded the org-source file corresponding to:
http://orgmode.org/worg/org-contrib/babel/examples/fontify-src-code-blocks.html
Installed 
color-theme-leuven.elhttps://github.com/fniessen/color-theme-leuven/blob/master/color-theme-leuven.el
Opened the file in emacs and exported as html
Despite my best efforts I cannot make the file display the pretty color I
see in the web site for the emacs-lisp code block
The emacs-lisp code blocks seems to be properly displayed in emacs (I can
see blus and green fonts) but never in the html file

Ideas?

Thanks


Re: [O] Displaying Pretty fontification of source code blocks

2012-12-09 Thread Jambunathan K
Rodolfo Aramayo raram...@gmail.com writes:

 Hi,
 I have downloaded the org-source file corresponding to:
 http://orgmode.org/worg/org-contrib/babel/examples/fontify-src-code-blocks.
 html
 Installed color-theme-leuven.el
 Opened the file in emacs and exported as html
 Despite my best efforts I cannot make the file display the pretty
 color I see in the web site for the emacs-lisp code block
 The emacs-lisp code blocks seems to be properly displayed in emacs (I
 can see blus and green fonts) but never in the html file

Screenshot of your Emacs frame and HTML file please.

I suspect that the problem is with css.  Also tell if you are using your
own CSS for code blocks or the one generated by htmlize.el itself.

There is a bug whereby Emacs default fg/bg (one or both) don't get
passed on to exported HTML file.  This has been around for a long time.
But nobody has complained yet and I am surprised.


 Ideas?

 Thanks



-- 



Re: [O] babel perl issue

2012-12-09 Thread flav
I put (require 'ob-tangle) in my .emacs
I am sorry but now

Symbol's function definition is void: org-not-nil


2012/12/9 ASSI strom...@nexgo.de

 require 'ob-tangle




-- 
flav


Re: [O] Linking to Thunderbird (correction)

2012-12-09 Thread Christoph Herzog

On 12/08/2012 12:41 AM, Christoph Herzog wrote:

Today I discovered a really practical add-on for Thunderbird that solved
my problem of how to linking to a mail in Thunderbird:

https://addons.mozilla.org/de/thunderbird/addon/thunderlink/

(It requires some modification of the mimetypes on your system as
described in the documentation.)
Next, I set up a file org-thunderlink.el to register the link in orgmode.
The code is not more than this:


(require 'org)

(org-add-link-type thunderlink 'org-thunderlink-open)

(defun org-thunderlink-open (path)
   Opens  a specified email in Thunderbird with the help of the add-on
ThunderLink.
   ;(message-box path)
   (start-process myname nil xdg-open (concat thunderlink: path)))

(provide 'org-thunderlink)



The following code works much better:


(require 'org)

(org-add-link-type thunderlink 'org-thunderlink-open)
(defun org-thunderlink-open (path)
  Opens  a specified email in Thunderbird with the help of the add-on 
ThunderLink.
  (start-process myname nil thunderbird -thunderlink (concat 
thunderlink: path)))


(provide 'org-thunderlink)