Re: [O] elp-instrument-package does not return anything

2012-12-24 Thread Bastien


Hi Sébastien,

"Sebastien Vauban"
 writes:

> Generating the agenda for 43 files, and more or less 75 entries to display,
> takes between 17 and 20 seconds, in this case 19 seconds:
>
> org-agenda-list   1   
> 19.15619.156
> org-agenda-prepare1   
> 11.14111.141
> org-agenda-prepare-buffers1   
> 11.07811.078
> org-get-agenda-file-buffer344 
> 11.06400  0.0321627906
  ^^

This is the most significant entry for me: it tells that Emacs on your
machine takes quite a lot of time to access files.  May be due to your
harddrive and your computer...

> org-agenda-get-day-entries301 
> 7.517999  0.0249767441
> org-agenda-get-scheduled  301 
> 4.518000  0.0150099667
> org-mode  43  
> 3.771000  0.0876976744
> org-entry-get 2601
> 2.033999  0.0007820069
> org-back-to-heading   6   
> 1.967999  0.0001770421
> org-get-property-block2601
> 1.908999  0.0007339484
> outline-back-to-heading   6   
> 1.77  0.0001601295
> org-set-startup-visibility43  
> 1.391 0.0323488372
> org-agenda-get-deadlines  301 
> 1.36  0.0045182724
> org-get-todo-state3782
> 1.33  0.0003543098
> org-agenda-files  46  
> 0.805000  0.017500
> org-cycle-internal-global 43  
> 0.781000  0.0181627906
> org-cycle 43  
> 0.781000  0.0181627906
> org-install-agenda-files-menu 43  
> 0.774000  0.018000
> org-agenda-skip   4636
> 0.717000  0.0001546591
> org-agenda-get-sexps  301 
> 0.702000  0.0023322259
> outline-next-heading  7764
> 0.678000  8.73...e-005
> org-overview  43  
> 0.672000  0.0156279069
> outline-map-region43  
> 0.609000  0.0141627906
> org-load-modules-maybe86  
> 0.594 0.0069069767
> org-time-string-to-absolute   3759
> 0.517000  0.0001375365
> org-parse-time-string 40880.5 
>   0.0001223091
> org-set-regexps-and-options   43  
> 0.497000  0.0115581395
> org-cycle-hide-drawers86  
> 0.405000  0.0047093023
> org-find-base-buffer-visiting 344 
> 0.404000  0.0011744186
> org-agenda-get-timestamps 301 
> 0.359000  0.0011926910
> org-agenda-get-blocks 301 
> 0.347000  0.0011528239
> org-diary-sexp-entry  714 
> 0.328000  0.0004593837
> org-flag-drawer   1396
> 0.297000  0.0002127507
> org-before-first-heading-p2602
> 0.282000  0.0001083781
> org-outline-level 4313
> 0.265 6.14...e-005
> org-cycle-show-empty-lines86  
> 0.205000  0.0023837209
> org-agenda-finalize-entries   4   
> 0.203 0.05075
> org-macro-initialize-templates43  
> 0.173000  0.0040232558
> org-get-tags-at   84  
> 0.171000  0.0020357142
> org-up-heading-safe   225 
> 0.14  0.000622
> org-entries-lessp 372 
> 0.14  0.0003763440
> org-all-targets   43  
> 0.138 0.0032093023
> org-update-radio-target-regexp43  
> 0.138 0.0032093023
> org-babel-hide-all-hashes 43

[O] org-plus-contrib-20121224 error

2012-12-24 Thread Alan L Tyree
Using the above package in emacs 24.2.1 on Debian Wheezy/Sid, I get an 
error when trying to call up the agenda with C-C a. The error is


Invalid function: org-no-popups.

Regards,
Alan

--
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206  sip:172...@iptel.org




Re: [O] Footnote disable & sorting

2012-12-24 Thread Alan L Tyree

Bastien  writes:

> Hi Alan,
>
> if you can, please test this patch against current maint branch.
> All tests don't pass fine, so I'll have to work on this a bit more
> but I think it's an improvement, as it doesn't treat [1] as a 
> footnote when `org-footnote-auto-label' is t (the default.)
>
> Let me know, thanks!
Hi Bastien,

I'm using the elpa version of org-plus-contrib-20121224. After I learned
how to apply patches (hangs head in shame!!), it solved all the problems
that I had - sorting, renumbering, exporting all worked very well.

Are you thinking of making this a general option?

Thanks so much!

Cheers,
Alan


-- 
Alan L Tyree   http://www2.austlii.edu.au/~alan
Tel:  04 2748 6206 sip:172...@iptel.org



Re: [O] [Bug] Bug in org-depend, was: Strange behavior of property-search and org-tags-view

2012-12-24 Thread Bastien
Hi Sven,

"Sven Bretfeld"  writes:

> It took me a good hour to find the package that produced the problem.

Thanks for this.

Please let me know if the attached patch fixes the problem for you.

diff --git a/lisp/org.el b/lisp/org.el
index 0fabaf6..e62ba25 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -11770,15 +11770,16 @@ changes because there are unchecked boxes in this entry."
 
 (defun org-entry-blocked-p ()
   "Is the current entry blocked?"
-  (if (org-entry-get nil "NOBLOCKING")
-  nil ;; Never block this entry
-(not
- (run-hook-with-args-until-failure
-  'org-blocker-hook
-  (list :type 'todo-state-change
-	:position (point)
-	:from 'todo
-	:to 'done)
+  (with-buffer-modified-unmodified
+   (if (org-entry-get nil "NOBLOCKING")
+   nil ;; Never block this entry
+ (not
+  (run-hook-with-args-until-failure
+   'org-blocker-hook
+   (list :type 'todo-state-change
+	 :position (point)
+	 :from 'todo
+	 :to 'done))
 
 (defun org-update-statistics-cookies (all)
   "Update the statistics cookie, either from TODO or from checkboxes.

-- 
 Bastien


Re: [O] #+STARTUP keywords for several variables

2012-12-24 Thread John J Foerch
Bastien  writes:
> Hi John,
>
> John J Foerch  writes:
>
>> Thank you.  I think of org-treat-insert-todo-heading-as-state-change as
>> part of the format of a given file, as it is analogous to 'logdone', but
>> deals with newly opened items as opposed to closed ones. 
>
> There is a trade-off here: I understand it would make sense from your
> problem's point of vue (sharing files and config easily) but I don't
> want to add to many #+STARTUP keywords, there are already too many to
> my taste.  If you can use #+BIND for this, it's better IMHO.

Okay, works for me.  Thank you for your work.

-- 
John Foerch




Re: [O] Fix to property inheritance

2012-12-24 Thread Bastien
Hi Bill,

Bill Wishon  writes:

> My public git repository info is: git clone g...@bitbucket.org:mrvwman
> /wishon-org-mode.git
> branch name: fix-property-inheritance

I could not clone this repository, apparently I don't have enough
rights.  Can you send a patch?  

Thanks,

-- 
 Bastien



Re: [O] moving subtree breaks line space

2012-12-24 Thread Bastien
Hi Philippe,

philippe roudot  writes:

> One could add in the FAQ entry  "Why is a blank line inserted after
> headlines and list items?" that the same variable control subtree
> motion.

Can you suggest an applicable modification (e.g. a patch)
against the FAQ in Worg?

~$  git clone git://orgmode.org/worg.git

Then edit the FAQ... then `C-x v =' to get the patch in a
new buffer.

