[Orgmode] org-protocol

2010-07-26 Thread Richard Riley

I'm trying to get FF working with org again -

http://orgmode.org/worg/org-contrib/org-protocol.php

It says 

,
|1. Type about:config into the location bar and press enter.
|2. Click I'll be careful, I promise! to continue.
|3. Right-click on the grid
|4. Choose New - String from the context menu.
|5. Enter network.protocol-handler.app.org-protocol as the properties 
name.
|6. Click OK.
|7. Leave the value blank.
|8. Next time you try to open a location org-protocol://... FF will ask 
you for the program to use. Enter the path to emacsclient.
`

It doesnt prompt me for a program. Is this uptodate or is there a better
step by step guide? 

(I used to have this working but a forced firefox reinstall has
corrupted it).

thanks

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


[Orgmode] Re: Small patch to restrict syntactic context where [[links]] are active

2010-07-26 Thread Paul Sexton
Paul Sexton psexton at xnet.co.nz writes:


Unfortunately this doesn't seem to work as well as I thought. For some reason 
when org-bracket-link-context-ok is called, (point) is not at the end of the
link, despite the fact that the docs for re-search-forward state that is where
the point should be. Without a way to get the position at the end of the match,
the context stuff does not work correctly.

(the stuff activating org links outside org mode still works however.)




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


[Orgmode] Re: org-protocol

2010-07-26 Thread Richard Riley
Richard Riley rile...@gmail.com writes:

 I'm trying to get FF working with org again -

 http://orgmode.org/worg/org-contrib/org-protocol.php

 It says 

 ,
 |1. Type about:config into the location bar and press enter.
 |2. Click I'll be careful, I promise! to continue.
 |3. Right-click on the grid
 |4. Choose New - String from the context menu.
 |5. Enter network.protocol-handler.app.org-protocol as the properties 
 name.
 |6. Click OK.
 |7. Leave the value blank.
 |8. Next time you try to open a location org-protocol://... FF will ask 
 you for the program to use. Enter the path to emacsclient.
 `

 It doesnt prompt me for a program. Is this uptodate or is there a better
 step by step guide? 


Despite having 3.5, the instructions for getting the app registered
didnt work for some reason (iceweasel?). Anyway, the gconftool method
worked.


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


[Orgmode] Re: org-protocol

2010-07-26 Thread Thierry Volpiatto
Richard Riley rile...@gmail.com writes:

 Richard Riley rile...@gmail.com writes:

 I'm trying to get FF working with org again -

 http://orgmode.org/worg/org-contrib/org-protocol.php

 It says 

 ,
 |1. Type about:config into the location bar and press enter.
 |2. Click I'll be careful, I promise! to continue.
 |3. Right-click on the grid
 |4. Choose New - String from the context menu.
 |5. Enter network.protocol-handler.app.org-protocol as the properties 
 name.
 |6. Click OK.
 |7. Leave the value blank.
 |8. Next time you try to open a location org-protocol://... FF will 
 ask you for the program to use. Enter the path to emacsclient.
 `

 It doesnt prompt me for a program. Is this uptodate or is there a better
 step by step guide? 


 Despite having 3.5, the instructions for getting the app registered
 didnt work for some reason (iceweasel?). Anyway, the gconftool method
 worked.
You can use firefox-protocol.el from
http://mercurial.intuxication.org/hg/emacs-bookmark-extension/

M-x firefox-protocol-installer-install

Don't know if it work with iceweasel, but i have set many protocols here
in firefox without any failures.

You will find a documentation file bookmark-extensions-documentation.rst.
 
-- 
Thierry Volpiatto
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 


___
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: Finding old appointments

2010-07-26 Thread Tassilo Horn
Matt Lundin m...@imapmail.org writes:

 Well, basically I'm just looking for a search facility that shows me
 an agenda view with all entries that contain only timestamps before
 today and no pending todos, so that I can use the agenda commands to
 act on them.  Some will be deleted, others archived.

 Here's an example of an agenda view that would bring up all old,
 active timestamps marked DONE:

 C-c a m [RET] TIMESTAMPtoday+TODO=DONE

Oh, nice.  I've never use this search, but it is very useful.  Simply by
searching for a timestamp before today does already help me.

Additionally, playing around with it helped me being even more
specific.  So what I want to get is an agenda with

  - headlines that contain only past timestamps and are closed TODOs (if
they are TODOs), that is, any TODO state after the | in
`org-todo-keywords'

  - the same applies to all children of that entry, recursively

  - the agenda should only list the top-most entries for which these
