Re: [Orgmode] emacs for the mac -- best distribution/version

2009-11-12 Thread Pierre de Buyl

Hello,

I am using the carbon version from http://homepage.mac.com/zenitani/ 
emacs-e.html with much happiness. The keyboard setup is the normal  
one, where the cmd (apple) key serves as meta, except a few exception  
(I need to do esc-< to go to the beginning of the buffer for  
instance). I has a full-screen mode which is very useful.


Pierre


Le 12 nov. 09 à 22:49, Greg Newman a écrit :

I too have been building but lately after the 23 betas I started  
grabbing the builds from http://emacsformacosx.com



On Thu, Nov 12, 2009 at 4:33 PM, Eric Schulte  
 wrote:

Marcelo de Moraes Serpa  writes:

> Hello fellows orgers,
>
> After almost 5 years in a love-hate relationship with Linux and  
lately, Ubuntu (which I acknowledge, is a
> marvelous OS, and that has been getting greater with each  
release), I decided to go to the next level
> (read: Focus on web development/graphics design and forget about  
tweaking my OS for some time) and buy a
> Mac. There's no way I will ever use Windows again, except for  
selected games or eventual entertainment
> software that I'm not able to run on Mac or Linux, so, the  
logical decision was a Mac.

>
> Philosophies aside, orgmode and emacs have become keys pieces of  
my life, I have almost every aspect of my
> life recorded in text-files managed by orgmode. This won't change  
whatever OS I use. So I politely ask,
> what is the best emacs distribution for the Mac? I've heard  
carbon emacs is the logical choice, but some
> say Aquamacs is better. What I want is an emacs that up-to-date  
with current releases and that is as close
> as possible to the one I use on my Ubuntu box right now (emacs- 
snapshot-gtk 23.1.50.1), so, any

> suggestions/ideas are greatly appreciated :)
>

Hi Marcelo,

I've been building emacs from source on my Mac for years; when running
configure pass the "--with-ns" option and then after running "make
install" you will find an Emacs.app Mac application in your nextstep
directory.

I think this to be the best approach as (like you) I was coming to Mac
from linux and wanted an Emacs that was as similar as possible to  
*true*

linux Emacs.