Thanks!

-- 
 Bastien



Re: [O] Bugs in org-cycle-internal-local?

2012-12-24 Thread Bastien
Rémi Vanicat  writes:

> did you let the two space before the both def? Without those space,
> every thing work find:
>
> the full snipet is like
>
> class XmmsInteract
>   def get(info, attr, default=nil)
> info[attr].to_a[0][1]
>   end
>
>   def initialize
> @looking_for_medialib_list = []
>   end
> end
>
> and the hide fail on the "  def get"
>
> I admit that the importance of the space could be not obvious in my
> first email.

Well, it was, I just skipped it inadvertantly.
I can reproduce the problem, but don't have an easy fix
at hand.  If you find one, please let us know.

Thanks,

-- 
 Bastien



Re: [O] Publishing only sub-hierarchies with a given tag

2012-12-24 Thread Bastien
Karl Voit  writes:

> Let's see, what I can accomplish in the next two months.

Yep, let us know!

-- 
 Bastien



Re: [O] #+STARTUP keywords for several variables

2012-12-24 Thread Bastien
Hi John,

John J Foerch  writes:

> Thank you.  I think of org-treat-insert-todo-heading-as-state-change as
> part of the format of a given file, as it is analogous to 'logdone', but
> deals with newly opened items as opposed to closed ones. 

There is a trade-off here: I understand it would make sense from your
problem's point of vue (sharing files and config easily) but I don't
want to add to many #+STARTUP keywords, there are already too many to
my taste.  If you can use #+BIND for this, it's better IMHO.

-- 
 Bastien



Re: [O] Footnote disable & sorting

2012-12-24 Thread Bastien
Hi Alan,

if you can, please test this patch against current maint branch.
All tests don't pass fine, so I'll have to work on this a bit more
but I think it's an improvement, as it doesn't treat [1] as a 
footnote when `org-footnote-auto-label' is t (the default.)

Let me know, thanks!

diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el
index c598965..57ee678 100644
--- a/lisp/org-footnote.el
+++ b/lisp/org-footnote.el
@@ -67,25 +67,6 @@
 (defvar message-cite-prefix-regexp)	; defined in message.el
 (defvar message-signature-separator)	; defined in message.el
 
-(defconst org-footnote-re
-  ;; Only [1]-like footnotes are closed in this regexp, as footnotes
-  ;; from other types might contain square brackets (i.e. links) in
-  ;; their definition.
-  ;;
-  ;; `org-re' is used for regexp compatibility with XEmacs.
-  (concat "\\[\\(?:"
-	  ;; Match inline footnotes.
-	  (org-re "fn:\\([-_[:word:]]+\\)?:\\|")
-	  ;; Match other footnotes.
-	  "\\(?:\\([0-9]+\\)\\]\\)\\|"
-	  (org-re "\\(fn:[-_[:word:]]+\\)")
-	  "\\)")
-  "Regular expression for matching footnotes.")
-
-(defconst org-footnote-definition-re
-  (org-re "^\\[\\([0-9]+\\|fn:[-_[:word:]]+\\)\\]")
-  "Regular expression matching the definition of a footnote.")
-
 (defconst org-footnote-forbidden-blocks
   '("ascii" "beamer" "comment" "docbook" "example" "html" "latex" "odt" "src")
   "Names of blocks where footnotes are not allowed.")
@@ -136,13 +117,13 @@ will be used to define the footnote at the reference position."
   "Non-nil means define automatically new labels for footnotes.
 Possible values are:
 
-nilprompt the user for each label
-t  create unique labels of the form [fn:1], [fn:2], ...
-confirmlike t, but let the user edit the created value.  In particular,
-   the label can be removed from the minibuffer, to create
-   an anonymous footnote.
+nilPrompt the user for each label.
+t  Create unique labels of the form [fn:1], [fn:2], etc.
+confirmLike t, but let the user edit the created value.
+   In particular, the label can be removed from the
+   minibuffer, to create an anonymous footnote.
 random	   Automatically generate a unique, random label.
-plain  Automatically create plain number labels like [1]"
+plain  Automatically create plain number labels like [1]."
   :group 'org-footnote
   :type '(choice
 	  (const :tag "Prompt for label" nil)
@@ -151,6 +132,36 @@ plain  Automatically create plain number labels like [1]"
 	  (const :tag "Create a random label" random)
 	  (const :tag "Create automatic [N]" plain)))
 
