Re: [Orgmode] Put latex export buffer in latex-mode?

2010-04-25 Thread Carsten Dominik

Hi Dan,

thanks, I have fixed this, almost like you propose.

- Carsten

On Apr 24, 2010, at 8:38 PM, Dan Davison wrote:


C-e H brings up the exported html in an html-mode buffer, but C-e L
brings up a fundamental-mode buffer rather than latex-mode. Is this an
oversight or is there a reason for this?

Dan

p.s. I could use org-export-latex-after-save-hook, or a change to the
source could be something like this

Modified lisp/org-latex.el
diff --git a/lisp/org-latex.el b/lisp/org-latex.el
index 67d9745..3d31248 100644
--- a/lisp/org-latex.el
+++ b/lisp/org-latex.el
@@ -797,6 +797,7 @@ when PUB-DIR is set, use this as the publishing  
directory.

(org-export-latex-fix-inputenc)
(run-hooks 'org-export-latex-after-save-hook)
(goto-char (point-min))
+(latex-mode)
(or (org-export-push-to-kill-ring LaTeX)
(message Exporting to LaTeX...done))
(prog1



___
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


Re: [Orgmode] [ANN] org-mac-protocol, fully updated for 10.6 and with added applications

2010-04-25 Thread Carsten Dominik

Hi Christopher - it seems to me that we never finalized this.
Please send me the fieles and tell me where exactly to install them  
(maybe your own directory in the contrib directory, for example?).


- Carsten

On Mar 30, 2010, at 1:05 AM, Christopher Suckling wrote:

On Mon, 29 Mar 2010 13:28:31 +0200, Carsten Dominik carsten.domi...@gmail.com 
 wrote:




this is awesome!

I guess this is a single elisp file?
Then you should just send it to me when ready.  I will add it and
also make an entry for it in org-modules.


There is a single elisp file, but there are also 6 AppleScripts and
one
Ruby script (AppleScript doesn't provide character escaping) that  
glue

the whole thing together with other applications.


How would you handle the installation when these scripts are in org/
contrib/mac-protocol/script or something like this.



(Sorry, accidentally moved thread off-list)

It would need to be a manual install as described in the  
documentation:


http://github.com/claviclaws/org-mac-protocol/blob/master/org-mac-protocol.org

Problem is that there are so many possible Emacsen with emacsclient
residing in different places, that it would often be necessary for the
user to edit one of the AppleScripts to point to their copy of
emacsclient.

I don't think the default org-mode Makefile installs stuff from the
contrib directory? Or have I missed something regarding the  
installation

of files in contrib?

Best, Christopher


- 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] Suggestions needed for handling ideas

2010-04-25 Thread John Wiegley
On Apr 12, 2010, at 3:46 PM, Ali Tofigh wrote:

 Frequently my notes on meetings contain ideas for stuff to try. Does
 anyone have any advice on how to handle these?

Hi Ali,

For ideas I just use a done TODO state called NOTE.  I have the key M-z bound 
to create one and switch me to the Org-buffer, so that I can stay there and 
keep typing.

John

___
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] Shift-Arrow Pass Through for windmove?

2010-04-25 Thread Sebastian Rose
Carsten Dominik carsten.domi...@gmail.com writes:
 OK, I have now 4 more hooks

 org-shiftup-final-hook
 org-shiftdown-final-hook
 org-shiftleft-final-hook
 org-shiftright-final-hook


 They will run *before* Org is trying to support shift-select.  I do not
 think i makes sense to run the after


Perfect. Thanks!

  Sebastian


___
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] [PATCH] org-export-format-drawer-function docstring

2010-04-25 Thread Diogo F . S . Ramos
Hello,

I would like to suggest a little change in the documentation. The
presented order of the parameters in the description of
`org-export-format-drawer-function' gives the false impression that
that is the order which the user function needs to list its
parameters. The right order -- at least using the development version
-- would be `name content backend'.

-- 
Diogo F. S. Ramos
diff --git a/org-configs/org-hooks.org b/org-configs/org-hooks.org
index 50a5516..1922d09 100644
--- a/org-configs/org-hooks.org
+++ b/org-configs/org-hooks.org
@@ -711,9 +711,9 @@ Defined in: /org-exp.el/
 #+begin_example
 Function to be called to format the contents of a drawer.
 The function must accept three parameters:
-  BACKEND  one of the symbols html, docbook, latex, ascii, xoxo
   NAME the drawer name, like \PROPERTIES\
   CONTENT  the content of the drawer.