properties hold

Example:

* Project X
** TODO foo
   SCHEDULED: 2010-06-22 Tue
** Bla bla bla
*** DONE baz
DEADLINE: 2010-06-01 Tue
*** Meeting with Hugo
2010-06-04 Fri

So in that case, the search should list only the Bla bla bla entry,
because it's the top-most entry where all children are past and done.
The TODO foo is not recognized, because although its timestamp is in
the past, it has an open TODO state.  (And because of that, the parent
of both entries Project X doesn't match the search criteria.)

 (If I understand the question correctly...) The variable
 org-stuck-projects (see the docstring) can be tweaked to identify
 subtrees that match your criteria.

Although I don't use the stuck projects functionality right now, I don't
want to abuse it for something different.

 A custom skip function might also be useful here. 

 (info (org) Special agenda views)

Thanks, I'll read that up.

Bye,
Tassilo


___
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] Bug: possible bug in latex export [7.01trans (release_6.36.735.g15ca.dirty)]

2010-07-26 Thread Stephen Eglen
Thanks David, and apologies for not checking the archives.  I'll put
bugfixing it my todo list!

Stephen

___
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: Finding old appointments

2010-07-26 Thread David Maus
Tassilo Horn wrote:
Matt Lundin m...@imapmail.org writes:

 Well, basically I'm just looking for a search facility that shows me
 an agenda view with all entries that contain only timestamps before
 today and no pending todos, so that I can use the agenda commands to
 act on them.  Some will be deleted, others archived.

 Here's an example of an agenda view that would bring up all old,
 active timestamps marked DONE:

 C-c a m [RET] TIMESTAMPtoday+TODO=DONE

Oh, nice.  I've never use this search, but it is very useful.  Simply by
searching for a timestamp before today does already help me.

Additionally, playing around with it helped me being even more
specific.  So what I want to get is an agenda with

  - headlines that contain only past timestamps and are closed TODOs (if
they are TODOs), that is, any TODO state after the | in
`org-todo-keywords'

  - the same applies to all children of that entry, recursively

This is quite simple: The function returns non-nil if an entry is
active (recursion \o/):

(defun dmj/org-entry-is-active-p ()
  Return non-nil if entry is active.
An entry is considered to be active if it has an active timestamp
in the future or an open TODO keyword or at least one active child.
  (save-excursion
(beginning-of-line)
(let ((children (delq nil (org-map-entries
   'dmj/org-entry-is-active-p
   (format LEVEL%d (org-outline-level))
   'tree)))
  (timestamp (org-entry-get nil TIMESTAMP)))
  (or (org-entry-is-todo-p)
children
(and timestamp (time-less-p (current-time) (org-time-string-to-time 
timestamp)))

  - the agenda should only list the top-most entries for which these
properties hold

This is the tougher part: Because the state of an entry
(active/inactive) depends on its children the function that finally
displays the entries must first obtain the state of the entries and
their relationships and then remove all inactive entries whose
(grand,grand...)parents are inactive.

Sounds like you would require a a user-defined agenda function in
`org-agenda-custom-commands'.


HTH,
  -- David

--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgpW4a6hV4Dtd.pgp
Description: PGP 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] Re: Finding old appointments

2010-07-26 Thread Tassilo Horn
David Maus dm...@ictsoc.de writes:

Hi David,

  - headlines that contain only past timestamps and are closed TODOs (if
they are TODOs), that is, any TODO state after the | in
`org-todo-keywords'

  - the same applies to all children of that entry, recursively

 This is quite simple: The function returns non-nil if an entry is
 active (recursion \o/):

 (defun dmj/org-entry-is-active-p ()
   Return non-nil if entry is active.
 An entry is considered to be active if it has an active timestamp
 in the future or an open TODO keyword or at least one active child.
   (save-excursion
 (beginning-of-line)
 (let ((children (delq nil (org-map-entries
  'dmj/org-entry-is-active-p
  (format LEVEL%d (org-outline-level))
  'tree)))
 (timestamp (org-entry-get nil TIMESTAMP)))
   (or (org-entry-is-todo-p)
   children
   (and timestamp (time-less-p (current-time) (org-time-string-to-time 
 timestamp)))

Looks good. :-)

  - the agenda should only list the top-most entries for which these
properties hold

 This is the tougher part: Because the state of an entry
 (active/inactive) depends on its children the function that finally
 displays the entries must first obtain the state of the entries and
 their relationships and then remove all inactive entries whose
 (grand,grand...)parents are inactive.

 Sounds like you would require a a user-defined agenda function in
 `org-agenda-custom-commands'.