+(defvar org-footnote-re nil
+  "Regular expression for matching footnotes.")
+(defvar org-footnote-definition-re nil
+  "Regular expression matching the definition of a footnote.")
+
+(defun org-footnote-set-re ()
+  "Set the regular expression `org-footnote-re'."
+  ;; Only [1]-like footnotes are closed in this regexp, as footnotes
+  ;; from other types might contain square brackets (i.e. links) in
+  ;; their definition.
+  ;;
+  ;; `org-re' is used for regexp compatibility with XEmacs.
+  (setq org-footnote-re
+	(concat "\\[\\(?:"
+		;; Match inline footnotes.
+		(org-re "fn:\\([-_[:word:]]+\\)?:\\|")
+		;; Match other footnotes.
+		(when (eq org-footnote-auto-label 'plain)
+		  "\\(?:\\([0-9]+\\)\\]\\)\\|")
+		(org-re "\\(fn:[-_[:word:]]+\\)")
+		"\\)")))
+(org-footnote-set-re)
+
+(defun org-footnote-definition-set-re ()
+  (setq org-footnote-definition-re
+	(if (eq org-footnote-auto-label 'plain)
+	(org-re "^\\[\\([0-9]+\\)\\]")
+	  (org-re "^\\[\\(fn:[-_[:word:]]+\\)\\]"
+(org-footnote-definition-set-re)
+
 (defcustom org-footnote-auto-adjust nil
   "Non-nil means automatically adjust footnotes after insert/delete.
 When this is t, after each insertion or deletion of a footnote,
@@ -388,7 +399,9 @@ Return a non-nil value when a definition has been found."
   (cond
((numberp label) (number-to-string label))
((equal "" label) nil)
-   ((not (string-match "^[0-9]+$\\|^fn:" label))
+   ((not (if (eq org-footnote-auto-label 'plain)
+	 (string-match "^[0-9]+$" label)
+	   (string-match "^fn:" label)))
 (concat "fn:" label))
(t label)))
 

-- 
 Bastien


Re: [O] Bug: conflict with python-mode [7.8.11]

2012-12-24 Thread Bastien
I can finally reproduce the bug.

It comes from python-model.el which set this:

  (defvar outline-heading-end-regexp nil)

Andreas, this breaks outline in Org - can you have a look?

Thanks,

-- 
 Bastien



[O] Error exporting empty results block

2012-12-24 Thread Michael Gauland
org-escape-code-in-region produces an 'Invalid search bound (wrong side
of point)' error when exporting a block that produces an empty wrapped
block. For example:

  #+BEGIN_SRC emacs-lisp :wrap fundamental :exports both
  (setq x nil)
  #+END_SRC

I'm exporting an empty block because I want the side effect of executing
the block. I have a large number of other blocks that produce non-empty
results, and I'm using a global :wrap setting for those.

Any suggestions on solving this would be appreciated.

Kind Regards,
Mike Gauland




signature.asc
Description: OpenPGP digital signature


Re: [O] Bug: conflict with python-mode [7.8.11]

2012-12-24 Thread Bastien
Hi Till,

I cannot reproduce the problem with my setup, but...

Till Junge  writes:

> current state:
> ==
> (setq
>  org-ditaa-jar-path "/usr/bin/ditaa"
>  org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
>  org-speed-command-hook '(org-speed-command-default-hook
> org-babel-speed-command-hook)
>  org-metaup-hook '(org-babel-load-in-session-maybe)
>  org-startup-truncated nil
>  org-after-todo-state-change-hook '(org-clock-out-if-current)
>  org-export-latex-format-toc-function 'org-export-latex-format-toc-default
>  org-tab-first-hook '(org-hide-block-toggle-maybe
> org-src-native-tab-command-maybe
>   org-babel-hide-result-toggle-maybe)
>  org-src-mode-hook '(org-src-babel-configure-edit-buffer
> org-src-mode-configure-edit-buffer)
>  org-confirm-shell-link-function 'yes-or-no-p
>  outline-heading-end-regexp nil
   ^^

This line above is suspicious.  This variable is not used by 
current Org, but it is used by Python made (as a buffer local
variable, though.)

Maybe you can try to remove this part of your config and see
if it fixes the problem?

Otherwise, if you can, please test with a newer version of
Org.

HTH,

-- 
 Bastien



Re: [O] Capture tries to encrypt for no reason

2012-12-24 Thread Bastien
Hi Samuel,

Samuel Wales  writes:

> Capture tries to encrypt for no reason.
>
> (defun org-at-encrypted-entry-p ()
>   "Is the current entry encrypted?"
>   (unless (org-before-first-heading-p)
> (save-excursion
>   (org-back-to-heading t)
>   (search-forward "-BEGIN PGP MESSAGE-"
> (save-excursion (org-end-of-subtree t)) t
>
> My guess is that going to the end of the subtree is wrong.  It should
> be to the end of the entry.

Indeed.  Fixed, thanks for catching this.

-- 
 Bastien



Re: [O] [DEV] New version of org-reftable.el

2012-12-24 Thread Marc-Oliver Ihm

Hi Bastien, Hi all !

Currently I often use this package to quickly navigate within my org-files.
Entering a keyword gives me a list of nodes associated with this keyword;
within this list, often used entries appear at the top, so that the desired
entry can be spotted very fast.

This will be even easier with the support for normal org-mode links, that
will be introduced with version 2.1, next month.

Comments, as always, are welcome.


Best regards, Marc


Am 24.12.2012 09:47, schrieb Bastien:

Hi Marc-Oliver,

Marc-Oliver Ihm  writes:


Version 2.0 of org-reftable.el has arrived at worg.
Please find it as:

 http://orgmode.org/worg/code/elisp/org-reftable.el


I've not had time to test the package but I hope others will do.
If you/they think this can be a good candidate for contrib/ please
let us know!  In the mean time, thanks for making it available on
Worg.

Best,







Re: [O] Opendocument export causes error

2012-12-24 Thread Torsten Anders
Dear Jambunathan and others,

Apologies for my very late response in concerning the difficulties loading 
certain org-files related to Opendocument export (unfortunately, I have very 
little time for things like research in my job now, and this is a very busy 
time with assessment marking and everything :)

To summarise at first, the results in my 2nd IELM session (at the end of the 
message below) differed clearly from those in your kindly provided template -- 
in several cases symbol-file returned nil instead a path, and for (symbol-file 
'org-macs 'require) it returns a different path that in your template. Does 
that perhaps point towards the problem? 

Here is the full story. Please remember that I cannot not use the OpenDocument 
export, because -- as far as I understood -- (the correct version of) 
"org-compat.el" and "org-odt.el" are not loaded. This is perhaps caused by the 
fact that the Emacs I am using (the latest stable release of Aquamacs, version 
2.4) is based on the rather old GNU Emacs 23.3.50.1. Aquamacs is widely used on 
the Mac platform, so likely I am not the only one with these problems. 

I temporarily fixed my problem by loading the respective libraries manually in 
my ~/.emacs file as below, but as others may also have this problem this is 
probably not the best and certainly not a clean solution.

;; TMP hack to get OpenDocument export working again
(load-library "org-compat.el")
(load-library "org-odt.el")


Anyway, I finally ran the tests you suggested (thanks a lot for detailing 
these!).

> 1. Load Emacs like this.  Adjust the `-L's.  Note also the -Q.
> 
>   emacs --debug-init  -L ~/src/org-mode/lisp  -L ~/src/org-mode/contrib/lisp 
> -Q

Aquamacs started. Clearly, Aquamacs was not fully loaded (e.g., standard Mac 
short-cuts where not yet defined). Anyway, it output the following message in 
*Messages*

Aquamacs is based on GNU Emacs, a part of the GNU/Linux system. It is Free 
Software: you can improve and redistribute it under the GNU General Public 
License, version 3 or later. Copyright (C) 2011 Free Software Foundation, Inc. 
(C) 2011 D. Reitter. No Warranty.
ns-handle-drag-file: Symbol's value as variable is void: 
one-buffer-one-frame-mode

To double check, I confirmed the Emacs version.

GNU Emacs 23.3.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54)
 of 2011-10-25 on braeburn.aquamacs.org
Copyright (C) 2011 Free Software Foundation, Inc.


> 2. M-x load-library RET org-odt RET

