Re: [O] Can not export to LaTeX anymore

2011-10-14 Thread daniel



Hi, 

I face a similar problem with my org-mode. So several months my
org-mode installation won't export to LaTeX and as I noticed today the
export of a project with org-jekyll etc. doesn't work either (but I do
not cover that error in this post):

- GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1)\n of 2011-03-04 
on allspice, modified by Debian

- I installed org-mode via a git repository in my home directory and put
  the following lines in my .emacs file:

  (setq load-path (cons "/home/dbr/sw/org-mode/lisp" load-path))
  (setq load-path (cons "/home/dbr/sw/org-mode/contrib/lisp" load-path))
  (require 'org-install)

- Therefore org-version is: Org-mode version 7.7 (release_7.7.380.g54d7df.dirty)

I then created a file "a.org":

--8<--
#+TITLE:     a.org
#+AUTHOR:Daniel 
#+EMAIL: daniel@monkey
#+DATE:  2011-10-14 Fr
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE:  en
#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 
path:http://orgmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:   
#+LINK_HOME: 
#+XSLT:

* Heading 

Export me !
--8<--
The options have been included with C-c C-e t.

After a org-export-as-latex I got the message: 

org-export-preprocess-string: Cannot open load file: org-nil

The *Backtrace* is:

--8<--
Debugger entered--Lisp error: (file-error "Cannot open load file" "org-nil")
  require(org-nil nil)
  org-export-preprocess-string(#("#+TITLE: a.org\n#+AUTHOR:
Daniel\n#+EMAIL: daniel@monkey\n#+DATE:  2011-10-14 
Fr\n#+DESCRIPTION:\n#+KEYWORDS:\n#+LANGUAGE:  en\n#+OPTIONS:   H:3 num:t toc:t 
\\n:nil @:t ::t |:t ^:t -:t f:t *:t <:t\n#+OPTIONS:   TeX:t LaTeX:t skip:nil 
d:nil todo:t pri:nil tags:not-in-toc\n#+INFOJS_OPT: view:nil toc:nil ltoc:t 
mouse:underline buttons:0 
path:http://orgmode.org/org-info.js\n#+EXPORT_SELECT_TAGS: 
export\n#+EXPORT_EXCLUDE_TAGS: noexport\n#+LINK_UP:   \n#+LINK_HOME: 
\n#+XSLT:\n\n" 0 8 (fontified nil font-lock-fontified t) 8 13 (fontified nil) 
13 18 (fontified nil font-lock-fontified t) 18 19 (fontified nil 
font-lock-fontified t) 19 28 (fontified nil font-lock-fontified t) 28 32 
(fontified nil font-lock-fontified t) 32 38 (fontified nil font-lock-fontified 
t) 38 39 (fontified nil) 39 47 (fontified nil font-lock-fontified t) 47 52 
(fontified nil) 52 65 (fontified nil font-lock-fontified t) 65 66 (fontified 
nil) 66 73 (fontified nil font-lock-fontified t) 73 79 (fontified nil) 79 92 
(fontified nil font-lock-fontified t) 92 93 (fontified nil) 93 107 (fontified 
nil font-lock-fontified t) 107 108 (fontified nil font-lock-fontified t) 108 
119 (fontified nil font-lock-fontified t) 119 120 (fontified nil 
font-lock-fontified t) 120 135 (fontified nil font-lock-fontified t) 135 136 
(fontified nil font-lock-fontified t) 136 203 (fontified nil 
font-lock-fontified t) 203 204 (fontified nil font-lock-fontified t) 204 276 
(fontified nil font-lock-fontified t) 276 277 (fontified nil 
font-lock-fontified t) 277 346 (fontified nil font-lock-fontified t) 346 375 
(fontified nil font-lock-fontified t) 375 376 (fontified nil rear-nonsticky 
(mouse-face highlight keymap invisible intangible help-echo org-linked-text) 
font-lock-fontified t) 376 377 (fontified nil font-lock-fontified t) 377 405 
(fontified nil font-lock-fontified t) 405 406 (fontified nil 
font-lock-fontified t) 406 437 (fontified nil font-lock-fontified t) 437 438 
(fontified nil font-lock-fontified t) 438 451 (fontified nil 
font-lock-fontified t) 451 452 (fontified nil font-lock-fontified t) 452 465 
(fontified nil font-lock-fontified t) 465 466 (fontified nil 
font-lock-fontified t) 466 473 (fontified nil font-lock-fontified t) 473 474 
(fontified nil font-lock-fontified t) 474 475 (fontified nil)) :for-LaTeX t 
:emph-multiline t :add-text nil :comments nil :skip-before-1st-heading nil 
:LaTeX-fragments nil :timestamps t :footnotes t)
  org-export-latex-first-lines((:latex-image-options "width=10em" :exclude-tags 
("noexport") :select-tags ("export") :publishing-directory nil :timestamp nil 
:expand-quoted-html t :html-table-tag "" :xml-declaration (("html" 
. "") ("php" . "\"; ?>")) :html-postamble auto 
:html-preamble t :html-extension "html" :inline-images maybe :convert-org-links 
t :agenda-style "" :style-extra "" :style "" :style-include-scripts t 
:style-include-default t :table-auto-headline t :tables t :time-stamp-file t 
:creator-info t :email-info nil :author-info t :email "daniel@monkey" ...) nil)
  org-export-as-latex(nil)
  call-interactively(org-export-as-latex)
  org-export(nil)
  call-interactively(org-export nil nil)
--8<--

I read in an older post that there may be a problem with parts of the
old installation that is still "somewhere". But I installed the newest
version as written in the manual.


Kind regards,


Daniel 





[O] Problems with org-publish w/ #+INCLUDE:

2011-10-16 Thread daniel
Hi!

And another problem after an upgrade vom V6.something to a 7.7
release: Org-mode version 7.7 (release_7.7.380.g54d7df). When I use the
org-publish to produce a set of HTML pages I run into a error. Here is
an example:

I have a file "index.org":

--8<--
#+TITLE: Foo!
#+AUTHOR:Daniel
#+EMAIL: daniel@monkey
#+DATE:  2011-10-14 Fr
#+INCLUDE: include.org

Export it!
--8<--

Then I have a file "include.org" with all the options etc. (option
template included via C-c C-e t):

--8<--
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE:  en
#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 
path:http://orgmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:   
#+LINK_HOME: 
#+XSLT:

#+BEGIN_HTML
  Bar
#+END_HTML
--8<--

Then I set the org-publish-project-alist:

--8<--
(require 'org-publish)
(setq org-publish-project-alist
  (list (list "foo"
  :base-directory "/home/dbr/tmp/omtests"
  :base-extension "org"
  :publishing-directory "/home/dbr/tmp/omtests/pub"
  :publishing-function 'org-publish-org-to-html)))
--8<--

Org-publish is from the 7.7 distribution directory. Then I visit
index.org and do a C-c C-e P and run in the following error:

--8<--
Debugger entered--Lisp error: (wrong-type-argument integerp nil)
  lsh(nil 16)
  org-publish-cache-ctime-of-src("/home/dbr/tmp/omtests/include.org\n\nExport")
  org-publish-cache-file-needs-publishing("/home/dbr/tmp/omtests/index.org" 
"/home/dbr/tmp/omtests/pub/" org-publish-org-to-html)
  org-publish-needed-p("/home/dbr/tmp/omtests/index.org" 
"/home/dbr/tmp/omtests/pub/" org-publish-org-to-html 
"/home/dbr/tmp/omtests/pub/")
  org-publish-file("/home/dbr/tmp/omtests/index.org" ("foo" :base-directory 
"/home/dbr/tmp/omtests" :base-extension "org" :publishing-directory 
"/home/dbr/tmp/omtests/pub" :publishing-function org-publish-org-to-html) t)
  #[(project) "@!ˆAÇ  \"Ç \"Ç \"†   \"†#ÍÇ  \"†-  \"†8!\"
\" \"\n\"#$ƒXÔ!ˆƒa
\f\"ˆ#‰A#@‰$ƒxÖ$#ˆ‚aÇ \"ƒ’Ù   \"!ˆÛÇ  \"\"#ˆƒ›Ô!ˆ .‡" [project 
project-plist exclude-regexp sitemap-p sitemap-filename sitemap-function 
org-publish-initialize-cache plist-get :exclude :auto-sitemap :sitemap-filename 
"sitemap.org" :sitemap-function org-publish-org-sitemap :sitemap-date-format 
:sitemap-file-entry-format :preparation-function :completion-function 
org-publish-get-base-files nil run-hooks preparation-function org-publish-file 
t :makeindex org-publish-index-generate-theindex :base-directory 
expand-file-name "theindex.org" completion-function 
org-publish-write-cache-file org-publish-sitemap-date-format 
org-sitemap-date-format org-publish-sitemap-file-entry-format 
org-sitemap-file-entry-format files file] 6](("foo" :base-directory 
"/home/dbr/tmp/omtests" :base-extension "org" :publishing-directory 
"/home/dbr/tmp/omtests/pub" :publishing-function org-publish-org-to-html))
  mapc(#[(project) "@!ˆAÇ \"Ç \"Ç \"†   \"†#ÍÇ  \"†-  
\"†8!\"\" \"\n\"#$ƒXÔ!ˆƒa
\f\"ˆ#‰A#@‰$ƒxÖ$#ˆ‚aÇ \"ƒ’Ù   \"!ˆÛÇ  \"\"#ˆƒ›Ô!ˆ .‡" [project 
project-plist exclude-regexp sitemap-p sitemap-filename sitemap-function 
org-publish-initialize-cache plist-get :exclude :auto-sitemap :sitemap-filename 
"sitemap.org" :sitemap-function org-publish-org-sitemap :sitemap-date-format 
:sitemap-file-entry-format :preparation-function :completion-function 
org-publish-get-base-files nil run-hooks preparation-function org-publish-file 
t :makeindex org-publish-index-generate-theindex :base-directory 
expand-file-name "theindex.org" completion-function 
org-publish-write-cache-file org-publish-sitemap-date-format 
org-sitemap-date-format org-publish-sitemap-file-entry-format 
org-sitemap-file-entry-format files file] 6] (("foo" :base-directory 
"/home/dbr/tmp/omtests" :base-extension "org" :publishing-directory 
"/home/dbr/tmp/omtests/pub" :publishing-function org-publish-org-to-html)))
  org-publish-projects((("foo" :base-directory "/home/dbr/tmp/omtests" 
:base-extension "org" :publishing-directory "/home/dbr/tmp/omtests/pub" 
:publishing-function org-publish-org-to-html)))
  byte-code("?…   Ä\n;ƒ\n\"C‚\nC!)‡" [force 
org-publish-use-timestamps-flag project org-publish-project-alist 
or

Re: [Orgmode] bug in "simple dependencies" handling (?)

2009-03-26 Thread Daniel

Hello Carsten,

thanks for your reply.


Hi Daniel,

yes, this could be seen as a bug.  However, the implementation
does not work by scanning the entire buffer and marking tasks
that should be blocked.  Rather, it goes to each task and then
scans around to see locally what the dependencies are.

In this case it looks only at the parent, not at the
grand parent.

Wouldn't it be enough to check whether the parent is blocked.
Wouldn't that generate a blocking-chain?



However, the todo
dependencies are simple hook functions, and an interested
programmer could relatively easily extend them, I believe.

I've tried to write a custom org-blocker-hook but it doesn't work,
unfortunately.

Can you (or someone else) tell me please what's wrong with my code?

(defun org-block-todo-with-blocked-parent (change-plist)
 ;; check whether we are in a endless loop:
 (if (plist-get change-plist :org-block-todo-with-blocked-parent)
   ;; We are in a endless loop: don't block (return t)
   t
   ;; We are not in a endless loop: go to the parent heading
   (save-excursion
 (org-back-to-heading t)
 (ignore-errors (org-up-heading-all 1))
 ;; generate a fake change-plist with a flag to indicate a endless loop
 (setq fake-change-plist
   (list
 :type 'todo-state-change
 :from "DONE"
 :to "TODO"
 :position 0
 :org-block-todo-with-blocked-parent t))
 ;; check whether the parent heading should be blocked and return 
the result

 (save-match-data
   (run-hook-with-args-until-failure 'org-blocker-hook 
fake-change-plist)


(add-hook 'org-blocker-hook 'org-block-todo-with-blocked-parent)



I don't expect to change this because it would make the
mechanism a lot more complex and slower. 

I think it's essential to provide this eventuality. For example
this tree:

* organize party
 :PROPERTIES:
 :ORDERED:  t
 :END:
** TODO send invitations
*** TODO send invitation to Paul
*** TODO send invitation to Nicole
*** ect.
** TODO buy meals and drinks
 :PROPERTIES:
 :ORDERED:  t
 :END:
*** TODO write shopping list
*** TODO get money  from my bank account
*** TODO buy food
*** TODO buy drinks

with this tree, only "send invitation to Paul" and "send invitation to 
Nicole"

should be on my agenda. But "write shopping list" is also an my agenda
list (although it shouldn't: I can't write a shopping list if I don't 
know how

many people will come to my party).


best regards,
Daniel



- Carsten

On Mar 24, 2009, at 8:13 PM, Daniel Hochheimer wrote:


Hello,

first of all, please excuse my poorly english.

It seems there is a bug in the handling of simple dependencies.
I think an example tree is the best solution, to show you the bug:

* Projects
#+CATEGORY: Projects
*** TODO foo bar project
  :PROPERTIES:
  :ORDERED:  t
  :END:
* TODO foo subproject:FooSubproject:
*** TODO Task 1
* TODO bar subproject:BarSubproject:
*** TODO Task 1

This is in my .emacs file:
(setq org-enforce-todo-dependencies t)
(setq org-agenda-dim-blocked-tasks 'invisible)
(setq org-odd-levels-only t)

the expected global todo agenda view imho is:

Projects:Task 1   :FooSubproject:

but actual it is unfortunately:

Projects:Task 1   :FooSubproject:
Projects:Task 1   :BarSubproject:


Imho "Task 1" from "bar subproject" should not be visible,
because "bar subproject " is blocked because of the
ORDERED property (therefore it's childs should be blocked, too)


Is it easy / possible to fix this bug? My whole GTD system is
heavily based on such project / subproject-Constructs. But with
this bug my global todo agenda view is unfortunately "polluted"
a little bit with tasks from projects that shouldn't be active.

Best regards,
Daniel

PS: many thanks to the developer of this great emacs mode, I really
enjoy org-mode. I started using emacs only because of the great
abilities of org-mode.


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] bug in "simple dependencies" handling (?)

2009-03-27 Thread Daniel

Oh my god! I think I've found a good solution :)

Can you please tell me, whether it's crap or not?

Only 4 lines differ from the original
org-block-todo-from-children-or-siblings hook. I've marked
the lines with "comment lines", they are before and after
the ORDERED-property check, at the end of the function.


(defun org-block-todo-from-children-or-siblings-or-parent (change-plist)
 "Block turning an entry into a TODO, using the hierarchy.
This checks whether the current task should be blocked from state
changes.  Such blocking occurs when:

 1. The task has children which are not all in a completed state.

 2. A task has a parent with the property :ORDERED:, and there
are siblings prior to the current task with incomplete
status."
 (catch 'dont-block
   ;; If this is not a todo state change, or if this entry is already DONE,
   ;; do not block
   (when (or (not (eq (plist-get change-plist :type) 'todo-state-change))
 (member (plist-get change-plist :from)
 (cons 'done org-done-keywords))
 (member (plist-get change-plist :to)
 (cons 'todo org-not-done-keywords)))
 (throw 'dont-block t))
   ;; If this task has children, and any are undone, it's blocked
   (save-excursion
 (org-back-to-heading t)
 (let ((this-level (funcall outline-level)))
   (outline-next-heading)
   (let ((child-level (funcall outline-level)))
 (while (and (not (eobp))
 (> child-level this-level))
   ;; this todo has children, check whether they are all
   ;; completed
   (if (and (not (org-entry-is-done-p))
(org-entry-is-todo-p))
   (throw 'dont-block nil))
   (outline-next-heading)
   (setq child-level (funcall outline-level))
   ;; Otherwise, if the task's parent has the :ORDERED: property, and
   ;; any previous siblings are undone, it's blocked
 
 (save-excursion (save-match-data
   (ignore-errors (while t
 
   (save-excursion
 (org-back-to-heading t)
 (when (save-excursion
 (ignore-errors
   (org-up-heading-all 1)
   (org-entry-get (point) "ORDERED")))
   (let* ((this-level (funcall outline-level))
  (current-level this-level))
 (while (and (not (bobp))
 (>= current-level this-level))
   (outline-previous-heading)
   (setq current-level (funcall outline-level))
   (if (= current-level this-level)
   ;; This is a younger sibling, check if it is completed
   (if (and (not (org-entry-is-done-p))
(org-entry-is-todo-p))
   (throw 'dont-block nil)))
   ;;
   (org-back-to-heading t)
   (org-up-heading-all 1)
   ;;
   t))

(add-hook 'org-blocker-hook 
'org-block-todo-from-children-or-siblings-or-parent)




Carsten Dominik wrote:

Hi Daniel,

one problem might have been a bug I just fixed.

Another problem is that the way you wrote your code, a child
on an ordered sequence will block the parent, and the parent
will block the child.

I'd like to come around an fix this, just not clear yet how, and
how to do it efficiently.

- Carsten


On Mar 27, 2009, at 1:24 AM, Daniel wrote:


Hello Carsten,

thanks for your reply.


Hi Daniel,

yes, this could be seen as a bug.  However, the implementation
does not work by scanning the entire buffer and marking tasks
that should be blocked.  Rather, it goes to each task and then
scans around to see locally what the dependencies are.

In this case it looks only at the parent, not at the
grand parent.

Wouldn't it be enough to check whether the parent is blocked.
Wouldn't that generate a blocking-chain?



However, the todo
dependencies are simple hook functions, and an interested
programmer could relatively easily extend them, I believe.

I've tried to write a custom org-blocker-hook but it doesn't work,
unfortunately.

Can you (or someone else) tell me please what's wrong with my code?

(defun org-block-todo-with-blocked-parent (change-plist)
;; check whether we are in a endless loop:
(if (plist-get change-plist :org-block-todo-with-blocked-parent)
  ;; We are in a endless loop: don't block (return t)
  t
  ;; We are not in a endless loop: go to the parent heading
  (save-excursion
(org-back-to-heading t)
(ignore-errors (org-up-heading-all 1))
;; generate a fake change-plist with a flag to indicate a endless 
loop

(setq fake-change-plist
  (list
:type 'todo-state-change
:from "DONE"
:to "TODO"
:position 0
:org-block-todo-with-blocked-parent t))
;; check whether the parent heading should be blocked and return 
the result

(save-match-data
  (run-hook-with-args-until-failure 'org-blocker-hook 
fake-change-plist)


(add-hook '

Re: [Orgmode] bug in "simple dependencies" handling (?)

2009-04-01 Thread Daniel

Hello Carsten,

you're right. I've changed the code suitable (at least I hope I have ;).

Do you think it's possible to replace the original hook with my
altered one, or do you think the additional checks are to expensive?
As far as I see there's no noticeable difference.

Nevertheless, here's the code in case someone is interested:
(altered lines are marked with semicolons)


(defun org-block-todo-from-children-or-siblings (change-plist)
 "Block turning an entry into a TODO, using the hierarchy.
This checks whether the current task should be blocked from state
changes.  Such blocking occurs when:

 1. The task has children which are not all in a completed state.

 2. A task has a parent with the property :ORDERED:, and there
are siblings prior to the current task with incomplete
status."
 (catch 'dont-block
   ;; If this is not a todo state change, or if this entry is already DONE,
   ;; do not block
   (when (or (not (eq (plist-get change-plist :type) 'todo-state-change))
 (member (plist-get change-plist :from)
 (cons 'done org-done-keywords))
 (member (plist-get change-plist :to)
 (cons 'todo org-not-done-keywords)))
 (throw 'dont-block t))
   ;; If this task has children, and any are undone, it's blocked
   (save-excursion
 (org-back-to-heading t)
 (let ((this-level (funcall outline-level)))
   (outline-next-heading)
   (let ((child-level (funcall outline-level)))
 (while (and (not (eobp))
 (> child-level this-level))
   ;; this todo has children, check whether they are all
   ;; completed
   (if (and (not (org-entry-is-done-p))
(org-entry-is-todo-p))
   (throw 'dont-block nil))
   (outline-next-heading)
   (setq child-level (funcall outline-level))
   ;; Otherwise, if the task's parent has the :ORDERED: property, and
   ;; any previous siblings are undone, it's blocked
 ;;
 (setq while_cond t);;;
 ;;
 (save-excursion (save-match-data
   ;;;
   (ignore-errors (while while_cond;;;
   ;;;
   (save-excursion
 (org-back-to-heading t)
 (when (save-excursion (ignore-errors
   (org-up-heading-all 1)
   (org-entry-get (point) "ORDERED")))
   (let* ((this-level (funcall outline-level))
  (current-level this-level))
 (while (and (not (bobp))
 (>= current-level this-level))
   (outline-previous-heading)
   (setq current-level (funcall outline-level))
   (if (= current-level this-level)
   ;; This is a younger sibling, check if it is completed
   (if (and (not (org-entry-is-done-p))
(org-entry-is-todo-p))
   (throw 'dont-block nil)))
   (org-back-to-heading t)
   (org-up-heading-all 1)
   ;
   (when (not (org-entry-is-todo-p))
 (setq while_cond nil))
   ;
   t))


Best regards,
Daniel


Carsten Dominik wrote:

Hi Daniel,

looks that your modification do the right thing - almost.
It does not check if the parent itself is a TODO, and I
think this would be necessary as well.  Because it would
allow to have do-able subtasks in the list without
too much blocking.

So "write hopping list" would not be blocked in this case:

* organize party
:PROPERTIES:
:ORDERED:  t
:END:
** TODO send invitations
*** TODO send invitation to Paul
*** TODO send invitation to Nicole
*** ect.
** Buy meals and drinks
:PROPERTIES:
:ORDERED:  t
:END:
*** TODO write shopping list
*** TODO get money  from my bank account
*** TODO buy food
*** TODO buy drinks

Would you agree?

- Carsten

On Mar 28, 2009, at 3:52 AM, Daniel wrote:


Oh my god! I think I've found a good solution :)

Can you please tell me, whether it's crap or not?

Only 4 lines differ from the original
org-block-todo-from-children-or-siblings hook. I've marked
the lines with "comment lines", they are before and after
the ORDERED-property check, at the end of the function.


(defun org-block-todo-from-children-or-siblings-or-parent (change-plist)
"Block turning an entry into a TODO, using the hierarchy.
This checks whether the current task should be blocked from state
changes.  Such blocking occurs when:

1. The task has children which are not all in a completed state.

2. A task has a parent with the property :ORDERED:, and there
   are siblings prior to the current task with incomplete
   status."
(catch 'dont-block
  ;; If this is not a todo state change, or if this entry is already 
DONE,

  ;; do not block
  (when (or (not (eq (plist-get change-plist :type) 'todo-state-change))
(member (plist-get change-plist :from)
(cons 'done org-done-keywords))
(member (plist-get change-plist :to)
(cons 'todo org-n

Re: [Orgmode] bug in "simple dependencies" handling (?)

2009-04-07 Thread Daniel

Hello Carsten,

thanks a million for optimizing and including
this blocking-behavior into org-mode! :)

It seems to work like a charm.

Best regards,
Daniel


Carsten Dominik wrote:

Hi Daniel,

thanks for your continuing efforts.  I have now implemented
this change, with some speed optimizations.

I was worried that this could get slow, and the main occasion
would be if you have an entry in a very long chain of
siblings that have to be done ordered.  I believe that I
have made this a lot faster now.

Thanks!

- Carsten

On Apr 1, 2009, at 10:02 PM, Daniel wrote:


Hello Carsten,

you're right. I've changed the code suitable (at least I hope I have ;).

Do you think it's possible to replace the original hook with my
altered one, or do you think the additional checks are to expensive?
As far as I see there's no noticeable difference.

Nevertheless, here's the code in case someone is interested:
(altered lines are marked with semicolons)


(defun org-block-todo-from-children-or-siblings (change-plist)
"Block turning an entry into a TODO, using the hierarchy.
This checks whether the current task should be blocked from state
changes.  Such blocking occurs when:

1. The task has children which are not all in a completed state.

2. A task has a parent with the property :ORDERED:, and there
   are siblings prior to the current task with incomplete
   status."
(catch 'dont-block
  ;; If this is not a todo state change, or if this entry is already 
DONE,

  ;; do not block
  (when (or (not (eq (plist-get change-plist :type) 'todo-state-change))
(member (plist-get change-plist :from)
(cons 'done org-done-keywords))
(member (plist-get change-plist :to)
(cons 'todo org-not-done-keywords)))
(throw 'dont-block t))
  ;; If this task has children, and any are undone, it's blocked
  (save-excursion
(org-back-to-heading t)
(let ((this-level (funcall outline-level)))
  (outline-next-heading)
  (let ((child-level (funcall outline-level)))
(while (and (not (eobp))
(> child-level this-level))
  ;; this todo has children, check whether they are all
  ;; completed
  (if (and (not (org-entry-is-done-p))
   (org-entry-is-todo-p))
  (throw 'dont-block nil))
  (outline-next-heading)
  (setq child-level (funcall outline-level))
  ;; Otherwise, if the task's parent has the :ORDERED: property, and
  ;; any previous siblings are undone, it's blocked
;;
(setq while_cond t);;;
;;
(save-excursion (save-match-data
  ;;;
  (ignore-errors (while while_cond;;;
  ;;;
  (save-excursion
(org-back-to-heading t)
(when (save-excursion (ignore-errors
  (org-up-heading-all 1)
  (org-entry-get (point) "ORDERED")))
  (let* ((this-level (funcall outline-level))
 (current-level this-level))
(while (and (not (bobp))
(>= current-level this-level))
  (outline-previous-heading)
  (setq current-level (funcall outline-level))
  (if (= current-level this-level)
  ;; This is a younger sibling, check if it is completed
  (if (and (not (org-entry-is-done-p))
   (org-entry-is-todo-p))
  (throw 'dont-block nil)))
  (org-back-to-heading t)
  (org-up-heading-all 1)
  ;
  (when (not (org-entry-is-todo-p))
(setq while_cond nil))
  ;
  t))


Best regards,
Daniel


Carsten Dominik wrote:

Hi Daniel,

looks that your modification do the right thing - almost.
It does not check if the parent itself is a TODO, and I
think this would be necessary as well.  Because it would
allow to have do-able subtasks in the list without
too much blocking.

So "write hopping list" would not be blocked in this case:

* organize party
:PROPERTIES:
:ORDERED:  t
:END:
** TODO send invitations
*** TODO send invitation to Paul
*** TODO send invitation to Nicole
*** ect.
** Buy meals and drinks
:PROPERTIES:
:ORDERED:  t
:END:
*** TODO write shopping list
*** TODO get money  from my bank account
*** TODO buy food
*** TODO buy drinks

Would you agree?

- Carsten

On Mar 28, 2009, at 3:52 AM, Daniel wrote:


Oh my god! I think I've found a good solution :)

Can you please tell me, whether it's crap or not?

Only 4 lines differ from the original
org-block-todo-from-children-or-siblings hook. I've marked
the lines with "comment lines", they are before and after
the ORDERED-property check, at the end of the function.


(defun org-block-todo-from-children-or-siblings-or-parent 
(change-plist)

"Block turning an entry into a TODO, using the hierarchy.
This checks whether the current task should be blocked from state
changes.  Such blocking occurs when:

1. The task has children which are not all in a completed sta

[O] Fwd: File local variables not being processed

2013-05-24 Thread Daniel.
Hi, I have a todo.org file with some local variables, here is the file
content

# Local Variables:
# eval: (setq org-todo-keyword-faces
#  '(("TOSTART" . "red")
#("PLANING" . "yellow")
#("DOING" . "yellow")
#("CHECKING" . "yellow")
#("WAITING" . "green")
#("DOCUMENTING" . "yellow")))
# End:

#+TODO: TOSTART PLANING DOING CHECKING WAITING DOCUMENTING RELEASE


* TOSTART DO SOMETHING

And here is the snippet of my .emacs

;; TODO file:
(defvar todo-file "~/todo.org"
  "My todo list!")
(setq enable-local-variables :all)
(setq enable-local-eval t)
(find-file todo-file)


Still I don't get the org-mode colors specified on local variables.. If I
put the same sexp on my .emacs it works..

Any ideias?



-- 
*"Do or do not. There is no try"*
*  **Yoda Master*



-- 
*"Do or do not. There is no try"*
*  **Yoda Master*


[O] Bug: Agenda view [9.2.3 (9.2.3-elpa @ /home/daniel/.emacs.d/elpa/org-9.2.3/)]

2019-07-06 Thread Daniel


Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.


When I do C-c a a to get a weekly agenda view, it fails, producing an
empty frame.  In *Messages*, the reason alleges to be:

org-agenda-get-deadlines: Wrong number of arguments: (0 . 0), 2

That function should only take one argument, a date.  Compiled org
fails, and reloaded org works, but there's further problems in the backtrace.

Emacs  : GNU Emacs 26.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
 of 2019-07-04
Package: Org mode version 9.2.3 (9.2.3-elpa @ 
/home/daniel/.emacs.d/elpa/org-9.2.3/)



Re: [Orgmode] bug in export due to org-list-automatic-rules

2010-09-13 Thread Daniel Clemente

The cause of these errors:

  If you use this:
emacs --batch --load=/w/org-mode/lisp/org.el --visit ~/some.org --funcall 
org-export-as-html-batch

  Then you haven't changed the load-path to your org's directory (/w/org-mode/ 
in my case). But there's a (require 'org-list) in org.el, thus Emacs will want 
to load it from the system installation of org. Which may fail.

  Solution:
emacs --batch --load=/w/org-mode/lisp/org.el 
--load=/w/org-mode/lisp/org-list.el --visit ~/some.org --funcall 
org-export-as-html-batch

  Anyway, Nicolas' patch makes it easier to export to HTML by simply loading 1 
file (org.el), so I think it's useful.


-- Daniel

El Wed, 8 Sep 2010 03:39:20 +0530 Noorul Islam va escriure:
> 
> On Wed, Sep 8, 2010 at 12:49 AM, Daniel Clemente  wrote:
> >
> > Hi.
> >  This change in org.el (commit fd16515b4a88d48362223b19c511c4973cdbc84c, 
> > 2010-08-07 18:31:54):
> >
> >     '("^[ \t]*\\([-+*]\\|[0-9]+[.)][ \t]+\\(?:\...@start:[0-9]+\\][ 
> > \t]*\\)?\\)\\(\\[[- X]\\]\\)"
> >              2 'org-checkbox prepend)
> > -                    (if org-provide-checkbox-statistics
> > +                           (if (cdr (assq 'checkbox 
> > org-list-automatic-rules))
> >                                       
> > '("\\[\\([0-9]*%\\)\\]\\|\\[\\([0-9]*\\)/\\([0-9]*\\)\\]"
> >                                                 (0 
> > (org-get-checkbox-statistics-face) t)))
> >
> >
> >  made this command stop working:
> >
> > $ emacs --batch --load=/w/org-mode/lisp/org.el --visit 
> > ~/org-httptest/io.org --funcall org-export-as-html-batch
> > File mode specification error: (void-variable org-list-automatic-rules)
> > Loading vc-git...
> > Exporting...
> > Symbol's value as variable is void: org-list-automatic-rules
> >
> 
> With the following setup
> 
> "Org-mode version 7.01trans (release_7.01h.475.g0bfd.dirty)"
> 
> "GNU Emacs 23.2.2 (i686-pc-linux-gnu)
>  of 2010-06-08 on sajida"
> 
> The following command works. I am not sure whether we need to update the doc.
> 
> noo...@sajida:~/emacs/org-mode/lisp$ emacs --debug-init --batch
> --visit=/tmp/temp.org --funcall org-export-as-html-batch
> OVERVIEW
> Exporting...
> Exporting...
> Exporting...
> Saving file /tmp/temp.html...
> Wrote /tmp/temp.html
> HTML export done, pushed to kill ring and clipboard
> 
> But if I include load option, I get the following which is surprising for me.
> 
> noo...@sajida:~/emacs/org-mode/lisp$ emacs --batch
> --load=/home/noorul/emacs/org-mode/lisp/org.el --visit=/tmp/temp.org
> --funcall org-export-as-html-batch
> Cannot open load file: org-entities
> 
> Thanks and Regards
> Noorul

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Having (too) many files in org-agenda-files

2010-10-06 Thread Daniel Clemente

  Do you have your .org files inside a version control system like git or bzr?
  In that case, it's vc-mode who is delaying too much.
  See the thread 
http://www.mail-archive.com/emacs-orgmode@gnu.org/msg25902.html for a dirty 
workaround (disabling vc-mode).

  In my system I have now 200 agenda files (120k lines, 5'6 Mb) and I must wait 
1 minute on a fast computer (1'45" on a slower one) to run org-agenda-list.
  I timed it closing all *.org and running:   time emacsclient -n --eval 
'(org-agenda-list)' 

  The problem is in vc-mode, not org. It is too slow. And what is exactly 
doing? I attach it at the end of this mail. Sometimes it's ls-files, other 
diff-index.

-- Daniel

#+begin_example
Debugger entered--Lisp error: (quit)
  call-process("git" nil (t nil) nil "ls-files" "-c" "-z" "--" 
"wiki/Imagen.org")
  apply(call-process "git" nil (t nil) nil ("ls-files" "-c" "-z" "--" 
"wiki/Imagen.org"))
  process-file("git" nil (t nil) nil "ls-files" "-c" "-z" "--" 
"wiki/Imagen.org")
  apply(process-file "git" nil (t nil) nil "ls-files" ("-c" "-z" "--" 
"wiki/Imagen.org"))
  vc-git--call((t nil) "ls-files" "-c" "-z" "--" "wiki/Imagen.org")
  apply(vc-git--call (t nil) "ls-files" ("-c" "-z" "--" "wiki/Imagen.org"))
  vc-git--out-ok("ls-files" "-c" "-z" "--" "wiki/Imagen.org")
  byte-code(…)
  vc-git-registered("/home/dc/.mirp/wiki/Imagen.org")
  apply(vc-git-registered "/home/dc/.mirp/wiki/Imagen.org")
  vc-call-backend(Git registered "/home/dc/.mirp/wiki/Imagen.org")
  #[…]
  mapc(#[(b) "…" [b file vc-call-backend registered vc-file-setprop vc-backend 
throw found t] 4] (RCS CVS SVN SCCS Bzr Git Hg Mtn Arch))
  byte-code("…")
  vc-registered("/home/dc/.mirp/wiki/Imagen.org")
  vc-backend("/home/dc/.mirp/wiki/Imagen.org")
  #[…]
  vc-find-file-hook()
  run-hooks(find-file-hook)
  after-find-file(nil t)
  find-file-noselect-1(# "~/wiki/Imagen.org" nil nil 
"~/wiki/Imagen.org" (5929158 19))
  find-file-noselect("/home/dc/.mirp/wiki/Imagen.org" nil nil nil)
  find-file("/home/dc/.mirp/wiki/Imagen.org")

#+end_example




El Thu, 30 Sep 2010 19:08:02 +0200 Sébastien Vauban va escriure:
> 
> Hi Nick,
> 
> Nick Dokos wrote:
> > Sébastien Vauban  wrote:
> >>>>> Also, you might consider to remove (org-agenda-list) from .emacs. I
> >>>>> think it is pretty much always a bad idea to put a command like this
> >>>>> into your startup. Just make it a habit to call it early after starting
> >>>>> Emacs.
> >>>>
> >>>> Honestly, that would not change that much. Having to wait 92 seconds at
> >>>> startup, or a long time just a few minutes later has the same impact for
> >>>> me.
> >
> > Maybe you should try adding  a call to the profiler to your .emacs
> > and try to measure e.g. how much the font locking costs. Off the top of
> > my head and entirely untested, adding
> >
> > ,
> > | (require 'elp)
> > | (elp-instrument-package "font-lock")
> > | 
> > | ;; rest of your .emacs
> > | 
> > | (elp-results)
> > `
> >
> > might be enough.
> 
> Here are the results.
> 
> --8<---cut here---start->8---
> font-lock-fontify-buffer   96  
> 15.383627999  0.1602461249
> font-lock-default-fontify-buffer   96  
> 15.378296000  0.1601905833
> font-lock-fontify-region   96  
> 15.284044000  0.1592087916
> font-lock-default-fontify-region   96  
> 15.282674000  0.1591945208
> font-lock-fontify-keywords-region  96  
> 15.184516 0.1581720416
> font-lock-prepend-text-property8608
> 0.271222  3.150...e-05
> font-lock-unfontify-region 96  
> 0.085972  0.0008955520
> font-lock-add-keywords 166 
> 0.080081  0.0004824216
> font-lock-compile-keywords 138 
> 0.067193  0.0004869057
> font-lock-default-unfontify-region 96  
> 0.037866  0.0003944375
> font-lock-mode

[Orgmode] org-publish fails to export the #anchor in other_org_file.html#anchor

2010-10-12 Thread Daniel Clemente

Hi.

Before commit bbac53d7fe1cab14bc70e152092cf7a538a6a810, org-publish made this 
change to my HTML, which was wrong:

-Precisamente una idea loca que tengo es integrar la World Wide Web en org-mode…
+Precisamente una idea loca que tengo es integrar la World Wide Web en org-mode…


After that commit (and in exactly the same setup), it makes this change, which 
is also wrong:

-Precisamente una idea loca que tengo es integrar la World Wide Web en org-mode…
+Precisamente una idea loca que tengo es integrar la World 
Wide Web en org-mode…


I think org-html-make-link doesn't export anchors („fragments“) in links 
between org files.
The following patch corrects this for me; please review.

diff --git a/lisp/org-html.el b/lisp/org-html.el
index 3fd7b72..3e4a789 100644
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -746,7 +746,8 @@ MAY-INLINE-P allows inlining it as an image."
((or
(not type)
(string= type "http")
-   (string= type "https"))
+   (string= type "https")
+   (string= type "file"))
   (if fragment
  (setq thefile (concat thefile "#" fragment
 




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Bug: org-capture: confusing error for invalid template format [7.3] [7.3]

2010-11-08 Thread Daniel Hackney

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


Setting `org-capture-templates' to something like

  '(("t" "Todo" entry (file "/tmp/yo.org") "Hi there"))

Causes `org-capture' to fail with the following error:

  Lisp error: (error "Capture template `t': The kill is not a (set of) tree(s) 
- please use  to yank anyway")

Tracing through the source a bit, the problem is that
`org-kill-is-subtree-p' sees that "Hi there" is not a subtree and causes
`org-paste-subtree' to error out. Changing `org-capture-templates' to:

  '(("t" "Todo" entry (file "/tmp/yo.org") "* Hi there"))

makes it work correctly. This should fail sooner (such as when it is set
by custom) or print a more useful error message; I didn't know that the
problem was with the template string as I wasn't trying to kill
anything.

Emacs  : GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.22.0)
 of 2010-11-08 on priscilla
Package: Org-mode version 7.3

current state:
==
(setq
 org-export-with-LaTeX-fragments nil
 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-export-table-header-tags '("" . "")
 org-export-latex-default-packages-alist '(("AUTO" "inputenc" t) ("T1" 
"fontenc" t) ("" "fixltx2e" nil)
   ("" "graphicx" t) ("" "longtable" 
nil) ("" "float" nil) ("" "wrapfig" nil)
   ("" "soul" t) ("" "t1enc" t) ("" 
"textcomp" t) ("" "marvosym" t)
   ("" "wasysym" t) ("" "latexsym" t) 
("" "amssymb" t) ("" "hyperref" nil)
   "\\tolerance=1000")
 org-export-html-inline-image-extensions '("png" "jpeg" "jpg" "gif")
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-capture-templates '(("t" "Todo" entry (file "/tmp/yo.org") "Hi there"))
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-agenda-prefix-format '((agenda . "  %-12:c%?-12t% s") (timeline . "  % s") 
(todo . "  %-12:c")
(tags . "  %-12:c") (search . "  %-12:c"))
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-table-data-tags '("" . "")
 org-src-lang-modes '(("ocaml" . tuareg) ("elisp" . emacs-lisp) ("ditaa" . 
artist) ("asymptote" . asy)
  ("dot" . fundamental) ("sqlite" . sql))
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(org-src-native-tab-command-maybe 
org-hide-block-toggle-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
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-export-language-setup '(("en" "Author" "Date" "Table of Contents" 
"Footnotes")
 ("ca" "Autor" "Data" "Índex" "Peus de 
pàgina")
 ("cs" "Autor" "Datum" "Obsah" "Pozn\341mky pod 
carou")
 ("da" "Ophavsmand" "Dato" "Indhold" "Fodnoter")
 ("de" "Autor" "Datum" "Inhaltsverzeichnis" 
"Fußnoten")
 ("eo" "Aŭtoro" "Dato" "Enhavo" "Piednotoj")
 ("es" "Autor" "Fecha" "Índice" "Pies de 
página")
 ("fi" "Tekijä" 
"Päivämäärä" "Sisällysluettelo"
  "Alaviitteet")
 ("fr" "Auteur" "Date" "Table des matières" 
"Notes de bas de page")
 ("hu" "Szerzõ" "Dátum" 
"Tartalomjegyzék" "Lábjegyzet")
 ("is" "Höfundur" "Dagsetning" "Efnisyfirlit" 
"Aftanmálsgreinar")
 ("it" "Autore" "Data" "Indice" "Note a piè 
di pagina")
 ("nl" "Auteur" "Datum" "Inhoudsopgave" "Voetnoten")
 ("no" "Forfatter" "Dato" "Innhold" "Fotnoter")
 ("nb" "Forfatter" "Dato" "Innhold" "Fotnoter")
 ("nn" "Forfattar" "Dato" "Innhald" "Fotnotar")
 ("pl" "Autor" "Data" "Spis treści" 
"Przypis")
 ("sv" "Författare" "Datum" "Innehåll" 
"Fotnoter"))
 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 

[Orgmode] Can't complete with tab when using auto-complete with orgmode

2010-11-13 Thread Daniel Schoepe
Hello.

When I try to use auto-complete with orgmode, I can no longer complete
with , like I can in other modes. The completion menu is shown as
usual, but pressing tab triggers orgmode to reindent the line or show
`FOLDED' in the echo area when I'm on a headline.

Is there a way to fix this, or do I have to use a different key (which
works fine) than tab for auto-complete?

I'm using the latest git head of both orgmode and auto-complete and
emacs 23.2.1.

Regards,
Daniel Schoepe

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Corrupt lists in HTML if within footnotes

2009-10-05 Thread Daniel Clemente
Bug report+testcase

Hi, I found a bug related to lists within footnotes [1]. org-mode from
git (release_6.31.27.g407b).

[1] To reproduce it:
- open this test case
- C-c C-e b
- notice that this list doesn't appear under the „footnotes“ section,
but *mixed with the „end list“ at the end*

Note that LaTeX export works well; HTML doesn't.

End list:
- first (1/3)
- middle (2/3)
- last (3/3)


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: A simpler remember architecture

2009-10-05 Thread Daniel Clemente

Some idea about remember variations:

> +1, can we keep/have:
> - the templates,
> - possibility to 'pick file/topic first then remember'

  Actually what I would find useful is a task dispatcher for Emacs: a way to go 
to common tasks with a few keys.
  For instance: C-c C-x C-g would open your customized dispatcher, a dialog 
similar to C-u C-c C-x C-j (clock recent task) but which shows you predefined 
tasks, like:

[1] answer phone
[b] breakfast
[p] procrastinate!
[n] think about next task to do
[2] work on file2 a bit more

  Each key would bring you to the current buffer and task (e.g.: C-c C-x C-g b 
would move point to the „*** breakfast“ line in minor_tasks.org. 
  Clocking would be 1 chord away: C-c C-x C-g b C-c C-x C-i

  In fact this dispatcher could be a generic file/task/anything dispatcher for 
Emacs, which could bring you to any file you wanted in a few keys. Like 
recentf, but with user-defined positions instead of automatically computed 
entries.

  It could be nice have this inside Org.

-- Daniel



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: A simpler remember architecture

2009-10-05 Thread Daniel Clemente
  Just another off-topic but however related...:

> C-u C-c C-x C-i i
>

  What if C-u C-c C-x C-i could show, in addition to the recently
clocked tasks, some fixed tasks from a user-defined list?
  The dialog would be:

Common tasks:
[1] answer phone
[b] breakfast
[p] procrastinate!
[n] think about next task to do
[2] work on file2 a bit more
Recently clocked in tasks:
[a] working on this
[b] working on that


  That list of common tasks could even be progressively created from
statistics of the most commonly clocked tasks.


-- Daniel


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: A simpler remember architecture

2009-10-06 Thread Daniel Clemente
>
> To cater more to the OP's needs, consider using a special tag for such
> common tasks, like :COMMON:
>
> The create a special agenda view hat just shows this tag.


  This is a very nice solution. I thought of the agenda view as a way
to view your agenda, but now I see that it can actually serve as a
generic task dispatcher.

  There are also common files and directories which I often want to
open. I will write them as links inside a :COMMON: task, and this will
be the generic Emacs dispatcher I was looking for.


  Thanks

-- Daniel


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Org-mode version 6.32trans (release_6.32b.dirty); org-list-send-list matching problem

2009-10-29 Thread Daniel Hackney
("book"

"\\documentclass[11pt]{book}\n\\usepackage[utf8]{inputenc}\n\\usepackage[T1]{fontenc}\n\\usepackage{graphicx}\n\\usepackage{longtable}\n\\usepackage{hyperref}"
 ("\\part{%s}" . "\\part*{%s}")
("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" .
"\\section*{%s}")
 ("\\subsection{%s}" .
"\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
)
 org-mode-hook '((lambda nil (setq org-mouse-context-menu-function
(quote org-mouse-context-menu))
  (when (memq (quote context-menu) org-mouse-features)
(define-key org-mouse-map (if (featurep (quote xemacs)) [button3]
[mouse-3]) nil)
   (define-key org-mode-map [mouse-3] (quote
org-mouse-show-context-menu)))
  (define-key org-mode-map [down-mouse-1] (quote
org-mouse-down-mouse))
  (when (memq (quote context-menu) org-mouse-features)
(define-key org-mouse-map [C-drag-mouse-1] (quote
org-mouse-move-tree))
   (define-key org-mouse-map [C-down-mouse-1] (quote
org-mouse-move-tree-start)))
  (when (memq (quote yank-link) org-mouse-features)
(define-key org-mode-map [S-mouse-2] (quote org-mouse-yank-link))
   (define-key org-mode-map [drag-mouse-3] (quote
org-mouse-yank-link)))
  (when (memq (quote move-tree) org-mouse-features)
(define-key org-mouse-map [drag-mouse-3] (quote org-mouse-move-tree))
   (define-key org-mouse-map [down-mouse-3] (quote
org-mouse-move-tree-start)))
  (when (memq (quote activate-stars) org-mouse-features)
   (font-lock-add-keywords nil (\` (((\,
outline-regexp) 0 (\` (face org-link mouse-face highlight keymap (\,
org-mouse-map))) (quote prepend t))
  (when (memq (quote activate-bullets) org-mouse-features)
   (font-lock-add-keywords nil
(\` (("^[   ]*\\([-+*]\\|[0-9]+[.)]\\) +" (1 (\`
(face org-link keymap (\, org-mouse-map) mouse-face highlight)) (quote
prepend) t)
   )
  (when (memq (quote activate-checkboxes) org-mouse-features)
   (font-lock-add-keywords nil
(\` (("^[   ]*\\([-+*]\\|[0-9]+[.)]\\) +\\(\\[[
X]\\]\\)" (2 (\` (face bold keymap (\, org-mouse-map) mouse-face
highlight)) t t)
   )
  (defadvice org-open-at-point (around
org-mouse-open-at-point activate)
   (let ((context (org-context)))
(cond ((assq :headline-stars context) (org-cycle))
((assq :checkbox context) (org-toggle-checkbox))
 ((assq :item-bullet context) (let
((org-cycle-include-plain-lists t)) (org-cycle))) (t ad-do-it))
)
   )
  )
 (lambda nil (add-hook (quote after-save-hook) (quote
org-registry-update) t t)) turn-on-flyspell
 (lambda nil (org-add-hook (quote
change-major-mode-hook) (quote org-show-block-all) (quote append)
(quote local
 org-export-latex-emphasis-alist '(("*" "\\textbf{%s}" nil) ("/"
"\\emph{%s}" nil) ("_" "\\underline{%s}" nil) ("+" "\\texttt{%s}" nil)
("=" "\\verb=%s=" nil)
   ("~" "\\verb~%s~" t))
 org-return-follows-link t
 org-confirm-elisp-link-function 'yes-or-no-p
 org-agenda-mode-hook '((lambda nil (setq
org-mouse-context-menu-function (quote org-mouse-agenda-context-menu))
 (define-key org-agenda-keymap (if (featurep
(quote xemacs)) [button3] [mouse-3]) (quote
org-mouse-show-context-menu))
 (define-key org-agenda-keymap [down-mouse-3]
(quote org-mouse-move-tree-start))
 (define-key org-agenda-keymap (if (featurep
(quote xemacs)) [(control mouse-4)] [C-mouse-4]) (quote
org-agenda-earlier))
 (define-key org-agenda-keymap (if (featurep
(quote xemacs)) [(control mouse-5)] [C-mouse-5]) (quote
org-agenda-later))
 (define-key org-agenda-keymap [drag-mouse-3]
  (quote (lambda (event) (interactive "e")
(case (org-mouse-get-gesture event) (:left (org-agenda-earlier 1))
(:right (org-agenda-later 1))
 )
)
 org-occur-hook '(org-first-headline-recenter)
 org-export-latex-inline-image-extensions '("pdf" "jpeg" "jpg" "png")
 org-modules '(org-bbdb org-bibtex org-gnus org-info org-jsinfo
org-habit org-irc org-registry)
 org-remember-templates '(("Todo" 116 "** TODO %?\n  %i\n %a"
"~/org/root.org" "") ("Appointment" 97 "** Appointment: %?\n%^T\n%i\n
%a" "~/org/root.org" "")
  ("Blog Idea" 98 "*** %^{Title}\n%i%?"
"~/org/root.org" "Blog Ideas")
  ("Music" 109 "*** %^{Song title} -
%^{Artist}%!" "~/org/music.org" "To buy"))
 org-export-latex-low-levels 'description
 )

--
Daniel M. Hackney


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Proposed key binding changes: archiving and attachments

2009-11-07 Thread Daniel Martins
I use both

short topic in a still ongoing section I use simple archive


But when I finish a section or it is something I will not use for a
while I use archive to sibling.

Therefore setting

(setq org-archive-default-command 'org-archive-to-archive-sibling)

to use the "a" string

is not interesting.

However , I aggree that archiving should have a confirmation y-or-n

Daniel

2009/11/7 David Bremner :
> At Sat, 7 Nov 2009 07:33:30 +0100,
> Carsten Dominik wrote:
>
>> I actually think that few people use archiving to sibling.  Am I
>> wrong about this?
>
> For what it is worth, I have started to use archive to sibling quite a
> lot in the last month or so.  I also like to tidy up my org files, but
> I need to keep the structure for monthly and tri-monthly clock tables.
>
> d
>
>
>
> ___
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] feature request: show context in agenda

2009-11-12 Thread Daniel Clemente
On Thu, Nov 12, 2009 at 1:36 AM, Samuel Wales  wrote:
> In the agenda, it is difficult to find where you are in
> the hierarchy.  I find that I have to switch to the outline,
> then scroll up, if I want to know what the parent headline
> is, or any ancestor.

  Just a note: pressing E in the agenda view you will see an excerpt
of each section's context.
  It shows some lines from the content.
  Maybe it could show in addition the names of the headings which form
the outline path. Or maybe a simplified form of them (like: the first
3 characters of each heading: /Pro…/Web…/tas…/Design. Or the first
word. Or the first N words that make that heading different from its
siblings.)


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Release 6.33

2009-11-13 Thread Daniel Clemente
>
> Speed commands at the start of a headline
> ==
>
> If you set the variable `org-use-speed-commands', the cursor
> position at the beginning of a headline (i.e. before the first
> star) becomes special.  Single keys execute special commands in
> this place, for example outline navigation with `f', `b', `n',
> and `p', equivalent to the corresponding `C-c C-f', `C-c C-b',
> `C-c C-n', and `C-c C-f' commands.  …

  With this great feature I can avoid moving the hands to the cursor
keys!  I used them mostly for M-up, M-down, M-left, M-right, which I
can do now with C-a U  etc.

  Thanks for surprising us again


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] A Header outline and an Argument outline in one?

2009-11-19 Thread Daniel Clemente
El mié, nov 18 2009 a les 13:12, Scot Becker va escriure:
> (e) above is a bit of another matter, and I'm not sure how to
> accomplish it in orgmode, which only has native capacity to supress
> whole nodes, not just the headers, 

  This is very interesting. I assume you want to wrap some paragraphs inside a 
header but without exporting the header; just for the outline benefits.
  Normally you would do:


My thesis.

* (just a little introduction)
I will explain the achievements of this work.

** (first discovery: roses are red)
It was discovered that roses are red.



  But then the headers are exported.
  You should use inline tasks instead. Use (require 'org-inlinetask) and write:



My thesis.

 (just a little introduction)
I will explain the achievements of this work.

* (first discovery: roses are red)
It was discovered that roses are red.



  Ask org-mode not to export the tasks -- it exports the content instead:
  (setq org-inlinetask-export nil)

  And this exports to:


---

My thesis.

I will explain the achievements of this work.

It was discovered that roses are red.

---



  I hope it helps.


-- Daniel


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] latex export and beamer columns

2009-11-23 Thread Daniel Martins
Eric listed all (or almost all) "requirements" for exporting Beamer.

Some of the mI encountered a few days ago. I decided to export the
lists into latex and then converting by hand  the rest of the
presentation.

I am also very happy that "Beamer" is becoming an official directive
of org-mode.
Carsten converted us to org-mode and we converted him to Beamer!

Daniel

2009/11/23 Eric S Fraga :
> At Mon, 23 Nov 2009 14:55:53 +0100, Carsten Dominik wrote:
>>
>> Hi Eric,
>>
>> I am now getting interested in beamer support.  I think this is
>> interesting enough to implement special support for making beamer
>> slides.
>
> Excellent!
>
>> Can I ask you to think about it in general terms, what would be useful
>> to have?
>
> I've been using org-mode for my presentations for a few months now and
> intensively the past week or so for a set of lectures (70+ slides) I
> have to give starting tomorrow (yikes!  had better get them
> finished...!).  It's working remarkably well.
>
> Beamer has many many features and I think it would violate the ethos
> of org-mode if we attempted to support the majority of them.  Although
> I can suggest a number of features I think would be nice to support,
> I'm sure others will have a different subset they think is
> critical... however, I will give it a go:
>
> 1. being able to easily specify columns.  I've proposed a solution
>   works well for me but it is a bit clumsy and does impose a meaning
>   on the 3rd and 4th level headings.  This might conflict with other
>   potential uses for these headings obviously (cf. next point). Also,
>   please see my response to your comment on the impact of this on
>   normal latex export below.  The nice thing about using headings to
>   indicate columns is the ease with which the columns can be
>   re-ordered.
>
> 2. it would be nice to support the block environment in beamer.  The
>   obvious way would be to use 3rd level headings to indicate blocks.
>   In my case, I use these less frequently than columns which is why I
>   chose to use 3rd level headings to indicate columns.  However, a
>   solution that catered for both would be great.
>
>   one solution I am playing with, given that I often have blocks
>   within columns, is to use the 5th level headings for block
>   headings:
>
> --8<---cut here---start->8---
>   ("\\section{%s}" . "\\section*{%s}")
>   ("\\begin{frame}\\frametitle{%s}" "\\end{frame}"
>    "\\begin{frame}\\frametitle{%s}" "\\end{frame}")
>   ("\\begin{columns} \% %s" "\\end{columns}"
>    "\\begin{columns} \% %s" "\\end{columns}")
>   ("\\begin{column}{%s\\textwidth}" "\\end{column}"
>    "\\begin{column}{%s\\textwidth}" "\\end{column}")
>   ("\\begin{block}{%s}" "\\end{block}"
>    "\\begin{block}{%s}" "\\end{block}")
> --8<---cut here---end--->8---
>
>   For example, the following would generate a block within a full
>   width column on the slide:
>
> --8<---cut here---start->8---
> *** Another slide
> * columns
> *** 1.0
> * My proposition
>          - work better
>          - work faster
>          - have a life
> --8<---cut here---end--->8---
>
>   Although clumsy, it works!  (set H:5 of course)
>
> 3. support for animation, typically through the special  tags on
>   items and blocks (and more generally on most latex environments),
>   would be nice.  This can be used to selectively display different
>   parts of a slide.  One way to implement this, at least for itemized
>   lists, would be through a new bullet point syntax, as in:
>
>   <1-> item to display from first virtual "slide" onwards
>   <2-3> display on second and third views of the slide
>   <-4> display up to 4th view
>
>   which would translate to
>
>   \begin{itemize}
>   \item<1-> item to display from first virtual "slide" onwards
>   \item<2-3> display on second and third views of the slide
>   \item<-4> display up to 4th view
>   \end{itemize}
>
>   I have no idea how hard it would be to incorporate this into the
>   current list handling however... although I can imagine it could be
>   quite difficult.
>
> 4. as already mentioned in another email, passing arguments to the
>   frame environment would also be quite useful.  This could be done
>   with an attribute type of framework as done f

[Orgmode] How lecturers/professors manage weekly classes appts on org?

2009-11-25 Thread Daniel Martins
The question of time ranged notes on the agenda is quite important

How lecturers/professors manage weekly classes appts on org?

How to put some classes on a certain periods? How to skip holidays as
eg "remind" package do?

Daniel
2009/11/23 Łukasz Stelmach :
> lukasz.stelm...@iem.pw.edu.pl (Łukasz Stelmach) writes:
>
>> Isn't it wrong when a note like this:
>>
>> * A very interesting meeting 11:15-12:00
>>   <2009-11-30 Mon>--<2009-12-01 Tue>
>
> It's funny Markus has asked the same question few days ago in:
>
> 
>
> What's more ausing is that in fact I also have Project Management
> Workshop :-)
>
> EOT.
>
> --
> Miłego dnia,
> Łukasz Stelmach
>
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Beamer support - 2nd round

2009-12-04 Thread Daniel Martins
Stupid question 9but I could not answer it)


I have to set up

(add-to-list 'org-export-latex-classes
 '("beamer"
   "\\documentclass[11pt]{beamer}
...)

???


Or I have to imput another .el which sets org-export-latex-classes correctly?

I sue the latest git version of org-mode 6.33trans and
I tried to use the example but I couldn't


Daniel

2009/12/4 Eric S Fraga :
> At Thu, 3 Dec 2009 17:10:44 +0100,
> Carsten Dominik wrote:
>
>> after carefully listening to all your comments and thinking
>> things through more thoroughly, here is now my second attempt
>> to define beamer support in Org-mode.
>
> Carsten,
>
> Thanks for this!  After learning a bit about git branches (more than I
> probably wanted to know ;-) and a bit more about org mode columns
> view, I can say that I like what you have done.  I've been playing
> with your sample file for a short while and it looks a good design
> which seems to support everything /I/ would want and does so in an
> easy way (especially the combination of the new C-c C-b special
> org-beamer command and columns view).
>
> I've run into a few niggles but I need to play some more (probably
> over the weekend) to see whether some of them are my fault or due to
> bugs in the code.  However, some immediate niggles or suggestions are:
>
> - I need to be able to specify arguments for columns (i.e. the
>  environment, not specific columns), specifically
>  often [t] to make two columns align vertically
>
> - I don't understand what the difference between opt and envargs is.
>  In fact, I see no reference to BEAMER_opt in the document you wrote
>  yet your example has opt as one of the column view specifications.
>
> - it would be nice if when a column heading is also a block heading,
>  that the tags generated (which, by the way, is a really nice
>  feature) include both block and column tags to make it easy to spot
>  the column aspect.
>
> You'll probably be hearing from me soon again!
>
> Oh, and thanks for the separate email showing me how to do my page 100
> with the new setup.  How to do it was actually quite clear from the
> example you gave in the other message.  Very straightforward and does
> work nicely.
>
> Thanks again,
> eric
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-mode tricks for team management

2009-12-04 Thread Daniel Martins
Amazing work


Keep us up-to-date

I have intention to use a similar approach in my University

Daniel

2009/12/3 Juan Reyero :
> Greetings,
>
> I have been using org-mode as a key support for my work as a manager
> for quite a while now.  I thought some of the tricks and processes for
> keeping up-to-date with the work of each person in my team might be of
> interest to other people, so I wrote them up at:
>
> http://juanreyero.com/article/emacs/org-teams.html
>
> In summary, it is a simple way to keep track of TODO items associated
> to other people, query them, and add context to your notes (who is
> with you, where your are, and the time).  The key idea is to ask emacs
> to remember these things, and use the extra state to automate agenda
> queries and quick tagging.
>
> I am very grateful to Carsten and all the people contributing to
> org-mode and this list.  It's made a great positive impact in my work.
>
> Best,
>
> Juan
> ---
> http://juanreyero.com
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Beamer support - 2nd round

2009-12-04 Thread Daniel Martins
Thank you very much

I did everything you suggested and everything worked nicely


But even using load-libray

org-latex

and

org-beamer

I received


Loading /home/daniel/emacs-lisp/org-mode/lisp/org-beamer.el (source)...done
Loading /home/daniel/emacs-lisp/org-mode/lisp/org-latex.el (source)...done
Select command:
Exporting to LaTeX...
or: No definition for class `beamer' in `org-export-latex-classes'

2009/12/4 Nick Dokos :
> Daniel Martins  wrote:
>
>> Stupid question 9but I could not answer it)
>>
>>
>> I have to set up
>>
>> (add-to-list 'org-export-latex-classes
>>              '("beamer"
>>                "\\documentclass[11pt]{beamer}
>> ...)
>>
>> ???
>>
>
> No.
>
>>
>> Or I have to imput another .el which sets org-export-latex-classes correctl=
>> y?
>>
>> I sue the latest git version of org-mode 6.33trans and
>> I tried to use the example but I couldn't
>
> Are you using git to keep up to date with org-mode? If not, then afaict,
> you cannot get it yet. If you are using git, you can do something like this:
>
> $ git branch -r
>  origin/HEAD
>  origin/add-recursion-to-org-publish
>  origin/beamer
>  origin/emacs23
>  origin/experimental
>  origin/experimental-code-for-the-new-export-engine
>  origin/master
>  origin/mobile-support
>  origin/org-plot-doc
>  origin/support-for-mobile-sync
>
> you can see there is a remote branch called origin/beamer. You can create
> a local tracking branch with
>
> $ git branch beamer origin/beamer
>
> and check it out:
>
> $ git checkout beamer
>
> If you then look in lisp/org-latex.el, you should see the beamer stuff.
>
> HTH,
> Nick
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Bug in org-babel R language shadows ruby

2009-12-05 Thread Daniel Doherty
All,

I'm not on this mailing list, but thought this would be the right place to
pass along a bug in org-babek
that had me baffled for a long time.

I was initializing org-babel with the following from my init.el file
===
(require 'org-babel-init)
(require 'org-babel-ruby)
(require 'org-babel-R)
(require 'org-babel-python)
(org-babel-load-library-of-babel)


When executing a ruby src block, I would get an error saying that the "r"
language was not a babel-interpreter.

When I change the order of the language initializations, the error goes
away:

(require 'org-babel-init)
(require 'org-babel-R)
(require 'org-babel-ruby)
(require 'org-babel-python)
(org-babel-load-library-of-babel)


Now, ruby is recognized.  Looks like the function for parsing the src block
is seeing the 'r' in ruby and stopping
because 'R" is a valid language, but then choking when it tries to run 'r'.

I hope someone can get this to Eric Schulte to see what's going on.  In the
meantime, putting ruby second is a workaround.

I suspect a similar problem happens whenever one language is a prefix of
another.

Regards,

Dan Doherty
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Beamer support - 2nd round

2009-12-05 Thread Daniel Martins
Carsten hit the target. I have customized org-export-latex-classes before!


The first option did not work (I do not know why) but the second option did!

The teste worked perfectly!!


Thanks again carsten and Nicholas


Daniel


2009/12/5 Carsten Dominik :
>
> On Dec 5, 2009, at 1:04 AM, Daniel Martins wrote:
>
>> Thank you very much
>>
>> I did everything you suggested and everything worked nicely
>>
>>
>> But even using load-libray
>>
>> org-latex
>>
>> and
>>
>> org-beamer
>>
>> I received
>>
>>
>> Loading /home/daniel/emacs-lisp/org-mode/lisp/org-beamer.el
>> (source)...done
>> Loading /home/daniel/emacs-lisp/org-mode/lisp/org-latex.el (source)...done
>> Select command:
>> Exporting to LaTeX...
>> or: No definition for class `beamer' in `org-export-latex-classes'
>
> If you have customized org-export-latex-classes before, then the value you
> stored will overwrite the new default (which contains the beamer entry.  Two
> ways to fix this:
>
> 1. Remove you customization of this variable, restart Emacs, and customize
> again to redo the changed you have made earlier.  THis is the safest way.
>
> OR
>
> 2. Customize the variable and create a new entry for beamer, with this:
>    ("beamer"
>     "\\documentclass{beamer}
> \\usepackage[utf8]{inputenc}
> \\usepackage[T1]{fontenc}
> \\usepackage{graphicx}
> \\usepackage{longtable}
> \\usepackage{float}
> \\usepackage{wrapfig}
> \\usepackage{soul}
> \\usepackage{amssymb}
> \\usepackage{hyperref}"
>     org-beamer-sectioning
> ))
>
>
> So in your customize buffer it must look like this:
>
>
>
>
>
>
> Note in paricular that under |levels|, you must choose "Hook computing
> section levels" from the value menu
>
> - Carsten
>
>>
>> 2009/12/4 Nick Dokos :
>>>
>>> Daniel Martins  wrote:
>>>
>>>> Stupid question 9but I could not answer it)
>>>>
>>>>
>>>> I have to set up
>>>>
>>>> (add-to-list 'org-export-latex-classes
>>>>             '("beamer"
>>>>               "\\documentclass[11pt]{beamer}
>>>> ...)
>>>>
>>>> ???
>>>>
>>>
>>> No.
>>>
>>>>
>>>> Or I have to imput another .el which sets org-export-latex-classes
>>>> correctl=
>>>> y?
>>>>
>>>> I sue the latest git version of org-mode 6.33trans and
>>>> I tried to use the example but I couldn't
>>>
>>> Are you using git to keep up to date with org-mode? If not, then afaict,
>>> you cannot get it yet. If you are using git, you can do something like
>>> this:
>>>
>>> $ git branch -r
>>>  origin/HEAD
>>>  origin/add-recursion-to-org-publish
>>>  origin/beamer
>>>  origin/emacs23
>>>  origin/experimental
>>>  origin/experimental-code-for-the-new-export-engine
>>>  origin/master
>>>  origin/mobile-support
>>>  origin/org-plot-doc
>>>  origin/support-for-mobile-sync
>>>
>>> you can see there is a remote branch called origin/beamer. You can create
>>> a local tracking branch with
>>>
>>> $ git branch beamer origin/beamer
>>>
>>> and check it out:
>>>
>>> $ git checkout beamer
>>>
>>> If you then look in lisp/org-latex.el, you should see the beamer stuff.
>>>
>>> HTH,
>>> Nick
>>>
>
> - Carsten
>
>
>
>
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Beamer support - 2nd round

2009-12-07 Thread Daniel Martins
I had the same problem with org-beamer-add-units-to-column-width

daniel

2009/12/7 JBash :
>
>
> On Mon, Dec 7, 2009 at 3:15 PM, JBash  wrote:
>>
>>
>> On Sat, Dec 5, 2009 at 3:05 AM, Carsten Dominik
>>  wrote:
>>>
>>> On Dec 5, 2009, at 1:04 AM, Daniel Martins wrote:
>>>
>>>> Thank you very much
>>>>
>>>> I did everything you suggested and everything worked nicely
>>>>
>>>>
>>>> But even using load-libray
>>>>
>>>> org-latex
>>>>
>>>> and
>>>>
>>>> org-beamer
>>>>
>>>> I received
>>>>
>>>>
>>>> Loading /home/daniel/emacs-lisp/org-mode/lisp/org-beamer.el
>>>> (source)...done
>>>> Loading /home/daniel/emacs-lisp/org-mode/lisp/org-latex.el
>>>> (source)...done
>>>> Select command:
>>>> Exporting to LaTeX...
>>>> or: No definition for class `beamer' in `org-export-latex-classes'
>>>
>>> If you have customized org-export-latex-classes before, then the value
>>> you stored will overwrite the new default (which contains the beamer entry.
>>>  Two ways to fix this:
>>>
>>> 1. Remove you customization of this variable, restart Emacs, and
>>> customize again to redo the changed you have made earlier.  THis is the
>>> safest way.
>>>
>>> OR
>>>
>>> 2. Customize the variable and create a new entry for beamer, with this:
>>>    ("beamer"
>>>     "\\documentclass{beamer}
>>> \\usepackage[utf8]{inputenc}
>>> \\usepackage[T1]{fontenc}
>>> \\usepackage{graphicx}
>>> \\usepackage{longtable}
>>> \\usepackage{float}
>>> \\usepackage{wrapfig}
>>> \\usepackage{soul}
>>> \\usepackage{amssymb}
>>> \\usepackage{hyperref}"
>>>     org-beamer-sectioning
>>> ))
>>>
>>>
>>> So in your customize buffer it must look like this:
>>>
>>>
>>>
>>>
>>>
>>>
>>> Note in paricular that under |levels|, you must choose "Hook computing
>>> section levels" from the value menu
>>>
>>> - Carsten
>>>
>>>>
>>>> 2009/12/4 Nick Dokos :
>>>>>
>>>>> Daniel Martins  wrote:
>>>>>
>>>>>> Stupid question 9but I could not answer it)
>>>>>>
>>>>>>
>>>>>> I have to set up
>>>>>>
>>>>>> (add-to-list 'org-export-latex-classes
>>>>>>             '("beamer"
>>>>>>               "\\documentclass[11pt]{beamer}
>>>>>> ...)
>>>>>>
>>>>>> ???
>>>>>>
>>>>>
>>>>> No.
>>>>>
>>>>>>
>>>>>> Or I have to imput another .el which sets org-export-latex-classes
>>>>>> correctl=
>>>>>> y?
>>>>>>
>>>>>> I sue the latest git version of org-mode 6.33trans and
>>>>>> I tried to use the example but I couldn't
>>>>>
>>>>> Are you using git to keep up to date with org-mode? If not, then
>>>>> afaict,
>>>>> you cannot get it yet. If you are using git, you can do something like
>>>>> this:
>>>>>
>>>>> $ git branch -r
>>>>>  origin/HEAD
>>>>>  origin/add-recursion-to-org-publish
>>>>>  origin/beamer
>>>>>  origin/emacs23
>>>>>  origin/experimental
>>>>>  origin/experimental-code-for-the-new-export-engine
>>>>>  origin/master
>>>>>  origin/mobile-support
>>>>>  origin/org-plot-doc
>>>>>  origin/support-for-mobile-sync
>>>>>
>>>>> you can see there is a remote branch called origin/beamer. You can
>>>>> create
>>>>> a local tracking branch with
>>>>>
>>>>> $ git branch beamer origin/beamer
>>>>>
>>>>> and check it out:
>>>>>
>>>>> $ git checkout beamer
>>>>>
>>>>> If you then look in lisp/org-latex.el, you should see the beamer stuff.
>>>>>
>>>>> HTH,
>>>>> Nick
>>>>>
>>>
>>> - Carsten
>>>
>>>
>> This is not working quite right for me...
>> I pulled the latest beamer branch from git this morning and installed it.
>> I am getting the export to latex, but no columns in the beamer (tex) and
>> resulting pdf file.  There is a title frame, a TOC (blank) frame, and then a
>> single frame titled "This is the first structural section".  All other
>> elements are nested itemized lists on that single slide.
>>
>> I manually copied the org-beamer.el file to my site-lisp area.  Is that
>> supposed to be installed along with the other org files?
>>
>>
>> I had also previously defined org-latex-export-classes, and have removed
>> that from my .emacs file.
>>
>
> Correction:  I meant org-export-latex-classes  ... Sorry.
>>
>> I am also seeing an unexpected error the *second* (and subsequent) time I
>> export (without changes to the org file) to to PDFabout a column-width
>> function:
>>
>> Select command:
>> Exporting to PDF...
>> Exporting to LaTeX...
>> org-beamer-open-column: Symbol's function definition is void:
>> org-beamer-add-units-to-column-width
>>
>> If I restart emacs, I can export again (1 time) without these errors.
>>
>> If this points to something obvious in my configuration, please let me
>> know.  I suspect I have something strangely configured, as no one else is
>> having these issues.
>>
>> Thanks,
>> Jerry
>
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Beamer support in Org-mode

2009-12-15 Thread Daniel Martins
Good idea Eric (footnotes -> \notes)

The only minor problem is number of lines per footnote/note.

When I make notes on Bemaer in general my notes have more than one line.

AFAIK footnotes in org are single lines or you have to separate them
with \par which is not so good.

Daniel

2009/12/15 Eric S Fraga :
> At Thu, 10 Dec 2009 17:09:33 +0100,
> Carsten Dominik wrote:
>>
>
> [...]
>
>> One option would be to turn all those notes into footnotes
>> for other export.
>
> Carsten,
>
> I wonder if simply turning this on its head wouldn't be a good
> solution?  By this I mean to use org-mode footnotes to represent
> beamer notes (at least in my view footnotes make no sense in
> presentations).  In export, footnotes are translated to notes for
> beamer but are treated as usual for all other export targets.
>
> A thought...
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Beamer support in Org-mode

2009-12-18 Thread Daniel Martins
\pnote could be an option

Another idea is to reserve the lowest level to notes

* section
** subsection
*** frame
etc


** notes

(I don't know how many *'s are needed)

maybe we can set a number / variable

like

org-beamer-frame-level

we could create

org-beamer-notes-level

Daniel


2009/12/18 Nick Dokos :
> Adam Spiers  wrote:
>
>> On Tue, Dec 15, 2009 at 04:49:23PM -0300, Darlan Cavalcante Moreira wrote:
>> > In addition, while I also agree that footnotes shouldn't be in a 
>> > presentation
>> > they are allowed when working with beamer and may be useful in some cases. 
>> > If
>> > org-mode export footnotes as beamer notes then some months from now someone
>> > would be asking here in the mailing-list how to enter a standard footnote 
>> > when
>> > exporting to beamer.
>>
>> I agree - unfortunately there are genuinely sensible uses of footnotes
>> in presentations.  For example, citation of sources for quotations,
>> data etc. is ideally accomplished by footnotes: they are not used
>> during the presentation itself, but by distributing paper and/or
>> electronic copies after the talk, footnotes provide essential
>> reference data for perusal by the audience at a later date.
>>
> I think that's an argument *for* Eric's idea (assuming that the handout
> includes notes - that's my practice, but maybe not everybody does that,
> although they *should* :-) ).
>
> In general, I think slides should be very simple: single-level lists,
> single idea per slide, no footnotes - but I know that generalities like
> that are just guidelines: meant to be broken, given a good enough cause.
>
>> Imagine a slide showing the results of a benchmark, claiming "X is
>> much faster than Y!"  You might want to talk briefly about how the
>> results were obtained, and about the impact of the results, but you
>> would also need to be able to tell the audience they could
>> independently verify the results by obtaining a copy of the slides and
>> visiting the URL contained in the footnote - especially if the results
>> are controversial!  In this case, it would not matter that the URL was
>> too small to be legible from the back of the room.
>>
>>
>
> How does inverting Eric's idea sound: invent a new kind of footnote,
> let's call it, say, a "pnote", which is treated exactly like a footnote in
> all exports *except* beamer. In beamer, footnotes end up in the frame
> and pnotes end up in the notes.
>
> Not sure whether the implementation would be as simple as this makes it
> sound, but who knows?[1]
>
> Thanks,
> Nick
>
> [1] Well, OK: Carsten knows...
>
>
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Organizing a students live

2009-12-20 Thread Daniel Martins
All academics here present (including of course Carsten) suffer from
the same problem, I think


*** Math classes
<2009-12-10 Thu 11:00-14:00 +1w>


will repeat forever and ever...

We need to create a schedule for a period.

The package "remind" (and its simple interface "wyrd") do this job
wonderfully but I do not know how to deal with this problem in Org
mode

Daniel
2009/12/19 Thomas Bach :
> Hi Jan,
>
> interesting setup, it never came to my mind to organize everything on a
> weekly basis. Well, it makes sense. :)
> Why do you put inactive timestamps for beginning and end of the
> semester? Doesn’t that mean that it won’t show up in the agenda view?
> How are you handling examens?
>
> With the hints of Giovanni and Darlan I actually came up with something
> like this:
>
> * Calendario
>  :PROPERTIES:
>  :CATEGORY: Calendario
>  :END:
> ** segundo cuatrimestre
>   <2010-02-08 Mon>
> *** vacaciones
>    <2010-03-15 Mon>--<2010-03-19 Fri>
>    <2010-04-02 Fri>--<2010-04-12 Mon>
> *** finaliza segundo cuatrimestre
>    <2010-06-04 Fri>
>
> For the rare dates of the semester. I like this to get a fast overview
> when planing travels etc..
>
> For classes I created a tree like the following:
>
> * Classes
> ** Inteligencia Artificial
>   :PROPERTIES:
>   :CATEGORY: IA
>   :END:
> *** teoría
>    <2009-12-10 Thu 11:00-14:00 +1w>
> *** examen
>    :PROPERTIES:
>    :CATEGORY: IA examen
>    :END:
>  practicas
>     <2010-01-14 Thu 11:00>
>  teoria
>     <2010-01-29 Fri 09:00>
> *** trabajos
>  presentar el texto
>     DEADLINE: <2010-01-07 Thu>
> * TODO leer el texto y resumir
>
> But there are some still things that don’t fit together e.g. that
> classes (teoría) show up on vacations…
> BTW: Is it possible to inherit from higher CATEGORYs instead of
> overwriting it? So that I could only write :CATEGORY: examen?
>
> I will think and try out a bit more with all this over the weekend.
>
> Best regards,
>     Thomas Bach.
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Organizing a students live

2009-12-21 Thread Daniel Martins
In fact, it helps! Thanks

However a sentence like this:


+# a class that meets every Monday evening between February 16 and
April 20, 2009
** Class 7:00pm-9:00pm
<%%(and (= 1 (calendar-day-of-week date)) (diary-block 2 16 2009 4 20 2009))>

is not an example of simplicity and visibility for a quite common feature!

Maybe as a suggestion we could encapsulate such a huge expression in a
simpler org-mode function ?

Daniel


PS In

http://www.emacswiki.org/cgi-bin/wiki/DiaryMode#toc12

I found another suggestion which I do not know how to include in org-mode



Schedule

If you want to write a schedule for school or university, you need to
define a block (it’s derived from diary-block) between two dates and a
weekday. The following function also recognizes holidays and won’t
send you to school on those days… :)

(defun diary-schedule (m1 d1 y1 m2 d2 y2 dayname)
  "Entry applies if date is between dates on DAYNAME.
Order of the parameters is M1, D1, Y1, M2, D2, Y2 if
`european-calendar-style' is nil, and D1, M1, Y1, D2, M2, Y2 if
`european-calendar-style' is t. Entry does not apply on a history."
  (let ((date1 (calendar-absolute-from-gregorian
(if european-calendar-style
(list d1 m1 y1)
  (list m1 d1 y1
(date2 (calendar-absolute-from-gregorian
(if european-calendar-style
(list d2 m2 y2)
  (list m2 d2 y2
(d (calendar-absolute-from-gregorian date)))
(if (and
 (<= date1 d)
 (<= d date2)
 (= (calendar-day-of-week date) dayname)
 (not (check-calendar-holidays date))
 )
 entry)))

Then: "&%%(diary-schedule 22 4 2003 1 8 2003 2) 18:00 History"


----



2009/12/20 Matt Lundin :
> Daniel Martins  writes:
>
>> All academics here present (including of course Carsten) suffer from
>> the same problem, I think
>>
>>
>> *** Math classes
>> <2009-12-10 Thu 11:00-14:00 +1w>
>>
>>
>> will repeat forever and ever...
>>
>> We need to create a schedule for a period.
>>
>> The package "remind" (and its simple interface "wyrd") do this job
>> wonderfully but I do not know how to deal with this problem in Org
>> mode
>
> The following FAQ should help:
>
> http://orgmode.org/worg/org-faq.php#diary-sexp-in-org-files
>
> - Matt
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Contracts in Orgmode

2009-12-21 Thread Daniel Martins
Important question

It has some relation with other topic on the list

http://thread.gmane.org/gmane.emacs.orgmode/20780/focus=20857

2009/12/21 Markus Heller :
> Hello all,
>
> please consider the following scenario:
>
> I have a contract with Client A; the contract is valid from January 1, 2010
> until March 31, 2010.  I want to clock all my work on tasks under this
> contract, and of course *only* while the contract is valid.  30 days before
> the expiry date, I'd like to get a reminder.
>
> After some googling and reading, I came up with the following for my org
> file Client.org:
>
> * Contract A
>  <%%(diary-block 01 01 2010 03 31 2010)>
>
> ** TODO Renew Contract
>   DEADLINE: <2010-03-31 Wed>
>
> ** Task A
>   :LOGBOOK:
>
> ** Task B
>   :LOGBOOK:
>
> I want to log the hours I spend on Task A and Task B, but as mentioned
> before, *only* while the contract is valid.  How can I get orgmode to pop up
> a message in the status line (or whatever it's called :)) when I'm trying to
> clock in Task A or Task B before January 1, 2010 or after March 31, 2010?
>
> Any hints appreciated :)
>
> Thanks and Cheers
> Markus
>
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Organizing a students live

2009-12-26 Thread Daniel Martins
I liked the idea of org-diary-class!

About avoiding holidays and certain weeks:

I used remind and wyrd for a while  and they are a quite good software
for dealing with such appts.

There we have the OMIT function where we determine holidays and other
non-working days including Sat and Sundays


Normally we have an OMIT list at the beginning of file

 Some functions simply omit those dates

Other expressions use another keyword AFTER (or BEFORE)  to change
OMIT behaviour

like
23 Mar AFTER OMIT "Bank payment"

eg If 23 Mar is in Saturday it will appear in Monday

This preamble is just to say 2 things:

1) remind/wyrd could be used as a benchmark for some of the calendar
isuues we have

2) I do not know if the week number in a year is a practical way of
setting exceptions to org-diary-class

Daniel

PS Wyrd page is

http://pessimization.com/software/wyrd/




2009/12/26 Carsten Dominik :
> Hi Daniel,
>
> I think it is a good idea to add such a function to org-mode.  But I
> am not sure if skipping holidays is the best, because Universities
> also have lecture-free weeks etc.
>
> So I am more thinking about a function like this (untested)
>
> (defun org-diary-class (m1 d1 y1 m2 d2 y2 dayname &rest skip-weeks)
>  "Entry applies if date is between dates on DAYNAME, but skips SKIP-WEEKS.
> Order of the parameters is M1, D1, Y1, M2, D2, Y2 if
> `european-calendar-style' is nil, and D1, M1, Y1, D2, M2, Y2 if
> `european-calendar-style' is t.  The weeks are ISO week numbers where
> the item should not apply."
>  (let* ((date1 (calendar-absolute-from-gregorian
>                 (if european-calendar-style
>                     (list d1 m1 y1)
>                   (list m1 d1 y1
>         (date2 (calendar-absolute-from-gregorian
>                 (if european-calendar-style
>                     (list d2 m2 y2)
>                   (list m2 d2 y2
>         (d (calendar-absolute-from-gregorian date)))
>    (and
>     (<= date1 d)
>     (<= d date2)
>     (= (calendar-day-of-week date) dayname)
>     (or (not skip-weeks)
>         (progn
>           (require 'cal-iso)
>           (not (member (car (calendar-iso-from-absolute d)) skip-weeks
>     entry)))
>
>
> What do you think?
>
> - Carsten
>
> On Dec 21, 2009, at 4:54 PM, Daniel Martins wrote:
>
>> In fact, it helps! Thanks
>>
>> However a sentence like this:
>>
>>
>> +# a class that meets every Monday evening between February 16 and
>> April 20, 2009
>> ** Class 7:00pm-9:00pm
>> <%%(and (= 1 (calendar-day-of-week date)) (diary-block 2 16 2009 4 20
>> 2009))>
>>
>> is not an example of simplicity and visibility for a quite common feature!
>>
>> Maybe as a suggestion we could encapsulate such a huge expression in a
>> simpler org-mode function ?
>>
>> Daniel
>>
>>
>> PS In
>>
>> http://www.emacswiki.org/cgi-bin/wiki/DiaryMode#toc12
>>
>> I found another suggestion which I do not know how to include in org-mode
>>
>>
>> 
>> Schedule
>>
>> If you want to write a schedule for school or university, you need to
>> define a block (it’s derived from diary-block) between two dates and a
>> weekday. The following function also recognizes holidays and won’t
>> send you to school on those days… :)
>>
>>   (defun diary-schedule (m1 d1 y1 m2 d2 y2 dayname)
>>     "Entry applies if date is between dates on DAYNAME.
>>   Order of the parameters is M1, D1, Y1, M2, D2, Y2 if
>>   `european-calendar-style' is nil, and D1, M1, Y1, D2, M2, Y2 if
>>   `european-calendar-style' is t. Entry does not apply on a history."
>>     (let ((date1 (calendar-absolute-from-gregorian
>>                   (if european-calendar-style
>>                       (list d1 m1 y1)
>>                     (list m1 d1 y1
>>           (date2 (calendar-absolute-from-gregorian
>>                   (if european-calendar-style
>>                       (list d2 m2 y2)
>>                     (list m2 d2 y2
>>           (d (calendar-absolute-from-gregorian date)))
>>       (if (and
>>            (<= date1 d)
>>            (<= d date2)
>>            (= (calendar-day-of-week date) dayname)
>>            (not (check-calendar-holidays date))
>>            )
>>            entry)))
>>
>> Then: "&%%(diary-schedule 22 4 2003 1 8 2003 2) 18:00 History"
>>
>>
>> 
>>
>>
>>
>> 2009/12/20 Matt Lundi

Re: [Orgmode] Re: Organizing a students live

2009-12-28 Thread Daniel Martins
> Interesting.  But too complex for now - and I actually do prefer local
control.

I know it is complex.

I thought about the first steps

I was thinking about a variable (list?) with predefined holidays

or better omit-holidays

such as org-omit-holidays

we could add the omit dates in any place
  (add-to-list 'org-omit-holidays "25 Dec")
  (add-to-list 'org-omit-holidays "1 Jan")
  (add-to-list 'org-omit-holidays "1 May")
etc.


Then we could change (adapt) the

function calendar-check-holydays from holidays.el


I did a search-replace to something like this:

(defun org-check-calendar-omit-holidays (date)
  "Check the list of org-omit-holidays for any that occur on DATE.
The value returned is a list of strings of relevant org-omit-holiday
descriptions.
The org-omit-holidays are those in the list `org-omit-holidays'."
  (let ((displayed-month (extract-calendar-month date))
(displayed-year (extract-calendar-year date))
(org-omit-holiday-list))
(dolist (h (calendar-org-omit-holiday-list))
  (if (calendar-date-equal date (car h))
  (setq org-omit-holiday-list (append org-omit-holiday-list (cdr
h)
org-omit-holiday-list))

with these adaptation we could use a slighly changed  version of the
"diary-schedule" function  I sent before.

I did not go further nor tested it.

Thinking again now: I think it is better to avoid holidays than week
numbers. The problem is that we have to decide which holidays are "really"
holidays and not rely on the holidays variables that come with Emacs.


Daniel

2009/12/28 Carsten Dominik 

> Hi Daniel,
>
>
> On Dec 27, 2009, at 1:51 AM, Daniel Martins wrote:
>
>  I liked the idea of org-diary-class!
>>
>
> I have added the function now to org-agenda.el
>
>
>
>> About avoiding holidays and certain weeks:
>>
>> I used remind and wyrd for a while  and they are a quite good software
>> for dealing with such appts.
>>
>> There we have the OMIT function where we determine holidays and other
>> non-working days including Sat and Sundays
>>
>>
>> Normally we have an OMIT list at the beginning of file
>>
>> Some functions simply omit those dates
>>
>> Other expressions use another keyword AFTER (or BEFORE)  to change
>> OMIT behaviour
>>
>> like
>> 23 Mar AFTER OMIT "Bank payment"
>>
>> eg If 23 Mar is in Saturday it will appear in Monday
>>
>> This preamble is just to say 2 things:
>>
>> 1) remind/wyrd could be used as a benchmark for some of the calendar
>> isuues we have
>>
>> 2) I do not know if the week number in a year is a practical way of
>> setting exceptions to org-diary-class
>>
>> Daniel
>>
>> PS Wyrd page is
>>
>> http://pessimization.com/software/wyrd/
>>
>
> Interesting.  But too complex for now - and I actually do prefer local
> control.
>
> - Carsten
>
>
>
>
>>
>>
>>
>> 2009/12/26 Carsten Dominik :
>>
>>> Hi Daniel,
>>>
>>> I think it is a good idea to add such a function to org-mode.  But I
>>> am not sure if skipping holidays is the best, because Universities
>>> also have lecture-free weeks etc.
>>>
>>> So I am more thinking about a function like this (untested)
>>>
>>> (defun org-diary-class (m1 d1 y1 m2 d2 y2 dayname &rest skip-weeks)
>>>  "Entry applies if date is between dates on DAYNAME, but skips
>>> SKIP-WEEKS.
>>> Order of the parameters is M1, D1, Y1, M2, D2, Y2 if
>>> `european-calendar-style' is nil, and D1, M1, Y1, D2, M2, Y2 if
>>> `european-calendar-style' is t.  The weeks are ISO week numbers where
>>> the item should not apply."
>>>  (let* ((date1 (calendar-absolute-from-gregorian
>>>(if european-calendar-style
>>>(list d1 m1 y1)
>>>  (list m1 d1 y1))))
>>>(date2 (calendar-absolute-from-gregorian
>>>(if european-calendar-style
>>>(list d2 m2 y2)
>>>  (list m2 d2 y2
>>>(d (calendar-absolute-from-gregorian date)))
>>>   (and
>>>(<= date1 d)
>>>(<= d date2)
>>>(= (calendar-day-of-week date) dayname)
>>>(or (not skip-weeks)
>>>(progn
>>>  (require 'cal-iso)
>>>  (not (member (car (calendar-iso-from-absolute d)) skip-weeks
>>>entry)))
>>>
>>>
>>> What do you think?
>&g

[Orgmode] Custom time display in mode-line

2010-01-17 Thread Daniel Clemente

Hi

  org-clock-modeline-total now accepts following values: current, today, 
repeat, all, auto.
  It would be useful to allow it to accept either a custom function or a format 
string which composes a text string like:
"0:10 (tot: 1:10/2:00)"
  meaning: „clocking 10 minutes in this session, but the total clocked time 
(including those 10min) is 1:10, and the effort estimate is 2:00“.

  Not all entries have a „total clocked time“ (: entries clocked for the first 
time) and not all entries have an estimate.
- Either many format strings must be given (_simple, _with_total, 
_with_estimate, _with_total_and_estimate), e.g. ("%current" "%current (tot: 
%total)" "%current/%estimate" "%current (tot:%total/%estimate)")
- … or we must cope with results like "0:10 (tot: /)"
- … or a custom function must be used to do those conditionals.

  Accepting a function would be like redefining org-clock-get-clock-string but 
without touching org's core.


  I tried to change the code but I'm confused as to why 
org-clock-modeline-total (a mere visualization/„view“ setting) is read in 
org-clock-get-sum-start (which is a „model“/core function and therefore not 
tied to any particular „view“). I think org-clock-modeline-total should be read 
just in org-clock-get-clock-string.
  Documentation of org-clock-get-clocked-time is also wrong („The time returned 
includes the time spent on this task in previous clocking intervals.“) since 
this depends on what org-clock-get-sum-start did.


--
Daniel


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Exporting headlines without tags...

2010-01-24 Thread Daniel Clemente


> Is there a way to export headlines without the tags.

I think you can put this at the top of your file:

#+OPTIONS: tags:nil

It is explained in the manual: 
http://orgmode.org/manual/Export-options.html#Export-options


--
Daniel


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] How to combine the analogue (Moleskine) world with digital (org-mode) world ?

2010-01-26 Thread Daniel Martins
I use a small notebook with small pen as shown in

http://www.upgradeinfoshop.com.br/admin/produtos/8186.jpg


or

http://www.livrariagraf.com.br/ecommerce_produtos_ver_foto.php?id=989


BTW I have to thank Eric for his (always excellent) post!!!


Daniel


2010/1/25 Eric S Fraga 

> At Sun, 24 Jan 2010 23:09:27 +0900,
> Torsten Wagner wrote:
> > However, not all my work is just in front of a computer. And the world
>
> [...]
>
> > My question is now. What would be the best way to combine the
> > moleskine and org-mode ? Does someone have experience  with a paper
>
> [...]
>
> > Any ideas and experience would be welcome.
>
> In the "olden days" (as my son says), I used to run a mixed system
> (well beore org-mode days, mind you).  The best working scenario for
> me was the following:
>
> - every Sunday, I would go through my paper diary, a Filofax (tm), and
>  transfer any new/changed items to my electronic version.
> - I would then print off the next month's calendar in "week per two
>  pages" form compatible my Filofax.
> - during the week, I would tend to work only on paper if I wasn't at
>  my desk but, even at the desk, I would update both paper and
>  computer simultaneously with new/changed entries.  Any such entries
>  would be "ticked" on the paper so that I knew that I had already
>  incorporated them into the computer version.
>
> Eventually, I gave up and bought a Psion 3 (the original incarnation,
> then a 3a and finally a 3mx) which I carried with me all the time!  My
> 3mx died early this century and I have been struggling ever since.
> The Psion was absolutely fantastic, an example of engineering (both
> hardware and software) at its best!
>
> I now have org-mode which is fantastic in terms of the software end
> (and in many ways is reminiscent of the Psion) but the hardware end is
> lagging [1].  I now use a combination of systems: desktop PCs at work
> and home, netbook (Asus EEE) on the move with a Nokia internet tablet
> (N810) for those times when the netbook is too inconvenient
> (e.g. impromptu lunchtime meetings).  Everything is synchronised using
> git.
>
> This all works well enough but I still would like a single pocketable
> computer that I could use in all scenarios.  The Nokia's keyboard and
> screen are just a little too small, especially the keyboard.  I am
> hopeful that a more usable system will come out this year as many
> mobile internet devices [MID] and ultra-mobile PCs (UMPC) were
> announced last year.  The UMID &co. look promising.  Maybe the
> Pandora!  Possibly one of the Android phones but probably not.
>
> I won't get an iPhone as I don't like the proprietary nature of the
> software [2].  I want Linux or equivalent with org-mode!
>
> HTH,
> eric
>
>
> Footnotes:
> [1]  and this is *not* Carsten's fault ;-)
>
> [2]  yes, the Psion ran proprietary software as well but, partly
> because of being orphaned by them, I no longer am willing to end
> up beholden to a single company's system!
>
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] latex enumeration issue

2010-02-06 Thread Daniel Martins
This behaviour and/or hook could not be the default?

Daniel

2010/2/4 Eric S Fraga 

> At Wed, 03 Feb 2010 18:24:02 -0800,
> Mark Elston wrote:
>
> > P.S.  If anyone is interested here is the embarrassingly simple hook
> > function I came up with.  I show it not because I think anyone else
> > will find this thing useful but as an example of how simple it
> > really is to write this kind of thing.
>
> very useful, actually.  i use org-mode for my cv.  in my enumerated
> list of my publications, say, I often want to add some notes that
> don't appear in any exported version.  but I also don't want the
> enumeration interrupted.  There are other possible solutions but this
> simple function could prove quite useful indeed.
>
> thanks,
> eric
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [OT] See available keybindings?

2010-02-06 Thread Daniel Martins
I tried and it did not work.

I know it is a silly question but how can I set that f6 or f9 be a prefix
command inside org mode?

Daniel


2010/2/5 Ryan Thompson 

> Try pressing f6 and then C-h. Generally, pressing any prefix followed
> by C-h lists the bindings for that prefix.
>
> On Fri, Feb 5, 2010 at 10:48 AM, Nathan Neff 
> wrote:
> > I've defined a list of org-mode shortcuts that start with f6.
> >
> > Example:
> > f6 i = clock in
> > f6 o =clock out
> >
> > Is there a way to see all the available keybindings that begin
> > with f6?  Sometimes I'm not sure what key I need to type.
> >
> > When I press f6, then  appears in the minibuffer, waiting for
> > another key -- is there a key I can press to see the available choices?
> >
> > If not, how do I pass  to the 'describe-bindings' command when
> > invoking it using M-x from the minibuffer?
> > That command takes optional arguments, but I don't know how to
> > pass arguments to commands from the minibuffer.
> >
> > Thanks,
> > --Nate
> >
> >
> >
> > ___
> > Emacs-orgmode mailing list
> > Please use `Reply All' to send replies to the list.
> > Emacs-orgmode@gnu.org
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> >
> >
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Organizing a students live

2010-02-10 Thread Daniel Martins
Someone could send me an example of the use of the org-diary-class ??

Daniel

2010/1/3 Carsten Dominik 

>
> On Dec 28, 2009, at 10:09 PM, Daniel Martins wrote:
>
>  > Interesting.  But too complex for now - and I actually do prefer local
>> control.
>>
>> I know it is complex.
>>
>> I thought about the first steps
>>
>> I was thinking about a variable (list?) with predefined holidays
>>
>> or better omit-holidays
>>
>> such as org-omit-holidays
>>
>> we could add the omit dates in any place
>>  (add-to-list 'org-omit-holidays "25 Dec")
>>  (add-to-list 'org-omit-holidays "1 Jan")
>>  (add-to-list 'org-omit-holidays "1 May")
>> etc.
>>
>>
> Hmm, this is a possibility - but I don't have the time now to implement it.
> And then the question remains: What exactly should be omitted on these
> days?
> Everything? - probably not.  So I don't see how this leads to useful
> control, unless
> we have a really fine-grained control for each entry.
>
>
>
>> Then we could change (adapt) the
>>
>> function calendar-check-holydays from holidays.el
>>
>>
>> I did a search-replace to something like this:
>>
>> (defun org-check-calendar-omit-holidays (date)
>>  "Check the list of org-omit-holidays for any that occur on DATE.
>> The value returned is a list of strings of relevant org-omit-holiday
>> descriptions.
>> The org-omit-holidays are those in the list `org-omit-holidays'."
>>  (let ((displayed-month (extract-calendar-month date))
>>(displayed-year (extract-calendar-year date))
>>(org-omit-holiday-list))
>>(dolist (h (calendar-org-omit-holiday-list))
>>  (if (calendar-date-equal date (car h))
>>  (setq org-omit-holiday-list (append org-omit-holiday-list (cdr
>> h)
>>org-omit-holiday-list))
>>
>> with these adaptation we could use a slighly changed  version of the
>> "diary-schedule" function  I sent before.
>>
>> I did not go further nor tested it.
>>
>> Thinking again now: I think it is better to avoid holidays than week
>> numbers. The problem is that we have to decide which holidays are "really"
>> holidays and not rely on the holidays variables that come with Emacs.
>>
>
>
> I do not agree.  Lectures are not only skipped on holidays, but also on
> other
> days, so a more general approach is needed.
>
>
>
>>
>> Daniel
>>
>> 2009/12/28 Carsten Dominik 
>> Hi Daniel,
>>
>>
>> On Dec 27, 2009, at 1:51 AM, Daniel Martins wrote:
>>
>> I liked the idea of org-diary-class!
>>
>> I have added the function now to org-agenda.el
>>
>>
>>
>> About avoiding holidays and certain weeks:
>>
>> I used remind and wyrd for a while  and they are a quite good software
>> for dealing with such appts.
>>
>> There we have the OMIT function where we determine holidays and other
>> non-working days including Sat and Sundays
>>
>>
>> Normally we have an OMIT list at the beginning of file
>>
>> Some functions simply omit those dates
>>
>> Other expressions use another keyword AFTER (or BEFORE)  to change
>> OMIT behaviour
>>
>> like
>> 23 Mar AFTER OMIT "Bank payment"
>>
>> eg If 23 Mar is in Saturday it will appear in Monday
>>
>> This preamble is just to say 2 things:
>>
>> 1) remind/wyrd could be used as a benchmark for some of the calendar
>> isuues we have
>>
>> 2) I do not know if the week number in a year is a practical way of
>> setting exceptions to org-diary-class
>>
>> Daniel
>>
>> PS Wyrd page is
>>
>> http://pessimization.com/software/wyrd/
>>
>> Interesting.  But too complex for now - and I actually do prefer local
>> control.
>>
>> - Carsten
>>
>>
>>
>>
>>
>>
>>
>> 2009/12/26 Carsten Dominik :
>> Hi Daniel,
>>
>> I think it is a good idea to add such a function to org-mode.  But I
>> am not sure if skipping holidays is the best, because Universities
>> also have lecture-free weeks etc.
>>
>> So I am more thinking about a function like this (untested)
>>
>> (defun org-diary-class (m1 d1 y1 m2 d2 y2 dayname &rest skip-weeks)
>>  "Entry applies if date is between dates on DAYNAME, but skips SKIP-WEEKS.
>> Order of the parameters is M1, D1, Y1, M2, D2, Y2 if
>> `european-calendar-style&#x

Re: [Orgmode] Re: Organizing a students live

2010-02-10 Thread Daniel Martins
Thank you very much John. Incredibly fast answer !!!


BTW Is there an easy /practical  way to convert holidays dates to number of
weeks?

daniel

2010/2/10 John Rakestraw 

> >>>>> Daniel Martins writes:
>
> > Someone could send me an example of the use of the org-diary-class ??
>
> *** 12:15-13:05 Class
><%%(org-diary-class 1 13 2010 5 3 2010 1 3 7 10 14)>
><%%(org-diary-class 1 13 2010 5 3 2010 3 10)>
><%%(org-diary-class 1 13 2010 5 3 2010 5 10 13)>
>
> Class meets Mon-Wed-Fri from Jan 13 to May 3 from 12:15 to 13:05, with
> holidays as indicated. Friday's class, for example, doesn't meet in weeks
> 10 and 13.
>
> --
> John Rakestraw
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Organizing a students live

2010-02-10 Thread Daniel Martins
Thanks Stephan,

I still miss a lot the OMIT function of remind/wyrd ...

Daniel

2010/2/10 Stephan Schmitt 

> Hi Daniel,
>
> Also sprach Daniel Martins:
>
>  BTW Is there an easy /practical  way to convert holidays dates to number
>> of weeks?
>>
>
> the only way I'm aware of:
> M-x calendar
> navigate to the holiday date (type ? for the info node)
> type p c (print the ISO date in the message area)
>
> or take a look in your filofax...
>
> Hth,
>Stephan
>
>
>
>> > Someone could send me an example of the use of the org-diary-class
>> ??
>>
>>*** 12:15-13:05 Class
>>   <%%(org-diary-class 1 13 2010 5 3 2010 1 3 7 10 14)>
>>   <%%(org-diary-class 1 13 2010 5 3 2010 3 10)>
>>   <%%(org-diary-class 1 13 2010 5 3 2010 5 10 13)>
>>
>>Class meets Mon-Wed-Fri from Jan 13 to May 3 from 12:15 to 13:05, with
>>holidays as indicated. Friday's class, for example, doesn't meet in
>>weeks
>>10 and 13.
>>
>>--
>>John Rakestraw
>>
>>
>>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Organizing a students live

2010-02-10 Thread Daniel Martins
It helps!

It is silly how I never noticed  the (W06) in top of agenda!

Anyway Nick comments

but I guess the more difficult question is a user interface that allows
> you to construct such elaborate org-diary-class constructs.
>

are quite pertinent.

Daniel

2010/2/10 Carsten Dominik 

>
> On Feb 10, 2010, at 11:20 PM, Nick Dokos wrote:
>
>  Daniel Martins  wrote:
>>
>>  2010/2/10 John Rakestraw 
>>>
>>>  Daniel Martins writes:
>>>>>>>>
>>>>>>>
>>>  Someone could send me an example of the use of the org-diary-class ??
>>>>
>>>
>>>   *** 12:15-13:05 Class
>>>  <%%(org-diary-class 1 13 2010 5 3 2010 1 3 7 10 14)>
>>>  <%%(org-diary-class 1 13 2010 5 3 2010 3 10)>
>>>  <%%(org-diary-class 1 13 2010 5 3 2010 5 10 13)>
>>>
>>>   Class meets Mon-Wed-Fri from Jan 13 to May 3 from 12:15 to 13:05, with
>>>   holidays as indicated. Friday's class, for example, doesn't meet in
>>> weeks
>>>   10 and 13.
>>>
>>> Thank you very much John. Incredibly fast answer !!!
>>>
>>> BTW Is there an easy /practical  way to convert holidays dates to number
>>> of weeks?
>>>
>>
>> Not sure I read this right, but if you are talking about converting a
>> date to a week-number (as e.g. exhibited at the top of the weekly
>> agenda), this should do the trick:
>>
>> ;;; date is a three-element list (month day year)
>> ;;; (calendar-current-date) returns the date in this format.
>> (defun week-number (date)
>>  (org-days-to-iso-week
>>   (calendar-absolute-from-gregorian date)))
>>
>> but I guess the more difficult question is a user interface that allows
>> you to construct such elaborate org-diary-class constructs.
>>
>
> You can also navigate the agenda to the corresponding days, and it will
> show the week number.
>
> HTH
>
> - Carsten
>
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-R still in contrib?

2010-02-24 Thread Daniel Clemente
> I somehow missed the important disclaimer at the top of
> http://orgmode.org/worg/org-tutorials/org-R/org-R.php and spent some
> time learning how to use an obsolete Org add-on.
>
On the other hand, I was glad now that I managed to get org-R running
for my needs, and now it is removed!
It is worth the change, anyway, although org-babel seems more complex
for plotting.


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] MobileOrg Android 0.1_alpha

2010-02-26 Thread Daniel Martins
Congratulations Matthew for the good work!


Your work will at the end finally make decide to buy a decent Android phone.
(I almost bought an Iphone only for the possibility of MobileOrg!)

Daniel

PS Keep us informed...

2010/2/26 Matthew Jones 

> Sorry if this double posts, had forgotten which email address I had signed
> up for on the mailing list.
>
> Hey folks, I've been working on a version of MobileOrg for the Android
> platform with the goal to reach feature parity with the iPhone version
> developed by Richard Moreland.
>
> I have completed an early alpha version that can fetch and display the
> contents of Org files stored on a webdav server.   There are some good
> instructions for setting up a webdav server in the normal MobileOrg
> documentation: http://mobileorg.ncogni.to/doc/
>
> For getting started from the emacs side of things, the Org-mode
> documentation itself contains all the information you need:
> http://orgmode.org/manual/MobileOrg.html
>
> As for the MobileOrg android application itself you can find the release
> notes and a download link here:
>
> http://wiki.github.com/matburt/mobileorg-android/
>
> There are some known issues with this early alpha version and can't
> synchronize back to the webdav server yet or handle setting the state of
> tasks but I felt this was a good start and would actually be useful for
> Org-mode users
>
> When you first start the application up you'll need to click "Menu" and
> then "Settings" and enter your webdav information.  After saving you can
> click "Menu" again then "Sync".   Once that has finished it will populate
> the display and you can drill into your document structure.
>
> 73,
> Matthew W. Jones (KI4ZIB)
> http://matburt.net
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] default browser - SOLVED

2010-02-26 Thread Daniel Martins
Thank you Henry-Paul,

You solved for me a quite annoying issue related to org that I could not
solve!



For those who use firefox these two lines become:

(setq browse-url-browser-function (quote browse-url-generic))
(setq browse-url-generic-program "firefox")


Simply copy and paste it!!


2010/2/25 Carsten Dominik 

> Hi Henri-Paul,
>
> thanks for summarizing here in the mailing list, this creates
> a searchable record of a good answer!
>
> Best wishes
>
> - Carsten
>
>
> On Feb 25, 2010, at 7:18 PM, Henri-Paul Indiogine wrote:
>
>  Dear fellow org-moders,
>>
>> this is what was suggested to me:
>>
>> (setq browse-url-browser-function (quote browse-url-generic))
>> (setq browse-url-generic-program "chromium-browser")
>>
>> works perfectly on Ubuntu Karmic + Emacs 23.1.1.
>>
>> Again, thanks for org-mode.
>>
>>
>>
>> --
>> Henri-Paul Indiogine
>> Email: hindiog...@gmail.com
>>
>>
>>
>>
>> ___
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>
> - Carsten
>
>
>
>
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Mobile org

2010-02-26 Thread Daniel Martins
Maybe MobileOrg-Android be the simpler solution


http://wiki.github.com/matburt/mobileorg-android/

I did not tried yet

Daniel

2010/2/3 

> Marcelo de Moraes Serpa  writes:
>
> > Hello list,
> >
> > org-mode really changed my life, and allowed me to fully implement GTD
> the way
> > I wanted. However, I miss having access to it everytime, so, I'm looking
> for a
> > mobile device that could run emacs and org, and that I could keep in sync
> with
> > my laptop.
> >
> > What do you think?
> >
> > Any suggestions appreciated,
> >
> > Marcelo.
>
> Hi Marcelo,
>   check the CategoryPorts page on the emacswiki:
>   http://www.emacswiki.org/emacs/CategoryPorts
>
>   Personally I use emacs on my android phone, which includes a
>   Debian installation, see here:
>
>   http://www.emacswiki.org/emacs/EmacsOnAndroid
>
>   I use the android scripting environment to access android
>   programs from emacs. This allows me to make phone calls/send
>   text messages with BBDB in emacs, while I can still use the
>   useful gui stuff in android such as maps, web-browsing,
>   bar-code scanner etc.
>
>   I believe android is the way to go since it is open source
>   and hackable, while also having a large repertoire of cool
>   and useful apps.
>
>   The only drawback is that the initial setup is quite
>   complicated and time-consuming. You need to be fairly
>   technically minded.
>
> --
> aleblanc
>
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] default browser - SOLVED

2010-02-26 Thread Daniel Martins
Thanks Nick,


> Most (?) browsers have a remote URL capability: you can send a URL to an
> already running instance and it will just open it, without going through
> the overhead of creating another instance.

For me it seems strange this behaviour.

When I have firefox already open, it creates another tab for the URL and
does not open a new firefox instance.

Daniel

2010/2/26 Nick Dokos 

> [I had sent a similar answer to Henri-Paul, but for some reason, my reply
> never hit the list - I've had problem posting to the list in the past
> couple of days. I have an outstanding query to the list administrators,
> but I haven't heard anything back. If you do receive this personally,
> you might want to check the list and if it does not make it within the
> next day or so, you might want to just post it there for posterity.]
>
> Daniel Martins  wrote:
>
>
> > You solved for me a quite annoying issue related to org that I could not
> solve!
> >
> > For those who use firefox these two lines become:
> >
> > (setq browse-url-browser-function (quote browse-url-generic))
> > (setq browse-url-generic-program "firefox")
> >
> > Simply copy and paste it!!
> >
>
> Daniel,
>
> The problem with this solution is that it creates a new instance
> of the browser every time you click a link:
>
>
> ,
> | browse-url-generic is an interactive compiled Lisp function in
> | `browse-url.el'.
> |
> | (browse-url-generic URL &optional NEW-WINDOW)
> |
> | Ask the WWW browser defined by `browse-url-generic-program' to load URL.
> | Default to the URL around or before point.  A fresh copy of the
> | browser is started up in a new process with possible additional arguments
> | `browse-url-generic-args'.  This is appropriate for browsers which
> | don't offer a form of remote control.
> `
>
> Most (?) browsers have a remote URL capability: you can send a URL to an
> already running instance and it will just open it, without going through
> the overhead of creating another instance.
>
> For firefox, I do the following:
>
> ,
> | (defun browse-url-firefox (url &optional new-window)
> |   (shell-command (concat "firefox-xremote-client" " " "\"" url "\"")))
> |
> | (setq browse-url-browser-function 'browse-url-firefox)
> `
>
> with the following firefox-xremote-client script somewhere in my path:
>
> ,
> | #! /bin/bash
> |
> | firefox --remote "openURL($1)"
> `
>
> HTH,
> Nick
>
>
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Bug with section numbers due to EXAMPLE block

2010-02-28 Thread Daniel Clemente

  Hi, I found an HTML export bug with org-mode 6.34c-140-g44c8 and older. I 
used:


* only one section
#+BEGIN_EXAMPLE:
  
  We need:
  ,* pears
  ,* lettuce
  ,* watermelons
  
  Very important!
#+END_EXAMPLE:


  And the outputed table of contents had this code:




1 only one section 
2 pears
3 lettuce
4 watermelons




  This is wrong because the asterisks inside the example don't represent 
headers. There should be only one header.

  It does not happen with QUOTE or VERSE or SRC or CENTER! Only with EXAMPLE!


  I found this related code in org-export-replace-src-segments-and-examples:

#+BEGIN_SRC lisp
;; Free up the protected lines
(goto-char (point-min))
(while (re-search-forward "^," nil t)
  (if (or (equal lang "org")
  (save-match-data
(looking-at "\\([*#]\\|[ \t]*#\\+\\)")))
  (replace-match ""))
  (end-of-line 1))
#+END_SRC

(looking-at "\\([*#]\\|[ \t]*#\\+\\)") is true and therefore the , is removed 
and the asterisks are free.

  Maybe that block should be marked as „this is not org syntax“, or the section 
numbers should be computed before evaluating example blocks.


  Greetings
Daniel


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [PATCH 2/2] Fix adaptive filling.

2010-03-04 Thread Daniel Hackney
Samuel Wales  wrote:
> How will the new value of a non-org variable affect filladapt.el?

I don't use filladapt.el, so I can't be sure, but the change I made is
pretty non-invasive, so I doubt many problems would arise. I'm not quite
sure of what is being asked, however; what would filladapt.el do that
could be affected by this?

> On 2010-03-01, Dan Hackney  wrote:
>> For paragraph text, `org-adaptive-fill-function' did not handle the
>> base case of regular text which needed to be filled. This commit
>> saves a buffer-local value of `adaptive-fill-regexp' and uses it if
>> none of the org-specific regexps match. This allows email-style ">"
>> comments to be filled correctly.

--
Daniel M. Hackney


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] New Org-mode talk by Carsten Dominik

2010-03-06 Thread Daniel Martins
It would be great to have this talk on Google Video or YouTube or
another video streaming webpage.

I would "spread the word" more easily with such links....

Daniel

2010/3/6 Carsten Dominik :
>
> On Mar 5, 2010, at 9:07 PM, Stefan Vollmar wrote:
>
>> Hallo,
>>
>> we proudly present:
>>
>> "Emacs Org-mode: Organizing a Scientist's Life and Work"
>>
>> a talk by Carsten Dominik presented on February 8th 2010
>> at our institute. The recording of the talk is available here:
>>
>> http://www.nf.mpg.de/orgmode/guest-talk-dominik.html
>
>
> This is great, thanks a lot, Stefan, for all the work you have put into
> making this available.
>
> Next stop: I want to be on FLOSS weekly (But Randal Schwartz did not even
> react
> on my email - so I guess not :-)
>
> - Carsten
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Clocking feature request

2010-03-07 Thread Daniel Clemente
El dom, mar 07 2010 a les 11:38, Sébastien Vauban va escriure:
>
> Though, the only *remaining nice feature* would maybe be the following: add a
> letter indicating what's the meaning of the total. For example, we could see
>
> `T 02:51 (Reading Emails)'
>
> for a total limited to *today* and
> …

  I think all this would be easier to implement if the modeline string could be 
the result of a user-defined function. Then the user could add some letters 
according to some property, or show one particular time, or another, or more 
than one, etc.



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: Re: [Orgmode] Re: Organizing a students live

2010-03-10 Thread Daniel Martins
Today, for no apparent reason,  the org-diary-class below it does not work

Is the re any reason or is it my fault? My version is 6.30c

Daniel


2010/2/10 John Rakestraw :
> Sorry -- neglected to cc the list.
>
>
>
> -- Mensagem encaminhada --
> From: John Rakestraw 
> To: Daniel Martins 
> Date: Wed, 10 Feb 2010 14:16:57 -0500
> Subject: Re: [Orgmode] Re: Organizing a students live
>>>>>> Daniel Martins writes:
>
>> Someone could send me an example of the use of the org-diary-class ??
>
> *** 12:15-13:05 Class
>    <%%(org-diary-class 1 13 2010 5 3 2010 1 3 7 10 14)>
>    <%%(org-diary-class 1 13 2010 5 3 2010 3 10)>
>    <%%(org-diary-class 1 13 2010 5 3 2010 5 10 13)>
>
> Class meets Mon-Wed-Fri from Jan 13 to May 3 from 12:15 to 13:05, with
> holidays as indicated. Friday's class, for example, doesn't meet in weeks
> 10 and 13.
>
> --
> John Rakestraw
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Organizing a students live

2010-03-10 Thread Daniel Martins
Trying to use cd-colors from Carsten lecture, somehow emacs get lost
with the directories and did not go to the updated org-mode file.
An involuntary downgrade!

My fault!

Sorry

Daniel

2010/3/10 Matt Lundin :
> Daniel Martins  writes:
>
>> Today, for no apparent reason,  the org-diary-class below it does not work
>>
>> Is the re any reason or is it my fault? My version is 6.30c
>
> According to the change log[1] org-diary-class was added in version 6.34.
>
> Best,
> Matt
>
> Footnotes:
>
> [1] http://orgmode.org/Changes.html#sec-1.2.3
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [PATCH 2/2] Fix adaptive filling.

2010-03-15 Thread Daniel Hackney
Carsten Dominik  wrote:
> I have applied your patch thanks.

I'm glad that you found it useful!

> This is a the limit of what I can take without you signing the FSF
> papers. Would you consider signing them?

Absolutely. I submitted an application about a week ago (for my work on
package.el), but haven't heard back yet. I am certainly willing to sign
over these patches, if that makes things more convenient.

I can let you know once my papers have gone through. I definitely intend
to keep contributing to org-mode!

--
Daniel M. Hackney


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: New Org-mode talk by Carsten Dominik

2010-03-16 Thread Daniel Martins
I found a "minor" bug in cd-colors.el


I use a variation of background/foreground according to day/night
environments as suggested in

http://www.jurta.org/en/emacs/dotemacs

and which I reproduce below

But using cd-colors and the day option which means

  (set-background-color "white")
  (set-foreground-color "black")

I notice that the face org-hide remains black.

As I use



(setq org-hide-leading-stars t)


this is not quite convenient.

So I commented the line of org-hide in cd-colors and everything worked fine!

;
   `(org-tag ((t (:foreground ,tag
;;   `(org-hide ((t (:foreground "#191919"
   `(org-todo ((t (:background ,todo-bg :foreground "white" ,@box))))
;;;;;

Daniel

PS here is the text of my .emacs that I commented above

;;



;;; colors

(defun my-colors-light (&optional frame)
  "Set colors suitable for working in light environments,
i.e. in daylight or under bright electric lamps."
  (interactive)
  (setq frame-background-mode 'light)
  (if frame
  (select-frame frame)
(setq frame (selected-frame)))
  ;; The color with minimal eye fatigue in light environments
  ;; is "AntiqueWhite3" (RGB: 205 192 176),
  ;; (set-background-color "AntiqueWhite3")
  (set-background-color "white")
  (set-foreground-color "black")
  (when (facep 'region)
(set-face-background 'region "DarkGrey" frame))
  (when (facep 'fringe)
(set-face-background 'fringe (face-background 'default) frame)
(set-face-foreground 'fringe (face-foreground 'default) frame))
  ;; When started Emacs under root, warn by red color in the modeline
  (when (and (facep 'mode-line)
 (file-exists-p "/root")
 (file-writable-p "/root"))
(set-face-background 'mode-line "firebrick")))

(define-key global-map [f6 ?c ?d] 'my-colors-light) ;; c color d day

(defun my-colors-dark (&optional frame)
  "Set colors suitable for working in the darkness without electricity."
  (interactive)
  (setq frame-background-mode 'dark)
  (if frame
  (select-frame frame)
(setq frame (selected-frame)))
  (set-background-color "black")
  (set-foreground-color "DarkGrey")
  (when (facep 'region)
(set-face-background 'region "DimGray" frame))
  (when (facep 'fringe)
(set-face-background 'fringe (face-background 'default) frame)
(set-face-foreground 'fringe (face-foreground 'default) frame)))

(define-key global-map [f6 ?c ?n] 'my-colors-dark) ;; c color n night

;; Automatically switch to dark background after sunset
;; and to light background after sunrise.
;; (Note that `calendar-latitude' and `calendar-longitude'
;;  should be set before calling the `solar-sunrise-sunset')
(defun my-colors-set (&optional frame)
  (interactive)
  (require 'solar)
  (if (and calendar-latitude calendar-longitude calendar-time-zone)
  (let* ((l (solar-sunrise-sunset (calendar-current-date)))
 (sunrise-string (apply 'solar-time-string (car l)))
 (sunset-string (apply 'solar-time-string (car (cdr l
 (current-time-string (format-time-string "%H:%M")))
(if (or (string-lessp current-time-string sunrise-string)
(string-lessp sunset-string current-time-string))
(my-colors-dark frame)
  (my-colors-light frame))
(if (and (boundp 'my-sunset-timer)  (timerp my-sunset-timer))
(cancel-timer my-sunset-timer))
(if (and (boundp 'my-sunrise-timer) (timerp my-sunrise-timer))
(cancel-timer my-sunrise-timer))
(setq my-sunset-timer  (run-at-time sunset-string  (* 60 60 24)
'my-colors-dark))
(setq my-sunrise-timer (run-at-time sunrise-string (* 60 60 24)
'my-colors-light)


(my-colors-set)
(add-to-list 'after-make-frame-functions 'my-colors-set)






2010/3/9 Carsten Dominik :
>
> On Mar 7, 2010, at 7:51 PM, Manuel Amador wrote:
>
>> Carsten,
>>
>> Can we get a copy of the color configuration you are using?
>>
> -- Manuel
>
> Yes, I have put my color config here:
>
> http://orgmode.org/cd-colors.el
>
> This started as a copy of Peter Jones config and was then edited and hacked
> - which is why it may not be in the most convenient shape.  Feel free to
> package it up nicely and send me a better version.
>
> You also need something like this, adapted to your todo keywords.
>
> (setq org-todo-keyword-faces
>      '(("S

[Orgmode] Clocking in the current task should clock it out first

2010-03-17 Thread Daniel Clemente
Hi,
  in recent org-modes a new behaviour was added: when doing C-c C-x
C-i on the current task, it isn't clocked out first. It shows the
message „Clock continues in "[task]"“ and adds a new line for the
clock in.
  This creates a clock section like:

#+BEGIN_EXAMPLE
*** after pressing many successive C-c C-x C-i …
:CLOCK:
CLOCK: [2010-03-17 dc 10:25]--[2010-03-17 dc 10:30] =>  0:05
CLOCK: [2010-03-17 dc 10:20]
CLOCK: [2010-03-17 dc 10:20]
CLOCK: [2010-03-17 dc 10:20]
CLOCK: [2010-03-17 dc 10:20]
CLOCK: [2010-03-17 dc 10:20]
CLOCK: [2010-03-17 dc 10:20]
CLOCK: [2010-03-12 dv 16:38]--[2010-03-12 dv 16:39] =>  0:01
:END:
#+END_EXAMPLE


  They are later correctly found to be dangling clocks.
  I presume this is a bug?

Daniel


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Clocking in the current task should clock it out first

2010-03-21 Thread Daniel Clemente
El vie, mar 19 2010 a les 18:36, Carsten Dominik va escriure:
> Hi,
>
> strangely enough, this does not happen for me.  Maybe you
> have some setup for clock resolution that I do not have?
>

No. Just Emacs:
GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.18.6) of 2010-03-13

I used this .emacs:
(add-to-list 'load-path "/w/org-mode/lisp") (require 'org-install)
(add-to-list 'load-path "/w/org-mode/contrib/lisp")
(require 'org)


Commit 29d945720095a65852f69b7c628c1199eb4961fe (Date:   Fri Nov 27 08:09:10 
2009 +0100) was done precisely to leave clocks open; the bad behaviour comes 
from this change.
Via bisect I found that the previous revision was good and the next revision 
bad.


-- Daniel


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Simple tool to do outlining in HTML

2010-03-21 Thread Daniel Clemente

Hi,
  I'd like to present a task list and a visualization tool, esquemadorg.

  The task list is my published todo list, in Spanish, where I track work on 
some programs, topics, bugs and ideas. It's at [1]. There's a section for 
org-mode bugs too, under Emacs, concretely at: [2]

  The tool is the system which I used in that page. It is a JavaScript code 
([3]) which provides outlining in a web browser with a mouse. You just click on 
a header, and it expands or contracts smoothly. A newly expanded section will 
contain closed sections which have to be opened too, and so on. There is no 
cycling; just open/close.
  There's also a link at the top right of first section which disables 
outlining completely.
  The code used ideas from Sebastian Rose's org-info-jq but was newly written 
using jQuery. You may use it in your pages. Try these two designs: simple [4], 
nice [5]

  I also wrote a page explaining what is org-mode, what does it look like for 
me, how do I export to HTML and why you should prefer org over HTML: [6].

  I hope you find it useful.

Daniel

[1]:  http://www.danielclemente.com/hacer/ 
[2]:  http://www.danielclemente.com/hacer/emacs.html#sec-3
[3]:  http://www.danielclemente.com/pagina/esquemadorg.js
[4]:  http://www.danielclemente.com/pagina/esquemadorg.css
[5]:  http://www.danielclemente.com/hacer/basic.css
[6]:  http://www.danielclemente.com/hacer/org.html


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Publish atom feeds based on Org files

2010-03-22 Thread Daniel Brunner
Hello David,

I have been waiting for that feature as well. A nice thing and for me it
seem to work very nicely. 

> I would definitely vote for org-atom.el to be included in the standard
> org distribution!

Me too! 

Thanks, 

Daniel. 


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] dangling clock message might be incomprehensible to a few users

2010-03-24 Thread Daniel Clemente
I also think that interface is difficult to understand. Maybe we
should detail the texts for an easy one.
It should express the actions in words that match the user's
intention. For instance,
- account some minutes to that task
- set end time for that task
- discard that partial clocking
- do nothing and leave dangling clock

Etc.


On Sun, Mar 21, 2010 at 10:29 AM, Friedrich Delgado Friedrichs
 wrote:
> Hi!
>
> I'd like to chime in here:
> Samuel Wales schrieb:
>> Here is part of it:
>>
>>                      " [(kK)p (sS)ub (C)ncl (i)gn]? ")
>>
>> Some users might ask:
>>
>> kp=?  Keep?  Keep what?
>> sub=subtract what from what?
>> cncl=cancel command?  Why "C" only?
>> ign=ignore what?   Why "i" only?
> ---Zitatende---
>
> I'd also appreciate it if there was an option to give a time when the
> clock should end, instead of just a number of minutes to keep. It's
> easier for me to figure out when I ended work on the task, than how
> minutes I spent on it.
>
> Also I think the last clock entry isn't always displayed, which makes
> it even harder to figure out how to answer the 'k' question.
>
>
> --
>        Friedrich Delgado Friedrichs 
>                             TauPan on Ircnet and Freenode ;)
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: New Org-mode talk by Carsten Dominik

2010-03-29 Thread Daniel Martins
Well,

It works for white backgrounds but this color scheme is far from optimum.

As I use both white background and black background for the night (I have
read some academic papers that said  white background is better for the eye
fatigue but I am not quite sure of it)  I need a white background setup


Anyone out there has a proposal of color schemes for white (or at least not
dark) backgrounds which could share with us?

Daniel



2010/3/18 Carsten Dominik 

>
> On Mar 16, 2010, at 6:17 PM, Daniel Martins wrote:
>
>  I found a "minor" bug in cd-colors.el
>>
>>
>> I use a variation of background/foreground according to day/night
>> environments as suggested in
>>
>> http://www.jurta.org/en/emacs/dotemacs
>>
>> and which I reproduce below
>>
>> But using cd-colors and the day option which means
>>
>>  (set-background-color "white")
>>  (set-foreground-color "black")
>>
>> I notice that the face org-hide remains black.
>>
>
> I think that many of these faces will not work properly with a white
> background - they are all only for a dark background.  I would have thought
> that the entire scheme is unusable with white.
>
> - Carsten
>
>
>
>> As I use
>>
>>
>>
>> (setq org-hide-leading-stars t)
>>
>>
>> this is not quite convenient.
>>
>> So I commented the line of org-hide in cd-colors and everything worked
>> fine!
>>
>> ;;;;;
>>  `(org-tag ((t (:foreground ,tag
>> ;;   `(org-hide ((t (:foreground "#191919"
>>  `(org-todo ((t (:background ,todo-bg :foreground "white" ,@box
>> ;
>>
>> Daniel
>>
>> PS here is the text of my .emacs that I commented above
>>
>> ;;
>>
>>
>>
>> ;;; colors
>>
>> (defun my-colors-light (&optional frame)
>>  "Set colors suitable for working in light environments,
>> i.e. in daylight or under bright electric lamps."
>>  (interactive)
>>  (setq frame-background-mode 'light)
>>  (if frame
>> (select-frame frame)
>>   (setq frame (selected-frame)))
>>  ;; The color with minimal eye fatigue in light environments
>>  ;; is "AntiqueWhite3" (RGB: 205 192 176),
>>  ;; (set-background-color "AntiqueWhite3")
>>  (set-background-color "white")
>>  (set-foreground-color "black")
>>  (when (facep 'region)
>>   (set-face-background 'region "DarkGrey" frame))
>>  (when (facep 'fringe)
>>   (set-face-background 'fringe (face-background 'default) frame)
>>   (set-face-foreground 'fringe (face-foreground 'default) frame))
>>  ;; When started Emacs under root, warn by red color in the modeline
>>  (when (and (facep 'mode-line)
>>(file-exists-p "/root")
>>(file-writable-p "/root"))
>>   (set-face-background 'mode-line "firebrick")))
>>
>> (define-key global-map [f6 ?c ?d] 'my-colors-light) ;; c color d day
>>
>> (defun my-colors-dark (&optional frame)
>>  "Set colors suitable for working in the darkness without electricity."
>>  (interactive)
>>  (setq frame-background-mode 'dark)
>>  (if frame
>> (select-frame frame)
>>   (setq frame (selected-frame)))
>>  (set-background-color "black")
>>  (set-foreground-color "DarkGrey")
>>  (when (facep 'region)
>>   (set-face-background 'region "DimGray" frame))
>>  (when (facep 'fringe)
>>   (set-face-background 'fringe (face-background 'default) frame)
>>   (set-face-foreground 'fringe (face-foreground 'default) frame)))
>>
>> (define-key global-map [f6 ?c ?n] 'my-colors-dark) ;; c color n night
>>
>> ;; Automatically switch to dark background after sunset
>> ;; and to light background after sunrise.
>> ;; (Note that `calendar-latitude' and `calendar-longitude'
>> ;;  should be set before calling the `solar-sunrise-sunset')
>> (defun my-colors-set (&optional frame)
>>  (interactive)
>>  (require 'solar)
>>  (if (and calendar-latitude calendar-longitude calendar-time-zone)
>> (let* ((l (solar-sunrise-sunset (calendar-current-date)))
>>(sunrise-string (apply 'solar-time-string (car l)))
>>(sunset-string (apply &#x

Re: [Orgmode] How to open pdf file links with evince under linux?..

2010-03-29 Thread Daniel Martins
well,

my values are

org-file-apps is a variable defined in `org.el'.
Its value is
((auto-mode . emacs)
 ("\\.x?html?\\'" . default))


which does not help very much since i think is scary to change the auto-mode
in emacs

I have the same annoying problem reported by Jan

2010/3/23 Jan Böcker 

> On 23.03.2010 10:17, Leo Alekseyev wrote:
> > When using org mode under windows, links to local PDF files bring up
> > Acrobat.  However, under linux, these links just spawn a new empty
> > buffer in emacs in fundamental mode.  How can I make PDF links bring
> > up evince?...
> >
>
> As far as I know, Org uses the system defaults when it does not know how
> to open a file, and when the system does not know, Org opens the file in
> emacs. Under linux, that system default is the mailcap database, but I
> have no idea how to configure that. (It doesn't even appear to exist on
> my system.)
>
> But we can tell Org directly what to do with PDF files: take a look at
> the variable org-file-apps (M-x customize-variable org-file-apps).
>
> Each entry in this list consists of (selector, action) pairs where the
> action tells Org how to open a file, and the selector (in most cases a
> regular expression matched against the file name) specifies what kind of
> files to open in this way.
>
> Add the following entry:
>
> Extension:  \.pdf\'
> Command:evince %s
>
> Links to PDF files should now open in evince.
>
>
> If you pull the current git version of Org, you could add a second entry:
>
> Extension:  \.pdf::\([0-9]+\)\'
> Command:evince %s -p %1
>
> This would allow you to link to a specific page of a PDF like this:
> [[file:/path/to/document.pdf::21]]
> (Shameless plug for a patch of mine that just got accepted.)
>
>
> HTH, Jan
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Org mode and emacs email

2010-04-01 Thread Daniel Goldin
I too am a non-programmer-type who loves emacs/org-mode. I second this
approach. I don't think it will ever be possible -- nor desirable -- to
create a pure out-of-the-box setup as in window's programs -- but this
approach would work well for those of us able to tinker and learn a
little but not quick enough to build from scratch. A good initial
setup(s) and a good manual entry should suffice.

d.

On Thu, 01 Apr 2010, Henri-Paul Indiogine wrote:

> Giovanni Ridolfi  writes:
> > "Eric Schulte"  writes:
> >> peter.fri...@agfa.com writes:
> >>> Org prepares the body, then tells the mail app to prepare an mail with
> >>> it. [...] 
> >>> On Windows or *nix I don't know, but I can only assume similar
> >>> functionality exists.
> 
> Just a suggestion from an almost beginner:
> 
> All Gnu Emacs distributions include both org-mode and gnus by default.
> Maybe we could provide and .emacs file with code for org-mode and gnus
> for IMAP and POP3 commented out in sections.  Then we could explain that
> in case you need A and B you un-comment these sections and fill in the
> appropriate data and so on. Or if you need A and C then you un-comment 
> 
> It still would require some basic editing of a text file, but since
> someone has already decided to use a text editor that should not be a
> major impediment.
> 
> I know it would have helped me immensely when I started out.
> 
> 

-- 
Daniel Goldin 
213.926.1960


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: A bright new Org-mode clone project

2010-04-01 Thread Daniel Goldin
How about smorgasbord-mode?

On Thu, 01 Apr 2010, Detlef Steuer wrote:

>  there must be something special with today ...
> :-)
> 
> nice one
> 
> Detlef
> 
> On Thu, 01 Apr 2010 19:39:14 +0200
> Julien Barnier  wrote:
> 
> > As you see, the project is already quite advanced and mature. The last
> > thing I have to do is to find a name for it. I was thinking of
> > "smog-mode", or maybe "frog-mode", but I'm open to any suggestion.
> > 
> > And, of course, feel free to join your forces to this bright new
> > project !
> > 
> > Sincerely,
> > 
> 
> 
> 
> 
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

-- 
Daniel Goldin 
213.926.1960


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: emacs/org-mode on Droid?

2010-04-12 Thread Daniel Martins
Please, share your first impressions!!! I just bought an Android phone
and would like to take similar routes.

Daniel

2010/2/16 David Rogoff :
> On 2010-02-16 13:47:59 -0800, Tom Tobin said:
>
>> On Tue, Feb 16, 2010 at 12:18 PM, David Rogoff 
>> wrote:
>>>
>>> Hi all.
>>>
>>> New org-mode convert also looking at new phones.  It looks like theMoto
>>> Droid would be great for running org-mode.  Has anyone ported emacs to this
>>> platform and gotten org-mode running?
>>
>> I just switched from my iPhone back to an Android phone; I came across
>> this project:
>>
>> http://github.com/matburt/mobileorg-android
>>
>> I haven't tried it yet, though.
>
> Thanks - I'll take a look.
>
>
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [org-babel] How to tangle "org-mode" files?

2010-04-15 Thread Daniel Brunner
Hi,

I am testing some ideas with org-babel (which is really great work) and
got the following problem: I want to put several org-mode source blocks
in one org-mode file and tangle them afterwards. Therefore I produced
the following a.org:

-->8--
#+begin_src org :tangle in-a.org
  ,* Foo
  ,** Bar
#+end_src
-->8--

Then I thought I have to add "org" to the list of known tangle
languages:

> (add-to-list 'org-babel-tangle-langs '("org" "org"))

And when I know try a org-babel-tangle for example with

> (org-babel-tangle-file "a.org") 

Nothing happens. 

Can anybody help with what I am doing wrong? 


Kind regards, Daniel


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [org-babel] How to tangle "org-mode" files?

2010-04-16 Thread Daniel Brunner
Hi Dan,

thanks for the advice. After the org-babel-add-interpreter I got another
error message that org-babel-execute:org is not defined. 

I then added (I took the code from org-babel-css.el) a 

(defun org-babel-execute:org (body params)
  "Execute a block of org code with org-babel. This function is calles by 
`org-babel-execute-src-block'."
  (message "executing ORG source code block")
  body)

and after that the tangle worked. But you're right: The remaining commas
are not that helpful and my opinion would be too to strip them out. If I
could help please let me know. 

Best wishes,


Daniel

Dan Davison  writes:

> Daniel Brunner  writes:
>
>> Hi,
>>
>> I am testing some ideas with org-babel (which is really great work) and
>> got the following problem: I want to put several org-mode source blocks
>> in one org-mode file and tangle them afterwards. Therefore I produced
>> the following a.org:
>>
>> -->8--
>> #+begin_src org :tangle in-a.org
>>   ,* Foo
>>   ,** Bar
>> #+end_src
>> -->8--
>>
>> Then I thought I have to add "org" to the list of known tangle
>> languages:
>>
>>> (add-to-list 'org-babel-tangle-langs '("org" "org"))
>>
>> And when I know try a org-babel-tangle for example with
>>
>>> (org-babel-tangle-file "a.org") 
>>
>> Nothing happens. 
>>
>> Can anybody help with what I am doing wrong? 
>
> Hi Daniel,
>
> Short answer: please add
>
> (org-babel-add-interpreter "org")
>
> Long answer: I think there is room for improvement in org-babel
> here. For example, the protective commas are not stripped out on
> tangling, but I feel that they should be. And we need to clarify in the
> documentation when org-babel-add-interpreter is needed and when adding
> to org-babel-tangle-langs is required. I'm adding this to our todo list.
>
> Best wishes,
>
> Dan
>
>
>>
>>
>> Kind regards, Daniel
>>
>>
>> ___
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: emacs/org-mode on Droid?

2010-04-18 Thread Daniel Martins
Matthew,

Just a suggestion for newbies.

Could you generate a video of MobileOrg Android similar to those of
the MobileOrg Iphone.

I am still open to suggestions of Android smartphones.

If I need to access a remote ssh account and open Emacs, the available
keyborards are OK?

Daniel


PS I "bought"  an Android phone called Motorola Quench but due to a
"misunderstanding" with the operator I was forced to cancel the
purchase. (I am still very annoyed with this problem)



2010/4/13 Matthew Jones :
> I am the developer/maintainer of MobileOrg for Android and I'd appreciate
> any feedback on the application.   You can find more information and
> download links on the
> wiki: http://wiki.github.com/matburt/mobileorg-android/
> 73,
> Matthew W. Jones (KI4ZIB)
> http://matburt.net
>
>
> On Mon, Apr 12, 2010 at 10:08 PM, Daniel Martins 
> wrote:
>>
>> Please, share your first impressions!!! I just bought an Android phone
>> and would like to take similar routes.
>>
>> Daniel
>>
>> 2010/2/16 David Rogoff :
>> > On 2010-02-16 13:47:59 -0800, Tom Tobin said:
>> >
>> >> On Tue, Feb 16, 2010 at 12:18 PM, David Rogoff 
>> >> wrote:
>> >>>
>> >>> Hi all.
>> >>>
>> >>> New org-mode convert also looking at new phones.  It looks like
>> >>> theMoto
>> >>> Droid would be great for running org-mode.  Has anyone ported emacs to
>> >>> this
>> >>> platform and gotten org-mode running?
>> >>
>> >> I just switched from my iPhone back to an Android phone; I came across
>> >> this project:
>> >>
>> >> http://github.com/matburt/mobileorg-android
>> >>
>> >> I haven't tried it yet, though.
>> >
>> > Thanks - I'll take a look.
>> >
>> >
>> >
>> >
>> > ___
>> > Emacs-orgmode mailing list
>> > Please use `Reply All' to send replies to the list.
>> > Emacs-orgmode@gnu.org
>> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>> >
>>
>>
>> ___
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] suggestions of Android smartphones

2010-04-18 Thread Daniel Martins
 --- resending with a proper title ---

Matthew,

Just a suggestion for newbies.

Could you generate a video of MobileOrg Android similar to those of
the MobileOrg Iphone.

I am still open to suggestions of Android smartphones.

If I need to access a remote ssh account and open Emacs, the available
keyborards are OK?

Daniel


PS I "bought"  an Android phone called Motorola Quench but due to a
"misunderstanding" with the operator I was forced to cancel the
purchase. (I am still very annoyed with this problem)



2010/4/13 Matthew Jones :
> I am the developer/maintainer of MobileOrg for Android and I'd appreciate
> any feedback on the application.   You can find more information and
> download links on the
> wiki: http://wiki.github.com/matburt/mobileorg-android/
> 73,
> Matthew W. Jones (KI4ZIB)
> http://matburt.net
>
>
> On Mon, Apr 12, 2010 at 10:08 PM, Daniel Martins 
> wrote:
>>
>> Please, share your first impressions!!! I just bought an Android phone
>> and would like to take similar routes.
>>
>> Daniel
>>
>> 2010/2/16 David Rogoff :
>> > On 2010-02-16 13:47:59 -0800, Tom Tobin said:
>> >
>> >> On Tue, Feb 16, 2010 at 12:18 PM, David Rogoff 
>> >> wrote:
>> >>>
>> >>> Hi all.
>> >>>
>> >>> New org-mode convert also looking at new phones.  It looks like
>> >>> theMoto
>> >>> Droid would be great for running org-mode.  Has anyone ported emacs to
>> >>> this
>> >>> platform and gotten org-mode running?
>> >>
>> >> I just switched from my iPhone back to an Android phone; I came across
>> >> this project:
>> >>
>> >> http://github.com/matburt/mobileorg-android
>> >>
>> >> I haven't tried it yet, though.
>> >
>> > Thanks - I'll take a look.
>> >
>> >
>> >
>> >
>> > ___
>> > Emacs-orgmode mailing list
>> > Please use `Reply All' to send replies to the list.
>> > Emacs-orgmode@gnu.org
>> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>> >
>>
>>
>> ___
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] suggestions of Android smartphones

2010-04-18 Thread Daniel Martins
Thank you very much!

BTW what Android smartphone do you have?

Daniel

2010/4/18 Sven Bretfeld :
> Hi Daniel
>
> Daniel Martins  writes:
>
>> If I need to access a remote ssh account and open Emacs, the available
>> keyborards are OK?
>
> The standard (soft)keyboard is principally OK if you use Emacs on a
> remote machine via ConnectBot, which is a free ssh client available in
> the market. Pressing the Trackball once simulates CTRL, pressing it
> twice simulates ESC/META. But there are sometimes problems with
> TAB-expansion. 2 x Trackball + SPC simulates TAB. But this is sometimes
> not working, for example for BBDB-expansions of Email addresses in Gnus,
> also for some commands with M-x. "No expansion found". I don't know why.
>
> Greetings,
>
> Sven
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: suggestions of Android smartphones

2010-04-19 Thread Daniel Martins
The device I was tantalized to buy was the

Motorola Quench

maybe mainly for Swipe feature

http://www.youtube.com/watch?v=zWpqsDnXIOY  (at about 1:00)

or maybe for the price (in Brazil is about 500 USD while the Milestone
is about 780 USD. I know both are outrageous prices in American or
European terms!). BTW the Quench in Brazil DOES NOT seem to come with
the swype feature...

In fact, I doubt I could edit in Emacs or similar in a phone. I am
afraid of virtual keyboards and small physical keyboards as well :)
For someone over forties I tend to do not consider these typing
devices as toys or at least funny :)

For this reason I think that a nice interface such as MobileOrg with
agenda view would be the best.

ConnectBot seems to be an option as well (when you have connection, of course!)

Sven, you seem quite happy with a virtual keyboard. Am I right?

Daniel

2010/4/19 Richard Riley :
> Eric S Fraga  writes:
>
>> On Sun, 18 Apr 2010 11:07:32 -0300, Daniel Martins  
>> wrote:
>>>
>>>  --- resending with a proper title ---
>>>
>>> Matthew,
>>>
>>> Just a suggestion for newbies.
>>>
>>> Could you generate a video of MobileOrg Android similar to those of
>>> the MobileOrg Iphone.
>>>
>>> I am still open to suggestions of Android smartphones.
>>>
>>> If I need to access a remote ssh account and open Emacs, the available
>>> keyborards are OK?
>>>
>>> Daniel
>>
>> I have the same questions!  My current mobile phone contract expires
>> in 3 months and I'm looking at upgrading to an Android phone.  The
>> current best deal I have found is for the Samsung Galaxy Portal, aka
>> the i5700.  [1] I'm looking at upgrading to replace my Nokia internet
>> tablet (n810) and non-smart phone with one unit.  The nokia does a
>> really nice job of running emacs and org-mode, mind you.
>>
>> I'm particularly interested in knowing how the different handsets
>> approach the keying in of keys like C-x, M-x, TAB, et al.
>>
>> Thanks,
>> eric
>
>
> +1 on this. I had almost decided on the Motorola Milestone (Droid) but
> would love to hear others experiences. Using org-mode in a term emacs is
> not ideal because a lot of shift/arrow/fn chords dont work in the terminals
> I tried (xterm, urxvt etc) and so doubt they will on a mobile device
> either : so my hard core usage of only emacs -nw inside urxvt and tmux
> soon dwindled and I'm back to using emacs in X. The only problem I now
> have is not being to find a way to use ONE x frame with emacsclient
> being able to create it if its not already done (I bet I've missed
> something obvious but emacsclient -c always creates a new frame and
> emacsclient wont create it if its not already there on my emacs).
>
>
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: suggestions of Android smartphones

2010-04-19 Thread Daniel Martins
2010/4/19 Matthew Jones :
> I used swype for about 2 days on my droid before getting rid of it... it's a
> good concept that needs be iterated on.

I could not follow your comment here


> Trying to use emacs from any of the Android shells is borderline
> impossible... unless you have a full keyboard to hook up to your Android
> phone then I would say you should rule out using it in that fashion.

A bluetooth keyboard such as

http://www.dealextreme.com/details.dx/sku.34724
http://www.dealextreme.com/details.dx/sku.6443
http://www.dealextreme.com/details.dx/sku.28954


is possible to be used with an Android phone? It worths an investment?


Daniel

> One of the features I'm working on for the MobileOrg beta (along with being
> able to capture notes and change todo states) is a home screen widget that
> will show your Agenda or Todo list, this way you don't have to open the
> application to view or adjust these items.
> 73
> Matthew W. Jones (KI4ZIB)
> http://matburt.net
>
>
> On Mon, Apr 19, 2010 at 8:35 AM, Daniel Martins  wrote:
>>
>> The device I was tantalized to buy was the
>>
>> Motorola Quench
>>
>> maybe mainly for Swipe feature
>>
>> http://www.youtube.com/watch?v=zWpqsDnXIOY  (at about 1:00)
>>
>> or maybe for the price (in Brazil is about 500 USD while the Milestone
>> is about 780 USD. I know both are outrageous prices in American or
>> European terms!). BTW the Quench in Brazil DOES NOT seem to come with
>> the swype feature...
>>
>> In fact, I doubt I could edit in Emacs or similar in a phone. I am
>> afraid of virtual keyboards and small physical keyboards as well :)
>> For someone over forties I tend to do not consider these typing
>> devices as toys or at least funny :)
>>
>> For this reason I think that a nice interface such as MobileOrg with
>> agenda view would be the best.
>>
>> ConnectBot seems to be an option as well (when you have connection, of
>> course!)
>>
>> Sven, you seem quite happy with a virtual keyboard. Am I right?
>>
>> Daniel
>>
>> 2010/4/19 Richard Riley :
>> > Eric S Fraga  writes:
>> >
>> >> On Sun, 18 Apr 2010 11:07:32 -0300, Daniel Martins
>> >>  wrote:
>> >>>
>> >>>  --- resending with a proper title ---
>> >>>
>> >>> Matthew,
>> >>>
>> >>> Just a suggestion for newbies.
>> >>>
>> >>> Could you generate a video of MobileOrg Android similar to those of
>> >>> the MobileOrg Iphone.
>> >>>
>> >>> I am still open to suggestions of Android smartphones.
>> >>>
>> >>> If I need to access a remote ssh account and open Emacs, the available
>> >>> keyborards are OK?
>> >>>
>> >>> Daniel
>> >>
>> >> I have the same questions!  My current mobile phone contract expires
>> >> in 3 months and I'm looking at upgrading to an Android phone.  The
>> >> current best deal I have found is for the Samsung Galaxy Portal, aka
>> >> the i5700.  [1] I'm looking at upgrading to replace my Nokia internet
>> >> tablet (n810) and non-smart phone with one unit.  The nokia does a
>> >> really nice job of running emacs and org-mode, mind you.
>> >>
>> >> I'm particularly interested in knowing how the different handsets
>> >> approach the keying in of keys like C-x, M-x, TAB, et al.
>> >>
>> >> Thanks,
>> >> eric
>> >
>> >
>> > +1 on this. I had almost decided on the Motorola Milestone (Droid) but
>> > would love to hear others experiences. Using org-mode in a term emacs is
>> > not ideal because a lot of shift/arrow/fn chords dont work in the
>> > terminals
>> > I tried (xterm, urxvt etc) and so doubt they will on a mobile device
>> > either : so my hard core usage of only emacs -nw inside urxvt and tmux
>> > soon dwindled and I'm back to using emacs in X. The only problem I now
>> > have is not being to find a way to use ONE x frame with emacsclient
>> > being able to create it if its not already done (I bet I've missed
>> > something obvious but emacsclient -c always creates a new frame and
>> > emacsclient wont create it if its not already there on my emacs).
>> >
>> >
>> >
>> >
>> > ___
>> > Emacs-orgmode mailing list
>> > Please use `Reply All' to send replies to the list.
>> > Emacs-orgmode@gnu.org
>> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>> >
>>
>>
>> ___
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: suggestions of Android smartphones

2010-04-19 Thread Daniel Martins
Just to comment that I am in the same situation/expectation as Eric.

I entered in the "buy mode" and despite my frustation with the phone
company procedures I perceived that "buy mode" is a "major mode".

Daniel

2010/4/19 Eric S Fraga :
> On Mon, 19 Apr 2010 10:50:40 -0400, Matthew Jones  wrote:
>
> [...]
>
>> Trying to use emacs from any of the Android shells is borderline
>> impossible... unless you have a full keyboard to hook up to your Android
>> phone then I would say you should rule out using it in that fashion.
>
> okay.  this is worth knowing.  keeps my expectations rooted in reality!
>
>> One of the features I'm working on for the MobileOrg beta (along with being
>> able to capture notes and change todo states) is a home screen widget that
>> will show your Agenda or Todo list, this way you don't have to open the
>> application to view or adjust these items.
>
> This sounds excellent.  I look forward to it (once I have the
> appropriate phone, of course).
>
> Thanks,
> eric
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: suggestions of Android smartphones

2010-04-20 Thread Daniel Martins
2010/4/19 Matthew Jones :
> Maybe I misunderstood what you meant about the "swipe" feature.   There is a
> keyboard called Swype which is fairly overrated.

Sorry for the misspelling and confusion!

> I can't comment on how well or if a bluetooth keyboard would work... I think
> if I were going to go to the trouble of carrying around a keyboard I would
> rather just carry my netbook.

This is a good point. And carrying my netbook is exactly what I am
doing right now! However, for exceptional cases (eg a trip) it would
be interesting to have some comfort while writing a long text in the
hotel.

Anyway Matthew for Org-mode purposes your MobileOrg for Android (with
Agenda view) will be enough!

Daniel


> 73,
> Matthew W. Jones (KI4ZIB)
> http://matburt.net
>
>
> On Mon, Apr 19, 2010 at 7:12 PM, Daniel Martins  wrote:
>>
>> 2010/4/19 Matthew Jones :
>> > I used swype for about 2 days on my droid before getting rid of it...
>> > it's a
>> > good concept that needs be iterated on.
>>
>> I could not follow your comment here
>>
>>
>> > Trying to use emacs from any of the Android shells is borderline
>> > impossible... unless you have a full keyboard to hook up to your Android
>> > phone then I would say you should rule out using it in that fashion.
>>
>> A bluetooth keyboard such as
>>
>> http://www.dealextreme.com/details.dx/sku.34724
>> http://www.dealextreme.com/details.dx/sku.6443
>> http://www.dealextreme.com/details.dx/sku.28954
>>
>>
>> is possible to be used with an Android phone? It worths an investment?
>>
>>
>> Daniel
>>
>> > One of the features I'm working on for the MobileOrg beta (along with
>> > being
>> > able to capture notes and change todo states) is a home screen widget
>> > that
>> > will show your Agenda or Todo list, this way you don't have to open the
>> > application to view or adjust these items.
>> > 73
>> > Matthew W. Jones (KI4ZIB)
>> > http://matburt.net
>> >
>> >
>> > On Mon, Apr 19, 2010 at 8:35 AM, Daniel Martins 
>> > wrote:
>> >>
>> >> The device I was tantalized to buy was the
>> >>
>> >> Motorola Quench
>> >>
>> >> maybe mainly for Swipe feature
>> >>
>> >> http://www.youtube.com/watch?v=zWpqsDnXIOY  (at about 1:00)
>> >>
>> >> or maybe for the price (in Brazil is about 500 USD while the Milestone
>> >> is about 780 USD. I know both are outrageous prices in American or
>> >> European terms!). BTW the Quench in Brazil DOES NOT seem to come with
>> >> the swype feature...
>> >>
>> >> In fact, I doubt I could edit in Emacs or similar in a phone. I am
>> >> afraid of virtual keyboards and small physical keyboards as well :)
>> >> For someone over forties I tend to do not consider these typing
>> >> devices as toys or at least funny :)
>> >>
>> >> For this reason I think that a nice interface such as MobileOrg with
>> >> agenda view would be the best.
>> >>
>> >> ConnectBot seems to be an option as well (when you have connection, of
>> >> course!)
>> >>
>> >> Sven, you seem quite happy with a virtual keyboard. Am I right?
>> >>
>> >> Daniel
>> >>
>> >> 2010/4/19 Richard Riley :
>> >> > Eric S Fraga  writes:
>> >> >
>> >> >> On Sun, 18 Apr 2010 11:07:32 -0300, Daniel Martins
>> >> >>  wrote:
>> >> >>>
>> >> >>>  --- resending with a proper title ---
>> >> >>>
>> >> >>> Matthew,
>> >> >>>
>> >> >>> Just a suggestion for newbies.
>> >> >>>
>> >> >>> Could you generate a video of MobileOrg Android similar to those of
>> >> >>> the MobileOrg Iphone.
>> >> >>>
>> >> >>> I am still open to suggestions of Android smartphones.
>> >> >>>
>> >> >>> If I need to access a remote ssh account and open Emacs, the
>> >> >>> available
>> >> >>> keyborards are OK?
>> >> >>>
>> >> >>> Daniel
>> >> >>
>> >> >> I have the same questions!  My current mobile phone contract expires
>> >> >> in 3 months and I'm looking at upgrading to a

[Orgmode] Partial exporter from Muse to Org-mode syntax, v 0.0.1

2010-04-22 Thread Daniel Clemente

  Hi, I started to write a long time ago a Muse exporter which outputs Org 
syntax. I'm now publishing it even if it's not finished, because I have not 
much free time to deal with a particular problem with list exportation. It 
needs heavy restructuration.

Here it is:
http://www.danielclemente.com/emacs/muse-orgD0.el
(you may version it, clean it, repair it etc. freely)




I copy an excerpt from the features list:

; Works:
; - #+TITLE:, #+AUTHOR are correctly set
; - comments are translated from ; to #
; - *italics* → /italics/   and   **bold** → *bold*  correctly transformed 
without conflicts. Even ***bold+italics*** → */bold+italics*/
; - links:
;  - implicit links: [[page]] translated to [[file:page.org][page.org]]
;  - explicit links: [[like][this]] translated to [[file:like.org][this]]
; - tables: muse tables are transformed to nice org-mode tables. Headers (||), 
fields (|) and footers (|||) are respected
; - horizontal lines: -

; Doesn't work:
; - unordered lists. I got them more or less working except for some bugs which 
were the cause for me temporarily abandoning this project…
; - ordered lists. I gave sequential order to each item (1., 2., 2.1, 2.2, 2.3, 
…), but again, there remain the same bugs as with ul
; - definition lists
; - table.el style tables
; - images: not much tested, but should be easy. Caption is adapted
; - ,,…: I didn't even test them


You may also find useful a sample file of Muse's syntax:
http://www.danielclemente.com/emacs/sintaxis.muse


--
Daniel


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-timeline fails when dates appear on top

2010-04-23 Thread Daniel Clemente

Hi, with latest org use this buffer:


one
<2010-04-23 vie>

* two



and press C-c a L

You get:

 Debugger entered--Lisp error: (error "Before first headline at position 6 in 
buffer c.org")
   signal(error ("Before first headline at position 6 in buffer c.org"))
   error("Before first headline at position %d in buffer %s" 6 #)
   (condition-case nil (outline-back-to-heading invisible-ok) (error (error 
"Before first headline at position %d in buffer %s" ... ...)))
  org-back-to-heading(t)
…


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Feasibility investigation: org-mode paper

2010-04-28 Thread Daniel Martins
I dont think a (completely :) silly idea. A smartphone will probably
never substitute pen and paper!

In fact most of my notes are taken on a notepad with a an attached
pen. In fact, I have just found a pen with an internal mechanism which
turns it long enough when I write and short enough to do not pierce my
trousers.

If you do such a miracle I would be glad to try (not in a beta
phase!). But I feel the efforts will be hardly rewarded.

The write process is good for the mind and is prone of errors. When we
transcript the text to an editor (in fact to THE editor) we correct
some mistakes.

Anyway, keep in touch!

Daniel


2010/4/26 Tim Landscheidt :
> Torsten Wagner  wrote:
>
>> [...]
>> As I said it is just a silly idea, maybe not really useful
>> but I thought it would be at least nice to make a
>> "proof-of-principle". Finally, with the increase of ebook
>> readers with touch screens, digital pens, tablets and
>> netbooks with touchscreens, this might become even more
>> interesting.
>
>> Happy to hear any opinion.
>
> Not wanting to call it silly :-), but I think the major ad-
> vantage of any electronic thingy compared to pen and paper
> is that you can rearrange the structure and correct any mis-
> takes you make. I wouldn't want to have to pen down any text
> without this capability.
>
> Tim
>
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-mode color schemes with white or light background and black foregroung

2010-05-04 Thread Daniel Martins
Some time ago Carsten sent a file with with his colours patterns with black
background.

I would like to know if someone has a similar pattern when using black
foregroung and a lighter backgroung (not necessarily white).

Could you share it with us?

Daniel



2010/5/4 Sébastien Vauban 

> Hi Mikael,
>
> Mikael Fornius wrote:
> > I have not tried it but I found this variable:
> >
> > org-agenda-deadline-faces
> >
> > "Faces for showing deadlines in the agenda."
> >
> > maybe it solves your problem?
>
> Excellent hint...
>
>
> I've customized it that way:
>
> --8<---cut here---start->8---
> (setq org-agenda-deadline-faces
>  '((1.1 . sva-org-deadline-yesterday)
>(1.0 . sva-org-deadline-today)
>(0.5 . sva-org-deadline-tomorrow)
>(0.0 . sva-org-deadline-later)))
> --8<---cut here---end--->8---
>
> and have added the following colors in my theme:
>
> --8<---cut here---start->8---
>  (sva-org-deadline-yesterday ((t (:foreground "white" :background
> "rgb:D8/00/00" :weight bold
> (sva-org-deadline-today ((t (:foreground "white" :background
> "rgb:E9/A3/6A" :weight bold
> (sva-org-deadline-tomorrow ((t (:foreground "black" :background
> "#B4F1B3" :weight bold
> (sva-org-deadline-later ((t (:foreground "black" :background
> "#AACAFC"
> --8<---cut here---end--->8---
>
> And that quite works well following my needs.
>
> It's just a bit tricky to understand and correctly setup the "fractions"
> above, in the `org-agenda-deadline-faces'... It would be easy, and would
> make
> more sense, if we could directly enter "days specifications" there, instead
> of
> fractions (for example, "0" for today, "-1" for yesterday, and so on).
>
> But it works. And I thank you for your help.
>
> Best regards,
>  Seb
>
> --
> Sébastien Vauban
>
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Poll: Who is using these commands

2010-05-08 Thread Daniel Clemente
El dom, may 09 2010 a les 00:03, Scott Randby va escriure:
>> Carsten Dominik schrieb:
>>> I am wondering:
>>>
>>> How many of your are using these keys
>>>
>>> C-c C-f
>>> C-c C-b
>>> C-c C-n
>>> C-c C-p
>>
>> Never. I always use the speed commands since they became available.
>
> The problem I have with speed commands is that, according to the manual, they 
> only work "when the cursor is at the beginning of a headline." I need 
> commands that work when the cursor is anywhere on the headline.
>

I also use them constantly for the same reason: they work anywhere. The one I 
use and like most is C-c C-p
Speed commands are also fine, specially when I need to do more than one jump.

However, each time I need C-c C-[fbnp] I must start thinking in English about 
what „forward“ means as opposed to „next“, and whether one trespasses 
indentation levels or not. They're a bit hard to memorize.

>>>
>>> Another question:
>>>
>>> C-c C-v   currently make the TODO sparse tree.

I use it specially after narrowing a subtree.
I don't use sparse trees and I don't find any equivalent in „C-c / SOMEKEY“ 
which lists all TODO entries.



--
Daniel


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Poll: Who is using these commands

2010-05-08 Thread Daniel Martins
Go ahead!
I don't use them.

Daniel

2010/5/8 Carsten Dominik 

> Hi everyone,
>
> I am wondering:
>
> How many of your are using these keys
>
> C-c C-f
> C-c C-b
> C-c C-n
> C-c C-p
>
> for navigation through the outline?  These are first class keys,
> and I would have good uses for these keys if most people don't actually use
> them.
>
> Another question:
>
> C-c C-v   currently make the TODO sparse tree.
>
> I would like to put this tree on `C-c / t' which would be quite logical
> and free up another first class key.
>
> Opinions, veto-attempts?
>
>
> Thanks!
>
> - Carsten
>
>
>
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Wow -- adding images to an org file

2010-05-09 Thread Daniel Martins
In short

What I have to do (minimal code in .emacs and .org) to display an image?


This image will be maintained when I export the file?

iimage could be included in org distribution?



Daniel


2010/5/8 Carsten Dominik 

>
> On May 7, 2010, at 2:58 PM, Dan Davison wrote:
>
>  Carsten Dominik  writes:
>>
>>  On May 7, 2010, at 4:16 AM, Chris Thompson wrote:
>>>
>>>  Nathan Neff  gmail.com> writes:
>>>>
>>>>
>>>>> I just saw Andreas's screenshot here:
>>>>>
>>>>> http://orgmode.org/worg/org-screenshots.php
>>>>>
>>>>> If you zoom in to his screenshot,
>>>>> http://orgmode.org/img/screenshots/org_andreas.jpg
>>>>>
>>>>> You can see how he adds images to his org files.
>>>>> All that I had to do was put this into my emacs init file:
>>>>>
>>>>> (defun org-dblock-write:image (params)
>>>>> (let ((file (plist-get params :file)))
>>>>>   (clear-image-cache file)
>>>>>   (insert-image (create-image file) )))
>>>>>
>>>>> Then, put this in an org-file:
>>>>>
>>>>> #+BEGIN: image :file "~/Documents/personal/foo.png"
>>>>> #+END
>>>>>
>>>>> And run C-c C-c (or is it C-c C-x C-u)?
>>>>>
>>>>> Anyway, Cool stuff!
>>>>>
>>>>> --Nate
>>>>>
>>>>>
>>>>
>>>> Another way to have images in org-mode documents is to use the
>>>> "iimage"
>>>> minor mode, which handles  inline images:
>>>> http://www.netlaputa.ne.jp/~kose/Emacs/iimage.html<http://www.netlaputa.ne.jp/%7Ekose/Emacs/iimage.html>
>>>>
>>>> For additional documentation:
>>>> http://orgmode.org/worg/org-configs/org-config-examples.php#sec-2_2
>>>>
>>>
>>> At that place, I find this code:
>>> (add-to-list 'iimage-mode-image-regex-alist (cons (concat
>>> "\\[\\[file:\
>>> \(~?" iimage-mode-image-filename-regex "\\)\\]") 1))
>>> (defun org-toggle-iimage-in-org () "display images in your org file"
>>> (interactive) (if (face-underline-p 'org-link) (set-face-
>>> underline-p 'org-link nil) (set-face-underline-p 'org-link t))
>>> (iimage-
>>> mode))
>>> I guess I could actually add the above code to org.el, so that the
>>> only thing to do for a user would be to turn on iimage-mode.
>>> What is the purpose of toggling the underline property of the link face?
>>>
>>
>> It puts a horizontal line through the middle of the displayed image
>> (haven't checked if that's fixed in latest emacs).
>>
>
> I see.
>
> We have now native inline image display in Org-mode, you can toggle it with
>
> C-c C-x C-v
>
> This implementation uses overlays instead of text properties and therefore
> does not interfere with font-lock.
>
>
> - Carsten
>
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Time Stamps?

2010-05-11 Thread Daniel Martins
Bernt,

Thanks for the lessons (I am still studying it!!)

One more "thief" for your list.

Daniel

2010/5/3 Bernt Hansen 

> David Frascone  writes:
>
> > On Mon, May 3, 2010 at 3:00 PM, Bernt Hansen  wrote:
> >
> > David Frascone  writes:
> >
> > >  1. Can I make all timestamps put the time?  In other words, can I
> > >  make C-c ! always do the same thing as C-u C-c !
> > >
> >
> > I use a key binding for this:  f9-t which creates a timestamp like
> this
> > at point.  [2010-05-03 Mon 14:52]  The binding for that is documented
> at
> > http://doc.norang.ca/org-mode.html#sec-15_21
> >
> > Duh.  Sorry.  I thought there would be a way to do it with just a
> > command, and, at first glance, didn't grok what you were doing with
> > the func.  Consider it stolen.  I'm going to re-map something to it.
> > I don't like using Function keys, because when I am using my macbook
> > w/o a keyboard, I have to hit a Fn button to get those.  But, I'll map
> > it to something.  I do like your f9 map, so, maybe I'll use M-9 or
> > something like that.
>
> Steal away :)  I'm sure you can change the function to always put in the
> time if that's what you really want to do but there's no configuration
> to implement that currently AFAICT.
>
> > >  2. Where should I put the timestamp?  Where do you guys think it
> > >  looks best?  Before the text?  After?  Still getting a feel for
> > >  things.
> >
> > Anywhere in the body of the text works fine for me.  My remember
> > templates put the timestamp after the clock drawer
> >
> >  * TODO blah
> >  :CLOCK:...
> >  [2010-05-03 Mon 14:59]
> >  [[link to stuff]]
> >
> > but anywhere will work - it's just text.
> >
> > Right.  I understand where it gets put.  But, now I want to add some
> > notes.  Where would you put it?  (And, I know I'm just asking your
> > opinion, because it is all just text -- I just really like your setup,
> > so I'm using it as my starting point.
>
> I just put them at the top and leave them there.  Any further detail is
> either inline in the body following it or as notes in a LOGBOOK drawer.
> >
> > So, for example, here's an entry I took today with a call, refiled it,
> > then re-edited it.  Names have been changed to protect the guilty
> >
> > some_company.org:
> > -
> > * Title for issue customer is having
> > ** WAITING Phone %:name - %:Some Company -
> :PHONE:WAITING:
> >- State "WAITING"from ""   [2010-05-03 Mon 11:19] \\
> >  Waiting on data from Customer
> >:CLOCK:
> >:END:
> >Got a call from Customer this am.  He is having problems blah blah.
> >Will call him back in 10-15
> >Contact Info: 800-555-
> >[2010-05-03 Mon]
> > ** Talked to Customer again.
> > [2010-05-03 Mon 11:19]
> > Conclusion:  Probable Diagnosis here.  Customer is going to reboot and
> send
> > me more data.
> > *** System Information
> >  Some System
> >  1 Gb Data File
> >  60 Threads
> >  Other System Data
> >  Performance
> >  9-20 Mb/Sec
> >  Configuration
> >  Raid 0 over 4 drives
> >  16 Gb RAM
> >  Blah Blah
> >  Symptoms
> >  computer hangs.  windows Explorer hangs trying to look at
> filesystem.
> > -
> >
> > So, this was the result of two calls, captured with remember-phone,
> > then re-filed into the some_company.org file.  I put the datestamps up
> > top, but I'm not sure if I like them there.  What do you think of that
> > setup?
>
> I use the datestamp to record when the remember task was created (ie
> when did I first hear about it).  You can probably put it inside a
> drawer if you want to hide it -- I've never tried that.  For me it's
> just an indication of how old the task is (ie. when the task was
> created)
>
> >
> > >
> > >  3. Clocking.  That site does a lot of it, and I mostly like it.
> But,
> > > I'm not sure how I should clock in in the AM.  Almost always, I
> > > try to enter something quickly with remember, and I haven't
> > > started a clock yet.  I'm considering taking out the timing
> stuff
> > > now . . . any pointers?
> >
> > The first thing I do when I clock-in in the morning is hit either
> f9-o
>

Re: [Orgmode] Displaying day-resources (or a secondary time-line)

2010-05-11 Thread Daniel Martins
Sven,

I cannot help but I reinforce the need of something as proposed by you.

I really miss these "secondary" apointments and tried to find something
similar a couple of months ago. Unfortunately, I gave up.

Maybe they should appear as an option overlapping our appts or not.

These "secondary" agendas include third parties agendas and they are not so
easy to add.

Using tags is easy to remove them in a specific agenda view BUT the default
agenda becomes quite messy.

Maybe we could add different files to each agenda : secretary.org,
Friend1.org Boss.org Wife.org etc but we need a practical way to add or
remove them or select just one or a couple of them to show intersections.

Google Calendar could be an inspiration of what I meant.

Daniel

2010/5/11 Sven Bretfeld 

> Hi to all
>
> I don't want to reinforce my request. I'd just be interested if I
> asked something which I could have found out myself. Is there already a
> solution that escaped my reading?
>
> Greetings,
>
> Sven
>
> "Sven Bretfeld"  writes:
>
> > Hi all
> >
> > I'm looking for a way to display "dates" in the Agenda View which are
> > not appointments but, in GTD-speak, belong to the "availability of
> > resources".
> >
> > That's a little too abstract. A concrete example. Say, your secretary is
> > on duty only Mondays and Wednesdays from 8:00 to 12:00 and Fridays from
> > 8:00 to 10:00. This is a resource that enables or disables you to do
> > certain things. So you want to see these dates in your Day Agenda View,
> > but not mixed with your own appointments. You'd rather have this
> > information at the end of the Day Agenda, maybe in a different color
> > and/or separated by a line, like this:
> >
> > Montag 10 Mai 2010 W19
> >   Office:  10:00-12:00 Meeting with the Boss
> >   Lunch:   12:00-13:00 Meet Jens in the Pub
> >   Teaching:14:00-16:00 Lecture
> >   Project_X:   16:00-18:00 Preparation Meeting
> >   Leisure: 20:15   Cinema
> >   - /from here in a different color/
> >   Office:  8:00-12:00  Secretary is present
> >   Family:  14:00-20:00 Mary will not be at home
> >   On_Holiday:  Ina
> >
> > The last entry, which says that Ina is on holiday today, can principally
> > be solved as:
> >
> > ** Holidays
> >:PROPERTIES:
> >:CATEGORY: On_Holiday
> >:END:
> > %%(diary-block 05 05 2010 14 05 2010) Ina
> >
> > But the other entries can not be done like this, I guess. These contain
> > certain times of the day, and the first one (secretary) is thought to be
> > a _repeating_ date.
> >
> > How is that possible with Orgmode? Any ideas?
> >
> > Thanks,
> >
> > Sven
> >
> >
> > ___
> > Emacs-orgmode mailing list
> > Please use `Reply All' to send replies to the list.
> > Emacs-orgmode@gnu.org
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> >
>
>
>
> --
> Mit freundlichen Grüßen
>
> Sven Bretfeld
>
> ___
> Prof. Dr. Sven Bretfeld
>  \ CEntrum für
> CERES  \ REligionswissenschaftliche
> \_Studien__
> Ruhr-Universität Bochum
> Universitätsstraße 150
> D-44780 Bochum
>
> http://www.ruhr-uni-bochum.de/ceres/de/organisation/beteiligte/sven_bretfeld.html
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] error loading org-mode

2010-05-16 Thread Daniel Goldin
Non-programmer type here. I pulled the latest release from git. Now I
get an error when I load org-mode:

"Symbol's value is void: calendar-mode-map"

Any thoughts?

d.

-- 
Daniel Goldin 
213.926.1960

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [babel] new key bindings

2010-05-17 Thread Daniel Clemente
I think this key reminder table should be somehow displayed or offered under
a C-c C-v prefix, in the same way as C-c a, C-c C-a, C-c e.
Or at least under C-c C-v ? or C-c C-v h

-- Daniel

On Thu, May 13, 2010 at 7:57 AM, Eric Schulte wrote:

> Org-babel is now making use of the newly available C-c C-v key binding.
>
> All Org-babel keybindings are now located behind this prefix, see the
> updated org reference card (/doc/orgcard.pdf in the org-mode repo) for
> the specific keybindings, they are also shown below.
>
> Best -- Eric
>
>
>   execute code block at pointC-c C-c open results of code block at pointC-c
> C-o preview body of code block at pointC-c C-v C-p go to named code blockC-c
> C-v C-g execute all code blocks in current bufferC-c C-v C-b execute all
> code blocks in current subtreeC-c C-v C-s tangle code blocks in current
> fileC-c C-v C-t tangle code blocks in supplied fileC-c C-v C-T ingest all
> code blocks in supplied file into the Library of BabelC-c C-v C-l switch
> to the session of the current code blockC-c C-v C-z view sha1 hash of the
> current code blockC-c C-v C-h
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: error loading org-mode

2010-05-17 Thread Daniel Goldin
Sorry for the interruption. The problem was I had several versions of
org in my load-path.

d.

On Sun, 16 May 2010, Daniel Goldin wrote:

> Non-programmer type here. I pulled the latest release from git. Now I
> get an error when I load org-mode:
> 
> "Symbol's value is void: calendar-mode-map"
> 
> Any thoughts?
> 
> d.
> 

-- 
Daniel Goldin 
213.926.1960

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] 2 Way Sync between Google Calendars and org-mode files

2010-05-29 Thread Daniel Martins
Anyone out there has done a 2 Way Sync between Google Calendars and org-mode
files?

As I am using an Android mobile I feel this becomes an important issue.

I am doing this by hand creating calendar with dates such as

Organizer-29-5-2010

and whenever I update my org-files I create another calendar eg
Organizer-30-5-2010, import the .ics from org-mode and delete
Organizer-29-5-2010

I feel that this is not the smartest way of doing this and would like to
know if someone has solved this problem including the Google Calendar to
org-mode route.

Daniel
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] MobileOrg for Android starts to become really usable

2010-06-02 Thread Daniel Martins
I am having a problem with syncing.

I created a webdav on my lab server.

I access it from the Android navigator and I made a test with MobileOrg for
Iphone with a friend of mine.

Both cases worked perfect

However when I use sync nothing happens. The screen remains completely
black.


I can use capture (I used both version 0.4 and developments with quite the
same results) but I cannot sync again

My webadav is something

http://IPADDRESS/webdav/index.org

where IPADDRESS is the IP address of the server 150.***.***.***

Daniel

2010/5/31 Sven Bretfeld 

> Hi Enrico
>
> Enrico Indiogine  writes:
>
> > Thanks to the help from you all I managed to install the latest
> > development version of org-mobile-android on my Xperia X10.  I set up
> > my .emacs for stage push-pull and have a mydisk.se account with an org
> > directory.
> >
> > M-x push will fail with an ssh timeout.  I think it has to do with the
> > fact that Emacs has no way of knowing the mydisk.se password.
>
> Try another approach. You are under Ubuntu, aren't you? I'm also under
> Ubuntu and I use mydisk.se. So this should also work for you:
>
> 1. sudo apt-get install davfs2
>
> 2. sudo adduser enrico davfs (I don't remember if this is really the
>   groupname, maybe it's davfs2)
>
> 3. edit the file /etc/fstab -> add a line at the end:
>
>   https://mydisk.se/yourusername   /home/enrico/webdav   davfs
> user,noauto   0  0
>
> 4. edit the file /etc/davfs2/secrets, add the following line:
>
>   /home/enrico/webdavyourmydiskusername   yourmydiskpasswd
>
> 5. mkdir ~/webdav
>
> 6. sudo dpkg-reconfigure davfs2 --> set the SUID Bit (i.e. just say "yes")
>
> 7. mount ~/webdav
>
> Now, your folders of mydisk.se should appear under ~/webdav. Then tell
> Emacs (org-mobile) to use this folder instead of scp. I just used
> customize to set the org-mobile-directory.
>
> > This in in my .emacs:
> >
> > (setq org-mobile-files (quote ("~/org/agenda.org")))
> > (setq org-mobile-directory "~/stage/")
>
> Change this to "~/webdav" or use "stage" in the procedure above.
>
> > (add-hook 'org-mobile-post-push-hook
> >   (lambda () (shell-command "scp -r ~/stage/* hindiog...@mydisk.se:
> org/")))
> > (add-hook ' org-mobile-pre-pull-hook
> >   (lambda () (shell-command "scp hindiog...@mydisk.se:org/mobile.org
> > ~/stage ")))
> > (add-hook 'org-mobile-post-pull-hook
> >   (lambda () (shell-command "scp ~/stage/mobileorg.org
> > hindiog...@mydisk.se:org]/")))
>
> I think with the webdav-approach you have to delete these hooks. Comment
> them out and restart Emacs.
>
> Good luck
>
> Sven
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] GitHub

2010-06-02 Thread Daniel Martins
Maybe this is a silly question but

Is it possible to use UbuntuOne as an alternative to DropBox?

https://one.ubuntu.com

Daniel

2010/5/31 Carsten Dominik 

> Hi Matt,
>
> you might want to consider adding support for the Dropbox API to MobileOrg
> Android.  I am currently testing this setup with Richard's beta.  It is
> vastly superior compared to the webdav stuff, at least in terms of user
> setup required and hickups that can cause problems.  In the future, I see
> webdav as the backup solution for people who cannot use dropbox for some
> reason.
>
> I think the implementation is not hard - you might want to ask Richard
> about it.
>
> Thanks for making MobileOrg Android a reality - I see the chatter about it
> picking up!
>
> Cheers
>
>
>
> On May 22, 2010, at 7:14 PM, Matthew Jones wrote:
>
>  In the Administration panel for projects on Github there is a section for
>> Service Hooks which looks like it could be used to mirror the changes to
>> another repository.
>>
>> 73,
>> Matthew W. Jones (KI4ZIB)
>> http://matburt.net
>>
>>
>> On Sat, May 22, 2010 at 2:24 AM, Carsten Dominik <
>> carsten.domi...@gmail.com> wrote:
>> Hi,
>>
>> since a number of you have voiced a strong preference for Org-mode to be
>> hosted on GitHub, I am not considering such a step.
>>
>> Could someone spell out for me what steps I would have to take to do this?
>> In particular:
>>
>> - How do I get the entire current repo onto GitHub?
>> - Can I set up repo.or.cz in a way that it will become an
>>  automatic mirror, so that old clones will continue to be updated when
>>  pulling?
>> - Bastien - I guess on the web server, we would simply make a
>>  new clone from the new location, right?
>>
>> Anything else I need to consider?
>>
>> Thanks.
>>
>> - Carsten
>>
>>
>>
>>
>> ___
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>>
> - Carsten
>
>
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] MobileOrg for Android starts to become really usable

2010-06-02 Thread Daniel Martins
PROBLEM solved!!!

I have put the link in index.org directly but without an "*"

[[file.org]]

and not

* [[file.org]]


I sincerely feel that this "* " could be optional

Daniel

2010/6/2 Daniel Martins 

> I am having a problem with syncing.
>
> I created a webdav on my lab server.
>
> I access it from the Android navigator and I made a test with MobileOrg for
> Iphone with a friend of mine.
>
> Both cases worked perfect
>
> However when I use sync nothing happens. The screen remains completely
> black.
>
>
> I can use capture (I used both version 0.4 and developments with quite the
> same results) but I cannot sync again
>
> My webadav is something
>
> http://IPADDRESS/webdav/index.org
>
> where IPADDRESS is the IP address of the server 150.***.***.***
>
> Daniel
>
> 2010/5/31 Sven Bretfeld 
>
> Hi Enrico
>>
>> Enrico Indiogine  writes:
>>
>> > Thanks to the help from you all I managed to install the latest
>> > development version of org-mobile-android on my Xperia X10.  I set up
>> > my .emacs for stage push-pull and have a mydisk.se account with an org
>> > directory.
>> >
>> > M-x push will fail with an ssh timeout.  I think it has to do with the
>> > fact that Emacs has no way of knowing the mydisk.se password.
>>
>> Try another approach. You are under Ubuntu, aren't you? I'm also under
>> Ubuntu and I use mydisk.se. So this should also work for you:
>>
>> 1. sudo apt-get install davfs2
>>
>> 2. sudo adduser enrico davfs (I don't remember if this is really the
>>   groupname, maybe it's davfs2)
>>
>> 3. edit the file /etc/fstab -> add a line at the end:
>>
>>   https://mydisk.se/yourusername   /home/enrico/webdav   davfs
>> user,noauto   0  0
>>
>> 4. edit the file /etc/davfs2/secrets, add the following line:
>>
>>   /home/enrico/webdavyourmydiskusername   yourmydiskpasswd
>>
>> 5. mkdir ~/webdav
>>
>> 6. sudo dpkg-reconfigure davfs2 --> set the SUID Bit (i.e. just say "yes")
>>
>> 7. mount ~/webdav
>>
>> Now, your folders of mydisk.se should appear under ~/webdav. Then tell
>> Emacs (org-mobile) to use this folder instead of scp. I just used
>> customize to set the org-mobile-directory.
>>
>> > This in in my .emacs:
>> >
>> > (setq org-mobile-files (quote ("~/org/agenda.org")))
>> > (setq org-mobile-directory "~/stage/")
>>
>> Change this to "~/webdav" or use "stage" in the procedure above.
>>
>> > (add-hook 'org-mobile-post-push-hook
>> >   (lambda () (shell-command "scp -r ~/stage/* hindiog...@mydisk.se:
>> org/")))
>> > (add-hook ' org-mobile-pre-pull-hook
>> >   (lambda () (shell-command "scp hindiog...@mydisk.se:org/mobile.org
>> > ~/stage ")))
>> > (add-hook 'org-mobile-post-pull-hook
>> >   (lambda () (shell-command "scp ~/stage/mobileorg.org
>> > hindiog...@mydisk.se:org]/")))
>>
>> I think with the webdav-approach you have to delete these hooks. Comment
>> them out and restart Emacs.
>>
>> Good luck
>>
>> Sven
>>
>> ___
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [PATCH 2/2] Fix adaptive filling.

2010-06-03 Thread Daniel Hackney
Carsten Dominik  wrote:
> I have applied your patch thanks.
>
> This is a the limit of what I can take without you signing the FSF
>  papers. Would you consider signing them?

Just to let you know that I signed the FSF papers and it all went
through, so I am clear for code assignment stuff. Yeah, I know it's been
a little while since my patch ;)

--
Daniel M. Hackney

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Bug: org-diary-class does not export to .ics (iCalendar)

2010-06-06 Thread Daniel Martins
I am syncing Google Calendar with with GCalDaemon and then I noticed that
org-diary-class  is completely ignored by the ics export function


Eg
** 16:00-18:00 Class B5
 <%%(org-diary-class  7 6 2010 10 9 2010 1 24 25)>


Does not appear in the organizer.ics as expected

Daniel
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] day-agenda: show whole-day-events first

2010-06-06 Thread Daniel Martins
Sorry,

but I did not understand. Which of the 4 variables should be set?

I have the same intention as Eraldo.

Daniel

2010/6/6 Carsten Dominik 

>
> On Jun 6, 2010, at 1:13 AM, Eraldo Helal wrote:
>
>  Right now (default), I get time specific entries shown before events
>> that last the whole day. I would however prefer to get whole-day
>> entries(no time) first and time-entries after.
>>
>> org-agenda-sorting-strategy:
>> agenda
>>  habit-down time-up priority-down category-keep
>> ,[ result (now) ]
>> | Day-agenda (W23):
>> | Monday  7 June 2010 W23
>> |   jku:12:45-15:15  Betriebssysteme
>> |   jku:15:30-18:45  Betriebswirtschaftslehre
>> |   review: Scheduled:  TODO daily review
>> |   event:  APPT TEX speech
>> `
>>
>> ,[ result (would like to have) ]
>> | Day-agenda (W23):
>> | Monday  7 June 2010 W23
>> |   event:  APPT TEX speech
>> |   jku:12:45-15:15  Betriebssysteme
>> |   jku:15:30-18:45  Betriebswirtschaftslehre
>> |   review: Scheduled:  TODO daily review
>> `
>> the Scheduled item can also go above the time-events if that is easier
>> to get.
>>
>> Would be great if someone could enlighten me with the matching sorting
>> strategy. :)
>> Or suggest what else I could do/use instead.
>>
>
> Hi Eraldo,
>
> this is
>
> Have you looked in the customization group org-agenda-sorting?
>
> There are exacly 4 variables there, and one of them is the right one.
>
> Cheers
>
> - Carsten
> (steq org-agenda-notim
>
>
>
>> Greetings from Austria,
>> Eraldo
>>
>> ___
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>
> - Carsten
>
>
>
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Agenda is slow because of vc-mode

2010-06-07 Thread Daniel Clemente
Hi.

  I have a shell script which exports my agenda to a file. It's pretty
slow: about 90 seconds. There are many files (200 .org files, 76k
lines, 3'6 Mb, 1600 open tasks) but the performance should be better.
  I found a way to bring it down to 11 seconds: temporarily disable
the version control tools I'm using (bazaar, git). To test, just
change their names so that Emacs can't run them.

  Since this slowness is caused by vc-mode, I wonder if it's possible
for Org to open the agenda files without enabling vc-mode, for vc-mode
is not necessary for org-mode.
  I fear not, because org-agenda-get-day-entries uses
org-get-agenda-file-buffer to open a buffer normally, and this buffer
should be fully functional for later usage.

  As a hack, I used (defun vc-find-file-hook () nil) in my script;
this does the trick.

  Greetings,

Daniel

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Fwd: [Orgmode] Bug: org-diary-class does not export to .ics (iCalendar)

2010-06-07 Thread Daniel Martins
-- Forwarded message --
From: Daniel Martins 
Date: 2010/6/7
Subject: Re: [Orgmode] Bug: org-diary-class does not export to .ics
(iCalendar)
To: Carsten Dominik 


Well,

so keep the bug open!

I noticed other oddities with ical export that I will send in a different
post

Daniel

2010/6/7 Carsten Dominik 


> On Jun 7, 2010, at 1:46 AM, Daniel Martins wrote:
>
>  I am syncing Google Calendar with with GCalDaemon and then I noticed that
>> org-diary-class  is completely ignored by the ics export function
>>
>>
>> Eg
>> ** 16:00-18:00 Class B5
>> <%%(org-diary-class  7 6 2010 10 9 2010 1 24 25)>
>>
>>
>> Does not appear in the organizer.ics as expected
>>
>
> Hi Daniel,
>
> there is a double problem here.
>
> 1. unfortunately, sexps in time stamps like this are not supported by Org.
>   You'd have to write it like this:
>
>
>  ** 16:00-18:00 Class B5
>  %%(org-diary-class  7 6 2010 10 9 2010 1 24 25)
>
>   which would still be possible in this case.
>
> 2. However, icalendar.el does not have support for org-diary-class.
>
> So I do not have a solution for you..
>
> - Carsten
>
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] oddities with ical export

2010-06-07 Thread Daniel Martins
I just noticed that org-diary-class is not suppoerte in ical export

Carsten told me that sexps are not supported by org


But I have a problem now!

I tried  3 ways to generate a work that repeats each 3 days.

* Appt: Work
  <2010-02-01 Seg 18:15-18:30 +3d>

* 18:15-18:30 Appt: Work
  <2010-02-01 Seg +3d>

* Appt: Work
%%(diary-cyclic 3 1 2 2010) 6:30pm Appt: Work


All of them appear in Agenda View but none appears in the .ics file

Is there a way to "design around" this limitation?

It is quite important to me now that I am using gcaldaemon
http://sourceforge.net/projects/gcaldaemon
to sync my Google calendar files

Daniel
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


  1   2   3   4   5   6   7   8   9   10   >