[Orgmode] Re: [OT] Windows and emacs

2009-01-10 Thread Olaf Dietsche
Raimund Kohl-Füchsle m...@rk-f.me writes:

 it may happen that I have to switch to Windows XP and since I have no
 idea how XP works (up to this point in time I only ran Linux machines) I
 thought to ask since I want to stick with org-mode: How do I get
 org-mode and emacs run best with XP?  As far as I know there are at
 least two ways to get emacs running; one is to simply download emacs,
 two is downloading cygwin; if it is cygwin that I have to go with then
 which emacs?  If I saw it right there are several choices ... ummm ...
 any hints on that?

I just downloaded emacs from the gnu site:
http://www.gnu.org/software/emacs/windows/Getting-Emacs.html
http://ftp.gnu.org/gnu/emacs/windows/

As others already said, a native emacs is better integrated.
Meanwhile, I can use nearly the same .emacs files in Linux and
Windows.

Cygwin is helpful in itself. Since you're used to Linux, it will help
you in the beginning and if you set your path accordingly, you can use
cygwin commands in the Windows command shell as well. On the other
side, it doesn't hurt, if you become familiar with Windows tools.

Regards, Olaf


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


Re: [Orgmode] Windows and emacs

2009-01-10 Thread David Lord

Ray,

I'd agree with Mike and Scot's recommendation to use EmacsW32 for all  
the reasons they mentioned.  I'd also recommend downloading cygwin.   
Current versions of EmacsW32 pick up the cygwin installation pretty  
easily and you really need it for command line tools like grep, ftp  
(for tramp) and git (for org-mode versioning); not to mention the  
command line itself.  I've been using this setup for 3 or 4 years on  
various corporate laptops and it works very well.


Regards
David

On 8 Ion 2009, at 21:41, Raimund Kohl-Füchsle wrote:


Hi guys,

it may happen that I have to switch to Windows XP and since I have no
idea how XP works (up to this point in time I only ran Linux  
machines) I

thought to ask since I want to stick with org-mode: How do I get
org-mode and emacs run best with XP?  As far as I know there are at
least two ways to get emacs running; one is to simply download emacs,
two is downloading cygwin; if it is cygwin that I have to go with then
which emacs?  If I saw it right there are several choices ... ummm ...
any hints on that?

Thanx in advance

ray


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




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


Re: [Orgmode] Does secondary filtering allow multiple tags?

2009-01-10 Thread Carsten Dominik

Hi Hsiu,

nice hack.  But I am still wondering why you do not
use primary filtering for this, i.e. a tags search
for project1|project2

C-c a m project1|project2 RET

- Carsten

On Jan 9, 2009, at 8:18 PM, Hsiu-Khuern Tang wrote:

* On Fri 07:38AM +, 09 Jan 2009, Carsten Dominik (domi...@science.uva.nl 
) wrote:


On Jan 9, 2009, at 2:55 AM, Hsiu-Khuern Tang wrote:


Hi all,

Suppose I have tagged some of my TODO headings.  In an agenda view,
is it
currently possible to filter (using org-agenda-filter-by-tag) all
entries that
are tagged with (say) either project1 _or_ project2?  One can
certainly do
project1 _and_ project2 by narrowing the filter.


No.

- Carsten


Here's a workaround.  I use org-map-entries to select all headlines  
directly
tagged with project1 or project2 and tag them with something  
unique, say
CUR.  Then I can use the ordinary filter mechanism in an agenda  
view to

restrict to headlines tagged with CUR.