Loading org-odt...
Loading /Users/torsten/emacs/org-mode/lisp/org-loaddefs.el (source)...done
Debug (org-odt): Searching for OpenDocument schema files...
Debug (org-odt): Trying /usr/share/emacs/etc/org/schema/... [2 times]
Debug (org-odt): No OpenDocument schema files installed
Debug (org-odt): Searching for OpenDocument styles files...
Debug (org-odt): Trying /usr/share/emacs/etc/org/styles/... [2 times]
Debug (org-odt): Trying /Users/torsten/emacs/org-mode/etc/styles/...
Debug (org-odt): Using styles under /Users/torsten/emacs/org-mode/etc/styles/
Loading org-odt...done

> 3. M-x ielm RET

> | ELISP> (symbol-file 'org-compat 'require)
"/Users/torsten/emacs/org-mode/lisp/org.elc"
>| ELISP> (symbol-file 'org 'require)
"/Users/torsten/emacs/org-mode/lisp/org-exp.elc"
>| ELISP> (symbol-file 'org-exp 'require)
"/Users/torsten/emacs/org-mode/lisp/org-lparse.elc"
>| ELISP> (symbol-file 'org-lparse 'require)
"/Users/torsten/emacs/org-mode/lisp/org-odt.elc"
>| ELISP> (symbol-file 'org-odt 'require)

nil


I restarted Aquamacs and repeated all above except for the previous ielm 
session (just in case, as I do not know whether symbol-file has any side 
effects).

>| ELISP> (symbol-file 'org-compat 'require)
"/Users/torsten/emacs/org-mode/lisp/org.elc"
>| ELISP> (symbol-file 'org 'require)
"/Users/torsten/emacs/org-mode/lisp/org-exp.elc"
>| ELISP> (symbol-file 'org-element 'require)
nil
>| ELISP> (symbol-file 'org-export 'require)
nil
>| ELISP> (symbol-file 'org-e-odt 'require)
nil
>| ELISP> (symbol-file 'org-macs 'require)
"/Users/torsten/emacs/org-mode/lisp/org-exp.elc"

Again, thanks a lot for your help!

Best wishes,
Torsten