also you might find the following helpful.
--8<---cut here---start->8---
;; on mac apple is meta
(setq mac-command-modifier 'meta)
(setq mac-option-modifier 'super)
--8<---cut here---end--->8---

Best -- Eric

>
> Thanks,
>
> Marcelo.
>
> ___
> 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

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




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


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

2009-11-12 Thread Manish
On Thu, Nov 12, 2009 at 1:26 PM, Carsten Dominik wrote:
>
> On Nov 12, 2009, at 3:03 AM, Manish wrote:
>
>> On Thu, Nov 12, 2009 at 6:06 AM, Samuel Wales wrote:
>>>
>>> In the agenda, it is difficult to find where you are in
>>> the hierarchy. I find that I have to switch to the outline,
>>> then scroll up, if I want to know what the parent headline
>>> is, or any ancestor.
>>>
>>> Others have proposed showing the parent headline, but that
>>> could clutter the agenda and will not show other ancestors.
>>>
>>> Here is a simple proposal: put the olpath of the current
>>> header in header-line-format.
>>>
>>> Then you always know where you are, without having to switch
>>> to the outline buffer.
>>
>> +10
>>
>> I proposed something similar six months ago.
>
> You did? I don't remember. Can you find the thread on gmane?

I could not locate that post on gmane at all!  Closest I could find
was Eraldo's response to my email.  But I found the email in Gmail
archive and am quoting it below.

,
| MIME-Version: 1.0
| Received: by 10.110.53.12 with HTTP; Mon, 18 May 2009 20:01:00 -0700 (PDT)
| In-Reply-To: <2ba22c73-cd1f-4791-ba0c-e7112cabd...@gmail.com>
| References: <1e5bcefd0905151433v72384998ub908996d78dcb...@mail.gmail.com>
|<2ba22c73-cd1f-4791-ba0c-e7112cabd...@gmail.com>
| Date: Tue, 19 May 2009 08:31:00 +0530
| Delivered-To: mailtomanish.sha...@gmail.com
| Message-ID: 
| Subject: Re: [Orgmode] Show parent PROJECTS for an item
| From: Manish 
| To: Carsten Dominik 
| Cc: Marcelo de Moraes Serpa , emacs-orgmode@gnu.org
| Content-Type: text/plain; charset=ISO-8859-1
| Content-Transfer-Encoding: 7bit
|
|   On Sat, May 16, 2009 at 8:41 PM, Carsten Dominik wrote:
|   >
|   > On May 15, 2009, at 11:33 PM, Marcelo de Moraes Serpa wrote:
|   >
|   >> Hello list,
|   >>
|   >> I'd like to do a little modification to the code that grabs the
|   >> summary of items for the agenda view. For each item that has a
|   >> parent with a PROJECT type, I'd like org to render this parent in
|   >> a hierarchical, tree way, like this:.
|   >>
|   >> Let's say I search for a specific item using a regexp. This item
|   >> has three parents, which all are PROJECTS, it would show like
|   >> this:
|   >>
|   >>
|   >> PROJECT My project
|   >>  PROJECT My sub-project
|   >>PROJECT My sub-sub-project
|   >>  NEXT Call Liz to check if the account has been created
|   >> :@call:@work:
|   >>
|   >> So, searched for Liz and got this specific item, but org then
|   >> would give me more context, showing me to which project it
|   >> belongs to. Not sure if it's already possible, but if not, would
|   >> be a great addition to support the GTD system, IMO :)
|   >
|   > The purpose of the flat agenda list is to be compact, and what you
|   > want would defeat that purpose.
|   >
|   > If you are working with a single file, a sparse tree might be the
|   > best alternative. If not, you could give follow mode in the agenda
|   > a try.
|   >
|
| Follow mode is fit for the purpose when you are _in_ Emacs but when
| you want to print and take your lists along then missing context can
| be confusing.  Would it be possible to encode the task hierarchy into
| the task display like so:
|
| ,[ sample tree ]
| | * PROJECT Take over the world
| | ** SUBPROJ Make a plan
| | *** TODO Print a trillion dollars
| `
|
| ,[ sample todo list ]
| |TODO Take over the world/Make a plan/Print a trillion dollars
| | or TODO Print a trillion dollars [Take over the world/Make a plan]
| | or [Take over the world/Make a plan] TODO Print a trillion dollars
| | or TODO [Take over the world/Make a plan] Print a trillion dollars
| | or TODO Print a trillion dollars\Make a plan\Take over the world
| `
|
| Personally I prefer the last one most.  The number of characters added
| from each node, and/or the numbers of nodes added and/or the total
| length of todo item in agenda can be made configurable to limit the
| length of the agenda lines.
|
| At present, some of us try to be more descriptive when defining a task
| so as to identify the context from the task alone.  If this is
| implemented, we can try to be succinct instead.
|
| Of course, I do not know elisp nor do I understand Org internals so
| the idea might just be nonsense from an implementation perspective.
|
| Regards,
| --
| Manish
`

Regards,
-- 
Manish


___
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] [babel] problem removing label from src

2009-11-12 Thread Eric Schulte
Hi Martin,

Thanks for pointing this out, our regular-expression was greedily
consuming too much of the source block switches.  I've just pushed up a
change which should fix you issue.

Best -- Eric

"Martin G. Skjæveland"  writes:

> Hi all,
>
> I use the -r -l option for source blocks to change the format of
> labels. This works in org-mode without org-babel, but this does not
> fully work with org-babel (and I really like org-babel, so that's a
> shame :) )
>
> The following
>
> --start-
> #+begin_src xml -n -r -l ""
>   
>  
>   
> #+end_src
>
> Line no. [[(imp)]] is important!
> --end-
>
> gives me
>
> 1:  
> 2: 
> 3:  
>Line no. 2 is important!
>
>
> The label and reference works, but the label is not fully
> removed.  is left behind.
>
> Thanks!
> Martin
>
>
>
> ___
> 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] bug report subject format

2009-11-12 Thread Samuel Wales
Has thought been given to changing the subject header for
bug reporting?

All I ever see with the current style is this.

  [Orgmode] Org-mode version 6.32trans

So I have to click to find out what it is about.

This is current.

  [Orgmode] Org-mode version 6.32trans (release_6.32b.147.g97e21);
Cloning subtree on eof may not insert required newline

This is my proposal.  (Note that I am changing the mailing
list header also -- every character counts.  I request that if it is possible.)

  [Org] Cloning subtree on eof may not insert required newline
[6.32trans (release_6.32b.147.g97e21)]

Then what I would see is this.

  [Org] Cloning subtree on eof may not

Which is better and I won't have to click.

Thanks.

-- 
Q: How many CDC "scientists" does it take to change a lightbulb?
A: You only think it's dark. [CDC has denied ME/CFS for 25 years]
=
Retrovirus: http://www.wpinstitute.org/xmrv/xmrv_qa.html


___
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] possible bug in org-goto-local-search-headings

2009-11-12 Thread Lee Hinman
Carsten,

I admit I could be using the function inappropriately.  Please let me
know if am.

I have a little function I wrote to help me maintain a journal, I didn't
like the formatting I got using remember.  Here is the function.

(defun lee-journal-entry ()
  "Create a new journal entry for today or append to existing month."
  (interactive)
  (switch-to-buffer (find-file lee-journal-file))
  (widen)
  (let ((today (format-time-string "%Y.%m")))
(unless (org-goto-local-search-headings today nil t)
  ((lambda ()
 (beginning-of-buffer)
 (org-insert-heading)
 (insert today
(show-children)
(end-of-line)
(insert "\n")
(org-insert-heading)
(org-do-demote)
(org-insert-time-stamp (current-time))
(insert " ")))

So I'm using org-goto-local-search-heading to find the correct heading
to start my new journal entry in.

--
Lee



Carsten Dominik  writes:

> Hi Lee,
>
> I do not understand.
>
> Why would you call this function?  It is being called by the
> internals of isearch, and when that happens, isearch.el is obviously
> loaded.
>
> What am I missing here?
>
> - Carsten
>
> On Nov 12, 2009, at 8:04 PM, Lee Hinman wrote:
>
>> I noticed some interesting behavior with the
>> org-goto-local-search-headings function in Emacs 23.1.1.
>>
>> If you call the function before doing an incremental search, searching
>> forward fails.  If you call it after doing an incremental search the
>> function will search forward.  A quick look at the code showed that it
>> only does a forward search if isearch-forward is defined.  This is
>> both
>> a variable and a function in isearch.el, and the variable
>> isearch-forward is set to nil until you do a search.
>>
>> The following patch against the current orgmode removes the dependency
>> on isearch-forward and will now search forward first, if it doesn't
>> find
>> anything will search backward from the original point.  I *think* this
>> is the behavior that was intended.
>>
>>
>> diff --git a/lisp/org.el b/lisp/org.el
>> index dd34816..1e9aad3 100644
>> --- a/lisp/org.el
>> +++ b/lisp/org.el
>> @@ -5801,8 +5801,7 @@ or nil."
>> (defun org-goto-local-search-headings (string bound noerror)
>>   "Search and make sure that any matches are in headlines."
>>   (catch 'return
>> -(while (if isearch-forward
>> -   (search-forward string bound noerror)
>> +(while (or (search-forward string bound t)
>>  (search-backward string bound noerror))
>>   (when (let ((context (mapcar 'car (save-match-data (org-
>> context)
>>(and (member :headline context)
>>
>>
>> --
>> Lee Hinman
>>
>>
>>
>> ___
>> 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
>
> - Carsten
>
>
>

-- 
Lee Hinman
hin...@gmail.com


___
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: Only Clock in Top-Level Task

2009-11-12 Thread Markus Heller

Carsten Dominik wrote:


On Nov 12, 2009, at 9:00 PM, Bernt Hansen wrote:


Markus Heller  writes:

Q> Bernt Hansen wrote:

Markus Heller  writes:


Hello,

This is what my project.org looks like:

* STARTED My Project:NEXT:   
 :LOGBOOK:...


** TODO Task 1 [0/2]
*** TODO Sub-Task 1
*** TODO Sub-Task 2

This is what I'd like to do:

I'd like to be able to clock in from Task 1, Sub-Task 1, or Sub-Task
2, but make org-mode add the clock entries into the :LOGBOOK: of My
Project, i.e. the top-level task/project.  In other words, I'm not
interested in keeping track of how much time I spent on Task 1, or any
of the sub-tasks, I'm only interested in the time I've spent on
working on My Project.

Is there anyway to do this?


C-c C-x C-d will total time for a task including times on a subtask.

-Bernt


Hi Bernt,

I saw this option in the manual, but this is not quite what I
want. What I'd like to be able to is clock in from any sub-task and be
clocked into the *top-level* task, not the task I'm clocking in from.

Is that feasible?  Or am I too confusing?


There is nothing I'm aware of that is built in which will accomplish
what you want.  You might be able to use the org-clock-in-hook and
custom lisp code to clock in the top-most parent task.


Indeed, this is not implemented, and I have a hard time seeing why this 
would be desirable?  Summing i always hierarchical, so the time will be 
shown in the parent time anyway.


Thanks for the reply, Carsten (and Bernt of course).

The reason why I'm asking is I started out with clocking tasks using a 
really simple setup (I consider myself a bloody org newbie) where I only 
had level 1 tasks.  Now, I've added level 2 and level 3 tasks, and I 
wondered if my sudden clocking of level 2 tasks would screw up the clock 
summary.


Good to know that it won't, this'll help me in using org more effciently.

Thanks for org-mode, btw, it's a really great thing!

Markus



___
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] Has filling behavior been changed recently in org?

2009-11-12 Thread Samuel Wales
On 2009-11-12, Sebastian Rose  wrote:
> Well, I believe the problem is, that we have no simple defined comment
> start in Org-mode.

I should have realized that was possibly the problem before posting.
I thought I solved that a long time ago.  But I was not able to debug
today.

The following seems to fix the problem without causing any problems.
You have to have my filladapt fixes.

(set (make-local-variable 'comment-start) "#")

In order to fix a bug a long time ago, I had that line for all text
files and not org files.  Now I think I can set it for org mode also.
In other words, somebody possibly made a change to org that fixed the
problem.

But I am not capable of investigating it further to make sure today.

> If `#' was the comment start, lines might be wrapped and stop
> working. As `#' also starts working directives, e.g. for ditaa and
> gnuplot.

Works fine with my filladapt fixes.

Thanks.

-- 
Q: How many CDC "scientists" does it take to change a lightbulb?
A: You only think it's dark. [CDC has denied ME/CFS for 25 years]
=
Retrovirus: http://www.wpinstitute.org/xmrv/xmrv_qa.html


___
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] Org-mode version 6.32trans (release_6.32b.147.g97e21); Cloning subtree on eof may not insert required newline

2009-11-12 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Nov 12, 2009, at 8:46 PM, David Maus wrote:

--  


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


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

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


By accident I noticed that if you clone a subtree using C-c C-x c who
or whose content is the last line of the file orgmode inserts the
clone without the desired newline.

example.org
,
| * Just a test
`

If you move the point behind test and press C-c C-x c 1  
the clone is inserted right behind "test".

example.org
,
| * Just a test*Just a test
`

Instead orgmode should insert a newline before inserting the clone
when the file misses an empty line at the end.

Regards,

 --David

Emacs  : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3)
of 2009-10-23 on elegiac, modified by Debian
Package: Org-mode version 6.32trans (release_6.32b.147.g97e21)

current state:
==
(setq
org-clock-in-switch-to-state "STARTED"
org-todo-keyword-faces '(("TODO" :foreground "red" :weight bold)  
("STARTED" :foreground "gold" :weight bold)
			  ("DONE" :foreground "green") ("NEXT" :foreground "dark  
orange" :weight bold)
			  ("WAITING" :foreground "MediumPurple1" :weight bold)  
("CANCELLED" :foreground "dark red")

  ("APPT" :foreground "tan1" :weight bold))
org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent)
org-agenda-tags-column -120
org-checklist-export-function 'org-export-as-ascii
org-after-todo-state-change-hook '(org-clock-out-if-current org- 
checklist)

org-agenda-todo-ignore-scheduled t
org-todo-state-tags-triggers '(("" ("NOTE" . t)) (todo ("NOTE")))
org-log-redeadline 'time
org-export-preprocess-hook '(org-export-blocks-preprocess)
org-tab-first-hook '(org-hide-block-toggle-maybe)
org-src-mode-hook '(org-src-mode-configure-edit-buffer)
org-confirm-shell-link-function 'yes-or-no-p
org-todo-keywords '((sequence "TODO(t)" "STARTED(s!)" "|" "DONE(D@)")
 (sequence "NEXT(n)" "WAITING(w@/!)" "|" "CANCELLED(C@)")
 (sequence "APPT(a)" "|" "DONE(D@)" "CANCELLED(C@)"))
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-directory "~/Org"
org-log-reschedule 'time
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- 
drawers org-cycle-show-empty-lines

  org-optimize-window-after-visibility-change)
org-publish-project-alist '(("private-dynamic" :base-directory "~/ 
Org/www" :base-extension "org" :publishing-directory
			  "~/www/private" :publishing-function (org-publish-org-to- 
html) :recursive t :author

  "David Maus" :email "maus.da...@gmail.com")
			 ("private-static" :base-directory "~/Org/www" :base- 
extension "css" :publishing-directory
			  "~/www/private" :publishing-function org-publish- 
attachment :recursive t)

 ("private" :components ("private-dynamic" 
"private-static")))
org-mode-hook '((lambda nil
		  (org-add-hook (quote change-major-mode-hook) (quote org-show- 
block-all) (quote append) (quote local)))

 )
org-refile-targets '((org-agenda-files :maxlevel . 3))
org-confirm-elisp-link-function 'yes-or-no-p
org-refile-use-outline-path 'file
org-log-into-drawer "LOGBOOK"
org-agenda-todo-ignore-with-date t
org-enforce-todo-dependencies t
org-occur-hook '(org-first-headline-recenter)
org-from-is-user-regexp "\\"
org-outline-path-complete-in-steps nil
org-tags-column -120
org-remember-templates '(("todo" 116
			   "* TODO %^{Description} %^G\n  :PROPERTIES:\n  :Created: %U 
\n  :Ref: %a\n  :END:\n\n  %?"

   "refile.org" bottom nil)
  ("note" 110
			   "* %^{Description} :NOTE:%^G\n  :PROPERTIES:\n  :Created: %U 
\n  :Ref: %a\n  :END:\n\n  %?"

   "refile.org" bottom nil)
  ("appt" 97
			   "* APPT %^{Description} :APPT:%^G\n  %^T\n  :PROPERTIES: 
\n  :Created: %U\n  :Ref: %a\n  :END:\n\n  %?" "refile.org" bottom  
nil)

  ("mail" 109
			   "* TODO %^{Action} [[wl:%5B%:message-id%5D~/.elmo/namazu# 
%:message-id][%:from %:subject]] %^G\n  :PROPERTIES:\n  :Created: %U 
\n  :Ref: [[wl:%5B:message-id%5D~/.elmo/namazu#%:message-id][%:from:  
%:subject]]\n  :END:\n\n  %?"

   "refile.org" bottom (wl-summary-mode))
  ("link" 108
			   "* [[%:link][%:description]] :NOTE:LINK:%^G\n  :PROPERTIES: 
\n  :Created: %U\n  :Ref: %a\n  :END:\n\n  %?" bottom nil)

  )
)
OpenPGP... 0x316F4BE4670716FD
Jabber dmj...@jabber.org
Email. maus.da...@gmail.com
ICQ... 241051416


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send

Re: [Orgmode] Org-mode version 6.32trans (release_6.32b.190.g1818); LAST_MOBILE_CHANGE line bumps local variable line

2009-11-12 Thread Carsten Dominik

Hi Charles,

good catch, thank you!

- Carsten

On Nov 12, 2009, at 6:28 PM, Charles Sebold wrote:


In org-mobile-timestamp-buffer(), it tries to insert the
LAST_MOBILE_CHANGE timestamp on the first line if there isn't already
one.

I think this should check first to see if the first line has local
variables, for example:

# -*- mode: org; coding: utf-8; -*-

...and it should skip past that line if it's there.  Any chance of
changing that?

(The workaround for the moment is to make sure that there is always a
timestamp line present already, and that's fine, but this could  
surprise
somebody who wasn't expecting it - like me, until I tracked this  
down.)


Maybe it could be something like:

--- a/lisp/org-mobile.el
+++ b/lisp/org-mobile.el
@@ -738,10 +738,13 @@ If BEG and END are given, only do this in that
region."
  (save-restriction
  (widen)
  (goto-char (point-min))
-  (when (re-search-forward
+  (if (re-search-forward
 "^\\([ \t]*\\)#\\+LAST_MOBILE_CHANGE:.*\n?" nil t)
-   (goto-char (match-end 1))
- (delete-region (point) (match-end 0)))
+ (progn
+  (goto-char (match-end 1))
+(delete-region (point) (match-end 0)))
+  (if (looking-at ".*-\\*-.*-\\*-")
+  (forward-line 1)))
  (insert "#+LAST_MOBILE_CHANGE: "
  (format-time-string "%Y-%m-%d %T") "\n")

Emacs  : GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600)
of 2009-11-11 on CT-SEBOLDCR-T4C
Package: Org-mode version 6.32trans (release_6.32b.190.g1818)
--
Charles Sebold
http://merbc.invigorated.org/
http://triablogue.blogspot.com/


___
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


- Carsten





___
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] possible bug in org-goto-local-search-headings

2009-11-12 Thread Carsten Dominik

Hi Lee,

I do not understand.

Why would you call this function?  It is being called by the
internals of isearch, and when that happens, isearch.el is obviously  
loaded.


What am I missing here?

- Carsten

On Nov 12, 2009, at 8:04 PM, Lee Hinman wrote:


I noticed some interesting behavior with the
org-goto-local-search-headings function in Emacs 23.1.1.

If you call the function before doing an incremental search, searching
forward fails.  If you call it after doing an incremental search the
function will search forward.  A quick look at the code showed that it
only does a forward search if isearch-forward is defined.  This is  
both

a variable and a function in isearch.el, and the variable
isearch-forward is set to nil until you do a search.

The following patch against the current orgmode removes the dependency
on isearch-forward and will now search forward first, if it doesn't  
find

anything will search backward from the original point.  I *think* this
is the behavior that was intended.


diff --git a/lisp/org.el b/lisp/org.el
index dd34816..1e9aad3 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5801,8 +5801,7 @@ or nil."
(defun org-goto-local-search-headings (string bound noerror)
  "Search and make sure that any matches are in headlines."
  (catch 'return
-(while (if isearch-forward
-   (search-forward string bound noerror)
+(while (or (search-forward string bound t)
 (search-backward string bound noerror))
  (when (let ((context (mapcar 'car (save-match-data (org- 
context)

  (and (member :headline context)


--
Lee Hinman



___
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


- Carsten





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


Re: [Orgmode] Re: Only Clock in Top-Level Task

2009-11-12 Thread Carsten Dominik


On Nov 12, 2009, at 9:00 PM, Bernt Hansen wrote:


Markus Heller  writes:

Q> Bernt Hansen wrote:

Markus Heller  writes:


Hello,

This is what my project.org looks like:

* STARTED My Project   :NEXT:   
 :LOGBOOK:...

** TODO Task 1 [0/2]
*** TODO Sub-Task 1
*** TODO Sub-Task 2

This is what I'd like to do:

I'd like to be able to clock in from Task 1, Sub-Task 1, or Sub- 
Task

2, but make org-mode add the clock entries into the :LOGBOOK: of My
Project, i.e. the top-level task/project.  In other words, I'm not
interested in keeping track of how much time I spent on Task 1,  
or any

of the sub-tasks, I'm only interested in the time I've spent on
working on My Project.

Is there anyway to do this?


C-c C-x C-d will total time for a task including times on a subtask.

-Bernt


Hi Bernt,

I saw this option in the manual, but this is not quite what I
want. What I'd like to be able to is clock in from any sub-task and  
be

clocked into the *top-level* task, not the task I'm clocking in from.

Is that feasible?  Or am I too confusing?


There is nothing I'm aware of that is built in which will accomplish
what you want.  You might be able to use the org-clock-in-hook and
custom lisp code to clock in the top-most parent task.


Indeed, this is not implemented, and I have a hard time seeing why  
this would be desirable?  Summing i always hierarchical, so the time  
will be shown in the parent time anyway.


- Carsten



___
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] PATCH: org-mobile.el, fix line encoding for checksums.dat

2009-11-12 Thread Carsten Dominik

Applied, thanks.

- Carsten

On Nov 12, 2009, at 8:06 PM, Charles Sebold wrote:

After discussing the problem briefly with Richard, I have a  
suggested patch for org-mobile.el.


This will force checksums.dat to always be Unix line encoding.

--- a/lisp/org-mobile.el
+++ b/lisp/org-mobile.el
@@ -409,6 +409,7 @@ The table of checksums is written to the file  
mobile-checksums."

 (files org-mobile-checksum-files)
 entry file sum)
 (with-temp-file sumfile
+  (set-buffer-file-coding-system 'undecided-unix nil)
   (while (setq entry (pop files))
 (setq file (car entry) sum (cdr entry))
 (insert (format "%s  %s\n" sum file))

He said he may update MobileOrg to handle other linefeed encodings,  
but for the meantime this seems to work for me.


On Thu, Nov 12, 2009 at 11:47 AM, Charles Sebold   
wrote:

I wonder, does MobileOrg always expect Unix-style line feeds?

I ask because it seems to me as if, when I push from Emacs on  
Windows, from then on every time I sync, I have to download and read  
in every single org file.  I have 20-30 org files and a couple of  
them are over 200K so this takes a while.


If I take the same org files and push them from Linux, I have to  
reread everything once, and then every sync from Linux after that  
only seems to force it to reread the files that changed.


So, I'm wondering if it's not reading one of the files correctly:  
checksums.dat, or one of the agenda files.  I don't know enough  
about the iPhone app source to figure that one out, but I could  
think of workarounds for org-mobile.el if it always needs to produce  
Unix-style files for pushing.

--
Charles Sebold
http://triablogue.blogspot.com/
http://merbc.invigorated.org/
Ego delendus sum



--
Charles Sebold
http://triablogue.blogspot.com/
http://merbc.invigorated.org/
Ego delendus sum
___
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


- Carsten





___
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] Has filling behavior been changed recently in org?

2009-11-12 Thread Sebastian Rose
Samuel Wales  writes:
> Hi Sebastian,
>
> On 2009-11-12, Sebastian Rose  wrote:
>> Samuel Wales  writes:
>>> For some reason, I can fill a commented paragraph in emacs lisp mode,
>>> text mode, and fundamental mode, but not in org mode.  It does
>>> nothing.  fill-column is my normal 60.  I cannot debug it.  Did
>>> something change recently?  I use filladapt.
>>>
>>> Thanks.
>>
>> Sorry for the question, but "in emacs lisp mode" is not "in org mode",
>> is it?
>
> Sorry, I don't understand your comment at all.



Sorry, I mis-read your mail :-(

I read:
  For some reason, I can fill a commented paragraph in emacs lisp mode,

...but somehow the next line slipped through.




Well, I believe the problem is, that we have no simple defined comment
start in Org-mode.

If `#' was the comment start, lines might be wrapped and stop
working. As `#' also starts working directives, e.g. for ditaa and
gnuplot.

In addition, a `#' may occur anywhere in a line but the first non-blank
position and would not start a comment.

Also, imagine a code block like this:

  #+begin_src perl
print "This example";
# ...contains a perl comment...
# In deep nested node, this line might wrap, because of the fill column.
  #+end_src



Anyway, I believe it could be done - but no one got around and did it
yet. It seems complicated and error prone.



Best wishes

  Sebastian


___
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] Different behavior of elipses depends on whether file is open