,
| (setq cur_tags '(project1 project2))
|
| ;; Unbind the variable
| ;; (makunbound 'cur_tags)
|
| (setq match_string (concat +TAGS={ (mapconcat (lambda (x) x)
|   cur_tags \|) }))
|
| ;; Remove the CUR tag:
| (org-map-entries '(org-toggle-tag CUR) CUR 'agenda)
|
| ;; Turn on the CUR tag for all headlines (directly) tagged with
| ;; any member of cur_tags
| (org-map-entries '(org-toggle-tag CUR 'on) match_string 'agenda)
|
| ;; Count the number of headlines (directly) tagged with any member  
of

| ;; cur_tags:
| (length (org-map-entries t match_string 'agenda))
`

Maybe someone will find this useful, or think of a more elegant  
solution.


--
Best,
Hsiu-Khuern.


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




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


[Orgmode] Re: org-mode and remind integration

2009-01-10 Thread Daniel Martins
Olaf,

Thank you very much for your diff. I worked fine  and I learned a bit of
lisp.

Me, as an ex-Fortran77 programmer, am suffering a lot with emacs lisp.

After o couple of hours trying to catch all timestamps outside SCHEDULE: and
DEADLINE: lines I gave up and ask for help




Originally we had

(org2rem-scheduled-reminders (org2rem-list-reminders
org-scheduled-string))
(org2rem-deadline-reminders (org2rem-list-reminders
org-deadline-string))


I tried to catch all timestamps outside SCHEDULE: and DEADLINE:
using something like

(org2rem-pure-timestamps-reminders
 (org2rem-list-reminders
  (concat  \\( org-deadline-string \\|
   org-scheduled-string  \\)\\{0\\})))


In te beginning I create

(defvar org2rem-pure-timestamps-remind-file
  ~/.reminders.org.pure-timestamps)

and at the end I add an extra line to export these reminds in a different
file
  (org2rem-write-file org2rem-scheduled-remind-file
  org2rem-scheduled-reminders)
  (org2rem-write-file org2rem-deadline-remind-file
  org2rem-deadline-reminders)
  (org2rem-write-file org2rem-pure-timestamps-remind-file
  org2rem-pure-timestamps-reminders)

I tried first to create a local variable


;;; (org2rem-pure-timestamps-string
;;;   (concat  \\( org-deadline-string \\|
;;;org-scheduled-string  \\)\\{0\\}))

;;; (org2rem-pure-timestamps-reminders
;;;  (org2rem-list-reminders org2rem-pure-timestamps-string)
;;;  )

but it did not work either.




I am probably having

Any help for this stupid doubt?


Thank you

Daniel


2009/1/9 Olaf Dietsche
olaf+list.orgm...@olafdietsche.deolaf%2blist.orgm...@olafdietsche.de


  Yes, I am.
 [...]
  I am sending the last version of org2rem which integrates timed reminds
 from
  DEADLINE: and SCHEDULE: lines
 [...]
 
  2009/1/9 Carsten Dominik domi...@science.uva.nl
 
  Is any action happening on this?  Is someone trying to fix org2rem?
  - Carsten

 I have no idea of remind.

 This is an untested patch, but you get the idea. Avoid global
 variables, if you can. If you use global variables, you have
 prerequisites and side effects, which complicate following the
 code. This is not lisp specific.

 Regards, Olaf


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


[Orgmode] Problem with archive location

2009-01-10 Thread Matthew Lundin

Hi Carsten et al,

When I have multiple org files archive to a single file, as in 

,
| (setq org-archive-location ~/2009.org_archive::) 
`

I find that including archive files in the agenda display (C-u v)
results in multiple identical entries in the agenda display (in my
case, when doing a word search).

In fact, the number of duplicate lines exactly matches the number of
agenda files that archive to that file (in my case 16). Is the agenda
function perhaps searching the archive file once for each of the
agenda files and then displaying the results as separate lines?

By the way, I find the same thing happens when I use the example in
the customize instructions:

,
| ~/org/archive.org::
|   Archive in file ~/org/archive.org (absolute path), as top-level trees.
`

Thanks,
Matt 





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


Re: [Orgmode] Problem with archive location

2009-01-10 Thread Carsten Dominik

Hi Matt,

indeed, this is a bug.  Fixed now, thanks for the report.

- Carsten

On Jan 10, 2009, at 6:55 PM, Matthew Lundin wrote:



Hi Carsten et al,

When I have multiple org files archive to a single file, as in

,
| (setq org-archive-location ~/2009.org_archive::)
`

I find that including archive files in the agenda display (C-u v)
results in multiple identical entries in the agenda display (in my
case, when doing a word search).

In fact, the number of duplicate lines exactly matches the number of
agenda files that archive to that file (in my case 16). Is the agenda
function perhaps searching the archive file once for each of the
agenda files and then displaying the results as separate lines?

By the way, I find the same thing happens when I use the example in
the customize instructions:

,
| ~/org/archive.org::
| 	Archive in file ~/org/archive.org (absolute path), as top-level  
trees.

`

Thanks,
Matt





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




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


[Orgmode] Re: org-mode and remind integration

2009-01-10 Thread Olaf Dietsche
Hi Daniel,

Daniel Martins daniel...@gmail.com writes:

 Me, as an ex-Fortran77 programmer, am suffering a lot with emacs lisp.

With time, it'll get better.

 After o couple of hours trying to catch all timestamps outside SCHEDULE: and
 DEADLINE: lines I gave up and ask for help
[...]
 I tried to catch all timestamps outside SCHEDULE: and DEADLINE:
 using something like

 (org2rem-pure-timestamps-reminders
  (org2rem-list-reminders
   (concat  \\( org-deadline-string \\|
org-scheduled-string  \\)\\{0\\})))

[...]
 I tried first to create a local variable

 ;;; (org2rem-pure-timestamps-string
 ;;;   (concat  \\( org-deadline-string \\|
 ;;;org-scheduled-string  \\)\\{0\\}))

 ;;; (org2rem-pure-timestamps-reminders
 ;;;  (org2rem-list-reminders org2rem-pure-timestamps-string)
 ;;;  )

 but it did not work either.

 I am probably having

 Any help for this stupid doubt?

I don't think, this is a question of a local variable vs. inlining the
regexp. It's more a matter of an appropriate regular expression. Did
you try an empty string instead?

e.g.: (org2rem-pure-timestamps-reminders (org2rem-list-reminders ))

Or did I miss your problem completely?

Regards, Olaf


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


[Orgmode] export to latex

2009-01-10 Thread sergio_101

okay, i am still having problems exporting to latex, so i did a few more
things and did some investigating.. hopefully this will be of some help.

platform:
___

osx 10.5
Org-mode version 6.17trans
carbon emacs

what i did:
__

- totally deleted my org-mode directory
- checked out the newest version from git
- did NOT make the file, so it would run from .el files

the results:
___

this file, a one line file exports to tex just fine..

,[ onelinefile.org ]
| one line file
`

this file, a two line file, poops out..

[ twolinefile.org ]
| one line file
| two line file
`

the error:
_

,[ error ]
| Debugger entered--Lisp error: (quit)
|   add-text-properties(6 6 (org-protected t))
|   (while (re-search-forward org-latex-entities-regexp nil t) 
(add-text-properties (match-beginning 0) (match-end 0) (quote ...)))
|   org-export-latex-preprocess()
|   (progn (require (quote org-export-latex) nil) (org-export-latex-preprocess))
|   (if latexp (progn (require ... nil) (org-export-latex-preprocess)))
|   (when latexp (require (quote org-export-latex) nil) 
(org-export-latex-preprocess))
|   (save-current-buffer (set-buffer (get-buffer-create  org-mode-tmp)) 
(erase-buffer) (insert string) (setq case-fold-search t) 
(org-export-kill-licensed-text) (let (...) (org-mode)) (setq case-fold-search 
t) (run-hooks (quote org-export-preprocess-hook)) (untabify (point-min) 
(point-max)) (org-export-handle-include-files) (run-hooks (quote 
org-export-preprocess-after-include-files-hook)) 
(org-export-remove-archived-trees archived-trees) 
(org-export-remove-comment-blocks-and-subtrees) (org-export-handle-export-tags 
(plist-get parameters :select-tags) (plist-get parameters :exclude-tags)) 
(run-hooks (quote org-export-preprocess-after-tree-selection-hook)) 
(org-export-replace-src-segments-and-examples backend) 
(org-export-protect-colon-examples) (when (plist-get parameters :footnotes) 
(org-footnote-normalize nil t)) (setq target-alist 
(org-export-define-heading-targets target-alist)) 
(org-export-remove-or-extract-drawers drawers (plist-get parameters :drawers)) 
(when (plist-get parameters :skip-before-1st-heading) (goto-char ...) (when ... 
... ... ...)) (when (plist-get parameters :add-text) (goto-char ...) (insert 
... \n)) (org-export-remove-headline-metadata parameters) (setq target-alist 
(org-export-handle-invisible-targets target-alist)) 
(org-export-select-backend-specific-text backend) 
(org-export-protect-quoted-subtrees) (org-export-protect-verbatim) 
(org-export-mark-blockquote-and-verse) (org-export-remove-clock-lines) (unless 
(plist-get parameters :timestamps) (org-export-remove-timestamps)) (setq 
target-alist (org-export-attach-captions-and-attributes backend target-alist)) 
(org-export-mark-radio-links) (org-export-concatenate-multiline-links) 
(org-export-normalize-links) (org-export-target-internal-links target-alist) 
(when (plist-get parameters :emph-multiline) 
(org-export-concatenate-multiline-emphasis)) (when 
org-export-table-remove-special-lines (org-export-remove-special-table-lines)) 
(run-hooks (quote org-export-preprocess-before-backend-specifics-hook)) (when 
latexp (require ... nil) (org-export-latex-preprocess)) (when asciip 
(org-export-ascii-preprocess)) (when htmlp (org-export-html-preprocess 
parameters)) (org-export-handle-comments (plist-get parameters :comments)) 
(run-hooks (quote org-export-preprocess-final-hook)) (setq rtn (buffer-string)))
|   (with-current-buffer (get-buffer-create  org-mode-tmp) (erase-buffer) 
(insert string) (setq case-fold-search t) (org-export-kill-licensed-text) (let 
(...) (org-mode)) (setq case-fold-search t) (run-hooks (quote 
org-export-preprocess-hook)) (untabify (point-min) (point-max)) 
(org-export-handle-include-files) (run-hooks (quote 
org-export-preprocess-after-include-files-hook)) 
(org-export-remove-archived-trees archived-trees) 
(org-export-remove-comment-blocks-and-subtrees) (org-export-handle-export-tags 
(plist-get parameters :select-tags) (plist-get parameters :exclude-tags)) 
(run-hooks (quote org-export-preprocess-after-tree-selection-hook)) 
(org-export-replace-src-segments-and-examples backend) 
(org-export-protect-colon-examples) (when (plist-get parameters :footnotes) 
(org-footnote-normalize nil t)) (setq target-alist 
(org-export-define-heading-targets target-alist)) 
(org-export-remove-or-extract-drawers drawers (plist-get parameters :drawers)) 
(when (plist-get parameters :skip-before-1st-heading) (goto-char ...) (when ... 
... ... ...)) (when (plist-get parameters :add-text) (goto-char ...) (insert 
... \n)) (org-export-remove-headline-metadata parameters) (setq target-alist 
(org-export-handle-invisible-targets target-alist)) 
(org-export-select-backend-specific-text backend) 
(org-export-protect-quoted-subtrees) (org-export-protect-verbatim) 
(org-export-mark-blockquote-and-verse) (org-export-remove-clock-lines) (unless 
(plist-get parameters :timestamps) 

[Orgmode] Attachment feature - Can I have custom directories?

2009-01-10 Thread Jason Jackson
There are many times where I would like to associate an org-mode item with a
specific directory of my choosing for attachment directory.

Such that, C-c C-a f would open for example ~/docs/project1
and C-c C-a o would open the file inside

Of course, I still like the existing functionality of generating random
directory names too.

Can org-mode do this?



Also I should mention C-c C-a l (for symbolic links) just copies the file on
the windows platform, can we have it create a shortcut instead?

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