+  BACKEND  one of the symbols html, docbook, latex, ascii, xoxo
 The function should return the text to be inserted into the buffer.
 If this is nil, `org-export-format-drawer' is used as a default.
 #+end_example
___
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] Shift-Arrow Pass Through for windmove?

2010-04-25 Thread Daniel E. Doherty

Carsten,

I'll second Sebastian on this one.  I don't want to let windmove, or
whatever, override anything if it would be useful in org-mode, so a hook
at the end sounds like the right thing.

Don't org-mode users strike you as really greedy?  I'm afraid you've
spoiled us.

Regards,

Dan

Carsten Dominik wrote:


On Apr 24, 2010, at 1:19 AM, Sebastian Rose wrote:


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

On Apr 23, 2010, at 6:12 PM, Sebastian Rose wrote:


Daniel E. Doherty ded-...@ddoherty.net writes:

All,

I make *very* frequent use of the shift-arrow keys to move from 
window
to window inside emacs via windmove.  It is probably the most 
frequent

key combination I access.

Anyway, is there a way to make org-mode friendlier to it by 
passing the

key along whenever org-mode would otherwise throw an error.  For
example, when not on a heading, when in the agenda, and wherever 
else?


I really like Carsten's use of the arrow keys for structure 
editing and

don't want to lose that, just whenever org-mode can't make use of the
keys.

Regards,




And here all the arrow keys.

It's somewhat inelegant, since you always need to keep track of new
useful org-bindings.

I would find an org-internal solution helpfull too. I use windmove.


I have now added

(defvar org-shiftup-hook nil
 Hook for functions attaching themselves to `S-up'.
See `org-ctrl-c-ctrl-c-hook' for more information.)
(defvar org-shiftdown-hook nil
 Hook for functions attaching themselves to `S-down'.
See `org-ctrl-c-ctrl-c-hook' for more information.)
(defvar org-shiftleft-hook nil
 Hook for functions attaching themselves to `S-left'.
See `org-ctrl-c-ctrl-c-hook' for more information.)
(defvar org-shiftright-hook nil
 Hook for functions attaching themselves to `S-right'.
See `org-ctrl-c-ctrl-c-hook' for more information.)

But I do not intend to attach specific functionality like windmove 
to them,

and I'd like to reserve the possibility to make S-cursor do something
in Org in more contexts.

Hope this still helps.


This could be perfect!!!

But wouldn't the hook need to be called at the end of (e.g.)
`org-shiftright'?

I want to use windmove as the last resort, as does the OP:


-   (t (org-shiftselect-error
+   (t (if org-shiftright-hook
+   ((run-hook-with-args-until-success 'org-shiftright-hook))
+   (org-shiftselect-error

;; end of org-shiftright ($otpional arg)



Otherwise we would loose the org-mode specific functions.

We want to

 1. try to do somehing org-specific (if org-headline-p )
 2. else run the hook (i.e. windmove in this case)
 3. erroronly if 1. and 2. failed


We do use windmove but at the same time we do _not_ want to loose all
those shift-right... features to come ;)


Well, the idea is hat these hooks *can* overrule what org-mode wants 
to do,

so whatever you put into the hook needs to decide if it wants to apply.

We could add *another* hook at the end...

- Carsten






Sebastian


- 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-mode CSS property export bug

2010-04-25 Thread Sebastian Rose
Carsten,


this looks all OK to me. Tested and works.



   Sebastian



Carsten Dominik carsten.domi...@gmail.com writes:
 He Sebastian,

 I believe we need a bit more - here is my patch - can you please take a look?
 Thanks!

 - Carsten

   Modified lisp/org-docbook.el
 diff --git a/lisp/org-docbook.el b/lisp/org-docbook.el
 index de9ffcc..bb8d048 100644
 --- a/lisp/org-docbook.el
 +++ b/lisp/org-docbook.el
 @@ -1228,7 +1228,8 @@ When TITLE is nil, just close all open levels.
(setq section-number (org-section-number level))
(insert (format \nsection xml:id=\%s%s\\ntitle%s/title
 org-export-docbook-section-id-prefix
 -   section-number title))
 +   (replace-regexp-in-string \\. _ section-number)
 +   title))
(org-export-docbook-open-para

  (defun org-docbook-expand (string)
   Modified lisp/org-exp.el
 diff --git a/lisp/org-exp.el b/lisp/org-exp.el
 index da8e1a4..44bde65 100644
 --- a/lisp/org-exp.el
 +++ b/lisp/org-exp.el
 @@ -1239,7 +1239,9 @@ Also find all ID and CUSTOM_ID propertiess and store
 them.
  (save-excursion (goto-char (point-at-bol))
  (org-outline-level
 (setq target (org-solidify-link-text
 - (format sec-%s (org-section-number level
 + (format sec-%s (replace-regexp-in-string
 +   \\. _
 +   (org-section-number level)
 (setq last-section-target target)
 (push (cons target target) target-alist)
 (add-text-properties
   Modified lisp/org-html.el
 diff --git a/lisp/org-html.el b/lisp/org-html.el
 index 71f62eb..92798d2 100644
 --- a/lisp/org-html.el
 +++ b/lisp/org-html.el
 @@ -871,7 +871,9 @@ lang=\%s\ xml:lang=\%s\
 t t line)))
   (while (string-match 
 lt;\\(lt;\\)+\\|gt;\\(gt;\\)+ txt)
 (setq txt (replace-match  t t txt)))
 - (setq href (format sec-%s snumber))
 + (setq href
 +   (replace-regexp-in-string
 +\\. _ (format sec-%s snumber)))
   (setq href (or (cdr (assoc href 
 org-export-preferred-target-
 alist)) href))
   (push
(format
 @@ -2027,7 +2029,7 @@ When TITLE is nil, just close all open levels.
(cdr (assoc target 
 org-export-preferred-target-alist
(remove (or preferred target))
(l org-level-max)
 -  snumber href suffix)
 +  snumber snu href suffix)
  (setq extra-targets (remove remove extra-targets))
  (setq extra-targets
 (mapconcat (lambda (x)
 @@ -2076,7 +2078,8 @@ When TITLE is nil, just close all open levels.
 extra-targets title br/\n)
   (insert ul\nli title br/\n
   (aset org-levels-open (1- level) t)
 - (setq snumber (org-section-number level))
 + (setq snumber (org-section-number level)
 +   snu (replace-regexp-in-string \\. _ snumber))
   (setq level (+ level org-export-html-toplevel-hlevel -1))
   (if (and org-export-with-section-numbers (not body-only))
   (setq title (concat
 @@ -2084,9 +2087,9 @@ When TITLE is nil, just close all open levels.
level snumber)
  title)))
   (unless (= head-count 1) (insert \n/div\n))
 - (setq href (cdr (assoc (concat sec- snumber) org-export-preferred-
 target-alist)))
 - (setq suffix (or href snumber))
 - (setq href (or href (concat sec- snumber)))
 + (setq href (cdr (assoc (concat sec- snu) org-export-preferred-
 target-alist)))
 + (setq suffix (or href snu))
 + (setq href (or href (concat sec- snu)))
   (insert (format \ndiv id=\outline-container-%s\ class=\outline-
 %d%s\\nh%d id=\%s\%s%s/h%d\ndiv class=\outline-text-%d\ id=
 \text-%s\\n
   suffix level (if extra-class (concat   extra-class) 
 )
   level href


 On Apr 24, 2010, at 1:25 PM, Sebastian Rose wrote:

 Hi everyone,


 here's a patch for org-html.el to fix those IDs.

  sec-1.2=  sec-1_2
  sec-1.2.3  =  sec-1_2_3




 diff --git a/lisp/org-html.el b/lisp/org-html.el
 index 71f62eb..133bffa 100644
 --- a/lisp/org-html.el
 +++ b/lisp/org-html.el
 @@ -871,7 +871,9 @@ lang=\%s\ xml:lang=\%s\
t t line)))
  (while (string-match 
 lt;\\(lt;\\)+\\|gt;\\(gt;\\)+ txt)
(setq txt (replace-match  t t txt)))
 -(setq href (format sec-%s snumber))
 +(setq href
 +  (replace-regexp-in-string
 +  

[Orgmode] INCOMPATIBLE change

2010-04-25 Thread Carsten Dominik

Hi everyone, maybe you have followed the discussion about XHTML ids
are not valid CSS targets because they contain dots.

This applies to the sec-2.1 IDs we have been uning.
I have just checked in a change which will mean that links using
this type of target will no longer be valied, and you need to fix
them if you have them in your setup.


So if you have links like  http://orgmode.org/a/b/d.html#sec-2.3

these links will have to be fixed.

I hope that this will not cause a lot of trouble.

- 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-mode CSS property export bug

2010-04-25 Thread Carsten Dominik
OK, it has been applied now, and I have re-published everything on  
orgmode.org, including Worg, to make problems with this show up as  
quickly as possible.


Thanks!

- Carsten

On Apr 25, 2010, at 12:27 PM, Sebastian Rose wrote:


Carsten,


this looks all OK to me. Tested and works.



  Sebastian



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

He Sebastian,

I believe we need a bit more - here is my patch - can you please  
take a look?

Thanks!

- Carsten

Modified lisp/org-docbook.el
diff --git a/lisp/org-docbook.el b/lisp/org-docbook.el
index de9ffcc..bb8d048 100644
--- a/lisp/org-docbook.el
+++ b/lisp/org-docbook.el
@@ -1228,7 +1228,8 @@ When TITLE is nil, just close all open levels.
  (setq section-number (org-section-number level))
  (insert (format \nsection xml:id=\%s%s\\ntitle%s/ 
title

  org-export-docbook-section-id-prefix
- section-number title))
+ (replace-regexp-in-string \\. _ section-number)
+ title))
  (org-export-docbook-open-para

(defun org-docbook-expand (string)
Modified lisp/org-exp.el
diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index da8e1a4..44bde65 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -1239,7 +1239,9 @@ Also find all ID and CUSTOM_ID propertiess  
and store

them.
   (save-excursion (goto-char (point-at-bol))
   (org-outline-level
  (setq target (org-solidify-link-text
-   (format sec-%s (org-section-number level
+   (format sec-%s (replace-regexp-in-string
+ \\. _
+ (org-section-number level)
  (setq last-section-target target)
  (push (cons target target) target-alist)
  (add-text-properties
Modified lisp/org-html.el
diff --git a/lisp/org-html.el b/lisp/org-html.el
index 71f62eb..92798d2 100644
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -871,7 +871,9 @@ lang=\%s\ xml:lang=\%s\
  t t line)))
(while (string-match 
lt;\\(lt;\\)+\\|gt;\\(gt;\\)+ txt)
  (setq txt (replace-match  t t txt)))
-   (setq href (format sec-%s snumber))
+   (setq href
+ (replace-regexp-in-string
+  \\. _ (format sec-%s snumber)))
(setq href (or (cdr (assoc href 
org-export-preferred-target-
alist)) href))
(push
 (format
@@ -2027,7 +2029,7 @@ When TITLE is nil, just close all open levels.
 (cdr (assoc target 
org-export-preferred-target-alist
 (remove (or preferred target))
 (l org-level-max)
-snumber href suffix)
+snumber snu href suffix)
(setq extra-targets (remove remove extra-targets))
(setq extra-targets
  (mapconcat (lambda (x)
@@ -2076,7 +2078,8 @@ When TITLE is nil, just close all open levels.
  extra-targets title br/\n)
(insert ul\nli title br/\n
(aset org-levels-open (1- level) t)
-   (setq snumber (org-section-number level))
+   (setq snumber (org-section-number level)
+ snu (replace-regexp-in-string \\. _ snumber))
(setq level (+ level org-export-html-toplevel-hlevel -1))
(if (and org-export-with-section-numbers (not body-only))
(setq title (concat
@@ -2084,9 +2087,9 @@ When TITLE is nil, just close all open levels.
 level snumber)
   title)))
(unless (= head-count 1) (insert \n/div\n))
-	(setq href (cdr (assoc (concat sec- snumber) org-export- 
preferred-

target-alist)))
-   (setq suffix (or href snumber))
-   (setq href (or href (concat sec- snumber)))
+   (setq href (cdr (assoc (concat sec- snu) org-export-preferred-
target-alist)))
+   (setq suffix (or href snu))
+   (setq href (or href (concat sec- snu)))
(insert (format \ndiv id=\outline-container-%s\ class=\outline-
%d%s\\nh%d id=\%s\%s%s/h%d\ndiv class=\outline-text-%d\  
id=

\text-%s\\n
suffix level (if extra-class (concat   extra-class) 
)
level href


On Apr 24, 2010, at 1:25 PM, Sebastian Rose wrote:


Hi everyone,


here's a patch for org-html.el to fix those IDs.

sec-1.2=  sec-1_2
sec-1.2.3  =  sec-1_2_3




diff --git a/lisp/org-html.el b/lisp/org-html.el
index 71f62eb..133bffa 100644
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -871,7 +871,9 @@ lang=\%s\ xml:lang=\%s\
  t t line)))
(while (string-match 
lt;\\(lt;\\)+\\|gt;\\(gt;\\)+ txt)

[Orgmode] Auto-indexing

2010-04-25 Thread Chao Lu
Dear all,

I just updated to the 6.35trans version, and found the auto-index function
which used to work now doesn't work any longer. My conf is

 :auto-index t
 :index-filename Sitemap.org
 :index-title Sitemap


Does anybody get any idea? Thanks a lot.

Chao
___
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] Auto-indexing

2010-04-25 Thread Stefan Vollmar
Dear Chao,

On 25.04.2010, at 18:15, Chao Lu wrote:

 I just updated to the 6.35trans version, and found the auto-index function 
 which used to work now doesn't work any longer. My conf is
 
  :auto-index t
  :index-filename Sitemap.org
  :index-title Sitemap
 
 
 Does anybody get any idea? Thanks a lot.


There have been some changes (and lots of improvements). 
You might want to try:

:auto-sitemap t
:sitemap-alphabetically t

to create sitemap.org.

One of the new features is the creation of an index. 
From the Orgmode 6.35 Release notes:

Index generation
~

Org-mode can now produce a 2-level subject index spanning an
entire publishing project.  Write index entries in your files as


 * What is org-mode?
 #+index: Org-mode
 #+index: Definitions!Org-mode

where the first line will produce an index entry /Org-mode/,
while the second line will create /Definitions/ with a sub-item
/Org-mode/.  Three-level entries are not supported.

To produce the index, set


 :makeindex t

in the project definition in =org-publish-project-alist=.  You
may have to force re-export of all files to get the index by
using a =C-u= prefix to the publishing command:


 C-u M-x org-publish-all

Whenever an Org file is published in this project, a new file
with the extension orgx will be written.  It contains the index
entries and corresponding jump target names.  When all project
files are published, Org will produce a new file theindex.inc
containing the index as a to-level tree.  This file can be
included into any project file using


 CANNOT INCLUDE FILE theindex.inc

Org-mode will also create a file theindex.org with this include
statement, and you can build a more complex structure (for
example style definitions, top and home links, etc) around this
statement.  When this file already exists, it will not be
overwritten by Org.

Warm regards,
 Stefan
-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: voll...@nf.mpg.de   http://www.nf.mpg.de








smime.p7s
Description: S/MIME cryptographic signature
___
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] patch:org-agenda-refile

2010-04-25 Thread Richard Riley

Possibly naive, but useful for myself as I tend to follow Bernd's
refile policy - just about all new remember items are placed in refile
for later refiling to more relevant locations thus simplifying the
remember item creation process. I have never yet had the situation where
I refiled from the agenda and didnt want my  agenda updated to reflect
that refiling. So ...



 diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
 index c68038d..02d7e1e 100644
 --- a/lisp/org-agenda.el
 +++ b/lisp/org-agenda.el
 @@ -6217,7 +6217,8 @@ If this information is not given, the function uses the 
tree at point.
(widen)
(goto-char marker)
(org-remove-subtree-entries-from-agenda)
 -  (org-refile goto buffer rfloc)))
 +  (org-refile goto buffer rfloc))
 +  (org-agenda-redo))
  
  (defun org-agenda-open-link (optional arg)
Follow the link in the current line, if any.



regards

r.



___
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] Auto-indexing

2010-04-25 Thread Sebastian Rose
Chao Lu looc...@gmail.com writes:
 Dear all,

 I just updated to the 6.35trans version, and found the auto-index function
 which used to work now doesn't work any longer. My conf is
 
  :auto-index t
  :index-filename Sitemap.org
  :index-title Sitemap
 

It is nowadays:

  :auto-sitemap t
  :sitemap-filename Sitemap.org
  :sidemap-title Sitemap


sitemap.org is the default filename.



  Sebastian


___
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] Edit Worg, Tracking changes, ect.

2010-04-25 Thread Chao Lu
Dear All,

I'm still struggling with edit Worg file under Windows system. I do have a
working GIT under Cygwin, but the ssh never works. Is there anybody who are
editing WOrg files under M$ Windows, could show me how to do so?

Another questions will be, what kind of tool are you using to read the
regular digest of Org-mode, I found it really painful to use gmail to do so.
I tried Gnus, with finding it's so difficult to get Gnus working with Gmail
even I followed the article from Emacs-wiki closely.

And how could I track the changes or improvement of Org-mode, Worg, even
Emacs-wiki. I tried rss using Google Reader, but really feel bad.

Thanks in advance!

Chao
___
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] Edit Worg, Tracking changes, ect.

2010-04-25 Thread Bastien
Hi Chao,

Chao Lu looc...@gmail.com writes:

 I'm still struggling with edit Worg file under Windows system. I do have a
 working GIT under Cygwin, but the ssh never works. Is there anybody who are
 editing WOrg files under M$ Windows, could show me how to do so?

In the meantime, if there are any change you want me to integrate to
Worg, maybe you can send me the patches.

-- 
 Bastien


___
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] Emacs 24: add symlink to .dir-settings.el

2010-04-25 Thread Carsten Dominik


On Apr 23, 2010, at 11:59 AM, Sebastian Rose wrote:


Hi,


I found emacs 24 does not respect the

  .dir-settings.el

anymore. Instead, it reads the

 .dir-locals.el


As it may have the exactly same contents, could we add a symlink?


I guess this would be somewhat system dependent?  Not all operating  
systems

do support this, I suppose?

- Carsten



http://www.kernel.org/pub/software/scm/git/docs/git-config.html
states it will work on FAT, too (there a file is created, but you  
cannot

change the type by accident).


I tested, and it works:

  $ ln -s  .dir-settings.el .dir-locals.el

  $ git add .dir-locals.el

  $ git commit
  Waiting for Emacs...
  [mit-symlink 7a09e3f] Added a symlink `.dir-locals.e.'
   1 files changed, 1 insertions(+), 0 deletions(-)
   create mode 12 .dir-locals.el

  $ rm .dir-locals.el

  $ git reset --hard
  HEAD is now at 7a09e3f Added a symlink `.dir-locals.e.'

  $ ls -la .dir*
  lrwxrwxrwx 1 sebastian ... 11:53 .dir-locals.el - .dir-settings.el
  -rw-r--r-- 1 sebastian ... 10:44 .dir-settings.el


Objections?


  Sebastian


___
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


Re: [Orgmode] Shift-Arrow Pass Through for windmove?

2010-04-25 Thread Daniel E. Doherty

Carsten,

Many thanks.  You 'da man!

Sebastian,

Not being adept at elisp, would you mind posting code to take advantage 
of these new hooks for windmove?


Regards,

Dan

Sebastian Rose wrote:

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

OK, I have now 4 more hooks

org-shiftup-final-hook
org-shiftdown-final-hook
org-shiftleft-final-hook
org-shiftright-final-hook


They will run *before* Org is trying to support shift-select.  I do not
think i makes sense to run the after




Perfect. Thanks!

  Sebastian
  




___
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] declaring items as implicit TODO entries

2010-04-25 Thread Nick
Hi,

I have an .org file I currently use as a TODO list.  Everything below a certain
level (currently 3) is a TODO item (of some sort).

Is there a way to tell org-mode to assume any item below this level is by
default a TODO item, such that the agenda view displays all of them which aren't
explicitly marked as DONE?

Thanks,

N


___
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] a couple of questions about org-mime

2010-04-25 Thread Eric Schulte
Hi,

Xiao-Yong Jin xj2...@columbia.edu writes:

 On Sat, 24 Apr 2010 16:43:53 -0600, Eric Schulte wrote:

[...]

 Use the following to change this behavior

   (setq org-mime-preserve-breaks nil)

 Perhaps this should be the default setting.  I currently have this
 set to true because quoted mail (i.e. lines starting with ) can
 look very bad with line wrapping.

 I see the problem.  Is it possible to detect quoted mail and
 enclose it between '#+begin_src' and '#+end_src'?


My personal solution has been to only call org-mime-htmlize on active
regions, ensuring that the htmlized text is of my own making and leaving
the quoted mail as plain/text.

I'm not sure of an existing mailer-independent method of recognizing
quoted mail (especially given the variety of different ways of quoting
mail   |  etc...).  It is probably possible to use mailer
(e.g. gnus, WL, etc...) specific functions to notice quoted mail,
however that could complicate the org-mime.el code substantially.

My gut feeling is that this feature may be more work to implement and
maintain than it's worth, but I could be wrong.

Thanks -- Eric



 Xiao-Yong


___
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] Another stupid one -- archiving and reports

2010-04-25 Thread David Frascone
I use org mode to keep track of my daily projects . . what I'm working on,
etc.  I tag work related items, and, when I export to html, only work items
are exported.

What I'd like to do, however, is only export things that have changed, or
have been dated in the last week.

Similarly, I'd like to archive off old completed tasks.

Could someone point me to how to do these things . . . I'm sure it's
documented somewhere :)

-Dave
___
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] Feasibility investigation: org-mode paper

2010-04-25 Thread Torsten Wagner

Hi all,

A few days ago I had this silly idea:

1. I create a template page, a kind of form, which assist me in writing 
directly in org-mode syntax. Different things could be predefined and 
others might be filled out.


2. I train a OCR resp. ICR to recognize this template with a hight 
accuracy. This might be easier then it sounds esp. since org-mode use a 
lot of keywords and key characters.


3. I write some lines of lisp code which allow (from within emacs) to 
scan the template by a paper scanner (or maybe use another digital 
picture source), perform some image processing, parse it through the ocr 
program, parse it through some org-mode releated parser and open the 
result in a emacs buffer.


This would allow in principle to write an org-mode file on real paper 
and get it into org-mode automagically.
Some of you might ask why?! Well, first of all because we can (its is 
still all plain text). Secondly, some of us might find this really 
handy. Think of this kind of boring meetings... hours of hours with 
nothing then a pencil and a paper in front of you. You know you will 
have to write a report, schedule, outline, etc. You know you will do 
this with org-mode and in front of your mind's eye you could already see 
the nice clear outline in org-mode style... however, you are stuck in 
that meeting for another hour... jotting down point for point and 
finally rush back to the office to type down all this. Others might find 
this interesting for conference meetings. There is normally enough time 
to write down clear notes clear and accurate ... thus why not directly 
in org-mode style.


I played with this idea (on a Linux system) and different tools come up 
to be handy.
Imagemagick can be used to improve the image quality for ocr and works 
perfectly in the background. I created a very first simple template with 
LaTeX. Scanning can be done easily from command line as long as the 
scanner is supported under Linux.


The real problem is the OCR or ICR. It seems there is a lack of really 
good OCR programs and handwriting recognition is even more poor.

I would be happy if someone can point me to some solution here.

As for the org-mode integration, I would wait and make it working first 
before I start to put my head into lisp-code.


In the meanwhile, I thought if handwriting is not supported well enough, 
there might be a kind of hand-writing assisted org-mode.
Printing out an existing org-mode file (maybe after a special form of 
export). Make certain annotations during the meeting e.g., stroke a 
line, stroke the keyword TODO and add DONE at the top, etc. and run this 
throw the process to update the real file. This would limit recognition 
to single keywords.


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.

Torsten


___
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: declaring items as implicit TODO entries

2010-04-25 Thread Manish Sharma
Nick writes:

 Hi,

 I have an .org file I currently use as a TODO list.  Everything
 below a certain level (currently 3) is a TODO item (of some
 sort).

 Is there a way to tell org-mode to assume any item below this
 level is by default a TODO item, such that the agenda view
 displays all of them which aren't explicitly marked as DONE?

C-c a t should show all the TODO items.  You may also want to
take a look at org-agenda-todo-ignore-deadlines,
org-agenda-todo-ignore-scheduled and
org-agenda-todo-ignore-with-date as well.

HTH
-- 
Manish



___
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] How to change font size and colors for specified content?

2010-04-25 Thread filebat Mark
Hi friends

I am bumped to be asked: how to change font size and colors for specified
content, in order to higlight them, like MSword.

This question may be not specified to org-mode, but emacs itself.
However, requirement for this is mainly from the use of org-mode. So I refer
to my super stars in this mail list.

-- 
Thanks  Regards

Denny Zhang
___
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] declaring items as implicit TODO entries

2010-04-25 Thread Carsten Dominik

Hi Nick,


On Apr 26, 2010, at 12:10 AM, Nick wrote:


Hi,

I have an .org file I currently use as a TODO list.  Everything  
below a certain

level (currently 3) is a TODO item (of some sort).

Is there a way to tell org-mode to assume any item below this level  
is by
default a TODO item, such that the agenda view displays all of them  
which aren't

explicitly marked as DONE?


you cannot tell Org to treat any such items as TODO items
in the full sense of a TODO item with a keyword.
But you can define an agenda search which finds such items:

C-c a m LEVEL2/-DONE RET


HTH

- Carsten



Thanks,

N





___
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:org-agenda-refile

2010-04-25 Thread Carsten Dominik

Hi Richard,

thanks, I have applied the patch, with the modification that
during bulk refiling, the agenda is only refreshed once, at the end.

- Carsten

On Apr 25, 2010, at 6:32 PM, Richard Riley wrote:



Possibly naive, but useful for myself as I tend to follow Bernd's
refile policy - just about all new remember items are placed in  
refile

for later refiling to more relevant locations thus simplifying the
remember item creation process. I have never yet had the situation  
where

I refiled from the agenda and didnt want my  agenda updated to reflect
that refiling. So ...



diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index c68038d..02d7e1e 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -6217,7 +6217,8 @@ If this information is not given, the function  
uses the tree at point.

(widen)
(goto-char marker)
(org-remove-subtree-entries-from-agenda)
-   (org-refile goto buffer rfloc)))
+   (org-refile goto buffer rfloc))
+  (org-agenda-redo))

 (defun org-agenda-open-link (optional arg)
   Follow the link in the current line, if any.



regards

r.



___
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


Re: [Orgmode] [PATCH] org-export-format-drawer-function docstring

2010-04-25 Thread Carsten Dominik

Applied, thanks for catching this!

- Carsten

On Apr 24, 2010, at 3:05 PM, Diogo F. S. Ramos wrote:


Hello,

I would like to suggest a little change in the documentation. The
presented order of the parameters in the description of
`org-export-format-drawer-function' gives the false impression that
that is the order which the user function needs to list its
parameters. The right order -- at least using the development version
-- would be `name content backend'.

--  
Diogo F. S. Ramos

diff --git a/org-configs/org-hooks.org b/org-configs/org-hooks.org
index 50a5516..1922d09 100644
--- a/org-configs/org-hooks.org
+++ b/org-configs/org-hooks.org
@@ -711,9 +711,9 @@ Defined in: /org-exp.el/
#+begin_example
Function to be called to format the contents of a drawer.
The function must accept three parameters:
-  BACKEND  one of the symbols html, docbook, latex, ascii, xoxo
  NAME the drawer name, like \PROPERTIES\
  CONTENT  the content of the drawer.
+  BACKEND  one of the symbols html, docbook, latex, ascii, xoxo
The function should return the text to be inserted into the  
buffer.

If this is nil, `org-export-format-drawer' is used as a default.
#+end_example
___
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


Re: [Orgmode] Emacs 24: add symlink to .dir-settings.el

2010-04-25 Thread Carsten Dominik


On Apr 23, 2010, at 11:59 AM, Sebastian Rose wrote:


Hi,


I found emacs 24 does not respect the

 .dir-settings.el

anymore. Instead, it reads the

.dir-locals.el


As it may have the exactly same contents, could we add a symlink?

http://www.kernel.org/pub/software/scm/git/docs/git-config.html
states it will work on FAT, too (there a file is created, but you  
cannot

change the type by accident).



Sorry, it seems I did not read carefully enough.  I have now applied
your change.

- Carsten




I tested, and it works:

 $ ln -s  .dir-settings.el .dir-locals.el

 $ git add .dir-locals.el

 $ git commit
 Waiting for Emacs...
 [mit-symlink 7a09e3f] Added a symlink `.dir-locals.e.'
  1 files changed, 1 insertions(+), 0 deletions(-)
  create mode 12 .dir-locals.el

 $ rm .dir-locals.el

 $ git reset --hard
 HEAD is now at 7a09e3f Added a symlink `.dir-locals.e.'

 $ ls -la .dir*
 lrwxrwxrwx 1 sebastian ... 11:53 .dir-locals.el - .dir-settings.el
 -rw-r--r-- 1 sebastian ... 10:44 .dir-settings.el


Objections?


 Sebastian


___
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


Re: [Orgmode] indented items in agenda searches

2010-04-25 Thread Carsten Dominik


On Apr 24, 2010, at 12:39 AM, Nathan Neff wrote:


I just found the setting org-tags-match-list-sublevels,
and think it's really cool for viewing agenda searches.

For example, if you search for a tag project using an agenda search
on the following data:

* Cake   :project:
** Ingredients
*** Apples
*** Oranges
* Clean Room  :project:
** Vacuum
** Dust

You would see the items indented with periods in the agenda view,  
like this:


  foo: 
Cake 
   :project 
:

  foo:.Ingredients
  foo:..Apples
  foo:..Oranges
  foo:Clean  
Room 
 :project 
:

  foo:.Vacuum
  foo:.Dust

However, the indents only show up when I perform an agenda search.

If these items all were TODO items, then the indentation goes away.

Is there a setting to see the indents all the time in the agenda? Or  
a way to do it in a custom search?


No, there is currently no way to do this.



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


- 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