Yes, that's most likely.  I'll dig into that further when I find some
spare time.  Thanks a lot for providing this starting point for me.

Bye,
Tassilo


___
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] row and col spaning in table?

2010-07-26 Thread David Hajage
Hello,

I think org-mode is a very great tool. I use a lot of tables in my documents
produced with org, and I was wondering if row and col spaning was possible?
If not, is there any plan to add this feature in a future release? So that
this kind of tables work:

|---+---+-+---+---+---+---+---+--|
| | agegp|
| +---+---+---+---+---+--|
| | 25-34 | 35-44 | 45-54 | 55-64 | 65-74 | 75+  |
|===+===+=+===+===+===+===+===+==|
| alcgp | 0-39g/day | n   | 4 | 4 | 4 | 4 | 4 | 3|
|   +   +-+---+---+---+---+---+--|
|   |   | col | 0.27  | 0.27  | 0.25  | 0.25  | 0.27  | 0.27 |
|   +---+-+---+---+---+---+---+--|
|   | 40-79 | n   | 4 | 4 | 4 | 4 | 3 | 4|
|   +   +-+---+---+---+---+---+--|
|   |   | col | 0.27  | 0.27  | 0.25  | 0.25  | 0.20  | 0.36 |
|   +---+-+---+---+---+---+---+--|
|   | 80-119| n   | 3 | 4 | 4 | 4 | 4 | 2|
|   +   +-+---+---+---+---+---+--|
|   |   | col | 0.20  | 0.27  | 0.25  | 0.25  | 0.27  | 0.18 |
|   +---+-+---+---+---+---+---+--|
|   | 120+  | n   | 4 | 3 | 4 | 4 | 4 | 2|
|   +   +-+---+---+---+---+---+--|
|   |   | col | 0.27  | 0.20  | 0.25  | 0.25  | 0.27  | 0.18 |
|---+---+-+---+---+---+---+---+--|

I know this is not a small request, and I don't know how to adapt
spreadsheet capabilities to that kind of table, but...

Thank you very much.
David
___
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] Footnotes: paragraph definition, section name

2010-07-26 Thread Stefan Vollmar
Hi,

I am using org-mode version 7.01g and I have just come across some problems 
with footnotes.

(1) I have a paragraph that after applying fill-paragraph (M-Q) contains these 
lines:

...
automated tests that work across a range of very different operating
systems and hardware acquire a different level of quality
[fn:Turku2008Vinci]. This approach also reflects the current IT
infrastructure at our institute [...]

The problem here is that [fn:Turku2008Vinci] is supposed to be a named footnote 
reference, however, Org-mode interprets it as a footnote definition (it starts 
in column 0 after a newline). The current documentation says:

[...] footnote is defined in a paragraph that is started by a footnote marker 
in square brackets in column 0, no indentation allowed.

So it depends on the definition of paragraph - this might be different for 
different approaches of Line Wrapping - whether line breaks use newline 
characters or soft returns. This problem might be solved if a footnote 
defintion would require one empty line before the definition?

(2) If I set org-footnote-section to References and have a References 
heading, in HTML export that heading vanishes and I get a Footnotes: section 
instead. How can I have References instead of Footnotes:?

Many thanks in advance.
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


Re: [Orgmode] Re: Behavior of Gnus when called from an hyperlink

2010-07-26 Thread David Maus
Tassilo Horn wrote:
Sébastien Vauban wxhgmqzgw...@spammotel.com
writes:

 This is the point where I conclude that there can't be done anything
 about it except modifying Gnus' cache mechanism.[2]

 Do you think that would happen?  Are there people aware of this, and
 willing to do such a change?

I'm not sure, but I think the gnus registry caches message-ids and other
information.  Maybe, that could speed things up a bit.

After toying arround with Gnus at the weekend: Yes, there is .overview
in ~/News/agent/nnimap/host/mailbox/ that contains UIDs and (among
others) the message-id header.  However it seems like there is no
function in gnus-cache.el to query the UID (message number) for a
given message-id.