2009-11-12 Thread Alan E. Davis
   I just inserted a headline using this template:
   ("System" ?s "* %U %(system-name):: %?%&"
   "~/org/System.Journal.org" "Incoming")

   I typed a long headline, and thought "Oh, well, I'll just go to the
   end of the line with my special Ctl-e (stops before elipses/tags.)
   Then I hit , expecting to bypass the elipses.  Had I not
   been schooled in the elipses issue of org-mode, I would have
   deleted the elipses, as extraneous text.

   But point PASSED the elipses on the same line, to the end of the
   line.

   This seems wrong to me.  Not sure what should happen.  If I enter a
   tab,  at the same place would indeed pass on to the next
   line.

Now, I tried it again, with several conditions: short line, long
headline, text below, no text entered beyond the headline (no
 while editing the remember buffer).  Now I don't get this
at all.  No elipses at all.

Is this because the file is already open?  How can I achieve
consistency in this behavior?  I tried this.  The first time I enter a
headline, this behavior is observed.  The second time, again a long line,
there are no elipses.
___
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] Has filling behavior been changed recently in org?

2009-11-12 Thread Samuel Wales
Hi Sebastian,

On 2009-11-12, Sebastian Rose  wrote:
> Samuel Wales  writes:
>> For some reason, I can fill a commented paragraph in emacs lisp mode,
>> text mode, and fundamental mode, but not in org mode.  It does
>> nothing.  fill-column is my normal 60.  I cannot debug it.  Did
>> something change recently?  I use filladapt.
>>
>> Thanks.
>
> Sorry for the question, but "in emacs lisp mode" is not "in org mode",
> is it?