On 4 Dec 2012, at 05:33, Jambunathan K wrote:
>> I will go through your detailed list of suggestions a bit
>> later. Thanks a lot again for your help!
> 
> I hope you do revert with your observations on broken setup.  
> 
> In my experience, most users don't :-).
> 
> There is some confusion around the area of macros and autoloads.
> Something is amiss.  Only non-programmers seem to run in to this and it
> has been very difficult to understand what is happening on their setup,
> without their co-operation.
> 
> Here is another suggestion.  A bit easy one though.  This will be
> archived and will serve as a written hint to debug macro/autoload
> issues.  
> 
> When the err happens,
> 
> 1. Load Emacs like this.  Adjust the `-L's.  Note also the -Q.
> 
>   emacs --debug-init  -L ~/src/org-mode/lisp  -L
>   ~/src/org-mode/contrib/

Re: [O] Howto convert a complete bibtex file into an orgmode file?

2012-12-24 Thread Florian Beck

On 11/24/2012 06:05 PM, michael.zom...@googlemail.com wrote:


As far as I was able to find out, this is only possible for a single
entry via 'org-bibtex-read'.


I think I did something like

M-: (while (re-search-forward "^@.*{" nil t) (org-bibtex-read))

Refine the regular expression, if you have any macros.




Re: [O] [PATCH] Wrap: override default

2012-12-24 Thread Michael Gauland
On 24/12/12 21:43, Bastien wrote
> Well, the patch is wrong, if (cdr (assoc :wrap (nth 2 info)))
> is in the (and ...) sexp, no need to have it in the (or ...)
> sexp?
>
> I'll mark it as "not applicable".  I let you propose another
> patch if you still need to fix an issue in this area.
>
> Thanks!

Good catch. I haven't been able to reproduce the original problem, so
I'm happy to abandon this patch.



signature.asc
Description: OpenPGP digital signature


[O] Capture tries to encrypt for no reason

2012-12-24 Thread Samuel Wales
Capture tries to encrypt for no reason.

(defun org-at-encrypted-entry-p ()
  "Is the current entry encrypted?"
  (unless (org-before-first-heading-p)
(save-excursion
  (org-back-to-heading t)
  (search-forward "-BEGIN PGP MESSAGE-"
  (save-excursion (org-end-of-subtree t)) t

My guess is that going to the end of the subtree is wrong.  It should
be to the end of the entry.

That should also speed up capture.



Re: [O] Footnote disable & sorting

2012-12-24 Thread Alan L Tyree

Bastien  writes:

> Hi Alan,
>
> Alan L Tyree  writes:
>
>> Thanks Bastien.
>
> You're welcome... 
>
>> My real problem is that plain footnotes such as [1930] are a general
>> nuisance to me since so many legal citations use that form. I am using a
>> hack suggested by Jan Bocker to disable them, perform some operation and
>> then "un hack" the hack.
>
> Sorry to ask the obvious, but from your message I'm not sure you tried
> to remove the footnotes from the list of activated links.  I'm curious
> to know what problem it does not solve for you!
>
> Thanks for any follow-up,

Hi Bastien,
Sorry I wasn't clear. I did try removing the footnotes from the list of
activated links. 

My problem is really different:

When I try to sort footnotes with C-u C-c C-x f s all my legal citations
such as:

See Golodetz & Co Inc v Czarnikow-Rionda Co Inc (The Galatia) [1979] 2
Lloyd's Rep 450 

produce new footnotes:

[1979] DEFINITION NOT FOUND: 1979

As I said, I can live with this thanks to hacks suggested on this list,
but it seems that I am always running into the problem in contexts that
require new functions or macros. I'm not much of a programmer, but I was
looking for some simple way to disable those pesky plain footnotes for
*all* purposes.

Thanks for you interest in this, and have a good Christmas!

Cheers,
Alan

-- 
Alan L Tyree   http://www2.austlii.edu.au/~alan
Tel:  04 2748 6206 sip:172...@iptel.org



[O] Bug: conflict with python-mode [7.8.11]

2012-12-24 Thread Till Junge
This may be a python-mode bug but I'm new to all of this.

I observe the bug only when using org-mode together with python-mode. My
org-mode setup is supposed to load org-cdlatex-mode:

(autoload 'org-cdlatex-mode "cdlatex" "Enter org-cdlatex mode" t)
(add-hook 'org-mode-hook 'turn-on-org-cdlatex)

and this works fine when python-mode is not loaded. When I load python
mode, however (trunk version)

  (setq py-install-directory "~/.emacs.d/python-mode.el-6.1.0")
  (add-to-list 'load-path py-install-directory)
  (require 'python-mode)

Then cdlatex mode is not loaded anymore and it's impossible to unfold
any headlines. Org-mode becomes entirely useless:

#+TODO: TODO CODE(c) DOCU(d) PLAN(p) PROJ(j) QUESTION(q) TEST(t) |
DONE(d) ANSWERED(a)
#+TAGS: PHONE(p) URGENT(u) MAIL(m)  CODE(c)
#+STARTUP: inlineimage
#+AUTHOR: anauthor
#+TITLE: a title
...

when I try to expand the '...' (which btw looks lice '* Introduction...'
when everything works fine), I get the message "outline-end-of-heading:
Wrong type argument: stringp, nil"

What to I do?


Emacs  : GNU Emacs 23.4.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.12)
 of 2012-09-22 on allspice, modified by Debian
Package: Org-mode version 7.8.11

current state:
==
(setq
 org-ditaa-jar-path "/usr/bin/ditaa"
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-startup-truncated nil
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-tab-first-hook '(org-hide-block-toggle-maybe
org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 outline-heading-end-regexp nil
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
 org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 org-mode-hook '(#[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
turn-on-org-cdlatex)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((src org-babel-exp-non-block-elements))
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-occur-hook '(org-first-headline-recenter)
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
   org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-export-blocks '((src org-babel-exp-src-block nil)
 (export-comment org-export-blocks-format-comment t)
 (ditaa org-export-blocks-format-ditaa nil)
 (dot org-export-blocks-format-dot nil))
 )




signature.asc
Description: OpenPGP digital signature


Re: [O] #+STARTUP keywords for several variables

2012-12-24 Thread John J Foerch
Bastien  writes:
> Hi John,
>
> John J Foerch  writes:
>
>> I did not find #+STARTUP keywords for several variables that configure
>> the format of an org file:
>>
>>   org-log-into-drawer
>>   org-log-states-order-reversed
>
> I added logdrawer / nologdrawer and logstatesreversed / nologstatesreversed
>
>>   org-treat-insert-todo-heading-as-state-change
>
> For this one, I think it falls into the "really-just-an-option-
> and-we-cannot-have-startup-keywords-for-every-option" category :)
>
>> I think that there should be keywords that correspond to these variables
>> because it would make it easier to share org files among different
>> emacses with different org configurations.  File-local variables can
>> currently be used to configure these variables, but #+STARTUP keywords
>> would be more elegant.
>
> Note that you can also bind variables with #+BIND.
>
> Thanks,

Thank you.  I think of org-treat-insert-todo-heading-as-state-change as
part of the format of a given file, as it is analogous to 'logdone', but
deals with newly opened items as opposed to closed ones.  I didn't know
about #+BIND - will check it out.

Thanks again,

-- 

John Foerch




Re: [O] Publishing only sub-hierarchies with a given tag

2012-12-24 Thread Karl Voit
* Bastien  wrote:
> Hi Karl,

Hi!

> Karl Voit  writes:
>
>> The publishing methods are quite capable. I wonder whether or not it
>> is possible (or easy to implement) to limit content to
>> sub-hierarchies that are tagged for publishing.
>>
>> So if I have multiple Org-mode files in «base-directory», publish
>> only the (few) things that are tagged with e.g. «:publish:».
>
> Can't you achieve (part of) this with :export: and :noexport: ?

In theory you are probably right.

But in practice I'd have to tag every heading. Additionally, I want
to use the export/noexport-mechanism independent from publishing for
blogging. And this is my use-case I was referring to.

Anyway. I have to implement my blogging system in Python I guess.
There are too many things I would like to "have it my way" :-)

Let's see, what I can accomplish in the next two months.

-- 
Karl Voit




Re: [O] elp-instrument-package does not return anything

2012-12-24 Thread Sebastien Vauban
Hello,

(I did not see my previous answer to this, so redoing it)

"Sebastien Vauban" wrote:
> For the sake of finding potential bottlenecks in my config, I'm looking back
> at elp.
>
> I've the following minimal Emacs config file for the current work: [...]
>
> Though, for whatever unknown reason, when calling elp-results, I just get info
> about font-lock.
>
> Nothing about Org!?
>
> I'm really out of ideas about what to do to get those Org profiling results?
> Any idea of what I'm doing wrong (I guess)?

As found out by Bastien, one needs to require the packages first, before
instrumenting them. Not automatic!

OK, so, with the new Emacs *minimal config*:

--8<---cut here---start->8---
;; activate debugging
(setq debug-on-error t)
(setq debug-on-quit t)

;; change the pathnames appropriately!
(add-to-list 'load-path (expand-file-name "~/src/org-mode/lisp"))
(add-to-list 'load-path (expand-file-name "~/src/org-mode/contrib/lisp"))

(require 'org)
(require 'org-agenda)
(require 'outline)
(require 'font-lock)
(require 'flyspell)
(require 'ispell)
(require 'calendar)
(require 'cal-iso)
(require 'diary-lib)

;; profile some times... CAUTION: require the packages first (to get results)!
(when (require 'elp)
  ;; the most important ones
  (elp-instrument-package "org")
  (elp-instrument-package "org-agenda")
  (elp-instrument-package "outline")
  (elp-instrument-package "font-lock")
  (elp-instrument-package "flyspell")
  (elp-instrument-package "ispell")
  (elp-instrument-package "emacs-leuven")
  (elp-instrument-package "calendar")
  (elp-instrument-package "cal-iso")
  (elp-instrument-package "diary-lib")

  (global-set-key "\C-ce" 'elp-results))

;; improve readability of profile results, give milliseconds
(defun elp-pack-number (number width)
  (format (concat "%" (number-to-string (- width 3)) ".2f")
  (* 100 (string-to-number number

(setq org-agenda-files
  (append
   ;; org-directory
   (file-expand-wildcards "~/Personal/*.org")
   (file-expand-wildcards "~/Projects/*.org")))

(defconst em/emacs-load-time-start (float-time))
(org-agenda-list)
(message "Loading Minimal Emacs... Done (in %.2f s)"
 (- (float-time) em/emacs-load-time-start))
--8<---cut here---end--->8---

Generating the agenda for 43 files, and more or less 75 entries to display,
takes between 17 and 20 seconds, in this case 19 seconds:

--8<---cut here---start->8---
org-agenda-list   1   
19.15619.156
org-agenda-prepare1   
11.14111.141
org-agenda-prepare-buffers1   
11.07811.078
org-get-agenda-file-buffer344 
11.06400  0.0321627906
org-agenda-get-day-entries301 
7.517999  0.0249767441
org-agenda-get-scheduled  301 
4.518000  0.0150099667
org-mode  43  
3.771000  0.0876976744
org-entry-get 2601
2.033999  0.0007820069
org-back-to-heading   6   
1.967999  0.0001770421
org-get-property-block2601
1.908999  0.0007339484
outline-back-to-heading   6   
1.77  0.0001601295
org-set-startup-visibility43  1.391 
0.0323488372
org-agenda-get-deadlines  301 1.36  
0.0045182724
org-get-todo-state3782
1.33  0.0003543098
org-agenda-files  46  
0.805000  0.017500
org-cycle-internal-global 43  
0.781000  0.0181627906
org-cycle 43  
0.781000  0.0181627906
org-install-agenda-files-menu 43  
0.774000  0.018000
org-agenda-skip   4636
0.717000  0.0001546591
org-agenda-get-sexps  301 
0.702000  0.0023322259
outline-next-heading  7764
0.678000  8.73...e-005
org-overview  43  
0.672000  0.0156279069
outline-map-region43  
0.609000  0.0141627906
org-load-modules-maybe86  0.594 
0.0069069767
org-time-string-to-absolute 

Re: [O] display outline headings up to certain level in search-view

2012-12-24 Thread Bastien
Hi Abdó,

Abdó Roig-Maranges  writes:

> Let's say I have an org file structured like this
>
> * Project 1
> ** Tasks
>foo
> ** Ideas
>
> * Project 2
> ** Tasks
>bar
>
> When I search 'foo' I'd like the agenda search-view to display 'Project
> 1' instead of the closer, but less informative 'Tasks'
>
> The attached patch solves this by adding a configuration parameter that
> sets the maximum outline level for the headings displayed in the results
> of a search-view. This way, I can have a custom search on the above org
> file with org-agenda-search-view-max-outline-level set to 1.

Thanks.  I've applied your patch with a few some cosmetic changes.

I hesitated before applying this patch because maybe we want this for
other agenda views as well.  But after some thinking, I see how this
is useful for search views and I'm not sure whether this would be useful
for other agenda views.

Best,

-- 
 Bastien



Re: [O] remote execution in heterogeneous environment

2012-12-24 Thread Michael Albinus
George Jones  writes:

> Success. No setting of temporary-file-directory needed.

Great! Thanks for your inisistent testing.

> Thanks,
> ---George

Best regards, Micvhael.



Re: [O] Python code for producing Org tables

2012-12-24 Thread Dov Grobgeld
Nice! I've needed that often. But please add licensing information to
the code to make clear in what contexts it may be used.

Regards,
Dov

On Mon, Dec 24, 2012 at 3:12 PM, Bastien  wrote:
>
> Hi François,
>
> François Pinard  writes:
>
> > I do not know, and should check indeed.  Yet, even then, it does not
> > mean Org tables could not do better than standard practice! :-)
>
> Would you like something like
>
> | 3.1 |
> | 3.1415 |
>
> be aligned/modified as
>
> | 3.1000 |
> | 3.1415 |
>
> ?
>
> I personally wouldn't like this, but I'm curious.
>
> >> If so, this is a nice Elisp challenge for anyone willing to
> >> implement it :)
> >
> > I'd tackle it myself, yet if I do it before a few weeks, it'd mean I'm
> > toying rather than doing what I should rather be doing...  Sigh!
>
> Don't worry, once you'll dive into `org-table-align' chances are that
> you will feel like "working" instead of "toying" :)
>
> Bonnes fêtes !
>
> --
>  Bastien
>