A hacky solution could be to do the lookup manually in org-gnus.el: If
the backend is nnimap and this cache file exists and a customization
variable `org-gnus-foo' is set, open the file and try to find the UID
for this message-id.

Best,
  -- David
-- 
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgp0i9hW9pqgz.pgp
Description: PGP 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] org-mobile-create-sumo-agenda might be the culprit?

2010-07-26 Thread Michael Gilbert
Hi —

I wrote a message to the list recently about mobileorg failing to generate 
files to sync. I have a little more detail. A hunch really, since I am not 
savvy in Lisp at all. But it looks to me like org-mobile.el is getting to 
org-mobile-create-sumo-agenda and then stopping. There is no error message, but 
I think somehow that's where it stops.

I have one custom agenda of any important (I believe Carsten in fact wrote it 
for an earlier request I have):

(setq org-agenda-custom-commands
 '((d Due today agenda 
((org-deadline-warning-days 0)
 (org-agenda-skip-scheduled-if-deadline-is-shown t)
 (org-agenda-skip-function
  (lambda ()
(let* ((dl (org-entry-get nil DEADLINE)))
  (if (or (not dl)
  (equal dl )
  (org-time dl (org-time-today)))
  (progn (outline-next-heading) (point
  (I Import diary from iCal agenda 
 ((org-agenda-mode-hook
   (lambda ()
 (org-mac-iCal)
)
  ;; ...other commands here
   )



Am I on the right track? Any advice?

— Michael







My earlier message:

My goal was to make the initial connection with the App on my phone. I'm using 
Dropbox and my startup file includes:

(setq org-mobile-inbox-for-pull ~/OrgMode/Flagged.org)
(setq org-mobile-directory ~/Documents/Dropbox/MobileOrg)

I run M-x org-mobile-push  and it seems to do something. But no files are 
pushed to the MobileOrg folder. I set debug-on-error and I get no error. I've 
reloaded .el files.

Any advice? Next steps?  

TIA.



___
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: [BABEL] Output with octave

2010-07-26 Thread d . tchin
Eric S Fraga ucecesf at ucl.ac.uk writes:

 
 I don't think you are missing anything obvious as for the :results
 value case, I get the same thing.  In fact, for :results output, I
 don't actually get any output!  I'm not sure why.  I wonder if there
 is a dependence on the version of Octave?  I'm using a fairly old
 version (3.0.x instead of 3.2.x).
 

I use following version of Octave : 

GNU Octave, version 3.2.0
Copyright (C) 2009 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Octave was configured for i686-pc-mingw32.



___
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: [PATCH] org-export-generic, quot; text markupquot; -- and a request

2010-07-26 Thread Robert Goldman
FWIW, I have a number of substantial modifications to org-export-generic that
fix its original inability to handle typefaces across line boundaries.

However, my understanding is that all patches for org-export-generic wait on Wes
Hardaker to approve them.

If this would be a good time, I can ship the patches again.

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


[Orgmode] Re: Behavior of Gnus when called from an hyperlink

2010-07-26 Thread Tassilo Horn
David Maus dm...@ictsoc.de writes:

Hi David,

I'm not sure, but I think the gnus registry caches message-ids and
other information.  Maybe, that could speed things up a bit.

 After toying arround with Gnus at the weekend: Yes, there is .overview
 in ~/News/agent/nnimap/host/mailbox/ that contains UIDs and (among
 others) the message-id header.  However it seems like there is no
 function in gnus-cache.el to query the UID (message number) for a
 given message-id.

If that is true, I'd go and ask the Gnus devs for the reason.  Maybe in
most cases querying the server is faster than processing the .overview
file...

 A hacky solution could be to do the lookup manually in org-gnus.el: If
 the backend is nnimap and this cache file exists and a customization
 variable `org-gnus-foo' is set, open the file and try to find the UID
 for this message-id.

Well, as a last resort that could be done, but I'm in favor of
delegating the issue to the Gnus devs.  The problem will bite you in
normal Gnus usage, too.  (Ok, at least when searching for/restricting
with a given message id.  Scoring is also a candidate using
message-ids.)

Do you want to raise a question at d...@gnus.org, or should I do this
evening?

Bye,
Tassilo


___
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: Composing letters using org-mode and scrlttr2

