Re: [Orgmode] Tags not lining up in org-indent-mode

2010-04-26 Thread Carsten Dominik


On Apr 22, 2010, at 9:07 PM, Jason Dunsmore wrote:


I figured out how to keep tabs from being used to align tags.  The
solution is to set indent-tabs-mode to nil locally for org-mode.

I believe the following patch should fix this issue.

--8---cut here---start-8---
index c875472..1d10754 100644
--- a/lisp/org-indent.el
+++ b/lisp/org-indent.el
@@ -131,6 +131,7 @@ FIXME:  How to update when broken?
  (setq org-indent-mode nil)
(if org-indent-mode
   (progn
+ (org-set-local 'indent-tabs-mode nil)
 (or org-indent-strings (org-indent-initialize))
 (when org-indent-mode-turns-off-org-adapt-indentation
   (org-set-local 'org-adapt-indentation nil))
--8---cut here---end---8---


Hi Jason,

well, this does stop tabs from being used, but it does
not stop  the mis-alignment of tags on different outline levels.
Still, it looks a lot better than what we had before, so I
have applied your patch.  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


Re: [Orgmode] [patch] Remove modeline if not org-clocking-p

2010-04-26 Thread Carsten Dominik

Applied, thanks.

- Carsten

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


Hi Carsten and the Orgers,


I had this mode line entry now since I created that example file for
lists two (?) days ago.

As I accidentally removed the clocking information by hand, the clock
was gone. Somehow, I was clocked out anyway (`C-c C-x C-o'), but the
modeline string remained. No matter how hard I tried - I only got the
error message.

This patch removes the clock-entry from the modeline, if (not
org-clocking-p).



mime-attachment


Best wishes

  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] Tiny bug in org-html

2010-04-26 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Apr 18, 2010, at 4:14 AM, Tom Breton (Tehom) wrote:


In the course of working with org-html, I noticed that
`org-export-as-html-and-open' seems to have a bug.  `kill-buffer'
needs an argument, a buffer, presumably the buffer that
`org-open-file' makes.  This code is protected by the nil default
value of `org-export-kill-product-buffer-when-displayed', so the bug
may not have been obvious.

Tom Breton (Tehom)




___
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] org-html link building diff

2010-04-26 Thread Carsten Dominik


On Apr 18, 2010, at 4:13 AM, Tom Breton (Tehom) wrote:


I've refactored `org-export-as-html', factored code to build links
into `org-html-make-link'.

This does two things that I needed:

* It allows custom link types to build anchors.
  * How: Call org-html-make-link.  Many parameters, see the function
docstring.  It returns a string containing an HTML link.
* It adds the capability to convert links when exporting.
  * How: Around the export call, bind org-html-cvt-link-fn to a
function that takes 1 parameter (filename) and returns a url as a
string.

I think it also makes the code cleaner.


I am sure it does - the export function has grown like cancer in the  
run of years.
Unfortunately, I right now do not have the time to study this  
carefully enough

to make sure this does not break anything.

Tom, maybe you can update the patch to the current master.

Are there any volunteers who can put this patch through the mill?  Or  
Tom, maybe

you first want to implement the other stuff you are thinking about?

Thanks!

- Carsten



There are more things that could be done - it's only used by some of
the cond branches, the others are unchanged.  But publish early and
often, so here it is.

I will append the changes as a diff, since I can't push to the org
repository (fatal: The remote end hung up unexpectedly)

Tom Breton (Tehom)
org-html.el.diff___
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


[Orgmode] 'habit' with DEADLINE-style advance warning loses its graph

2010-04-26 Thread Livin Stephen Sharma
* TODO Send query habit/DEADLINE/graph query
  DEADLINE: 2010-04-26 Mon +1m -15d
  :PROPERTIES:
  :STYLE:habit
  :END:
  find out about advance warning (agenda-visibility) for a habit: how to
retain habit-tracking graphs in 'C-a a' agenda-view


I want:a monthly habit-style TODO that

   1. has a warning-period within which the upcoming instance of the
   repeating task may optionally be marked DONE and
   2. if the agenda view lies within the warning period, the item (and
   habit-graph) should be visible - *possibly even without the graph, **if
   it is not 'today'*



So far, after experiments and after searching the manual + google'ing, I
have not been able to achieve these requirements satisfactorily
(simultaneously).

   1. If I use DEADLINE (as shown) I lose the habit-graph
   2. If I use SCHEDULED (instead of DEADLINE), I lose advance warning


What am I missing?
___
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: 'habit' with DEADLINE-style advance warning loses its graph

2010-04-26 Thread Livin Stephen Sharma
Forgot to mention s/w version...

org-mode version from: 2010_02_25
emacs version: 23.1.90.1

Thanks
Livin Stephen Sharma



On 26 April 2010 11:28, Livin Stephen Sharma livin.step...@gmail.comwrote:
(BEGIN org-snip)



 * TODO Send habit/DEADLINE/graph query
   DEADLINE: 2010-04-26 Mon +1m -15d
   :PROPERTIES:
   :STYLE:habit
   :END:
   find out about advance warning (agenda-visibility) for a habit: how to
 retain habit-tracking graphs in 'C-a a' agenda-view


 (END org-snip)



 I want:a monthly habit-style TODO that

1. has a warning-period within which the upcoming instance of the
repeating task may optionally be marked DONE and
2. if the agenda view lies within the warning period, the item (and
habit-graph) should be visible - *possibly even without the graph, **if
it is not 'today'*



 So far, after experiments and after searching the manual + google'ing, I
 have not been able to achieve these requirements satisfactorily
 (simultaneously).

1. If I use DEADLINE (as shown) I lose the habit-graph
2. If I use SCHEDULED (instead of DEADLINE), I lose advance
warning


 What am I missing?


___
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] Copyright: Floss weekly 117

2010-04-26 Thread Carsten Dominik

Hi everyone,

If you have (like I have) asked yourself in the past why it may  
actually be useful to collect all the copyright assignments for  
OpenSource Software like I do it for Org-mode:  Here is a nice lesson  
on why this can be a really really good idea.


Bob Jacobson talks on Floss weekly 117 about his experience with a guy  
who tried to steal and sue away his license rights, in order to make  
money of his software.


http://twit.tv/floss117

Best wishes

- Carsten

P.S.  I am on the list of future guests[1] of this great podcasts -  
hope this will work out.



[1] http://spreadsheets.google.com/pub?key=pYAJMbVobYCTro_z4LGo3ZQ


___
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] Gmane readers - please subscribe

2010-04-26 Thread Carsten Dominik


If you are reading emacs-orgmode.org through gmane, please read this  
new FAQ to help take load off the maintainers.


http://orgmode.org/worg/org-faq.php#ml-subscription-and-gmane

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


Re: [Orgmode] How to change font size and colors for specified content?

2010-04-26 Thread Jan Böcker
On 26.04.2010 07:21, filebat Mark wrote:
 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.

Can you be more specific?
I'd guess that a lot of the people on this list do not use MS Word
regularly if at all, so we do not know what exactly you want to do.

Do you want to change the font of TODO keywords, etc?

Make some words in your text *bold* or /italic/?

If you want to temporarily highlight all occurences of a word in a
buffer, isearch (C-s) might help you.

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


[Orgmode] Re: Limited #+INCLUDE ?

2010-04-26 Thread Sébastien Vauban
Hi Giles,

Giles Chamberlin wrote:
 I've been using org-mode for some course work: write an essay about
 your software including the interesting bits, add all source code in an
 appendix.

 #+INCLUDE solves the inclusion of source code files very nicely - I'm 
 guaranteed that my document includes the latest versions, type set as I
 wish.

 Unfortunately at the moment I'm cutting and pasting the snippets of
 interesting code into the body of the essay.  What I'd like to do is
 be able to label interesting regions of code in the source file and then
 import the labelled blocks into my essay. Is there a way of doing this?

Have a look at Org-Babel.

Though, it means your source code would be *inside* your Org document, and you
would have to tangle it (generate it) from there.

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


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

2010-04-26 Thread Sebastian Rose
Carsten Dominik carsten.domi...@gmail.com writes:
 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


 - Carsten


Good, thanks!

Now my future patches will always be TAB-indented ;)

  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


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

2010-04-26 Thread Sebastian Rose
Daniel E. Doherty ddohert...@gmail.com writes:
 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?

Daniel,

this here will do:



binuJkZMRD387.bin
Description: application/emacs-lisp


Best wishes

  Sebastian



 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


Re: [Orgmode] How to change font size and colors for specified content?

2010-04-26 Thread filebat Mark
Thanks, Jan
Please allow me to clarify the requirement.
- Highlight some content with different colors.
- Highlight some content with bigger font.

Sample:
---
Tech learning and improve communication skills

  Summary Description:

·Deep dive for cloud storage area, exercise communication skills to
get things done more efficiently

 Goal Measurements:

·Case study for gfs and amazon, from the aspect of serveral
fundanmental problems.

·Form good habit to keep focus on the target

·Get prepared for discussions and meetings

·Be careful and patient for the tasks


---
Regrards,
Denny

On 4/26/10, Jan Böcker jan.boec...@jboecker.de wrote:

 On 26.04.2010 07:21, filebat Mark wrote:
  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.


 Can you be more specific?
 I'd guess that a lot of the people on this list do not use MS Word
 regularly if at all, so we do not know what exactly you want to do.

 Do you want to change the font of TODO keywords, etc?

 Make some words in your text *bold* or /italic/?

 If you want to temporarily highlight all occurences of a word in a
 buffer, isearch (C-s) might help you.

 HTH, Jan




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

2010-04-26 Thread Carsten Dominik


On Apr 26, 2010, at 10:56 AM, Sebastian Rose wrote:


Daniel E. Doherty ddohert...@gmail.com writes:

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?


Daniel,

this here will do:


Thanks for this, I have added this to the manual.

- Carsten



mime-attachment

Best wishes

 Sebastian




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





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

2010-04-26 Thread Zhu Shenli

On 04/26/2010 01:21 PM, filebat Mark wrote:

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


Info emacs  Text  Formatted Text provides some information.

 -Z


___
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-26 Thread Nick
Manish Sharma wrote:
 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.

Thanks for your answer - however, I did come across those, and I don't believe
they would do the job I have in mind, because items must still be explicitly
labelled TODO before they will appear in the agenda view.

What I mean is, give a file structure like this, where level 1 is a project
name, and level 2 contain items to do (which are not labelled TODO items,
necessarily):

* SS Organised
** scrub the deck
** man the poopdeck
** DONE splice the mainbrace

* Good ship lollipop
** NEXT lubber's teeth out
(Beware, she bites)
** fix treadmill
** scrub the deck

The workflow is TODO - NEXT - DONE, with TODO implicit: I consider scrub the
deck a TODO, even though I've not added a TODO label, because it's on level =
2. This saves typing and reduces clutter. (The level at which TODO items lie
varies depending on my organisation scheme.)


Then I want the TODO agenda view to look something like this, so I can print it
out for reference (ideally without the duplicate TODO inserted in front of each
item, as currently seems to happen,  but that's probably another question):

Global list of TODO items of type: ALL
Available with `N r': (0)ALL (1)TODO (2)NEXT (3)DONE
  TODO:   scrub the deck
  TODO:   man the poopdeck
  NEXT:   lubber's teeth out
  TODO:   fix treadmill
  TODO:   scrub the deck



It might not be possible to do this currently, which is fine - I just want to
confirm that fact.  Perhaps in that case I could write my own extension, or more
preferably, adapt my scheme to something which works with org-mode as it is.

Cheers,

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

2010-04-26 Thread Sebastian Rose
David Frascone d...@frascone.com writes:
 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 :)


M-x customize-group RET org-publish RET


See the last two entries on that page.

Set the Org Publish Timestamp Directory and Org Publish use
Timestamps Flag to `on'.

From now on, Org-mode will publish only files, that changed since the
last time you published.



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


Re: [Orgmode] org-mode CSS property export bug

2010-04-26 Thread Rick Moynihan
On 25 April 2010 13:08, Carsten Dominik carsten.domi...@gmail.com wrote:
 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

Thanks for the quick fix on this!  :-)

org-mode rocks!

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] org-html link building diff

2010-04-26 Thread Sebastian Rose
Carsten Dominik carsten.domi...@gmail.com writes:
 On Apr 18, 2010, at 4:13 AM, Tom Breton (Tehom) wrote:

 I've refactored `org-export-as-html', factored code to build links
 into `org-html-make-link'.

 This does two things that I needed:

 * It allows custom link types to build anchors.
   * How: Call org-html-make-link.  Many parameters, see the function
 docstring.  It returns a string containing an HTML link.
 * It adds the capability to convert links when exporting.
   * How: Around the export call, bind org-html-cvt-link-fn to a
 function that takes 1 parameter (filename) and returns a url as a
 string.

 I think it also makes the code cleaner.

 I am sure it does - the export function has grown like cancer in the run of
 years.
 Unfortunately, I right now do not have the time to study this carefully enough
 to make sure this does not break anything.

 Tom, maybe you can update the patch to the current master.

 Are there any volunteers who can put this patch through the mill?  Or Tom, 
 maybe
 you first want to implement the other stuff you are thinking about?


Tom and Carsten,


here's a volunteer for testing it. I've been looking in this export
and publishing stuff frequently lately, and a clean-up would be great.


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

2010-04-26 Thread Tim Landscheidt
Torsten Wagner torsten.wag...@gmail.com 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


Re: [Orgmode] Renumber HTML ordered lists from org-mode?

2010-04-26 Thread Carsten Dominik


On Feb 11, 2010, at 12:14 AM, Uriel Avalos wrote:


In HTML, one way of renumbering OL lists is to use start. (Ex: ol
start=13.../ol restarts the numbering at 13.)

Is there anyway to do that from within org-mode without hacking the
exported HTML file?

Is there a +ATTR_HTML:  planned for OL and UL lists?


This has taken a long time.  I have not done an ATTR_, but you
can now write

   1. [...@start:20] item number 20

to have a list start at 20.

Currently this works in Org-mode itself to change the list with
a different counter, and for the HTML, LaTeX, and ASCII
exporters.  I hope that it can also be translated for the docbook
exporter.

- 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-26 Thread Ali Tofigh
Hi John,

On Sun, Apr 25, 2010 at 03:46, John Wiegley jwieg...@gmail.com wrote:
 Frequently my notes on meetings contain ideas for stuff to try. Does
 anyone have any advice on how to handle these?

 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.

Thanks for the suggestion. I've tried both checkboxes and TODO items
to keep track of my ideas, but your idea of using a done state seems
very neat. I'll give it a go.

What really feels unsatisfactory to me is that only headlines can be
TODO items. I want to be able to insert TODO items in the middle of a
section. I've looked at the inline-tasks add-on, but that doesn't
really do it for me... Anyway, I understand that the way org-mode is
implemented right now, it would be very impractical to try to add
non-headline TODO-items. In any case, org has simplified my life, even
before I've optmized the way I use it. It's great!

Cheers,
/Ali


___
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-babel] How to tangle org-mode files?

2010-04-26 Thread Eric Schulte
Hi Dan,

Daniel Brunner dan...@dbrunner.de writes:

 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)


I'm now using the following to tangle org-mode blocks, this will strip
all leading commas, and shouldn't cause any problems.

--8---cut here---start-8---
(add-to-list 'org-babel-tangle-langs '(org org nil t))
(org-babel-add-interpreter org)
(defun org-babel-expand-body:org (body params optional processed-params)
  (with-temp-buffer
(insert body)
(goto-char (point-min))
(while (re-search-forward ^, nil t)
  (replace-match ))
(buffer-string)))
--8---cut here---end---8---


 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. 


If the above proves insufficient in some way please let me know, and we
can try some more complicated solutions.

Thanks -- Eric


 Best wishes,


 Daniel

 Dan Davison davi...@stats.ox.ac.uk writes:

 Daniel Brunner dan...@dbrunner.de 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


___
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: Bug: create latex png while export to HTML become very slow [6.35i]

2010-04-26 Thread Carsten Dominik

Nick,

do you have time to do the following exercise?

Remove the entries in org-export-latex-default-packages-alist
one by one to see which packages are the worst offenders?

That would be a great help.

- Carsten

On Apr 19, 2010, at 8:02 AM, Nick Dokos wrote:


Nick Dokos nicholas.do...@hp.com wrote:


...
The complete profiling results are attached. I also did an ls -lR  
to get
some sizes after Lucas's mail above, but I have not looked into  
that yet

- nevertheless, the sizes are also in the results file.



The results file was incomplete: I forgot to save the file before
sending it out - sorry about that. The complete results are attached
here.

Nick


* Org-mode version 6.35trans (release_6.35i)
** profile
org-export 
1   10.622031 10.622031
org-export-as-html 
1   9.529249  9.529249
org-export-preprocess-string   
1   9.510265  9.510265
org-export-html-preprocess 
1   9.502661  9.502661
org-format-latex   
1   9.502494  9.502494
org-create-formula-image   
5   9.479597  1.8959194
org-mode   
1   0.004826  0.004826
org-export-push-to-kill-ring   
1   0.003082  0.003082
org-kill-new   
1   0.001904  0.001904
org-fit-window-to-buffer   
1   0.001263  0.001263
org-html-expand
13  0.001239  9.530...e-05
org-install-agenda-files-menu  
1   0.001225  0.001225
org-html-do-expand 
18  0.000931  5.172...e-05
org-agenda-files   
1   0.000757  0.000757
org-splice-latex-header
5   0.000594  0.0001188
org-infile-export-plist
3   0.000572  0.000190
org-export-normalize-links 
1   0.000553  0.000553
org-file-image-p   
5   0.000525  0.000105
org-image-file-name-regexp 
5   0.000468  9.36e-05
org-default-export-plist   
1   0.000405  0.000405
org-set-regexps-and-options
1   0.000344  0.000344
org-export-define-heading-targets  
1   0.000267  0.000267
org-export-html-convert-sub-super  
18  0.000245  1.361...e-05
org-latex-packages-to-string   
5   0.000236  4.719...e-05
org-export-blocks-preprocess   
1   0.000223  0.000223
org-link-unescape  
10  0.000220  2.21e-05
org-export-html-format-image   
5   0.000189  3.780...e-05
org-html-handle-time-stamps
10  0.000181  1.810...e-05
org-footnote-normalize 
1   0.000156  0.000156
org-html-level-start   
2   0.000146  7.3e-05
org-export-attach-captions-and-attributes  
1   0.000142  0.000142
org-export-html-convert-special-strings
18  0.000122  6.777...e-06
org-export-html-convert-emphasize  
18  0.000120  6.666...e-06
org-export-remove-headline-metadata
1   0.000115  0.000115
org-export-concatenate-multiline-emphasis  
1   0.000114  0.000114
org-open-par   
7   0.000111  1.585...e-05
org-export-select-backend-specific-text
1   0.000109  0.000109
org-section-number 
3   0.000104  3.466...e-05
org-export-protect-verbatim
1   0.000104  0.000104
org-make-options-regexp
4   0.000102  2.55e-05
org-export-replace-src-segments-and-examples   
1   9.5e-05   9.5e-05
org-html-protect   
18  8.300...e-05  4.611...e-06
org-file-menu-entry  

Re: [Orgmode] Re: declaring items as implicit TODO entries

2010-04-26 Thread Nathan Neff
On Mon, Apr 26, 2010 at 3:01 AM, Nick oinksoc...@letterboxes.org wrote:

 Manish Sharma wrote:
  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.

 Thanks for your answer - however, I did come across those, and I don't
 believe
 they would do the job I have in mind, because items must still be
 explicitly
 labelled TODO before they will appear in the agenda view.


Nick,

Try using m instead of t:

C-c a m LEVEL2/-DONE RET

The m does a general tags/props search, instead of requiring a TODO state.

--Nate


What I mean is, give a file structure like this, where level 1 is a project
 name, and level 2 contain items to do (which are not labelled TODO items,
 necessarily):

 * SS Organised
 ** scrub the deck
 ** man the poopdeck
 ** DONE splice the mainbrace

 * Good ship lollipop
 ** NEXT lubber's teeth out
 (Beware, she bites)
 ** fix treadmill
 ** scrub the deck

 The workflow is TODO - NEXT - DONE, with TODO implicit: I consider scrub
 the
 deck a TODO, even though I've not added a TODO label, because it's on
 level =
 2. This saves typing and reduces clutter. (The level at which TODO items
 lie
 varies depending on my organisation scheme.)


 Then I want the TODO agenda view to look something like this, so I can
 print it
 out for reference (ideally without the duplicate TODO inserted in front of
 each
 item, as currently seems to happen,  but that's probably another question):

 Global list of TODO items of type: ALL
 Available with `N r': (0)ALL (1)TODO (2)NEXT (3)DONE
  TODO:   scrub the deck
  TODO:   man the poopdeck
  NEXT:   lubber's teeth out
  TODO:   fix treadmill
  TODO:   scrub the deck



 It might not be possible to do this currently, which is fine - I just want
 to
 confirm that fact.  Perhaps in that case I could write my own extension, or
 more
 preferably, adapt my scheme to something which works with org-mode as it
 is.

 Cheers,

 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

___
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-mime - issues and remarks

2010-04-26 Thread Eric Schulte
Hi David,

If I find some time, I'll certainly take a look at these.  More comments
below.

David Maus dm...@ictsoc.de writes:

 While skimming the source code of org-mime I noticed two severe issues
 with regards to the MIME specifications:

   - when creating an attachment for a image org-mime (still) uses the
 file extension as MIME media subtype for Gnus messages. This not
 in compliance with RFC 2046.  As mentioned before org-mime
 should/could use the function to determine MIME media type of
 message-mode and mime-edit-mode respectively.

 For SEMI the function is `mime-find-file-type', called with the
 file name as argument and returns a list whose first element is a
 string with MIME media type and second element is MIME media
 subtype.


Alright,

once I find the appropriate similar function in mml/gnus I will make
this change.


   - when creating an attachment for a image org-mime uses the path to
 the image for the value of the content-id header.  This violates
 RFC2045, section 7.

 The value of the content-iD header field is syntactically
 identical to the message-id header.

 addr-spec   =  local-part @ domain

 For SEMI the function for creating a message-id string is
 `wl-draft-make-message-id-string' that is called without any
 argument and returns a shiny new message-id header field value
 /with/ the angle brackets.


I agree it would be good to use existing and spec conforming functions
for the id construction.  Again I will need to find the analogous
mml/gnus function to the function you mention above.  One issue here is
the need to ensure that the first three letters of the ID are CID to
resolve HTML links from within the article.


 Furthermore there are some minor glitches:

   - the filename parameter is only defined for the
 content-disposition header field; because images are attachments
 they can/should be easily send with

 content-disposition: attachment; filename=filename

 For SEMI (replace _ by -):

 __[[type/subtype
 content-disposition: attachment; filename=filename][base64]]


could you expand upon this point, what's the problem?


   - org-mime uses `reporter-compose-outgoing' to open a new message
 draft.  This is not a could solution because (a) org-mine does not
 want to send a bug report and (b) would depend on reporter.el
 without necessity.


I don't think this is a problem, I think reporter.el is the best
approach here.


   - org-mime /should/ add information to the user-agent mail header
 field indicating that the message was created with the help of
 org-mime.


Agreed, this would be a good thing to add.

Patches welcome :)

Thanks for the thoughts -- Eric


 HTH
  -- David
 --
 OpenPGP... 0x99ADB83B5A4478E6
 Jabber dmj...@jabber.org
 Email. dm...@ictsoc.de
 ___
 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: Another stupid one -- archiving and reports

2010-04-26 Thread Matt Lundin
David Frascone d...@frascone.com writes:

 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 :)

(info (org) Archiving)

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

2010-04-26 Thread Nathan Neff
On Sun, Apr 25, 2010 at 2:46 AM, John Wiegley jwieg...@gmail.com wrote:

 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.


Same here -- I just use the SOMEDAY todo state for both ideas and things
that I really want to do someday.

Previously, I would use a separate IDEA and SOMEDAY states, but the two
concepts are similar enough that I combined them.

--Nate


 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

___
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] reqall

2010-04-26 Thread charles snyder
Hi

I have a setup to sync my reqall online data via rss feed with orgmode. Some
of the reqall data has dates, but it stores them as [2006-11-01 Wed] - which
is the 'inactive time stamp' form for orgmode and therefore doesn't show up
in the agenda view. Is there a simply command I can put in my .emacs which
will force the agenda view to include this type of brackets? I really don't
use the inactive time stamp brackets for anything else.

Thanks!

Charles

-- 
Charles L. Snyder, MD
Professor of Surgery
Children's Mercy Hospital
Kansas City, MO
www.clsnyder.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


Re: [Orgmode] Re: Bug: create latex png while export to HTML become very slow [6.35i]

2010-04-26 Thread Nick Dokos
Carsten Dominik carsten.domi...@gmail.com wrote:

 Nick,
 
 do you have time to do the following exercise?
 
 Remove the entries in org-export-latex-default-packages-alist
 one by one to see which packages are the worst offenders?
 
 That would be a great help.
 
 - Carsten
 

I can't do it immediately, but I'll try to do it later on tonight.

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] Re: due today notification

2010-04-26 Thread Buck Brody
Sorry, I don't think I properly described what I am looking for.  I want a
visual indicator (like a tag or a face) of tasks due today, but I don't want
to do a specific search.  The idea would be that, within a view of all
tasks, I would be able to see at a glance which were due today.  Does that
make sense?


On Fri, Apr 23, 2010 at 6:54 PM, Matt Lundin m...@imapmail.org wrote:

 Buck Brody buckbr...@gmail.com writes:

  Is there a way to know if an item is due today by only looking at the
  headline or at an agenda?  For instance, could a tag today be
  triggered based upon a deadline? Basically, when looking at a sparse
  tree or an agenda, I would like to know what is due today without using
  agenda for current day or week or going into column view.

 C-c / m DEADLINE=today [RET]

 Best,
 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


[Orgmode] Re: Suggestions needed for handling ideas

2010-04-26 Thread Ali Tofigh
On Mon, Apr 26, 2010 at 13:00, Matt Lundin m...@imapmail.org wrote:
 Ali Tofigh alix.tof...@gmail.com writes:

 What really feels unsatisfactory to me is that only headlines can be
 TODO items. I want to be able to insert TODO items in the middle of a
 section. I've looked at the inline-tasks add-on, but that doesn't
 really do it for me...

 Could you please elaborate?

I often write journal entries after meetings describing what was
discussed. I often summarize using plain lists. Some of these are
ideas for future work, some are downright todos. Some paragraphs are
descriptions of ideas. Ideally for my case, I would want to be able to
tag a list item or even entire paragraphs as an 'idea' or turn a list
item into a todo-item without creating a new (sub)section:

text text text
- *TODO* Sarah wants me to send her files A and B
- maybe we should try algorithm B on data set C   :idea:
text text text continuing the section...

 Here's one quick hack to search for non-headline todo items (i.e.,
 checkboxes):

 C-c a / \[ \] [RET]

 This will generate a list of all open list items, such as,

  - [ ] Review this idea

Wow, I had not thought about that one! I'll be fiddling with that as
soon as I get some time on my hands. Thanks. I'm getting some really
good suggestions from people here.

/Ali


___
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] CONTENTS visibility for subtrees

2010-04-26 Thread Ali Tofigh
Hi everyone,

I love the CONTENTS visibility state for my org documents. But when I
visit headings and use TAB to expand them revealing the text they
contain, I want to be able to fold some of them back and show only the
subheadings (all sublevels). Is there a way of accomplishing this? I
can't find it in the manual.

Cheers,
/Ali


___
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-footnote): Added missing group definition and typos.

2010-04-26 Thread Mikael Fornius
---
 lisp/org-footnote.el |9 +++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el
index 84cd7b3..0f7168b 100644
--- a/lisp/org-footnote.el
+++ b/lisp/org-footnote.el
@@ -65,6 +65,11 @@
   (org-re ^\\(\\[\\([0-9]+\\|fn:[-_[:word:]]+\\)\\]\\))
   Regular expression matching the definition of a footnote.)
 
+(defgroup org-footnote nil
+  Footnotes in Org-mode.
+  :tag Org Footnote
+  :group 'org)
+
 (defcustom org-footnote-section Footnotes
   Outline heading containing footnote definitions before export.
 This can be nil, to place footnotes locally at the end of the current
@@ -75,7 +80,7 @@ automatically, i.e. when creating the footnote, and when 
sorting the notes.
 However, by hand you may place definitions *anywhere*.
 If this is a string, during export, all subtrees starting with this
 heading will be removed after extracting footnote definitions.
-  :group 'org-footnotes
+  :group 'org-footnote
   :type '(choice
  (string :tag Collect footnotes under heading)
  (const :tag Define footnotes locally nil)))
@@ -87,7 +92,7 @@ as in Org-mode.  Outside Org-mode, new footnotes are always 
placed at
 the end of the file.  When you normalize the notes, any line containing
 only this tag will be removed, a new one will be inserted at the end
 of the file, followed by the collected and normalized footnotes.
-  :group 'org-footnotes
+  :group 'org-footnote
   :type 'string)
 
 (defcustom org-footnote-define-inline nil
-- 
1.7.0.2



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

2010-04-26 Thread Matt Lundin
Hi Ali,

Ali Tofigh alix.tof...@gmail.com writes:

 What really feels unsatisfactory to me is that only headlines can be
 TODO items. I want to be able to insert TODO items in the middle of a
 section. I've looked at the inline-tasks add-on, but that doesn't
 really do it for me... 

Could you please elaborate?

 Anyway, I understand that the way org-mode is implemented right now,
 it would be very impractical to try to add non-headline TODO-items. In
 any case, org has simplified my life, even before I've optmized the
 way I use it. It's great!

Here's one quick hack to search for non-headline todo items (i.e.,
checkboxes):

C-c a / \[ \] [RET]

This will generate a list of all open list items, such as,

 - [ ] Review this idea

Best,
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


[Orgmode] Re: 'habit' with DEADLINE-style advance warning loses its graph

2010-04-26 Thread Mikael Fornius

I never use both SCHEDULED and DEADLINE in the same entry but it looks
like it works as you wish, try this:

--8---cut here---start-8---
** TODO Send query habit/DEADLINE/graph query
   SCHEDULED: 2010-04-26 Mon .+1m
   DEADLINE: 2010-04-26 Mon .+1m -15d
--8---cut here---end---8---

I get advance deadline warning and habit graph on scheduled time.

Hope this helps, org-habit rocks! :)


My (org-version)
Org-mode version 6.35trans (release_6.35g.179.g3644d)

and (emacs-version)
GNU Emacs 23.1.92.1 (i686-pc-linux-gnu, GTK+ Version 2.18.7)
 of 2010-02-23 on eee

-- 
Mikael Fornius


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

2010-04-26 Thread David Frascone
On Mon, Apr 26, 2010 at 5:20 AM, Sebastian Rose sebastian_r...@gmx.dewrote:

 David Frascone d...@frascone.com writes:
  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 :)


 M-x customize-group RET org-publish RET


 See the last two entries on that page.

 Set the Org Publish Timestamp Directory and Org Publish use
 Timestamps Flag to `on'.

 From now on, Org-mode will publish only files, that changed since the
 last time you published.


Those are both already set.  Currently, I'm only using one file.  I'm not
sure how to use multiples yet (sorry . . such a n00b) :)

I was hoping to report based on changed bullets in the same file.

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

2010-04-26 Thread David Frascone
On Mon, Apr 26, 2010 at 10:58 AM, Matt Lundin m...@imapmail.org wrote:

 David Frascone d...@frascone.com writes:
 
  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 :)

 (info (org) Archiving)

 - Matt


Exactly what I needed -- thnx!
___
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: Limited #+INCLUDE ?

2010-04-26 Thread Dan Davison
Sébastien Vauban wxhgmqzgw...@spammotel.com writes:

 Hi Giles,

 Giles Chamberlin wrote:
 I've been using org-mode for some course work: write an essay about
 your software including the interesting bits, add all source code in an
 appendix.

 #+INCLUDE solves the inclusion of source code files very nicely - I'm 
 guaranteed that my document includes the latest versions, type set as I
 wish.

 Unfortunately at the moment I'm cutting and pasting the snippets of
 interesting code into the body of the essay.  What I'd like to do is
 be able to label interesting regions of code in the source file and then
 import the labelled blocks into my essay. Is there a way of doing this?

 Have a look at Org-Babel.

 Though, it means your source code would be *inside* your Org document, and you
 would have to tangle it (generate it) from there.

 Seb

I'm considering investigating the following and would appreciate
comments on this idea. The aim is to make it easier to use Org-mode to
work pure code files which are *external to Org-mode* (i.e. this
proposal lies outside of the current org-babel tangling framework).

- Extend Org file links to allow links to a range of lines in a
  file. The syntax could be
  [[file:/path/to/file::from::to][linkname]]

- These links will bring up a buffer visiting the target file, narrowed
  to the target region.

- The link back in the Org-mode file can be adjusted from the target
  file, by widening and then narrowing again. (During this procedure the
  target region would be highlighted.)

- Export to HTML and LaTeX will have the ability to include the target
  regions, fontified according to the appropriate major-mode, similar to
  how begin_src blocks behave on export.

- 'from' and 'to' could be line numbers, or regexps for text search.

For programmers, this would allow a sort of org-mode mediated literate
programming in projects where it is not feasible/desirable to actually
include the source code in the org-mode file.

Any comments or suggestions?

Dan


___
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] remember templates

2010-04-26 Thread Sean Sieger
I've have tried, but gotta ask, is it possible to write a template that
will prepend

* mmdd

to an Org file?  So many of my Org files---journal, WORKSHEET(s), and so
on, are written `backward' and I'd so like to do that orgamagically.



___
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: Gmane readers - please subscribe

2010-04-26 Thread Mikael Fornius

Thanks Carsten for this good advice!

I already use the setup with gmane and a mail list subscription without
mail delivery and it works great.


A tip:

To easily(?) subscribe to the list and set the option to note receive
mail.

1. Send a subscription request to the lists request-address.

--8---cut here---start-8---
To: emacs-orgmode-requ...@gnu.org
Subject: subscribe
--8---cut here---end---8---

2. Receive confirmation mail.

3. Send back confirmation code.

--8---cut here---start-8---
To: emacs-orgmode-requ...@gnu.org
Subject: confirm x
--8---cut here---end---8---

4. Receive welcome message and password.

5. Send delivery setting.

--8---cut here---start-8---
To: emacs-orgmode-requ...@gnu.org
Subject:
set authenticate received password
set delivery off
--8---cut here---end---8---

6. Receive results, DONE! :-)

Of course you can do it in the web interface also...
   
/mfo (one of the listadmins)

-- 
Mikael Fornius


___
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: remember templates

2010-04-26 Thread Mikael Fornius
Sean Sieger sean.sie...@gmail.com writes:

 I've have tried, but gotta ask, is it possible to write a template that
 will prepend

 * mmdd

I am not sure if I understand correctly but you can use something like

%(format-time-string %Y%m%d)

in the remember template? 

-- 
Mikael Fornius


___
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: reqall

2010-04-26 Thread Bernt Hansen
charles snyder clsny...@gmail.com writes:

 I have a setup to sync my reqall online data via rss feed with
 orgmode. Some of the reqall data has dates, but it stores them
 as [2006-11-01 Wed] - which is the 'inactive time stamp' form for
 orgmode and therefore doesn't show up in the agenda view. Is there a
 simply command I can put in my .emacs which will force the agenda view
 to include this type of brackets? I really don't use the inactive time
 stamp brackets for anything else.

Hi Charles,

I think you can just set the variable
(setq org-agenda-include-inactive-timestamps t)

Regards,
Bernt



___
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: CONTENTS visibility for subtrees

2010-04-26 Thread Bernt Hansen
Ali Tofigh alix.tof...@gmail.com writes:

 Hi everyone,

 I love the CONTENTS visibility state for my org documents. But when I
 visit headings and use TAB to expand them revealing the text they
 contain, I want to be able to fold some of them back and show only the
 subheadings (all sublevels). Is there a way of accomplishing this? I
 can't find it in the manual.

TAB both folds and unfolds.  You can use S-TAB to do this globally
getting back to your contents view.

HTH,
Bernt


___
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: CONTENTS visibility for subtrees

2010-04-26 Thread Stephan Schmitt

or try C-c C-k (org-kill-note-or-show-branches) on a folded heading.

Bernt Hansen wrote:

Ali Tofigh alix.tof...@gmail.com writes:


Hi everyone,

I love the CONTENTS visibility state for my org documents. But when I
visit headings and use TAB to expand them revealing the text they
contain, I want to be able to fold some of them back and show only the
subheadings (all sublevels). Is there a way of accomplishing this? I
can't find it in the manual.


TAB both folds and unfolds.  You can use S-TAB to do this globally
getting back to your contents view.

HTH,
Bernt


___
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: Renumber HTML ordered lists from org-mode?

2010-04-26 Thread Baoqiu Cui
Hi Carsten,

Attached please find the patch to support this new feature in the
DocBook exporter:

diff --git a/lisp/org-docbook.el b/lisp/org-docbook.el
index bb8d048..d7ea4b7 100644
--- a/lisp/org-docbook.el
+++ b/lisp/org-docbook.el
@@ -533,7 +533,7 @@ publishing directory.
 	 table-buffer table-orig-buffer
 	 ind item-type starter didclose
 	 rpl path attr caption label desc descp desc1 desc2 link
-	 fnc item-tag
+	 fnc item-tag initial-number
 	 footref-seen footnote-list
 	 id-file
 	 )
@@ -998,7 +998,11 @@ publishing directory.
 		starter (if (match-beginning 2)
 (substring (match-string 2 line) 0 -1))
 		line (substring line (match-beginning 5))
-		item-tag nil)
+		item-tag nil
+		initial-number nil)
+	  (if (string-match \\`...@start:\\([0-9]+\\)\\][ \t]? line)
+		  (setq initial-number (match-string 1 line)
+			line (replace-match  t t line)))
 	  (if (and starter (string-match \\(.*?\\) ::[ \t]* line))
 		  (setq item-type d
 			item-tag (match-string 1 line)
@@ -1031,7 +1035,18 @@ publishing directory.
 		(org-export-docbook-close-para-maybe)
 		(insert (cond
 			 ((equal item-type u) itemizedlist\nlistitem\n)
-			 ((equal item-type o) orderedlist\nlistitem\n)
+			 ((equal item-type o)
+			  ;; Check for a specific start number.  If it
+			  ;; is specified, we use the ``override''
+			  ;; attribute of element listitem to pass the
+			  ;; info to DocBook.  We could also use the
+			  ;; ``startingnumber'' attribute of element
+			  ;; orderedlist, but the former works on both
+			  ;; DocBook 5.0 and prior versions.
+			  (if initial-number
+			  (format orderedlist\nlistitem override=\%s\\n
+  initial-number)
+			orderedlist\nlistitem\n))
 			 ((equal item-type d)
 			  (format variablelist\nvarlistentryterm%s/termlistitem\n item-tag
 		;; For DocBook, we need to open a para right after tag


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

 On Feb 11, 2010, at 12:14 AM, Uriel Avalos wrote:

 In HTML, one way of renumbering OL lists is to use start. (Ex: ol
 start=13.../ol restarts the numbering at 13.)

 Is there anyway to do that from within org-mode without hacking the
 exported HTML file?

 Is there a +ATTR_HTML:  planned for OL and UL lists?

 This has taken a long time.  I have not done an ATTR_, but you
 can now write

1. [...@start:20] item number 20

 to have a list start at 20.

 Currently this works in Org-mode itself to change the list with
 a different counter, and for the HTML, LaTeX, and ASCII
 exporters.  I hope that it can also be translated for the docbook
 exporter.

Thanks,

-- 
Baoqiu
___
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: CONTENTS visibility for subtrees

2010-04-26 Thread Ali Tofigh
On Mon, Apr 26, 2010 at 17:26, Bernt Hansen be...@norang.ca wrote:
 Ali Tofigh alix.tof...@gmail.com writes:

 Hi everyone,

 I love the CONTENTS visibility state for my org documents. But when I
 visit headings and use TAB to expand them revealing the text they
 contain, I want to be able to fold some of them back and show only the
 subheadings (all sublevels). Is there a way of accomplishing this? I
 can't find it in the manual.

 TAB both folds and unfolds.  You can use S-TAB to do this globally
 getting back to your contents view.

True, but TAB on a headline will not give you the CONTENTS visibility
for a subtree, i.e, using TAB on a heading never gets to a point where
only the subheadings are shown. And S-TAB is global, while I want
something local: I don't want to fold all the trees that I have
previously opened.

As an example:

* H1
** H11
** H12
* H2
** H21
** H22

First, I want to see the text under H1 so I use TAB on it. Then I want
to see the text on H2 so I use TAB on that. Now I want to basically
undo my use of TAB: I want to fold H2 so that I can still see the
subheadings (H21 and H22) but no text, and I want to keep the
visibility state of H1 intact.

Cheers,
/Ali


___
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: CONTENTS visibility for subtrees

2010-04-26 Thread Ali Tofigh
On Mon, Apr 26, 2010 at 17:36, Stephan Schmitt drmab...@cs.tu-berlin.de wrote:
 or try C-c C-k (org-kill-note-or-show-branches) on a folded heading.

Thanks. I believe this does the trick.

/Ali


___
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] M-Right and M-Left behave differently on headings and list items

2010-04-26 Thread Matti De Craene
Thank you Carsten!

-- 
I think I noticed one small bug - possibly introduced by this change.

Minimal example:

* test
  - item a
  - item b

Then:
M-Right / M-left is not possible on list item b, if that item is on
the last line of the org file. (M-S-Left/Right are possible)

Kind Regards,

Matti


On Fri, Apr 23, 2010 at 10:26 AM, Carsten Dominik
carsten.domi...@gmail.com wrote:

 On Apr 22, 2010, at 12:15 PM, Bastien wrote:

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

 Excellent question.  I think the cleanest would be that M-left/right
 on a folded item that does have children throws an error.

 +1


 This is how it now works.


 --
 Bastien

 - 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] Re: Gmane readers - please subscribe

2010-04-26 Thread Ben Finney
Carsten Dominik carsten.domi...@gmail.com writes:

 If you are reading emacs-orgmode.org through gmane, please read this
 new FAQ to help take load off the maintainers.

 http://orgmode.org/worg/org-faq.php#ml-subscription-and-gmane

A large part of my reason for reading via Gmane is to avoid yet another
set of authentication credentials. Especially one that I never use;
that's a security nightmare waiting to happen. So I'm not interested in
increasing my security exposure by making a Mailman account on yet
another site.

While I appreciate that administrators would prefer that Gmane readers
subscribe, I think their chosen mailing list administration system is
not helping their cause. (No, I don't have a better one to suggest.)

-- 
 \ “As we enjoy great advantages from the inventions of others, we |
  `\  should be glad to serve others by any invention of ours; and |
_o__) this we should do freely and generously.” —Benjamin Franklin |
Ben Finney



___
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: Limited #+INCLUDE ?

2010-04-26 Thread Mark Elston

On 4/26/2010 12:40 PM, Dan Davison wrote:


I'm considering investigating the following and would appreciate
comments on this idea. The aim is to make it easier to use Org-mode to
work pure code files which are *external to Org-mode* (i.e. this
proposal lies outside of the current org-babel tangling framework).

- Extend Org file links to allow links to a range of lines in a
   file. The syntax could be
   [[file:/path/to/file::from::to][linkname]]

- These links will bring up a buffer visiting the target file, narrowed
   to the target region.

- The link back in the Org-mode file can be adjusted from the target
   file, by widening and then narrowing again. (During this procedure the
   target region would be highlighted.)

- Export to HTML and LaTeX will have the ability to include the target
   regions, fontified according to the appropriate major-mode, similar to
   how begin_src blocks behave on export.

- 'from' and 'to' could be line numbers, or regexps for text search.

For programmers, this would allow a sort of org-mode mediated literate
programming in projects where it is not feasible/desirable to actually
include the source code in the org-mode file.

Any comments or suggestions?

Dan


Dan,

The use of line numbers seems a little error prone since line numbers
can change dramatically by simply editing the file.  If you edit one
section of a file, even if you update the line numbers for that
section, you will need to search out all the *other* links to sections
in that file and update them as well as they will become stale.  And,
since it will be possible to have multiple org files with links into a
single source file, this will be a *very* difficult thing to manage.

Your idea about regexps sounds promising, though.  You could define
'markers' in comments delimiting the relevant sections of code and
org could search these out easily enough.

Mark


___
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: Limited #+INCLUDE ?

2010-04-26 Thread Dan Davison
Mark Elston m_els...@comcast.net writes:

 On 4/26/2010 12:40 PM, Dan Davison wrote:

 I'm considering investigating the following and would appreciate
 comments on this idea. The aim is to make it easier to use Org-mode to
 work pure code files which are *external to Org-mode* (i.e. this
 proposal lies outside of the current org-babel tangling framework).

 - Extend Org file links to allow links to a range of lines in a
file. The syntax could be
[[file:/path/to/file::from::to][linkname]]

 - These links will bring up a buffer visiting the target file, narrowed
to the target region.

 - The link back in the Org-mode file can be adjusted from the target
file, by widening and then narrowing again. (During this procedure the
target region would be highlighted.)

 - Export to HTML and LaTeX will have the ability to include the target
regions, fontified according to the appropriate major-mode, similar to
how begin_src blocks behave on export.

 - 'from' and 'to' could be line numbers, or regexps for text search.

 For programmers, this would allow a sort of org-mode mediated literate
 programming in projects where it is not feasible/desirable to actually
 include the source code in the org-mode file.

 Any comments or suggestions?

 Dan

 Dan,

 The use of line numbers seems a little error prone since line numbers
 can change dramatically by simply editing the file.  If you edit one
 section of a file, even if you update the line numbers for that
 section, you will need to search out all the *other* links to sections
 in that file and update them as well as they will become stale.  And,
 since it will be possible to have multiple org files with links into a
 single source file, this will be a *very* difficult thing to manage.

Hi Mark,


 Your idea about regexps sounds promising, though.

My current thought is that Emacs bookmarks might be the technology to
use here. They seem to be designed for this task (saving a reference to
a location in a file which is robust to mild file alteration), they are
almost 20 years old, and there is already org-bookmarks.el in contrib by
Tokuya Kameshima[1].

(info (emacs) Bookmarks)

  You could define
 'markers' in comments delimiting the relevant sections of code and
 org could search these out easily enough.

My hope was to avoid forcing the target files to receive extra
Org-related content. E.g. suppose that the target files are a
collaborative project involving non-Org users that is under version
control; one wouldn't want to commit those special tags, and one
wouldn't particularly want to have to filter them out them when making
commits.

Dan

[1] I haven't looked into this properly, but to avoid staleness one
possibility would be to modify Tokuya's links to actually include the
lisp form defining the bookmark (i.e. the entry in bookmark-alist) in
the non-visible portion of the link (?). My proposed range links would
employ two bookmarks.





 Mark


 ___
 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: Bug: create latex png while export to HTML become very slow [6.35i]

2010-04-26 Thread Nick Dokos
Carsten Dominik carsten.domi...@gmail.com wrote:

 Nick,
 
 do you have time to do the following exercise?
 
 Remove the entries in org-export-latex-default-packages-alist
 one by one to see which packages are the worst offenders?
 
 That would be a great help.
 

Carsten,

hyperref is the culprit: without it, the time for org-export-as-html
drop from about 9-9.5s to about 3.8s. I also tried a couple of combinations
(omit hyperref and inputenc, hyperref and inputenc and \tolerance) but the
difference there is in the noise. 


| Package omitted| Time for org-export-as-html |
|+-|
| none (before)  |   13.49 |
| amssymb|9.13 |
| latexsym   |9.33 |
| wasysym|9.32 |
| marvosym   |9.32 |
| textcomp   |9.25 |
| t1enc  |9.43 |
| soul   |9.30 |
| wrapfig|9.48 |
| float  |9.65 |
| longtable  |9.53 |
| graphicx   |9.45 |
| fixltx2e   |9.45 |
| hyperref   |3.84 |
| fontenc|9.59 |
| inputenc   |9.08 |
| \tolerance |9.07 |
| none (after)   |9.68 |
| none (after - 2nd) |9.77 |


The first none entry probably takes longer because of cold caches. The
none entries at the end of the table are more typical (and also give
an idea of typical variances). I repeated the no-hyperref measurement a
few times just to make sure: it always was around 3.8s. The rest of the
times are single-shot.

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