Re: [O] Python code for producing Org tables

2012-12-24 Thread Bastien
Hi François,

François Pinard  writes:

> I do not know, and should check indeed.  Yet, even then, it does not
> mean Org tables could not do better than standard practice! :-)

Would you like something like

| 3.1 |
| 3.1415 |

be aligned/modified as  

| 3.1000 |
| 3.1415 |

?

I personally wouldn't like this, but I'm curious.

>> If so, this is a nice Elisp challenge for anyone willing to
>> implement it :)
>
> I'd tackle it myself, yet if I do it before a few weeks, it'd mean I'm
> toying rather than doing what I should rather be doing...  Sigh!

Don't worry, once you'll dive into `org-table-align' chances are that
you will feel like "working" instead of "toying" :)

Bonnes fêtes !

-- 
 Bastien



Re: [O] TODOs with repeat are not sorted correctly(?) in the agenda view

2012-12-24 Thread Bastien
Hi Josef,

thanks for writing back.

Josef Atmin  writes:

> I have tried to customize `org-agenda-sorting-strategy', but only
> 'user-defined-up' might do the trick, I think.  However, I do not know LISP 
> and
> would not know how to define the required comparison function.

In fact we need a date-up/date-down sorting strategy.

I'm putting this in my TODO list for Org 8.0.

Thanks!

-- 
 Bastien



Re: [O] Emacs 22 compatibility

2012-12-24 Thread Bastien
Hi Achim and Jambunathan,

Jambunathan K  writes:

> See
> http://lists.gnu.org/archive/html/emacs-orgmode/2010-08/msg01056.html
>
> We need to move that fix to compatibility and have babel and ODT use it

AFAIK this is already fixed in Babel.

I added a compatibility function `org-delete-directory' adapted from
`tramp-compat-delete-directory' and org-odt.el uses it now.

-- 
 Bastien



Re: [O] Emacs 22 compatibility

2012-12-24 Thread Bastien
Hi Achim,

Achim Gratz  writes:

> BTW, I don't quite understand the logic of that function.  It seems that
>
> (face-background 'default nil 'default) 
>
> would be all that is needed in GNU Emacs

Indeed.  Current master branch now uses this.

Thanks,

-- 
 Bastien



Re: [O] Emacs 22 compatibility

2012-12-24 Thread Bastien
Hi Achim,

Achim Gratz  writes:

> Here is another one that may need further work.  

I applied this patch to maint.  

If there are other important fixes for Emacs 22 compatibility,
please let us know as I plan to release 7.9.3 in 2012.

Thanks!

-- 
 Bastien



Re: [O] Python code for producing Org tables

2012-12-24 Thread François Pinard
Bastien  writes:

> Hi François,

Salut, et Joyeuses Festivités! :-)

>> I recently needed to produce Org tables from within Python

> Thanks for the code, if some can test it and put it on worg, all the
> better (if you agree of course.)

Of course!

>> I wrongly thought Org mode was aligning floating numbers on the
>> decimal period, while it merely right align floating numbers
>> regardless of the position of the period.

> Is it a standard practise when displaying float numbers in
> spreadsheets/tables?

I do not know, and should check indeed.  Yet, even then, it does not
mean Org tables could not do better than standard practice! :-)

> If so, this is a nice Elisp challenge for anyone willing to
> implement it :)

I'd tackle it myself, yet if I do it before a few weeks, it'd mean I'm
toying rather than doing what I should rather be doing...  Sigh!

Happy Times to everybody!

François



Re: [O] cyrillic agenda

2012-12-24 Thread basilio
Hi Bastien,

thanks, you're right, it's more emacs-centered problem.
I've switched to html output as a workaround.

Thanks again,
Basilio




Re: [O] Org Mobile and Adroid 2.3.6

2012-12-24 Thread Martin Butz

Am 22.12.2012 15:57, schrieb J. David Boyd:

Martin Butz  writes:

[...]

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


[...]



I think the docs in Org describe some of the pieces you are missing
There are variables in Org-mode that control parts of that.


I am afraid not. I browsed the available documentation [1] [2] and some 
additional postings at various pages on the web [3], but could not get 
answers to my question.


E.g. concerning the decryption with mobileorg-app [2] says,

"Next, open MobileOrg and enter your encryption password in the Settings 
tab. Perform a sync, and you are done."


I do not have this option within the mobileorg-app (version 0.7.9).

[3] says, "MobileOrg supports encryption with APG on Android.  This 
feature was added a while ago and works by encrypting the files on the 
emacs side and having the key available in APG on the Android device for 
decryption on the fly such that the files are stored encrypted on the 
server."


I did install APG on my smartphone but I do not know, if setting the option

(setq org-mobile-encryption-password "someKey") in my .emacs has 
anything to do with the options APG provides (public key, private key)? 
Or if these are totally different things.


So, if someone uses orgmobile on a smartphone running Android 2.x I'd be 
gratefull to know something about the configuration (especially on the 
smartphones side).


Thanks and merry Christmas to all
Martin


[1] https://github.com/matburt/mobileorg-android/wiki/Documentation
[2] http://mobileorg.ncogni.to/doc/
[3] e.g.: 
https://groups.google.com/forum/#!msg/mobileorg-android/LqswbeNoyAQ/wIto-zZBd7oJ



--

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




Re: [O] TODOs with repeat are not sorted correctly(?) in the agenda view

2012-12-24 Thread Josef Atmin
Bastien  altern.org> writes:
> Yes.  First thing we need to know is whether he has been trying to
> achieve what he wants by configuring `org-agenda-sorting-strategy'.
> Maybe he's not aware of that option.

Hello Bastien, 

I have posted the bug report.  Thanks for responding so quickly.

I have tried to customize `org-agenda-sorting-strategy', but only
'user-defined-up' might do the trick, I think.  However, I do not know LISP and
would not know how to define the required comparison function.

Merry Christmas,

Josef.





[O] Org/LaTex setup for Business Letter Revisited

2012-12-24 Thread Ian Barton
I have been following the various threads about using the scrlttr2 
class. However, none of them quite worked for me.


I have come up with the following hack using Babel. There are three 
files attached which illustrates the general principles.


* koma variables which don't change are defined in an LCO file.
* koma variables (toaddress, etc) which change between letters are 
defined using org PROPERTIES.

* a letter template in defined in a latex src block.
* The letter body is written in an org_mode src block.
* The final letter is produced by tangling the body, the lco file and 
the letter template.


In normal use you would simply modify the PROPERTIES and body text to 
suit each letter. The whole thing can probably be made into a yasnippet.


Suggestions for improvement welcome, as the existing stuff is just a 
quick hack.


Happy Christmas everyone and best wishes for the New Year.

Ian.

\ProvidesFile{dalek.lco}[%
 2002/07/09 v0.9a LaTeX2e unsupported letter-class-option]


\usepackage{fontspec}
\usepackage[english] {babel}
\usepackage{marvosym}

\KOMAoptions{backaddress=off}

% Make the toaddress flush left with the body text.
% Default is to position it further left.
% Obtained from nowindow.lco by Markus Kohm.
\@setplength{firstheadwidth}{\textwidth}
\@setplength{toaddrhpos}{\oddsidemargin}
\@addtoplength{toaddrhpos}{1in}


% ==
% PERSONAL DATA
% ==
\newkomavar{mobile}
\setkomavar{fromname}{The Black Dalek}
\setkomavar{fromaddress}{Traffic Enforcement HQ Skyro City Skyro}
\setkomavar{fromphone}{1-800-dalek}
\setkomavar{mobile}{Top Secret}
\setkomavar{fromemail}{extermin...@dalek.com}

\setkomavar{signature}{The Black Dalek}
\setkomavar{subject}{Illegal Parking}

% ==
% FORMATTING STUFF
% ==

% === font settings
\defaultfontfeatures{Mapping=tex-text}
\setmainfont {STIXGeneral}
\setsansfont {Impact}

% date
\usepackage[english]{isodate}
\usepackage{datetime}
\renewcommand{\dateseparator}{-}
\newcommand{\todayiso}{\the\year \dateseparator \twodigit\month \dateseparator 
\twodigit\day}

% Set the date to flush left.
\setkomavar{date}{\todayiso}
\setkomavar{date}{\flushleft\vspace{-\baselineskip}\today\par}


%set the font size and leading
\renewcommand{\normalsize}{\fontsize{12.5}{17}\selectfont}

% === header settings
\firsthead{
 \centering
{\addfontfeature{LetterSpace=20.0}\fontsize{36}{36}\selectfont\scshape 
Traffic Enforcement\\[5mm]
  \fontsize{18}{18}\selectfont\scshape\usekomavar{fromaddress}}\\
  \fontsize{12}{12}{\Large \Email}\usekomavar{fromemail} {\Large 
\Telefon}\usekomavar{fromphone} {\Large \Mobilefone}\usekomavar{mobile}

}

% === footer settings
\firstfoot{
 \centering
  \usekomavar{fromaddress} \\
  \usekomavar{fromemail} \usekomavar{fromphone}
}

\endinput


dalek_letter.org
Description: Lotus Organizer

\documentclass[dalek, subject=afteropening, subject=left]{scrlttr2}

\begin{document}

\begin{letter}{%

}
\setkomavar{toname}{Dr Who}
\setkomavar{toaddress}{The Tardis\\ Gailfrey-on-Sea\\ Galifrey}
\setkomavar{subject}{Illegal Parking.}
\opening{Dear Doctor Who,}


It has come to our notice that your Tardis was illegally parked on
the streets of the capital city of Skyro. Accordingly I am instructed
to issue with a fine of 10,000 Galactic Credits. If you pay within 7
days there is a discount of 2,000 Galactic credits.

Failure to pay may result in your Tardis being towed away and
crushed. Also, you will be exterminated!



\closing{Regards}


\end{letter}
\end{document}


Re: [O] Footnote disable & sorting

2012-12-24 Thread Bastien
Hi Alan,

Alan L Tyree  writes:

> Thanks Bastien.

You're welcome... 

> My real problem is that plain footnotes such as [1930] are a general
> nuisance to me since so many legal citations use that form. I am using a
> hack suggested by Jan Bocker to disable them, perform some operation and
> then "un hack" the hack.

Sorry to ask the obvious, but from your message I'm not sure you tried
to remove the footnotes from the list of activated links.  I'm curious
to know what problem it does not solve for you!

Thanks for any follow-up,

-- 
 Bastien



Re: [O] TODOs with repeat are not sorted correctly(?) in the agenda view

2012-12-24 Thread Bastien
Hi Sébastien,