2010-07-26 Thread Srinivas

   If there is some general interest, I could work on making a formal
   patch available.
 


Jambunathan,

I would be interested in such capabilities. I would like to see a sample PDF 
output so that I can see the desired output.

Also, I think it will be useful to see what documents (PDF versions) others 
have produced using org-mode and HTML or LATeX. Perhaps this can go on the Worg 
site.

- Srinivas


___
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: Composing letters using org-mode and scrlttr2

2010-07-26 Thread Bernt Hansen
Jambunathan K kjambunat...@gmail.com writes:

   If there is some general interest, I could work on making a formal
   patch available.

Hi Jambunathan,

I would also be interested in generating business quality letters from
org-mode.  Currently I'm falling back to other applications to
accomplish this efficiently.

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


Re: [Orgmode] Re: Composing letters using org-mode and scrlttr2

2010-07-26 Thread John Hendy
There's a pretty nice example here (seemed like some had not seen
examples?): http://gpl.coulmann.de/scrlttr2.html

http://gpl.coulmann.de/scrlttr2.htmlI think it looks smashing.

On Mon, Jul 26, 2010 at 10:54 AM, Bernt Hansen be...@norang.ca wrote:

 Jambunathan K kjambunat...@gmail.com writes:

If there is some general interest, I could work on making a formal
patch available.

 Hi Jambunathan,

 I would also be interested in generating business quality letters from
 org-mode.  Currently I'm falling back to other applications to
 accomplish this efficiently.

 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

___
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] avoiding source block prompts

2010-07-26 Thread Charles C. Berry


I think this is a new feature or perhaps a bug, which I noticed when 
upgrading to version 7.01.


The newline and the two prompts ' ' in the results block below did not 
show up in the earlier versions I used.


If this is a 'feature', is there a clean way to change this behavior?

If this is a bug, is there a simple patch to fix it?

#+begin_src R :session :results output
### create x
x - rnorm(1)
### now print the result
x
#+end_src

#+results:
:
:   [1] 2.186783


What I would have liked is to have something that looks like this:

#+results:
: [1] 2.186783

Thanks,

Chuck


Charles C. Berry(858) 534-2098
Dept of Family/Preventive Medicine
E mailto:cbe...@tajo.ucsd.edu   UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901



___
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: Behavior of Gnus when called from an hyperlink

2010-07-26 Thread Tassilo Horn
Tassilo Horn tass...@member.fsf.org writes:

 Well, as a last resort that could be done, but I'm in favor of
 delegating the issue to the Gnus devs.  The problem will bite you in
 normal Gnus usage, too.  (Ok, at least when searching for/restricting
 with a given message id.  Scoring is also a candidate using
 message-ids.)

 Do you want to raise a question at d...@gnus.org, or should I do this
 evening?

Ok, I reported the issue on the ding list.

  Message-Id: 201007262042.04971.tass...@member.fsf.org
  Gmane: http://article.gmane.org/gmane.emacs.gnus.general/69829

Bye,
Tassilo


___
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: Composing letters using org-mode and scrlttr2

2010-07-26 Thread Jambunathan K
With reference to my earlier post,
(http://lists.gnu.org/archive/html/emacs-orgmode/2010-07/msg01060.html)

I would like to add the following clarification.


 #+LaTeX_CLASS_OPTIONS: 
 [a4paper,parskip=full,backaddress=off,foldmarks=off,jambu]

All the styling and context-specific information comes from 'jambu' in
the LaTeX_CLASS_OPTIONS line. In this case, jambu is 'an lco file'
that in turn loads DIN.lco. (The later file comes with the standard
distribution)

The patch as such doesn't bother with the styling elements but merely
transforms content from org to scrlttr2 form. To illustrate,

* subject
  Composing letters using org-mode and scrlttr2
  
section in org gets transformed in the final letter into the following
TeX form.

\setkomavar{subject} {
\label{sec-2}
  Sub:- Composing letters using org-mode and scrlttr2
  
}

This is done as part of org-scrlttr2-sectioning defun in my earlier
patch.

Jambunathan K.

--- Input Org file ---

#+TITLE: 
#+AUTHOR:
#+EMAIL:
#+LANGUAGE:
#+TEXT:

#+LaTeX_CLASS_OPTIONS: 
[a4paper,fromalign=right,pagenumber=headmiddle,parskip=full,fromphone=true,fromfax=false,fromrule=false,fromemail=true,subject=afteropening,backaddress=off,foldmarks=off,jambu]

#+OPTIONS: toc:nil 
#+LaTeX_CLASS: scrlttr2

* letter
  Org Mode User Group \\
  World Wide Web
  
* subject
  Sub:- Composing letters using org-mode and scrlttr2
  
* opening
  Dear Org Mode Users

* body
  Lately, I have been composing formal letters using KOMA script's
  sscrlttr2. I found it convenient to have them composed from within
  org-mode. 
  
  I am enclosing the initial set of changes needed to compose some
  simple letters as this one.
  
  The only change that is too 'intrusive' seems to be an extra newline
  which gets added immediately after the emission of labels. These
  extra newlines trigger syntax errors in the closing{} and encl{}
  directives.
  
  I think rest of the changes could be squeeed in through existing
  hooks.

#+BEGIN_EXAMPLE
- (insert (mapconcat (lambda (l) (format \\label{%s} l))
-label-list \n) \n))
+   (insert (mapconcat (lambda (l) (format \\label{%s} l))
+  label-list \n)))
#+END_EXAMPLE 
  
  If there is some general interest, I could work on making a formal
  patch available.