Sorry, I don't understand your comment at all.


___
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] Has filling behavior been changed recently in org?

2009-11-12 Thread Sebastian Rose
Samuel Wales  writes:
> For some reason, I can fill a commented paragraph in emacs lisp mode,
> text mode, and fundamental mode, but not in org mode.  It does
> nothing.  fill-column is my normal 60.  I cannot debug it.  Did
> something change recently?  I use filladapt.
>
> Thanks.

Sorry for the question, but "in emacs lisp mode" is not "in org mode",
is it?


BTW: That's exactly what I use filladapt for. Fill (only) commented
paragraphs.


  Sebastian


___
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] emacs for the mac -- best distribution/version

2009-11-12 Thread Greg Newman
I too have been building but lately after the 23 betas I started grabbing
the builds from http://emacsformacosx.com


On Thu, Nov 12, 2009 at 4:33 PM, Eric Schulte wrote:

> Marcelo de Moraes Serpa  writes:
>
> > Hello fellows orgers,
> >
> > After almost 5 years in a love-hate relationship with Linux and lately,
> Ubuntu (which I acknowledge, is a
> > marvelous OS, and that has been getting greater with each release), I
> decided to go to the next level
> > (read: Focus on web development/graphics design and forget about tweaking
> my OS for some time) and buy a
> > Mac. There's no way I will ever use Windows again, except for selected
> games or eventual entertainment
> > software that I'm not able to run on Mac or Linux, so, the logical
> decision was a Mac.
> >
> > Philosophies aside, orgmode and emacs have become keys pieces of my life,
> I have almost every aspect of my
> > life recorded in text-files managed by orgmode. This won't change
> whatever OS I use. So I politely ask,
> > what is the best emacs distribution for the Mac? I've heard carbon emacs
> is the logical choice, but some
> > say Aquamacs is better. What I want is an emacs that up-to-date with
> current releases and that is as close
> > as possible to the one I use on my Ubuntu box right now
> (emacs-snapshot-gtk 23.1.50.1), so, any
> > suggestions/ideas are greatly appreciated :)
> >
>
> Hi Marcelo,
>
> I've been building emacs from source on my Mac for years; when running
> configure pass the "--with-ns" option and then after running "make
> install" you will find an Emacs.app Mac application in your nextstep
> directory.
>
> I think this to be the best approach as (like you) I was coming to Mac
> from linux and wanted an Emacs that was as similar as possible to *true*
> linux Emacs.
>
> also you might find the following helpful.
> --8<---cut here---start->8---
> ;; on mac apple is meta
> (setq mac-command-modifier 'meta)
> (setq mac-option-modifier 'super)
> --8<---cut here---end--->8---
>
> Best -- Eric
>
> >
> > Thanks,
> >
> > Marcelo.
> >
> > ___
> > 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
>
___
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] emacs for the mac -- best distribution/version

2009-11-12 Thread Eric Schulte
Marcelo de Moraes Serpa  writes:

> Hello fellows orgers,
>
> After almost 5 years in a love-hate relationship with Linux and lately, 
> Ubuntu (which I acknowledge, is a
> marvelous OS, and that has been getting greater with each release), I decided 
> to go to the next level
> (read: Focus on web development/graphics design and forget about tweaking my 
> OS for some time) and buy a
> Mac. There's no way I will ever use Windows again, except for selected games 
> or eventual entertainment
> software that I'm not able to run on Mac or Linux, so, the logical decision 
> was a Mac.
>
> Philosophies aside, orgmode and emacs have become keys pieces of my life, I 
> have almost every aspect of my
> life recorded in text-files managed by orgmode. This won't change whatever OS 
> I use. So I politely ask,
> what is the best emacs distribution for the Mac? I've heard carbon emacs is 
> the logical choice, but some
> say Aquamacs is better. What I want is an emacs that up-to-date with current 
> releases and that is as close
> as possible to the one I use on my Ubuntu box right now (emacs-snapshot-gtk 
> 23.1.50.1), so, any
> suggestions/ideas are greatly appreciated :)
>

Hi Marcelo,

I've been building emacs from source on my Mac for years; when running
configure pass the "--with-ns" option and then after running "make
install" you will find an Emacs.app Mac application in your nextstep
directory.

I think this to be the best approach as (like you) I was coming to Mac
from linux and wanted an Emacs that was as similar as possible to *true*
linux Emacs.

also you might find the following helpful.
--8<---cut here---start->8---
;; on mac apple is meta
(setq mac-command-modifier 'meta)
(setq mac-option-modifier 'super)
--8<---cut here---end--->8---

Best -- Eric

>
> Thanks,
>
> Marcelo.
>
> ___
> 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] Has filling behavior been changed recently in org?

2009-11-12 Thread Samuel Wales
For some reason, I can fill a commented paragraph in emacs lisp mode,
text mode, and fundamental mode, but not in org mode.  It does
nothing.  fill-column is my normal 60.  I cannot debug it.  Did
something change recently?  I use filladapt.

Thanks.

-- 
Q: How many CDC "scientists" does it take to change a lightbulb?
A: You only think it's dark. [CDC has denied ME/CFS for 25 years]
=
Retrovirus: http://www.wpinstitute.org/xmrv/xmrv_qa.html


___
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: Only Clock in Top-Level Task

2009-11-12 Thread Bernt Hansen
Markus Heller  writes:

Q> Bernt Hansen wrote:
>> Markus Heller  writes:
>>
>>> Hello,
>>>
>>> This is what my project.org looks like:
>>>
>>> * STARTED My Project   :NEXT:   
>>>   :LOGBOOK:...
>>>
>>> ** TODO Task 1 [0/2]
>>> *** TODO Sub-Task 1
>>> *** TODO Sub-Task 2
>>>
>>> This is what I'd like to do:
>>>
>>> I'd like to be able to clock in from Task 1, Sub-Task 1, or Sub-Task
>>> 2, but make org-mode add the clock entries into the :LOGBOOK: of My
>>> Project, i.e. the top-level task/project.  In other words, I'm not
>>> interested in keeping track of how much time I spent on Task 1, or any
>>> of the sub-tasks, I'm only interested in the time I've spent on
>>> working on My Project.
>>>
>>> Is there anyway to do this?
>>
>> C-c C-x C-d will total time for a task including times on a subtask.
>>
>> -Bernt
>
> Hi Bernt,
>
> I saw this option in the manual, but this is not quite what I
> want. What I'd like to be able to is clock in from any sub-task and be
> clocked into the *top-level* task, not the task I'm clocking in from.
>
> Is that feasible?  Or am I too confusing?

There is nothing I'm aware of that is built in which will accomplish
what you want.  You might be able to use the org-clock-in-hook and
custom lisp code to clock in the top-most parent task.

-Bernt


___
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][babel] Latex export options for babel-generated tables

2009-11-12 Thread Juan Reyero
Greetings,

I would like to set the ATTR_LaTeX option for a table generated by babel, like:

#+ATTR_LaTeX: align=l|lp{3cm}r
:resname
| my | generated | table |

Is there a way I can do it?  The obvious options don't work, maybe I
can do it as part of the code that generates the result?

Best regards, and thanks for the great code,

Juan
-- 
http://juanreyero.com/blog


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


[Orgmode] Org-mode version 6.32trans (release_6.32b.147.g97e21); Cloning subtree on eof may not insert required newline

2009-11-12 Thread David Maus
-- 

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

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

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


By accident I noticed that if you clone a subtree using C-c C-x c who
or whose content is the last line of the file orgmode inserts the
clone without the desired newline.

example.org
,
| * Just a test
`

If you move the point behind test and press C-c C-x c 1  
the clone is inserted right behind "test".

example.org
,
| * Just a test*Just a test
`

Instead orgmode should insert a newline before inserting the clone
when the file misses an empty line at the end.

Regards,

  --David

Emacs  : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3)
 of 2009-10-23 on elegiac, modified by Debian
Package: Org-mode version 6.32trans (release_6.32b.147.g97e21)

current state:
==
(setq
 org-clock-in-switch-to-state "STARTED"
 org-todo-keyword-faces '(("TODO" :foreground "red" :weight bold) ("STARTED" 
:foreground "gold" :weight bold)
  ("DONE" :foreground "green") ("NEXT" :foreground 
"dark orange" :weight bold)
  ("WAITING" :foreground "MediumPurple1" :weight bold) 
("CANCELLED" :foreground "dark red")
  ("APPT" :foreground "tan1" :weight bold))
 org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent)
 org-agenda-tags-column -120
 org-checklist-export-function 'org-export-as-ascii
 org-after-todo-state-change-hook '(org-clock-out-if-current org-checklist)
 org-agenda-todo-ignore-scheduled t
 org-todo-state-tags-triggers '(("" ("NOTE" . t)) (todo ("NOTE")))
 org-log-redeadline 'time
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(org-hide-block-toggle-maybe)
 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-todo-keywords '((sequence "TODO(t)" "STARTED(s!)" "|" "DONE(D@)")
 (sequence "NEXT(n)" "WAITING(w@/!)" "|" "CANCELLED(C@)")
 (sequence "APPT(a)" "|" "DONE(D@)" "CANCELLED(C@)"))
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-directory "~/Org"
 org-log-reschedule 'time
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers 
org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-publish-project-alist '(("private-dynamic" :base-directory "~/Org/www" 
:base-extension "org" :publishing-directory
  "~/www/private" :publishing-function 