Sébastien Delafond  writes:

> (Please note that he is still using version 7.01g). I'll point the user
> to this thread

Please do!

> so he can tell us more if need be.

Yes.  First thing we need to know is whether he has been trying to
achieve what he wants by configuring `org-agenda-sorting-strategy'.
Maybe he's not aware of that option.

Thanks, 

-- 
 Bastien



Re: [O] Capturing column view and LOGBOOK state change entries?

2012-12-24 Thread Bastien
Hi Thomas,

"'Mash (Thomas Herbert)"  writes:

> I have been reading and playing around with column view and capturing
> column view, but am unable to work-out how to view LOGBOOK entries.

Did you try org-habit?  This gives you visual feedback on your logs.

> I record a note on certain state changes and would like to output
> these to a org table. Capturing column view / dynamic block looks
> like the way to go.

Let us know if you manage to get something useful in this area,
this could inspire us for a more general solution.

Thanks!

-- 
 Bastien



[O] TODOs with repeat are not sorted correctly(?) in the agenda view

2012-12-24 Thread Sébastien Delafond
Hi fellows,

got the following bug report[1] from a Debian user:

  We have the <2012-12-23 Sun>.  I have in my TODO.org file the entries

  * TODO reference entry
SCHEDULED: <2012-12-22 Sat>
  * TODO test entry +
SCHEDULED: <2012-12-19 Wed +2d>
  * TODO test entry ++
SCHEDULED: <2012-12-19 Wed ++2d>
  * TODO test entry .+
SCHEDULED: <2012-12-19 Wed .+2d>

  When I type 'Ctrl-c a a' the agenda view gets created (with the
  default sorting settings) as follows:

TODO:   Sched. 2x:  TODO reference entry
TODO:   Scheduled:  TODO test entry +
TODO:   Scheduled:  TODO test entry ++
TODO:   Scheduled:  TODO test entry .+

  This is not the result I expect.  The test entries are scheduled 3
  days more in the past than the reference entry.  Thus, I would expect
  them to come first with 'Sched. 5x:' in front.  I understand that due
  to the repeats, the test entries virtually appear also on the 21st and
  23rd, and that's why it is sorted that way.  The sorting takes the
  last virtual appearance rather than the one real appearance.  But that
  means, that entries that I should work on every second day never makes
  it to the top of the priority list, which renders the priority list in
  the agenda view useless, I think.  When I work on one of the test
  entries and cycle through TODO-DONE-TODO, the SCHEDULED date is
  automatically incremented and only then should the entry appear later
  in the list.  This is the most reasonable behavior, I think.  However,
  since there seem different oppinions on that issue possible, it would
  be great to have at least an option that would allow to pick the one
  or the other behavior.

(Please note that he is still using version 7.01g). I'll point the user
to this thread so he can tell us more if need be.

Cheers,

--Seb




Re: [O] Logging properties, values in notes on TODO state change for column view usage?

2012-12-24 Thread Bastien
Hi Thomas,

"'Mash (Thomas Herbert)"  writes:

> I have been looking at trying to track training performance with
> org-mode.
>
> I currently just set a reoccurring schedule with note logging on
> state change, but wondered if there was a way to log values within
> this :LOGBOOK: logs?

Nope, you need to store stuff like ":abc: 5" in the PROPERTIES drawer,
not in the LOGBOOK drawer.

> It is not a lot of effort to simply type in ":abc: 5", etc in the note
> window. The idea being it would be nice to use column view to collect
> these various logged values.

Perhaps you can use `org-after-todo-state-change-hook' to store new
values for abc and xyz as new properties (see `org-set-property') or 
new variables (with a :VAR: property).  But you'd lose the history
of their values.  This is the only thing I can think of right now.

HTH,

-- 
 Bastien



Re: [O] Bug: inline tasks behave strange with respect to visibility cycling within plain lists [7.9.2 (release_7.9.2-646-g664217 @ /home/grfz/src/org-mode/lisp/)]

2012-12-24 Thread Bastien
Hi Gregor,

I think you are misusing inline tasks, the stars should start 
at the beginning of the line.

HTH,

-- 
 Bastien



Re: [O] [PATCH] Wrap: override default

2012-12-24 Thread Bastien
Hi Michael,

Michael Gauland  writes:

>   (setq end (point-marker))
>   ;; possibly wrap result
>   (cond
> -  ((assoc :wrap (nth 2 info))
> +  ((and (assoc :wrap (nth 2 info))
> +(cdr (assoc :wrap (nth 2 info
> (let ((name (or (cdr (assoc :wrap (nth 2 info))) "RESULTS")))
>   (funcall wrap (concat "#+BEGIN_" name) (concat "#+END_" 
> name
>((member "html" result-params)

Well, the patch is wrong, if (cdr (assoc :wrap (nth 2 info)))
is in the (and ...) sexp, no need to have it in the (or ...)
sexp?

I'll mark it as "not applicable".  I let you propose another
patch if you still need to fix an issue in this area.

Thanks!

-- 
 Bastien



Re: [O] temporary directory for export

2012-12-24 Thread Bastien
Hi Alan,

Alan Schmitt  writes:

> I have found how to set a temporary directory for org-babel export files
> (using org-babel-temporary-directory), but I cannot find how to specify
> that, by default (i.e., unless specified with a "file" option), files
> should be exported to a temporary directory.
>
> My motivation for this is that I keep a single folder with many org-mode
> files, some of them for presentations, papers, or letters. I regularly
> have to go in there and get rid of all the .tex, .log, .pdf, .aux, etc.,
> that accumulate.

Yep, I see how this would be useful.  I'll add this on my TODO list.

Eric, is it something that you would find useful?

Best,

-- 
 Bastien



Re: [O] Agenda highlighting bug

2012-12-24 Thread Bastien
Hi Simon,

Simon Thum  writes:

> I recently added an org file which is an import from our community service,
> the so-called "Müllabfuhr", which I put in "müllabfuhr.org".
>
> The agenda fails to highlight these entries however. It's not terrible,
> actually it's JUST PERFECT because this is such a minor thing but it sucks
> to miss it.

Could you provide a minimal config and example to reproduce this bug?  
Special character should not prevent the inclusion of tasks in the
agenda, and I never noticed anything like this before...

Best,

-- 
 Bastien



Re: [O] [DEV] New version of org-reftable.el

2012-12-24 Thread Bastien
Hi Marc-Oliver,

Marc-Oliver Ihm  writes:

> Version 2.0 of org-reftable.el has arrived at worg.
> Please find it as:
>
> http://orgmode.org/worg/code/elisp/org-reftable.el

I've not had time to test the package but I hope others will do. 
If you/they think this can be a good candidate for contrib/ please
let us know!  In the mean time, thanks for making it available on
Worg.

Best,

-- 
 Bastien