* closing
  Yours Truly

* encl
  Patch from my work-area.

--- Output Tex file ---  

% Created 2010-07-26 Mon 23:19
\documentclass[a4paper,fromalign=right,pagenumber=headmiddle,parskip=full,fromphone=true,fromfax=false,fromrule=false,fromemail=true,subject=afteropening,backaddress=off,foldmarks=off,jambu]{scrlttr2}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{t1enc}
\usepackage{textcomp}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
\usepackage{pdfpages}
\providecommand{\alert}[1]{\textbf{#1}}

\title{}
\author{}
\date{26 July 2010}

\begin{document}

\begin{letter} {
\label{sec-1}
  Org Mode User Group \\
  World Wide Web
  
}

\setkomavar{subject} {
\label{sec-2}
  Sub:- Composing letters using org-mode and scrlttr2
  
}

\opening {
\label{sec-3}
  Dear Org Mode Users
}


\label{sec-4}
  Lately, I have been composing formal letters using KOMA script's
  sscrlttr2. I found it convenient to have them composed from within
  org-mode. 
  
  I am enclosing the initial set of changes needed to compose some
  simple letters as this one.
  
  The only change that is too `intrusive' seems to be an extra newline
  which gets added immediately after the emission of labels. These
  extra newlines trigger syntax errors in the closing\{\} and encl\{\}
  directives.
  
  I think rest of the changes could be squeeed in through existing
  hooks.

\begin{verbatim}
- (insert (mapconcat (lambda (l) (format \\label{%s} l))
-label-list \n) \n))
+   (insert (mapconcat (lambda (l) (format \\label{%s} l))
+  label-list \n)))
\end{verbatim}
  
  If there is some general interest, I could work on making a formal
  patch available.



\closing {
\label{sec-5}
  Yours Truly
}

\encl {
\label{sec-6}
  Patch from my work-area.
}

\end{letter}
\end{document}

___
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] Email from org?

2010-07-26 Thread Ethan Ligon
Over the last three years my projects and daily workflow have come to
depend more and more on org-mode.  A few months ago I took the step of
composing important email as items in an org-file; the heading became
the subject of the email; replies could then fill in the hierarchy
under the heading (reproducing something like threads).

The problem is that the methods I've used to send the message
composed in org-mode and then to assemble the responses have been
entirely crude and unsatisfactory.  There has to be a better way.  In
fact, given my past experience with org-mode, there probably *is* a
better way and I've simply overlooked it.

Vague ideas that have occurred to me:

 - Sending the email might be something like exporting it to smtp?
 - Could org-protocol be useful for acquiring responses?

Thoughts?
-Ethan



___
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] Daily Debian Builds

2010-07-26 Thread Mark A. Hershberger

Using Launchpad's beta “daily build” service, I've made packages of
org-mode and emacs available here:
https://code.launchpad.net/~org-mode/+archive/daily-ppa

Launchpad is still working out the kinks, but it should be able to
provide this pretty consistently for Ubuntu Lucid (which, I think, will
work on Debian).

If you try it, let me know what your experience is so I can improve it.

Mark.

-- 
http://hexmode.com/

Embrace Ignorance.  Just don't get too attached.

___
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] Email from org?

2010-07-26 Thread Thomas S. Dye

Aloha Ethan,

You might want to check out org-mime and the discussion about it  
you'll find in the mailing list archive.  I can verify that this works  
nicely with gnus, though I haven't been able to wean myself from my  
old email habits and use it full time.


All the best,
Tom

On Jul 26, 2010, at 9:13 AM, Ethan Ligon wrote:


Over the last three years my projects and daily workflow have come to
depend more and more on org-mode.  A few months ago I took the step of
composing important email as items in an org-file; the heading became
the subject of the email; replies could then fill in the hierarchy
under the heading (reproducing something like threads).

The problem is that the methods I've used to send the message
composed in org-mode and then to assemble the responses have been
entirely crude and unsatisfactory.  There has to be a better way.  In
fact, given my past experience with org-mode, there probably *is* a
better way and I've simply overlooked it.

Vague ideas that have occurred to me:

- Sending the email might be something like exporting it to smtp?
- Could org-protocol be useful for acquiring responses?

Thoughts?
-Ethan



___
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: Email from org?

2010-07-26 Thread BKnoth

On 7/26/2010 12:13 PM, Ethan Ligon wrote:

Over the last three years my projects and daily workflow have come to
depend more and more on org-mode.  A few months ago I took the step of
composing important email as items in an org-file; the heading became
the subject of the email; replies could then fill in the hierarchy
under the heading (reproducing something like threads).

The problem is that the methods I've used to send the message
composed in org-mode and then to assemble the responses have been
entirely crude and unsatisfactory.  There has to be a better way.  In
fact, given my past experience with org-mode, there probably *is* a
better way and I've simply overlooked it.

Vague ideas that have occurred to me:

  - Sending the email might be something like exporting it to smtp?
  - Could org-protocol be useful for acquiring responses?

Thoughts?
-Ethan



___
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



I got org-mode to send me reminders before appointments via email. I 
wrote it up and put it on my blog, here:


http://myrealtestblog.blogspot.com/2009/12/emailing-alert-before-event-scheduled.html

- Bruce



___
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] Installation - no way

2010-07-26 Thread Lars Labryga
Hi,

I´m totally fascinated by the possibilities of org-mode! But obviously I
lack computer knowledge to install it. Please help! I want to install
org-mode on windows xp and later on windows 7. Up to now, I don´t use Emacs.

Where can I find a tutorial or in which way can I get enough knowledge to
understand the Installation and Activation part of the manual? Preferably,
but not necessarily in german.

Thanks so much for a (quick) reply, I´m really looking forward to it.

Best regards,

Lars Labryga
___
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] word count checklist?

2010-07-26 Thread scrawler
Hey guys,

is it possible to to define a number of words and have a
checklist-type progress-monitor (/ or %) tell you how close
you are to reaching the number?

Just curious--it would come in handy...

-- 

-tom

___
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] word count checklist?

2010-07-26 Thread Eric Schulte
The following org-mode file uses a Babel code block to return the ratio
of the number of words in the current buffer against the word-goal
variable as a percent.

Note that it doesn't take into account the words used in the code block,
so that may be worth adding to the word-goal, or possibly something
fancier could be done, like pushing the code block out into the Library
of Babel, and adding a grep call to the shell script to remove the
#+call line from the file before passing it to wc.

Best -- Eric

--8---cut here---start-8---
* return % num-words/word-goal

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.

#+results: word-goal
: 200

#+begin_src sh :var file=(buffer-file-name) :var goal=word-goal
  echo `wc $file |awk '{print $2}'`00 / $goal|bc
#+end_src

#+results:
: 47
--8---cut here---end---8---

scraw...@gmail.com writes:

 Hey guys,

 is it possible to to define a number of words and have a
 checklist-type progress-monitor (/ or %) tell you how close
 you are to reaching the number?

 Just curious--it would come in handy...

___
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] .ods opens file in Emacs, not OpenOffice

2010-07-26 Thread C64 Whiz
Hello,

I've searched for an answer but can't find a simple one.  I have an
OpenOffice document (.ods) I'd like to link to in my .org files.  So I have
the following syntax:

  [[file:c:/mydata/myfile.ods][File Description]]

When I click on the link in OrgMode, Emacs opens the file and not
OpenOffice.  Yet, when I'm in file explorer (yes, Windows), double clicking
the file does open up Open Office.  So I know the association is there.

I know there is a variable called 'org-file-apps, but I thought the file
system was supposed to handle any extension not known my OrgMode?  If I do
need 'org-file-apps, please provide an example where I may *add* to the list
rather then re-defining the existing list.  I'd hate to re-do associations
OrgMode already made.

Thanks!

--C64Whiz
___
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-depend only blocks null-TODO state change

2010-07-26 Thread Paul Sexton
In agenda view, tasks which are supposed to be blocked using org-depend's
:BLOCKER: property, are not actually blocked and do not show up dimmed.

This is because of a logic error in 'org-depend-block-undo', hopefully 
fixed below.

index eb38aa0..84fa1a7 100644
--- a/d:/paul/dotemacs/site-lisp/org/contrib/lisp/org-depend.el
+++ b/d:/paul/dotemacs/site-lisp/org/contrib/lisp/org-depend-new.el
@@ -224,12 +224,13 @@ this ID property, that entry is also checked.
 blocker blockers bl p1
 (proceed-p
  (catch 'return
-   (unless (eq type 'todo-state-change)
- ;; We are not handling this kind of change
- (throw 'return t))
-   (unless (and (not from) (member to org-not-done-keywords))
- ;; This is not a change from nothing to TODO, ignore it
- (throw 'return t))
+;; If this is not a todo state change, or if this entry is 
+;; DONE, do not block
+(when (or (not (eq type 'todo-state-change))
+  (member from (cons 'done org-done-keywords))
+  (member to (cons 'todo org-not-done-keywords))
+  (not to))
+  (throw 'return t))

;; OK, the plan is to switch from nothing to TODO
;; Lets see if we will allow it.  Find the BLOCKER property



___
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] [babel] help debugging org-babel-execute-buffer

2010-07-26 Thread Austin Frank
Hello!

I have a document that always throws an error when I call
org-babel-execute-buffer.  I'd guess that there's one particular block
that is to blame, but I can't tell which block babel is in at the point
when the error is thrown.

The error is:

#v+
Debugger entered--Lisp error: (invalid-function org-save-outline-visibility)
  org-save-outline-visibility(t 1 nil nil)
  org-babel-execute-buffer(nil)
  call-interactively(org-babel-execute-buffer nil nil)
#v-

Looking at the macro for org-save-outline-visibility, I think the
problem has to do with the last two arguments being passed in as nil
nil.  I don't, however, know how this is happening.

I know that I probably haven't given enough information to actually
diagnose this bug.  Can anyone give me a hand on what my next debugging
step should be for this problem?

Thanks,
/au

-- 
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc


pgpwNsLdDrOhU.pgp
Description: PGP 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


Re: [Orgmode] [babel] help debugging org-babel-execute-buffer

2010-07-26 Thread Nick Dokos
Austin Frank austin.fr...@gmail.com wrote:

 I have a document that always throws an error when I call
 org-babel-execute-buffer.  I'd guess that there's one particular block
 that is to blame, but I can't tell which block babel is in at the point
 when the error is thrown.
 
 The error is:
 
 #v+
 Debugger entered--Lisp error: (invalid-function org-save-outline-visibility)
   org-save-outline-visibility(t 1 nil nil)
   org-babel-execute-buffer(nil)
   call-interactively(org-babel-execute-buffer nil nil)
 #v-
 
 Looking at the macro for org-save-outline-visibility, I think the
 problem has to do with the last two arguments being passed in as nil
 nil.  I don't, however, know how this is happening.
 
 I know that I probably haven't given enough information to actually
 diagnose this bug.  Can anyone give me a hand on what my next debugging
 step should be for this problem?
 

Have you tried C-c C-c on each source block in the buffer? If one (or more)
fails, you know what to do.

If they all work fine, then I'd do a binary chop to get a minimal
example.  Then edebug org-babel-execute-buffer on the minimal example
(if the macro causes problems with edebug, define a new function,
org-babel-execute-buffer-do-not-save-outline-visibility, which does not
invoke the macro and debug that: if that works, then there is probably
some funky interaction with the macro.) In each iteration of the loop,
record the beginning of the match and the end of the match: that'll tell
you which block is being executed.

The simplest solution of course is to send the whole thing to Eric
S. :-) [1]

HTH,
Nick

[1] http://www.snopes.com/college/exam/barometer.asp



___
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