(org-publish-org-to-html) :recursive t :author
  "David Maus" :email "maus.da...@gmail.com")
 ("private-static" :base-directory "~/Org/www" 
:base-extension "css" :publishing-directory
  "~/www/private" :publishing-function 
org-publish-attachment :recursive t)
 ("private" :components ("private-dynamic" 
"private-static")))
 org-mode-hook '((lambda nil
  (org-add-hook (quote change-major-mode-hook) (quote 
org-show-block-all) (quote append) (quote local)))
 )
 org-refile-targets '((org-agenda-files :maxlevel . 3))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-refile-use-outline-path 'file
 org-log-into-drawer "LOGBOOK"
 org-agenda-todo-ignore-with-date t
 org-enforce-todo-dependencies t
 org-occur-hook '(org-first-headline-recenter)
 org-from-is-user-regexp "\\"
 org-outline-path-complete-in-steps nil
 org-tags-column -120
 org-remember-templates '(("todo" 116
   "* TODO %^{Description} %^G\n  :PROPERTIES:\n  
:Created: %U\n  :Ref: %a\n  :END:\n\n  %?"
   "refile.org" bottom nil)
  ("note" 110
   "* %^{Description} :NOTE:%^G\n  :PROPERTIES:\n  
:Created: %U\n  :Ref: %a\n  :END:\n\n  %?"
   "refile.org" bottom nil)
  ("appt" 97
   "* APPT %^{Description} :APPT:%^G\n  %^T\n  
:PROPERTIES:\n  :Created: %U\n  :Ref: %a\n  :END:\n\n  %?" "refile.org" bottom 
nil)
  ("mail" 109
   "* TODO %^{Action} 
[[wl:%5B%:message-id%5D~/.elmo/namazu#%:message-id][%:from %:subject]] %^G\n  
:PROPERTIES:\n  :Created: %U\n  :Ref: 
[[wl:%5B:message-id%5D~/.elmo/namazu#%:message-id][%:from: %:subject]]\n  
:END:\n\n  %?"
   "refile.org" bottom (wl-summary-mode))
  ("link" 108
   "* [[%:link][%:description]] :NOTE:LINK:%^G\n  
:PROPERTIES:\n  :Created: %U\n  :Ref: %a\n  :END:\n\n  %?" bottom nil)
  )
 )
OpenPGP... 0x316F4BE4670716FD
Jabber dmj...@jabber.org
Email. mau

[Orgmode] PATCH: org-mobile.el, fix line encoding for checksums.dat

2009-11-12 Thread Charles Sebold
After discussing the problem briefly with Richard, I have a suggested patch
for org-mobile.el.

This will force checksums.dat to always be Unix line encoding.

--- a/lisp/org-mobile.el
+++ b/lisp/org-mobile.el
@@ -409,6 +409,7 @@ The table of checksums is written to the file
mobile-checksums."
 (files org-mobile-checksum-files)
 entry file sum)
 (with-temp-file sumfile
+  (set-buffer-file-coding-system 'undecided-unix nil)
   (while (setq entry (pop files))
 (setq file (car entry) sum (cdr entry))
 (insert (format "%s  %s\n" sum file))

He said he may update MobileOrg to handle other linefeed encodings, but for
the meantime this seems to work for me.

On Thu, Nov 12, 2009 at 11:47 AM, Charles Sebold  wrote:

> I wonder, does MobileOrg always expect Unix-style line feeds?
>
> I ask because it seems to me as if, when I push from Emacs on Windows, from
> then on every time I sync, I have to download and read in every single org
> file.  I have 20-30 org files and a couple of them are over 200K so this
> takes a while.
>
> If I take the same org files and push them from Linux, I have to reread
> everything once, and then every sync from Linux after that only seems to
> force it to reread the files that changed.
>
> So, I'm wondering if it's not reading one of the files correctly:
> checksums.dat, or one of the agenda files.  I don't know enough about the
> iPhone app source to figure that one out, but I could think of workarounds
> for org-mobile.el if it always needs to produce Unix-style files for
> pushing.
> --
> Charles Sebold
> http://triablogue.blogspot.com/
> http://merbc.invigorated.org/
> Ego delendus sum
>



-- 
Charles Sebold
http://triablogue.blogspot.com/
http://merbc.invigorated.org/
Ego delendus sum
___
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] possible bug in org-goto-local-search-headings

2009-11-12 Thread Lee Hinman
I noticed some interesting behavior with the
org-goto-local-search-headings function in Emacs 23.1.1.

If you call the function before doing an incremental search, searching
forward fails.  If you call it after doing an incremental search the
function will search forward.  A quick look at the code showed that it
only does a forward search if isearch-forward is defined.  This is both
a variable and a function in isearch.el, and the variable
isearch-forward is set to nil until you do a search.

The following patch against the current orgmode removes the dependency
on isearch-forward and will now search forward first, if it doesn't find
anything will search backward from the original point.  I *think* this
is the behavior that was intended.


diff --git a/lisp/org.el b/lisp/org.el
index dd34816..1e9aad3 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5801,8 +5801,7 @@ or nil."
 (defun org-goto-local-search-headings (string bound noerror)
   "Search and make sure that any matches are in headlines."
   (catch 'return
-(while (if isearch-forward
-   (search-forward string bound noerror)
+(while (or (search-forward string bound t)
  (search-backward string bound noerror))
   (when (let ((context (mapcar 'car (save-match-data (org-context)
  (and (member :headline context)


-- 
Lee Hinman



___
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: Only Clock in Top-Level Task

2009-11-12 Thread Markus Heller

Bernt Hansen wrote:

Markus Heller  writes:


Hello,

This is what my project.org looks like:

* STARTED My Project   :NEXT:   
  :LOGBOOK:...

** TODO Task 1 [0/2]
*** TODO Sub-Task 1
*** TODO Sub-Task 2

This is what I'd like to do:

I'd like to be able to clock in from Task 1, Sub-Task 1, or Sub-Task
2, but make org-mode add the clock entries into the :LOGBOOK: of My
Project, i.e. the top-level task/project.  In other words, I'm not
interested in keeping track of how much time I spent on Task 1, or any
of the sub-tasks, I'm only interested in the time I've spent on
working on My Project.

Is there anyway to do this?


C-c C-x C-d will total time for a task including times on a subtask.

-Bernt


Hi Bernt,

I saw this option in the manual, but this is not quite what I want. 
What I'd like to be able to is clock in from any sub-task and be clocked 
into the *top-level* task, not the task I'm clocking in from.


Is that feasible?  Or am I too confusing?

Thanks
Markus



___
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] emacs for the mac -- best distribution/version

2009-11-12 Thread Marcelo de Moraes Serpa
Hello fellows orgers,

After almost 5 years in a love-hate relationship with Linux and lately,
Ubuntu (which I acknowledge, is a marvelous OS, and that has been getting
greater with each release), I decided to go to the next level (read: Focus
on web development/graphics design and forget about tweaking my OS for some
time) and buy a Mac. There's no way I will ever use Windows again, except
for selected games or eventual entertainment software that I'm not able to
run on Mac or Linux, so, the logical decision was a Mac.

Philosophies aside, orgmode and emacs have become keys pieces of my life, I
have almost every aspect of my life recorded in text-files managed by
orgmode. This won't change whatever OS I use. So I politely ask, what is the
best emacs distribution for the Mac? I've heard carbon emacs is the logical
choice, but some say Aquamacs is better. What I want is an emacs that
up-to-date with current releases and that is as close as possible to the one
I use on my Ubuntu box right now (emacs-snapshot-gtk 23.1.50.1), so, any
suggestions/ideas are greatly appreciated :)

Thanks,

Marcelo.
___
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: [babel] dot in pdf directly

2009-11-12 Thread Julien Barnier
Hi,

> A question about updating org...
> I also have all my .emacs.d under git, so if I put
> the whole org-mode in it (46M) I wast a lot of space.
> But if I don't then every time I can't just "git pull" but I need more
> operations, which can be annoying, how do you deal with it?

In my experience git deals very well with imbricated .git working
directory. If your .emacs.d is unde git version control, putting your
org-mode git folder in yout .emacs.d .gitignore file should be enough.

HTH,

-- 
Julien



___
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: [babel] dot in pdf directly

2009-11-12 Thread andrea Crotti
A question about updating org...
I also have all my .emacs.d under git, so if I put
the whole org-mode in it (46M) I wast a lot of space.
But if I don't then every time I can't just "git pull" but I need more
operations, which can be annoying, how do you deal with it?

For the capitalization I could also always write not capitalized,
it's not a problem.
Given I've always seen the org directives capitalized I thought it 
would be better..
Andrea



___
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] What does MobileOrg expect in terms of linefeeds?

2009-11-12 Thread Charles Sebold
I wonder, does MobileOrg always expect Unix-style line feeds?

I ask because it seems to me as if, when I push from Emacs on Windows, from
then on every time I sync, I have to download and read in every single org
file.  I have 20-30 org files and a couple of them are over 200K so this
takes a while.

If I take the same org files and push them from Linux, I have to reread
everything once, and then every sync from Linux after that only seems to
force it to reread the files that changed.

So, I'm wondering if it's not reading one of the files correctly:
checksums.dat, or one of the agenda files.  I don't know enough about the
iPhone app source to figure that one out, but I could think of workarounds
for org-mobile.el if it always needs to produce Unix-style files for
pushing.
-- 
Charles Sebold
http://triablogue.blogspot.com/
http://merbc.invigorated.org/
Ego delendus sum
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Org-mode version 6.32trans (release_6.32b.190.g1818); LAST_MOBILE_CHANGE line bumps local variable line

2009-11-12 Thread Charles Sebold
In org-mobile-timestamp-buffer(), it tries to insert the
LAST_MOBILE_CHANGE timestamp on the first line if there isn't already
one.

I think this should check first to see if the first line has local
variables, for example:

# -*- mode: org; coding: utf-8; -*-

...and it should skip past that line if it's there.  Any chance of
changing that?

(The workaround for the moment is to make sure that there is always a
timestamp line present already, and that's fine, but this could surprise
somebody who wasn't expecting it - like me, until I tracked this down.)

Maybe it could be something like:

--- a/lisp/org-mobile.el
+++ b/lisp/org-mobile.el
@@ -738,10 +738,13 @@ If BEG and END are given, only do this in that
region."
   (save-restriction
   (widen)
   (goto-char (point-min))
-  (when (re-search-forward
+  (if (re-search-forward
  "^\\([ \t]*\\)#\\+LAST_MOBILE_CHANGE:.*\n?" nil t)
-   (goto-char (match-end 1))
- (delete-region (point) (match-end 0)))
+ (progn
+  (goto-char (match-end 1))
+(delete-region (point) (match-end 0)))
+  (if (looking-at ".*-\\*-.*-\\*-")
+  (forward-line 1)))
   (insert "#+LAST_MOBILE_CHANGE: "
   (format-time-string "%Y-%m-%d %T") "\n")

Emacs  : GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600)
 of 2009-11-11 on CT-SEBOLDCR-T4C
Package: Org-mode version 6.32trans (release_6.32b.190.g1818)
-- 
Charles Sebold
http://merbc.invigorated.org/
http://triablogue.blogspot.com/


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


Re: [Orgmode] Re: [feature-suggestion] Lock region

2009-11-12 Thread Marcelo de Moraes Serpa
Hi Renzo, thanks for the reply.

Isn't the include feature meant only for exporting? I mean, will the file
get included in the org buffer or is it going to be included only when
exporting the org file?

Thanks,

Marcelo.

On Thu, Nov 12, 2009 at 4:14 AM, Renzo Been :-) wrote:

> Marcelo de Moraes Serpa  gmail.com> writes:
>
> >
> > Hello list,It would be great if we could "lock a region" of text in an
> org-mode buffer, meaning it gets read-only, and inside it you can't modify
> anything besides applying org commands such as expanding/retracting/sparse
> tree
> etc. I'm suggesting this because I have a section on the top of my gtd file
> that
> has an introduction to the system, link to related files etc, and often I
> find
> myself accidentally writing characters or inserting line breaks and other
> things. Not essential, but a nice-to-have feature.Thanks,Marcelo.
> >
> > ___
> > 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
> >
>
> Hi Marcelo,
>
> Maybe an idea. To prevent accidental changes to your introduction text.
>
> You could try and put the introduction into a separate org-file and then
> include
> it into your gtd org-file using:
>
> #+include foo.org
>
> Hope this helps,
> Renzo
>
>
>
> ___
> 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] Hidden-tags / tags saved in :PROPERTIES:

2009-11-12 Thread Marcelo de Moraes Serpa
Thanks Darlan. Will post any additional thoughts on your thread.

Marcelo.

On Wed, Nov 11, 2009 at 5:07 PM, Darlan Cavalcante Moreira <
darc...@gmail.com> wrote:

>
> This does not sound crazy at all and there is another thread
> discussing this ([Orgmode] Best way to implement Keywords feature).  I
> suggested something similar: storing some tags in a property that can
> still be used for searching but without polluting the agenda. The user
> would be able to see these tags in the mini-buffer when pressing "T"
> in the agenda. However, this was just a suggestion (there are others)
> and I don't know how is the status of this matter.
>
> - Darlan
>
> At Wed, 11 Nov 2009 10:53:44 -0600,
> Marcelo de Moraes Serpa  wrote:
> >
> > [1  ]
> > [1.1  ]
> > Hello,
> >
> > This might sound crazy, but sometimes I want to tag everything (easy to
> > recall the piece of data related to something when it comes to my mind)
> --
> > however, there are items on some specific org files that I don't want to
> > pollute visually with all the tags at the right column, so, I wonder if
> it
> > is possible to setup tags to be saved in another part, like the
> :PROPERTIES:
> > section of an item.
> >
> > Thanks,
> >
> > Marcelo.
> > [1.2  ]
> >
> > [2  ]
> > ___
> > 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] [PATCH 2/2] Rename variable due to typo

2009-11-12 Thread Carsten Dominik

Hi Bernt,

I have applied the typo patches, thank you.

- Carsten

On Nov 12, 2009, at 1:52 PM, Bernt Hansen wrote:


---
This patch is available at git://git.norang.ca/org-mode.git typos

lisp/org-agenda.el |2 +-
lisp/org-mobile.el |2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 5bc966c..20d68ed 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -1774,7 +1774,7 @@ Pressing `<' twice means to restrict to the  
current subtree or region

   entry key type match lprops ans)
  ;; Turn off restriction unless there is an overriding one,
  (unless org-agenda-overriding-restriction
-   (unless (org-bound-and-true-p org-agenda-keep-restriced-file-list)
+   (unless (org-bound-and-true-p org-agenda-keep-restricted-file-list)
  ;; There is a request to keep the file list in place
  (put 'org-agenda-files 'org-restrict nil))
(setq org-agenda-restrict nil)
diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el
index c0751bb..d441337 100644
--- a/lisp/org-mobile.el
+++ b/lisp/org-mobile.el
@@ -280,7 +280,7 @@ agenda view showing the flagged items."
;; Make an agenda view of flagged entries, but only in the files
;; where stuff has been added.
(put 'org-agenda-files 'org-restrict org-mobile-last-flagged-files)
-   (let ((org-agenda-keep-restriced-file-list t))
+   (let ((org-agenda-keep-restricted-file-list t))
  (org-agenda nil "?"))

(defun org-mobile-check-setup ()
--
1.6.5.2.180.gc5b3e



___
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


- Carsten





___
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] [PATCH] Add faces customization to quote and verse blocks

2009-11-12 Thread Julien Barnier
Hi,

Here is a small patch that allows to add custom faces to QUOTE and VERSE
blocks. As I'm quite new to emacs lisp and as it is the first time I
submit a patch to a project, please feel free to correct or reject it if
its form or quality is not sufficient.

Thanks a lot for all your work on org-mode !

Julien

---
 lisp/org-faces.el |   28 
 lisp/org.el   |   15 +++
 2 files changed, 39 insertions(+), 4 deletions(-)

diff --git a/lisp/org-faces.el b/lisp/org-faces.el
index 4543d38..fbac871 100644
--- a/lisp/org-faces.el
+++ b/lisp/org-faces.el
@@ -468,6 +468,34 @@ changes."
   :group 'org-faces
   :version "22.1")
 
+(defface org-quote
+  (org-compatible-face nil
+'class color grayscale) (min-colors 88) (background light))
+   (:foreground "grey50" :slant italic))
+  (((class color grayscale) (min-colors 88) (background dark))
+   (:foreground "grey70" :slant italic))
+  (((class color) (min-colors 8) (background light))
+   (:foreground "green" :slant italic))
+  (((class color) (min-colors 8) (background dark))
+   (:foreground "yellow" :slant italic
+  "Face for #+BEGIN_QUOTE ... #+END_QUOTE blocks."
+  :group 'org-faces
+  :version "22.1")
+
+(defface org-verse
+  (org-compatible-face nil
+'class color grayscale) (min-colors 88) (background light))
+   (:foreground "grey50" :slant italic))
+  (((class color grayscale) (min-colors 88) (background dark))
+   (:foreground "grey70" :slant italic))
+  (((class color) (min-colors 8) (background light))
+   (:foreground "green" :slant italic))
+  (((class color) (min-colors 8) (background dark))
+   (:foreground "yellow" :slant italic
+  "Face for #+BEGIN_VERSE ... #+END_VERSE blocks."
+  :group 'org-faces
+  :version "22.1")
+
 (defface org-clock-overlay ;; copied from secondary-selection
   (org-compatible-face nil
 'class color) (min-colors 88) (background light))
diff --git a/lisp/org.el b/lisp/org.el
index 5562d8d..adabfa8 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -4518,7 +4518,7 @@ will be prompted for."
  (beg1 (line-beginning-position 2))
  (dc1 (downcase (match-string 2)))
  (dc3 (downcase (match-string 3)))
- end end1 quoting)
+ end end1 quoting block-type quote-block verse-block)
  (cond
   ((member dc1 '("html:" "ascii:" "latex:" "docbook:"))
;; a single line of backend-specific content
@@ -4532,8 +4532,10 @@ will be prompted for."
t)
   ((and (match-end 4) (equal dc3 "begin"))
;; Truely a block
-   (setq quoting (member (downcase (match-string 5))
- org-protecting-blocks))
+   (setq block-type (downcase (match-string 5))
+ quoting (member block-type org-protecting-blocks)
+ quote-block (equal block-type "quote")
+ verse-block (equal block-type "verse"))
(when (re-search-forward
   (concat "^[ \t]*#\\+end" (match-string 4) "\\>.*")
   nil t)  ;; on purpose, we look further than LIMIT
@@ -4546,8 +4548,13 @@ will be prompted for."
   '(font-lock-fontified t font-lock-multiline t))
  (add-text-properties beg beg1 '(face org-meta-line))
  (add-text-properties end1 end '(face org-meta-line))
- (when quoting
+ (cond
+  (quoting
(add-text-properties beg1 end1 '(face org-block)))
+  (quote-block
+   (add-text-properties beg1 end1 '(face org-quote)))
+  (verse-block
+   (add-text-properties beg1 end1 '(face org-verse
  t))
   ((not (member (char-after beg) '(?\  ?\t)))
;; just any other in-buffer setting, but not indented
-- 
1.6.5.2




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


[Orgmode] Org-mode version 6.32b; org-remember only indents first line of %i substitution

2009-11-12 Thread Andrew J. Korty

When %i appears indented in an org-remember template, each line of the
text substituted is supposed to be indented.  In my case, only the first
line is being indented.

Emacs  : GNU Emacs 23.1.50.1 (x86_64-apple-darwin10.0.0, NS apple- 
appkit-1038.11)

 of 2009-11-10 on phrygian
Package: Org-mode version 6.32b



___
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] [PATCH] Fix documentation typos

2009-11-12 Thread Bernt Hansen
---
This patch is available at git://git.norang.ca/org-mode.git typos

 doc/org.texi|   20 ++--
 doc/orgcard.tex |6 +++---
 doc/orgcard.txt |2 +-
 3 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index d5d6ae1..1598219 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -3708,7 +3708,7 @@ after the minimum of 2 days has elapsed, and will appear 
overdue on Oct 19,
 after four days have elapsed.
 
 What's really useful about habits is that they are displayed along with a
-conistency graph, to show how consistent you've been at getting that task
+consistency graph, to show how consistent you've been at getting that task
 done in the past.  This graph shows every day that the task was done over the
 past three weeks, with colors for each day.  The colors used are:
 
@@ -3733,7 +3733,7 @@ habits are displayed in the agenda.
 @table @code
 @item org-habit-graph-column
 The buffer column at which the consistency graph should be drawn.  This will
-overwite any text in that column, so it's a good idea to keep your habits'
+overwrite any text in that column, so it's a good idea to keep your habits'
 titles brief and to the point.
 @item org-habit-preceding-days
 The amount of history, in days before today, to appear in consistency graphs.
@@ -3840,7 +3840,7 @@ this issue.
 
 @vindex org-hierarchical-todo-statistics
 If you would like to have the statistics cookie count any TODO entries in the
-subtree (not just direct children), confgure the variable
+subtree (not just direct children), configure the variable
 @code{org-hierarchical-todo-statistics}.  To do this for a single subtree,
 include the word @samp{recursive} into the value of the @code{COOKIE_DATA}
 property.
@@ -4612,8 +4612,8 @@ optional.  The individual parts have the following 
meaning:
 @end example
 
 @noindent
-Be aware that you can only have use one summary type for any property you
-include. Subsequent columns referencing the same property will al display the
+Be aware that you can only have one summary type for any property you
+include. Subsequent columns referencing the same property will all display the
 same summary information.
 
 Here is an example for a complete columns definition, along with allowed
@@ -4653,7 +4653,7 @@ in the subtree.
 @vindex org-columns-default-format
 Turn on column view.  If the cursor is before the first headline in the file,
 column view is turned on for the entire file, using the @code{#+COLUMNS}
-definition.  If the cusor is somewhere inside the outline, this command
+definition.  If the cursor is somewhere inside the outline, this command
 searches the hierarchy, up from point, for a @code{:COLUMNS:} property that
 defines a format.  When one is found, the column view table is established
 for the tree starting at the entry that contains the @code{:COLUMNS:}
@@ -5229,7 +5229,7 @@ Insert @samp{DEADLINE} keyword along with a stamp.  The 
insertion will happen
 in the line directly following the headline.  When called with a prefix arg,
 an existing deadline will be removed from the entry.  Depending on the
 variable @code{org-log-redeadli...@footnote{with corresponding
-...@code{#+startup} keyqwords @code{logredeadline}, @code{lognoteredeadline},
+...@code{#+startup} keywords @code{logredeadline}, @code{lognoteredeadline},
 and @code{nologredeadline}}, a note will be taken when changing an existing
 deadline.
 @c FIXME Any CLOSED timestamp will be removed.
@@ -10350,7 +10350,7 @@ This may be necessary in particular if files include 
other files via
 
 Emacs would not be Emacs without completion, and Org-mode uses it whenever it
 makes sense.  If you prefer an @i{iswitchb}- or @i{ido}-like interface for
-some of the completion prompts, you can specify your preferece by setting at
+some of the completion prompts, you can specify your preference by setting at
 most one of the variables @code{org-completion-use-iswitchb}
 @code{org-completion-use-ido}.
 
@@ -12126,7 +12126,7 @@ the view, only the current agenda files will be 
searched.
 
 @node History and Acknowledgments, Main Index, MobileOrg, Top
 @appendix History and Acknowledgments
-...@cindex acknowledgments
+...@cindex acknowledgements
 @cindex history
 @cindex thanks
 
@@ -12381,7 +12381,7 @@ and contributed various ideas and code snippets.
 
 This is not a complete index of variables and faces, only the ones that are
 mentioned in the manual.  For a more complete list, use @kbd{M-x
-org-customize @key{RET}} and then klick yourself through the tree.
+org-customize @key{RET}} and then click yourself through the tree.
 
 @printindex vr
 
diff --git a/doc/orgcard.tex b/doc/orgcard.tex
index 2267908..be34503 100644
--- a/doc/orgcard.tex
+++ b/doc/orgcard.tex
@@ -575,7 +575,7 @@ after  ``{\tt :}'', and dictionary words elsewhere.
 %\key{... scroll calendar back/forward one month}{< / >}
 %\key{... forward/backward one day}{S-LEFT/RIGHT}
 %\key{... forward/backward one week}{S-UP/DOWN}
-%

[Orgmode] [PATCH 1/2] Fix spelling and grammar

2009-11-12 Thread Bernt Hansen
---
This patch is available at git://git.norang.ca/org-mode.git typos

 lisp/org-agenda.el |   28 ++--
 lisp/org-attach.el |2 +-
 lisp/org-bbdb.el   |2 +-
 lisp/org-bibtex.el |2 +-
 lisp/org-clock.el  |6 +++---
 lisp/org-docbook.el|2 +-
 lisp/org-exp-blocks.el |2 +-
 lisp/org-exp.el|6 +++---
 lisp/org-feed.el   |6 +++---
 lisp/org-footnote.el   |6 +++---
 lisp/org-html.el   |2 +-
 lisp/org-icalendar.el  |6 +++---
 lisp/org-indent.el |2 +-
 lisp/org-inlinetask.el |6 +++---
 lisp/org-latex.el  |   10 +-
 lisp/org-list.el   |4 ++--
 lisp/org-macs.el   |2 +-
 lisp/org-mobile.el |   12 ++--
 lisp/org-protocol.el   |   10 +-
 lisp/org-publish.el|2 +-
 lisp/org-table.el  |   10 +-
 lisp/org-timer.el  |4 ++--
 lisp/org-w3m.el|4 ++--
 lisp/org.el|   48 
 24 files changed, 92 insertions(+), 92 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 8be46bc..5bc966c 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -622,7 +622,7 @@ have turned on `org-enforce-todo-dependencies',
 `org-enforce-todo-checkbox-dependencies', or any other blocking
 mechanism, this will create useful feedback in the agenda.
 
-Instead ot t, this variable can also have the value `invisible'.
+Instead of t, this variable can also have the value `invisible'.
 Then blocked tasks will be invisible and only become visible when
 they become unblocked.  An exemption to this behavior is when a task is
 blocked because of unchecked checkboxes below it.  Since checkboxes do
@@ -635,7 +635,7 @@ will only be dimmed."
   :type '(choice
  (const :tag "Do not dim" nil)
  (const :tag "Dim to a grey face" t)
- (const :tag "Make invisibe" invisible)))
+ (const :tag "Make invisible" invisible)))
 
 (defcustom org-timeline-show-empty-dates 3
   "Non-nil means, `org-timeline' also shows dates without an entry.
@@ -677,7 +677,7 @@ Needs to be set before org.el is loaded."
   :type 'boolean)
 
 (defcustom org-agenda-entry-text-maxlines 5
-  "Number of text lines to be added when `E' is presed in the agenda.
+  "Number of text lines to be added when `E' is pressed in the agenda.
 
 Note that this variable only used during agenda display.  Add add entry text
 when exporting the agenda, configure the variable
@@ -1089,7 +1089,7 @@ If there is punctuation or whitespace character just 
before the final
 format letter, this character will be appended to the field value if
 the value is not empty.  For example, the format \"%-12:c\" leads to
 \"Diary: \" if the category is \"Diary\".  If the category were be
-empty, no additional colon would be interted.
+empty, no additional colon would be inserted.
 
 The default value of this option is \"  %-12:c%?-12t% s\", meaning:
 - Indent the line with two space characters
@@ -1788,7 +1788,7 @@ Pressing `<' twice means to restrict to the current 
subtree or region
(setq ans (org-agenda-get-restriction-and-command prefix-descriptions)
  keys (car ans)
  restriction (cdr ans)))
-  ;; Estabish the restriction, if any
+  ;; Establish the restriction, if any
   (when (and (not org-agenda-overriding-restriction) restriction)
(put 'org-agenda-files 'org-restrict (list bfn))
(cond
@@ -2271,7 +2271,7 @@ HTML (.html or .htm) or Postscript (.ps) is produced.
 If the extension is .ics, run icalendar export over all files used
 to construct the agenda and limit the export to entries listed in the
 agenda now.
-With prefic argument OPEN, open the new file immediately.
+With prefix argument OPEN, open the new file immediately.
 If NOSETTINGS is given, do not scope the settings of
 `org-agenda-exporter-settings' into the export commands.  This is used when
 the settings have already been scoped and we do not wish to overrule other,
@@ -2399,7 +2399,7 @@ Drawers will be excluded, also the line with 
scheduling/deadline info."
   "Extract entry text from MARKER, at most N-LINES lines.
 This will ignore drawers etc, just get the text.
 If INDENT is given, prefix every line with this string.  If KEEP is
-given, it is a list of symbols, defining stuff that hould not be
+given, it is a list of symbols, defining stuff that should not be
 removed from the entry content.  Currently only `planning' is allowed here."
   (let (txt drawer-re kwd-time-re ind)
 (save-excursion
@@ -2782,7 +2782,7 @@ no longer in use."
 ;;; Entry text mode
 
 (defun org-agenda-entry-text-show-here ()
-  "Add some text from te entry as context to the current line."
+  "Add some text from the entry as context to the current line."
   (let (m txt o)
 (setq m (org-get-at-bol 'org-hd-marker))
 (unless (marker-buffer m)
@@ -3194,8 +3194,8 @@ EDIT-AT.
 
 The search string is broken into \"word

[Orgmode] [PATCH 2/2] Rename variable due to typo

2009-11-12 Thread Bernt Hansen
---
This patch is available at git://git.norang.ca/org-mode.git typos

 lisp/org-agenda.el |2 +-
 lisp/org-mobile.el |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 5bc966c..20d68ed 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -1774,7 +1774,7 @@ Pressing `<' twice means to restrict to the current 
subtree or region
   entry key type match lprops ans)
   ;; Turn off restriction unless there is an overriding one,
   (unless org-agenda-overriding-restriction
-   (unless (org-bound-and-true-p org-agenda-keep-restriced-file-list)
+   (unless (org-bound-and-true-p org-agenda-keep-restricted-file-list)
  ;; There is a request to keep the file list in place
  (put 'org-agenda-files 'org-restrict nil))
(setq org-agenda-restrict nil)
diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el
index c0751bb..d441337 100644
--- a/lisp/org-mobile.el
+++ b/lisp/org-mobile.el
@@ -280,7 +280,7 @@ agenda view showing the flagged items."
;; Make an agenda view of flagged entries, but only in the files
;; where stuff has been added.
(put 'org-agenda-files 'org-restrict org-mobile-last-flagged-files)
-   (let ((org-agenda-keep-restriced-file-list t))
+   (let ((org-agenda-keep-restricted-file-list t))
  (org-agenda nil "?"))
 
 (defun org-mobile-check-setup ()
-- 
1.6.5.2.180.gc5b3e



___
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: Anyway to publish org file to XML file?

2009-11-12 Thread Christian Egli
Water Lin  writes:
> Is it possible to publish org file to XML file in a specific format?

Export to XHTML and then use XSLT to transform it to your specific XML.
Works like a charm.

HTH

Christian 



___
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] org 45d619c82be: lines are wrapped prefixed with '#' as soon as there is one line commented with '#' before them

2009-11-12 Thread Friedrich Delgado Friedrichs
Hi!

Carsten Dominik schrieb:
> http://orgmode.org/worg/org-faq.php#auto-fill-and-unwanted-comments

Oh, failure to check the FAQ on my part. I'm sorry, I thought I was
beyond that. You never cease to learn.

However I can't find out why comment-start was set in the first place
(it was set to ";;", but the inserted comments were '#'). I had to
resort to

,
  (add-hook 'org-mode-hook '(lambda ()
  (setf comment-start nil)))
`

to get rid of this.

This is a mystery, but I guess my emacs config is so complex now that
it has started to become sentient... ;)

Thanks and kind regards
   Friedel
-- 
Friedrich Delgado Friedrichs 
 TauPan on Ircnet and Freenode ;)


___
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] Org-mode to blog with Drupal/Wordpress?

2009-11-12 Thread David Maus
Hi Uri,

At Wed, 11 Nov 2009 11:19:27 -0500,
U Avalos wrote:
> 
> Hi all. I know that there are various packages out there to use org-mode to 
> publish *websites* but I don't want to reinvent the wheel. Is there a way to 
> use org-mode to add posts to an existing Drupal or Wordpress site? (I believe 
> they both use the same API, that's why I'm mentioning both.) I also know I 
> can 
> just cut-and-paste text into the web browser, but that method fails for 
> images.
> 
> As a plus, it would be great if I could also edit *existing* posts (even if 
> using nxtml-mode or html-mode)... but I'm happy if you could just add new 
> posts...

As far as I am aware there's no such extension to orgmode right now. A
fast glance on drupals and wordpress' remote editing capabilities
shows that they use different APIs but both use xmlrpc. So in theory
it should be possible as there already is a xml-rpc library for Emacs
that works according to my experiments with xml-rpc.el quite well.

Regards,

  --David
-- 
OpenPGP... 0x316F4BE4670716FD
Jabber dmj...@jabber.org
Email. maus.da...@gmail.com
ICQ... 241051416


___
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: [feature-suggestion] Lock region

2009-11-12 Thread Renzo Been : - )
Marcelo de Moraes Serpa  gmail.com> writes:

> 
> Hello list,It would be great if we could "lock a region" of text in an
org-mode buffer, meaning it gets read-only, and inside it you can't modify
anything besides applying org commands such as expanding/retracting/sparse tree
etc. I'm suggesting this because I have a section on the top of my gtd file that
has an introduction to the system, link to related files etc, and often I find
myself accidentally writing characters or inserting line breaks and other
things. Not essential, but a nice-to-have feature.Thanks,Marcelo.
> 
> ___
> 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
> 

Hi Marcelo,

Maybe an idea. To prevent accidental changes to your introduction text.

You could try and put the introduction into a separate org-file and then include
it into your gtd org-file using:

#+include foo.org

Hope this helps,
Renzo



___
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] Insert link with "foreign" character - cannot save

2009-11-12 Thread Mattias Jämting
(I'm using English Windows Vista x64, Emacs 23.1 and Org-mode 6.32b)

So i'm doing C-u C-c C-l to browse for a file in order to insert a link to
it.

The path and/or the filename contains for instance an ö (an o with two dots
above it, also the swedish word for "island"), which gets translated in my
org-file as \366.

When I try to save the file I see the message:

 These default coding systems were tried to encode text
 in the buffer `jwd.org':
   (utf-8-dos (79 . 4194294))
 However, each of them encountered characters it couldn't encode:
   utf-8-dos cannot encode these:  These default coding systems were tried
to encode text
 in the buffer `jwd.org':
   (utf-8-dos (79 . 4194294))
 However, each of them encountered characters it couldn't encode:
   utf-8-dos cannot encode these:  \366

Next I tried to hack myself a fix :-)

I added (?\366 . "%F6") to org-link-escape-chars and ran make on it again,
but it didn't seem to work.

So what can I try next?

Best regards,
Mattias 







___
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] Insert link with "foreign" character - cannot save

2009-11-12 Thread Mattias Jämting
(I'm using English Windows Vista x64, Emacs 23.1 and Org-mode 6.32b)

So i'm doing C-u C-c C-l to browse for a file in order to insert a link to it.

The path and/or the filename contains for instance an ö (an o with two
dots above it, also the swedish word for "island"), which gets
translated in my org-file as \366.

When I try to save the file I see the message:

 These default coding systems were tried to encode text  in the buffer
`jwd.org':
   (utf-8-dos (79 . 4194294))
 However, each of them encountered characters it couldn't encode:
   utf-8-dos cannot encode these:  These default coding systems were
tried to encode text  in the buffer `jwd.org':
   (utf-8-dos (79 . 4194294))
 However, each of them encountered characters it couldn't encode:
   utf-8-dos cannot encode these:  \366

Next I tried to hack myself a fix :-)

I added (?\366 . "%F6") to org-link-escape-chars and ran make on it
again, but it didn't seem to work.

So what can I try next?

Best regards,
Mattias


___
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] Org-mode version 6.32trans; latex export does not work

2009-11-12 Thread Carsten Dominik

This bug has been fixed half an hour ago.

- Carsten

On Nov 11, 2009, at 9:44 PM, Andreas Goesele wrote:


I want to export a org-mode file to latex. For instance one that just
consists of the two lines (the second line is empty):

* Test

I hit C-c C-e and choose "l". The process starts, but then hangs. In
Emacs I see the first time I try it: "Loading tabify...done" and then
nothing happens, I have to quit. The second time I try it I only get:
"Exporting to LaTeX...", again everything hangs.

The problem is caused by setting case-fold-search to nil: init.el
being empty and custom.el just consisting of:

(custom-set-variables
'(case-fold-search nil))

leads to the problem. Setting case-fold-search to t the problem
disapears.





Emacs  : GNU Emacs 22.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d  
scroll bars)

of 2008-11-09 on raven, modified by Debian
Package: Org-mode version 6.32trans

current state:
==
(setq
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-export-preprocess-hook '(org-export-blocks-preprocess)
org-tab-first-hook '(org-hide-block-toggle-maybe)
org-src-mode-hook '(org-src-mode-configure-edit-buffer)
org-confirm-shell-link-function 'yes-or-no-p
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- 
drawers

  org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
org-mode-hook '(#[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 )
org-confirm-elisp-link-function 'yes-or-no-p
org-occur-hook '(org-first-headline-recenter)
)


___
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


- Carsten





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


[Orgmode] Org-mode version 6.32trans; latex export does not work

2009-11-12 Thread Andreas Goesele
I want to export a org-mode file to latex. For instance one that just
consists of the two lines (the second line is empty):

* Test

I hit C-c C-e and choose "l". The process starts, but then hangs. In
Emacs I see the first time I try it: "Loading tabify...done" and then
nothing happens, I have to quit. The second time I try it I only get:
"Exporting to LaTeX...", again everything hangs. 

The problem is caused by setting case-fold-search to nil: init.el
being empty and custom.el just consisting of:

(custom-set-variables
 '(case-fold-search nil))

leads to the problem. Setting case-fold-search to t the problem
disapears.





Emacs  : GNU Emacs 22.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2008-11-09 on raven, modified by Debian
Package: Org-mode version 6.32trans

current state:
==
(setq
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(org-hide-block-toggle-maybe)
 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 )
 org-confirm-elisp-link-function 'yes-or-no-p
 org-occur-hook '(org-first-headline-recenter)
 )


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


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

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

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


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


Re: [Orgmode] Dynamic tag completion with all tags from all agenda files

2009-11-12 Thread Tassilo Horn
Carsten Dominik  writes:

Hi Carsten,

> %^G in a remember template gives you completion on all tags, globally.
> The fast tag interface does not, indeed.

Yes, that's nice and basically solves the problem for remember.

> On the list, but not now...

Great!  My birthday is November 26th, if you want to make me a
present. ;-)

Anyway, it seems the functionality is already there, so it should only
be accessible somehow in the usual `org-set-tags-command', maybe like I
described below, or in some other variant.

>>  ;; Use all tags from all agenda files, and add the tags foo and bar,
>>  ;; even if they are not used anywhere.
>>  (setq org-tag-alist '(:all foo bar))
>>
>> Now only the behavior of the TAGS keyword in files has to be defined
>> somehow.  Well, I don't have an opinion.  There are two options: 1)
>> extend the dynamic list of all tags with the ones defined in TAGS
>> (consistent with the :all keyword above), or 2) the dynamic list is
>> disabled and only those tags are shown (consistent with the current
>> behavior).

Thanks!
Tassilo


___
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