[Orgmode] Bug: iCalendar export creates VTODO *and* VEVENT for TODO entries with timestamp [6.36trans (release_6.36.158.g1378)]

2010-06-03 Thread Tassilo Horn

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.


Hi all,

I really like the iCalendar export.  I'm using that to export all my
agenda files when I save them, and import the ics files in KOrganizer,
so that I also have a visual agenda.

But there's one thing which might be a bug.  I have this TODO entry:

*** TODO Einteilung für Nacht der Informatik machen
<2010-06-08 Tue>

When I export the file containing that entry to iCalendar, what I get is
one VTODO with SUMMARY "Einteilung für Nacht der Informatik machen",
which has no due date.  Additionally, there's one VEVENT on 2010-06-08
with SUMMARY "TODO Einteilung für Nacht der Informatik machen".

If I set that date as DEADLINE, there's only one VTODO appearing on the
deadline date.  But for simple, short tasks that have to be done on a
given date, I prefer not to use DEADLINE, so that it doesn't show up on
previous days in the org agenda.

So IMHO, TODO entries should always become one VTODO each and no VEVENT,
and if there's no DEADLINE in org, then the normal date should be set as
DUE-date.

Bye,
Tassilo

Emacs  : GNU Emacs 24.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.9)
 of 2010-06-03 on thinkpad
Package: Org-mode version 6.36trans (release_6.36.158.g1378)

current state:
==
(setq
 org-log-done 'time
 org-remember-default-headline 'bottom
 org-archive-default-command 'org-archive-set-tag
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-link-frame-setup '((vm . vm-visit-folder) (gnus . org-gnus-no-new-news)
(file . find-file-other-window))
 org-special-ctrl-a/e 'reversed
 org-agenda-files '("/home/horn/repos/org")
 org-agenda-include-diary t
 org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent)
 org-gnus-prefer-web-links t
 org-fontify-whole-heading-line t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-attach-directory "/home/horn/repos/org/attachments"
 org-special-ctrl-k t
 org-agenda-time-leading-zero t
 org-agenda-restore-windows-after-quit t
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 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-finalize-agenda-hook '(th-org-agenda-to-appt)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-todo-keywords '((sequence "TODO(t)" "STARTED(s)" "DELEGATED(g)" "IDEA(i)" 
"|" "DONE(d)"
  "CANCELLED(c)")
 )
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-export-latex-packages-alist '(("" "a4wide" nil))
 org-default-notes-file "/home/horn/repos/org/remember.org"
 org-directory "/home/horn/repos/org"
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines 
org-optimize-window-after-visibility-change)
 org-export-preprocess-before-normalizing-links-hook 
'(org-remove-file-link-modifiers)
 org-mode-hook '(th-org-mode-init
 #[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook org-show-block-all 
append local] 5]
 )
 org-refile-targets '((org-agenda-files :maxlevel . 5))
 org-complete-tags-always-offer-all-agenda-tags t
 org-return-follows-link t
 org-confirm-elisp-link-function 'yes-or-no-p
 org-refile-use-outline-path 'file
 org-log-into-drawer "LOGBOOK"
 org-icalendar-categories '(all-tags category)
 org-agenda-mode-hook '(th-org-agenda-mode-init)
 org-enforce-todo-dependencies t
 org-refile-allow-creating-parent-nodes 'confirm
 org-occur-hook '(org-first-headline-recenter)
 org-icalendar-include-body t
 org-agenda-skip-additional-timestamps-same-entry nil
 org-export-preprocess-before-selecting-backend-code-hook 
'(org-beamer-select-beamer-code)
 org-modules '(org-attach org-protocol org-id org-bbdb org-bibtex org-docview 
org-gnus org-info
   org-jsinfo org-irc org-w3m)
 org-columns-default-format "%50ITEM %TODO %ALLTAGS %SCHEDULED %DEADLINE"
 outline-minor-mode-hook '(th-outline-minor-mode-init)
 org-remember-templates '(("NORMAL" 110
   "* %?\n  :PROPERTIES:\n  :created: %U\n  :link: %a\n 
 :END:\n  %i")
  ("TODO" 116
   "* TODO %?\n  :PROPERTIES:\n  :created: %U\n  :link: 
%a\n  :END:\n  %i")
  ("IDEA" 105
   "* IDEA %?\n  :PROPERTIES:\n  :created: %U\n  :link: 
%a\n  :END:\n  %i")
  ("BROWSER" 119
   "* %:description :browser:\n  :PROPERTIES:\n  
:crea

Re: [Orgmode] entity font-locking problem when inserting text in middle of buffer

2010-06-03 Thread Carsten Dominik

Hi Eric,

On Jun 3, 2010, at 9:23 PM, Eric S Fraga wrote:


Hello,

I don't think this is something that can be fixed but it has been
driving me crazy so I thought I'd email to point it out in case
anybody else runs into it.  If you have org-pretty-entities set to t,
org-mode does a lovely job of showing all kinds of characters.
However, the regexp for the font-locking for this makes sense for when
adding text to the end of a buffer or with point immediately before
any :alnum: character (e.g. not a space).  It makes less sense if you
start inserting some text in the middle of a sentence, say, which I do
often when writing papers...

See attached image for an example.  If you have something like "some
text", place point after the first "e" and start typing "\left", as
soon as you type the "e", you will get the \le symbol despite typing
the "f" immediately after.  The regexp for font-locking is fine for
converting text that has already been typed; it is less effective when
inserting the text.


I think that it should behave much better now, please give it a try.
Also the problem in comment lines should be gone, hopefully.



If, instead, point were at the first "t" in "some text", there's no
problem inserting "\left".


Good opportunity to plug cdlatex.el.  If you have it installed and
then turn on org-cdlatex-mode, one of the many things that will work
then is:

You type

 l r { TAB

and get

\left\{ \right\}

with the cursor in the middle.

Similarly:

You type

f r TAB

and get

\frac{}{}

with the cursor in the first set of braces, TAB will move you into
the second, and then out.

If you are using a lot of math, this should be quite helpful.

Cheers

- Carsten




Unfortunately, I cannot suggest a fix.  It's not that serious a
problem; I just wanted to highlight it for the mailing list.

In the image, you'll also see that there are some problems with
underlined text when org-hide-emphasis-markers is set to t.  Again,
not a serious problem (and underlining is really a hold-over from
typewriter days, as I believe Carsten would say... ;-).



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


[Orgmode] Toggle a repeating task in DONE state

2010-06-03 Thread Tom
When in the agenda I sometimes accidentaly press 't' again on a
repeating task which is already in DONE state. This makes the
task to skip yet another repetition and set the date to the next
available date.

Is this 'feature' actually useful? It makes sense for a
non-repeated task, because there I can use it to switch the task
back to TODO state, but is there a use case for repeated tasks?

Shouldn't org prevent accidental toggling of the task in this
case if it notices it's a repeated task with DONE state visible
in the agenda?



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


Re: [Orgmode] Re: [PATCH] Emacs 22 support - use org-string-match-p

2010-06-03 Thread Carsten Dominik


On Jun 4, 2010, at 12:29 AM, Štěpán Němec wrote:


On Thu, Jun 03, 2010 at 06:09:53PM -0400, Bernt Hansen wrote:

Ehrm... do you really want to replace `string-match', too?


Yes ... because it originally was a string-match-p that Carsten
converted to string-match since Emacs 22 doesn't have a string- 
match-p

during an earlier bug report (by me).

Now that Carsten created org-string-match-p I'm just putting it back
closer to the original code.


I see; thanks and sorry for the noise,


And thank *you* for taking the time to look at patches and
commenting on them!  This is very much appreciated.

- Carsten




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


[Orgmode] Re: [PATCH] Emacs 22 support - use org-string-match-p

2010-06-03 Thread Štěpán Němec
On Thu, Jun 03, 2010 at 06:09:53PM -0400, Bernt Hansen wrote:
> > Ehrm... do you really want to replace `string-match', too?
> 
> Yes ... because it originally was a string-match-p that Carsten 
> converted to string-match since Emacs 22 doesn't have a string-match-p
> during an earlier bug report (by me).
> 
> Now that Carsten created org-string-match-p I'm just putting it back
> closer to the original code.

I see; thanks and sorry for the noise,

Štěpán

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


[Orgmode] Re: [PATCH] Emacs 22 support - use org-string-match-p

2010-06-03 Thread Bernt Hansen
Štěpán Němec  writes:

> Hello,
>
> sorry for being difficult again ;-) 
>
>
> Bernt Hansen  writes:
>
> [snip]
>
>> -   (string-match "^//" str))
>> +   (org-string-match-p "^//" str))
>
> Ehrm... do you really want to replace `string-match', too?

Yes ... because it originally was a string-match-p that Carsten 
converted to string-match since Emacs 22 doesn't have a string-match-p
during an earlier bug report (by me).

Now that Carsten created org-string-match-p I'm just putting it back
closer to the original code.

Regards,
Bernt

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


[Orgmode] Re: [PATCH] Emacs 22 support - use org-string-match-p

2010-06-03 Thread Štěpán Němec

Hello,

sorry for being difficult again ;-) 


Bernt Hansen  writes:

[snip]

> -(string-match "^//" str))
> +(org-string-match-p "^//" str))

Ehrm... do you really want to replace `string-match', too?

[snip]


Štěpán

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


Re: [Orgmode] Pretty org-entities in org-mode buffers

2010-06-03 Thread Carsten Dominik


On Jun 3, 2010, at 7:51 PM, Eric Schulte wrote:


Hi Carsten,

This appears to be an issue in the HEAD (as of two weeks ago) of the
Emacs git repository.  I was able to get around this issue (and a  
couple
of other font-lock related issues) by stepping back to an older  
version

of Emacs (tag EMACS_23_2 in the git repository).

I haven't tried to go back to the Emacs development HEAD, but I assume
that they'll take care of this issue sooner or later, either way it's
not a problem with any of the code in Org-mode.


OK, thanks.

I actually did pull the latest git mirror, and I did not see any  
problems


- Carsten




Best -- Eric

Carsten Dominik  writes:


Hi Eric,

have you been able to get past this issue?

- Carsten

On May 17, 2010, at 5:01 PM, Eric Schulte wrote:


So looking into this slightly deeper,

I do have org-pretty-entities set to t in my config.

Toggling entities display with C-c C-x \ has no effect.

The value of org-highlight-latex-fragments-and-specials is nil.

Entities are only displayed when I search for the "\\" character, no
other searches result in displayed entities.

Interestingly, when starting with a fresh "emacs -Q" and only  
loading


--8<---cut here---start->8---
(load-file "~/src/org/lisp/org-install.el")
(setq org-pretty-entities t)
--8<---cut here---end--->8---

I have the same problem, so maybe my version of Emacs is to blame,  
I'm

using the latest from the emacs git/bzr repo

--8<---cut here---start->8---
~/src/emacs/src/emacs --version
GNU Emacs 24.0.50.1
Copyright (C) 2010 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named  
COPYING.

--8<---cut here---end--->8---

When I get some more time, I'll look into this further.

Thanks -- Eric

Carsten Dominik  writes:


On May 16, 2010, at 11:09 PM, Eric Schulte wrote:


Hi Carsten,

Thanks for folding in this feature.

I'm having some weird issues using the new entities display.  The
entities are not fontified in my org-mode buffers despite having  
set

the
org-pretty-entities variable to t.  However if I search
`isearch-forward-regexp' for the "\\" character in the buffer then
all
of the entities are displayed (e.g. \sum is replaced with ∑).

Any idea why the entity display is only working during a search?


One idea:  Do you have turned on org-highlight-latex-fragments-and-
specials?

- Carsten




Thanks -- Eric

Carsten Dominik  writes:


Hi everyone,

a modified version of Eric's code is now included into Org, I  
just

pushed it
to the git repo.

You can use the command `C-c C-x \' to toggle this feature.

The variable `org-pretty-entities' determines if this mode is  
on by

default.

Finally, you can use

#+STARTUP: entitiespretty
#+STARTUP: entitiesplain

to change things on a per-file base.

Thanks to Eric for this great idea.

- Carsten

On May 5, 2010, at 6:19 PM, Eric Schulte wrote:


Hi,

Recently I've been making use of org-entites for exporting my
greek/
math
heavy class notes to HTML.  I'm really loving the results.

This morning I've started playing around with the below function
`org-pretty-entities', which is adapted from Phil Hagelberg's
`pretty-lambdas'[1].  Calling this function in an org-mode  
buffer

will
have the effect of fontifying all org-entities text strings as  
the

character which they represent, so \Delta is replaced with Δ,
\lambda
with λ, \in with ∈, and so forth.

I've just started playing with this, and I make no guarantees as
to
it's
safety or utility, but I was very pleasantly surprised by the
simplicity
of the function, and how nice it's been to see my special
characters
appear in org-mode buffers as I type.

#+begin_src emacs-lisp :results silent
(defun org-pretty-entities ()
(interactive)
(font-lock-add-keywords
 nil (mapcar
  (lambda (el)
(list
 (concat "(?\\(" (regexp-quote "\\") (nth 0 el) "[\s]"  
"\

\)")
 `(0 (progn (compose-region (match-beginning 1) (-
(match-
end 1) 1)
,(nth 6 el)) nil
  org-entities)))

(org-pretty-entities)
#+end_src

To try this out, just evaluate the above code block inside of an
org-mode buffer, then starting typing out org-entities.

Hope others find this useful.

Best -- Eric

Footnotes:
[1]  
http://github.com/technomancy/emacs-starter-kit/blob/master/starter-kit-defuns.el#L135


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


- Carsten


- Carsten


- Carsten


- Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the lis

[Orgmode] Re: skip entry with inherited tags

2010-06-03 Thread Martin Pohlack
Hi All,

I finally found some hours to walk through the code.

On 18.05.2010 19:25, Matt Lundin wrote:
> Martin Pohlack  writes:
> 
>> Hi,
>>
>> On 18.05.2010 09:42, Matthias Teege wrote:
>>> Moin,
>>>
>>> I'm using a simple skip-function to exclude todos from a list.
>>>
>>> (defun my-skip-someday-and-scheduled ()
>>>""
>>>   (org-agenda-skip-entry-if 'scheduled 'regexp ":SOMEDAY:"))
>>>
>>> That works when the tag was assigned to an entry but not when it was
>>> inherited from a parent. How do I get all tags for an entry?
>>
>> I have been using the same approach with the same limitations.  I
>> stumbled upon the "tags filter preset", which supposedly should filter
>> out headlines with a specific tag set.
>>
>> I tried to set it to "-maybe" but it did not seem to have an effect
>> with the default "Agenda" type.  Is this supposed to work?
> 
> Did you set the variable as a list? 
> 
> --8<---cut here---start->8---
> (setq org-agenda-custom-commands
>   '(("x" "No maybe" todo ""
>((org-agenda-filter-preset '("-maybe"))
> --8<---cut here---end--->8---
> 
> BTW, I believe one solution to the original question is:
> 
> --8<---cut here---start->8---
> (setq org-agenda-custom-commands
>   '(("x" "No scheduled or someday" todo ""
>((org-agenda-todo-ignore-scheduled t)
> (org-agenda-filter-preset '("-SOMEDAY"))
> --8<---cut here---end--->8---

Thanks for your suggestion Matt.

I now think the problem is that I have a multi-agenda.

org-finalize-agenda is called for each subagenda here but the branch
where org-agenda-filter-apply would be called is never taken as it is
scoped with "unless org-agenda-multi".  I have also found no other
non-interactive trigger for org-agenda-filter-apply.

I see two possible solutions here:
* Run org-agenda-filter-apply on a narrowed agenda buffer (only for
  the sub-agenda).  In fact, the agenda buffer seems to be narrowed
  down at this point already.  This would be the perfect solution as
  each sub-agenda could install its own org-agenda-filter-preset.

  Find attached a patch which achieves this.  It seems to work well for
  my short tests.

* Run org-agenda-filter-apply once for the whole buffer with a global
  org-agenda-filter-preset.  This would be mostly ok for some use cases
  (I only want to globally remove all "maybe" entries, including the
  inherited ones).

Cheers,
Martin
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 19ea87c..033c981 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -2760,7 +2760,9 @@ bind it in the options section.")
 
 (defun org-finalize-agenda ()
   "Finishing touch for the agenda buffer, called just before displaying it."
-  (unless org-agenda-multi
+  (if org-agenda-multi
+  (when (get 'org-agenda-filter :preset-filter)
+(org-agenda-filter-apply org-agenda-filter))
 (save-excursion
   (let ((inhibit-read-only t))
(goto-char (point-min))
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Pretty org-entities in org-mode buffers

2010-06-03 Thread Eric Schulte
Hi Carsten,

This appears to be an issue in the HEAD (as of two weeks ago) of the
Emacs git repository.  I was able to get around this issue (and a couple
of other font-lock related issues) by stepping back to an older version
of Emacs (tag EMACS_23_2 in the git repository).

I haven't tried to go back to the Emacs development HEAD, but I assume
that they'll take care of this issue sooner or later, either way it's
not a problem with any of the code in Org-mode.

Best -- Eric

Carsten Dominik  writes:

> Hi Eric,
>
> have you been able to get past this issue?
>
> - Carsten
>
> On May 17, 2010, at 5:01 PM, Eric Schulte wrote:
>
>> So looking into this slightly deeper,
>>
>> I do have org-pretty-entities set to t in my config.
>>
>> Toggling entities display with C-c C-x \ has no effect.
>>
>> The value of org-highlight-latex-fragments-and-specials is nil.
>>
>> Entities are only displayed when I search for the "\\" character, no
>> other searches result in displayed entities.
>>
>> Interestingly, when starting with a fresh "emacs -Q" and only loading
>>
>> --8<---cut here---start->8---
>> (load-file "~/src/org/lisp/org-install.el")
>> (setq org-pretty-entities t)
>> --8<---cut here---end--->8---
>>
>> I have the same problem, so maybe my version of Emacs is to blame, I'm
>> using the latest from the emacs git/bzr repo
>>
>> --8<---cut here---start->8---
>> ~/src/emacs/src/emacs --version
>> GNU Emacs 24.0.50.1
>> Copyright (C) 2010 Free Software Foundation, Inc.
>> GNU Emacs comes with ABSOLUTELY NO WARRANTY.
>> You may redistribute copies of Emacs
>> under the terms of the GNU General Public License.
>> For more information about these matters, see the file named COPYING.
>> --8<---cut here---end--->8---
>>
>> When I get some more time, I'll look into this further.
>>
>> Thanks -- Eric
>>
>> Carsten Dominik  writes:
>>
>>> On May 16, 2010, at 11:09 PM, Eric Schulte wrote:
>>>
 Hi Carsten,

 Thanks for folding in this feature.

 I'm having some weird issues using the new entities display.  The
 entities are not fontified in my org-mode buffers despite having set
 the
 org-pretty-entities variable to t.  However if I search
 `isearch-forward-regexp' for the "\\" character in the buffer then
 all
 of the entities are displayed (e.g. \sum is replaced with ∑).

 Any idea why the entity display is only working during a search?
>>>
>>> One idea:  Do you have turned on org-highlight-latex-fragments-and-
>>> specials?
>>>
>>> - Carsten
>>>
>>>

 Thanks -- Eric

 Carsten Dominik  writes:

> Hi everyone,
>
> a modified version of Eric's code is now included into Org, I just
> pushed it
> to the git repo.
>
> You can use the command `C-c C-x \' to toggle this feature.
>
> The variable `org-pretty-entities' determines if this mode is on by
> default.
>
> Finally, you can use
>
> #+STARTUP: entitiespretty
> #+STARTUP: entitiesplain
>
> to change things on a per-file base.
>
> Thanks to Eric for this great idea.
>
> - Carsten
>
> On May 5, 2010, at 6:19 PM, Eric Schulte wrote:
>
>> Hi,
>>
>> Recently I've been making use of org-entites for exporting my
>> greek/
>> math
>> heavy class notes to HTML.  I'm really loving the results.
>>
>> This morning I've started playing around with the below function
>> `org-pretty-entities', which is adapted from Phil Hagelberg's
>> `pretty-lambdas'[1].  Calling this function in an org-mode buffer
>> will
>> have the effect of fontifying all org-entities text strings as the
>> character which they represent, so \Delta is replaced with Δ,
>> \lambda
>> with λ, \in with ∈, and so forth.
>>
>> I've just started playing with this, and I make no guarantees as
>> to
>> it's
>> safety or utility, but I was very pleasantly surprised by the
>> simplicity
>> of the function, and how nice it's been to see my special
>> characters
>> appear in org-mode buffers as I type.
>>
>> #+begin_src emacs-lisp :results silent
>> (defun org-pretty-entities ()
>>  (interactive)
>>  (font-lock-add-keywords
>>   nil (mapcar
>>(lambda (el)
>>  (list
>>   (concat "(?\\(" (regexp-quote "\\") (nth 0 el) "[\s]" "\
>> \)")
>>   `(0 (progn (compose-region (match-beginning 1) (-
>> (match-
>> end 1) 1)
>>  ,(nth 6 el)) nil
>>org-entities)))
>>
>> (org-pretty-entities)
>> #+end_src
>>
>> To try this out, just evaluate the above code block inside of an
>> org-mode buffer, then starting typing out org-entities.
>>
>> Hope others find this useful.
>>
>>

Re: [Orgmode] [PATCH 2/2] Fix adaptive filling.

2010-06-03 Thread Daniel Hackney
Carsten Dominik  wrote:
> I have applied your patch thanks.
>
> This is a the limit of what I can take without you signing the FSF
>  papers. Would you consider signing them?

Just to let you know that I signed the FSF papers and it all went
through, so I am clear for code assignment stuff. Yeah, I know it's been
a little while since my patch ;)

--
Daniel M. Hackney

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


Re: [Orgmode] Re: Problem with pushing to webdav server [6.35g]

2010-06-03 Thread Dietmar Winkler
Den 03. juni 2010 14:50, skrev Carsten Dominik:
> The idea here is that you might be able to connect to the server in two
> different ways, webdav and scp.  Emacs can then use scp, so that you do
> not have to mount the server on your computer.  MobileOrg will then use
> webdav.

Ah I see!

> Note that there is a version of MobileOrg coming up with Dropbox
> support.  I have tested it already - it makes the entire world of pain
> with webdavs go away... :)

And what a pain it is, I've now trying for hours to get emcas call
tramp-gvfs but to no avail.

Unfortunately (well normally fortunately) I'm on Android and local
Storage is not a high priority item on the list of Matthew
(understandable given its early dev stage of that app).

Back to the FAQ, what exatly did you think I could provide ... since
WebDav seems to be a (unsolved) tramp-gvfs issue I wouldn't know what
helpful information I could write.

/Dietmar/


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


[Orgmode] [PATCH] Emacs 22 support - use org-string-match-p

2010-06-03 Thread Bernt Hansen
* contrib/lisp/org-special-blocks.el (org-special-blocks-make-special-cookies):
Emacs 22 doesn't have string-match-p
* lisp/org-freemind.el (org-freemind-write-mm-buffer):
(org-freemind-get-node-style):
Emacs 22 doesn't have string-match-p
* lisp/org-html.el (org-html-make-link):
Use new org-string-match-p for compatibility
---
Updated patch using org-string-match-p
This is available at git://git.norang.ca/org-mode.git emacs22

-Bernt

 contrib/lisp/org-special-blocks.el |2 +-
 lisp/org-freemind.el   |4 ++--
 lisp/org-html.el   |2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/contrib/lisp/org-special-blocks.el 
b/contrib/lisp/org-special-blocks.el
index af50b30..d97cff3 100644
--- a/contrib/lisp/org-special-blocks.el
+++ b/contrib/lisp/org-special-blocks.el
@@ -51,7 +51,7 @@ seen.  This is run after a few special cases are taken care 
of."
   (when (or htmlp latexp)
 (goto-char (point-min))
 (while (re-search-forward "^#\\+\\(begin\\|end\\)_\\(.*\\)$" nil t)
-  (unless (string-match-p org-special-blocks-ignore-regexp (match-string 
2))
+  (unless (org-string-match-p org-special-blocks-ignore-regexp 
(match-string 2))
(replace-match
 (if (equal (downcase (match-string 1)) "begin")
 (concat "ORG-" (match-string 2) "-START")
diff --git a/lisp/org-freemind.el b/lisp/org-freemind.el
index 9aabbea..538b404 100644
--- a/lisp/org-freemind.el
+++ b/lisp/org-freemind.el
@@ -552,7 +552,7 @@ Otherwise give an error say the file exists."
 (defun org-freemind-write-mm-buffer (org-buffer mm-buffer node-at-line)
   (with-current-buffer org-buffer
 (dolist (node-style org-freemind-node-styles)
-  (when (string-match-p (car node-style) buffer-file-name)
+  (when (org-string-match-p (car node-style) buffer-file-name)
 (setq org-freemind-node-style (cadr node-style
 ;;(message "org-freemind-node-style =%s" org-freemind-node-style)
 (save-match-data
@@ -725,7 +725,7 @@ Otherwise give an error say the file exists."
 (dolist (style-list org-freemind-node-style)
   (let ((node-regexp (car style-list)))
 (message "node-regexp=%s node-name=%s" node-regexp node-name)
-(when (string-match-p node-regexp node-name)
+(when (org-string-match-p node-regexp node-name)
   ;;(setq node-style (org-freemind-do-apply-node-style style-list))
   (setq node-style (cadr style-list))
   (when node-style
diff --git a/lisp/org-html.el b/lisp/org-html.el
index f7dd1b3..d18350d 100644
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -641,7 +641,7 @@ MAY-INLINE-P allows inlining it as an image."
(let
   ((str (org-export-html-format-href thefile)))
  (if (and type (not (string= "file" type))
-  (string-match "^//" str))
+  (org-string-match-p "^//" str))
  (concat type ":" str)
  str)))
 
-- 
1.7.1.240.g225c


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


Re: [Orgmode] Re: Problem with pushing to webdav server [6.35g]

2010-06-03 Thread Carsten Dominik


On Jun 3, 2010, at 10:44 AM, Dietmar Winkler wrote:


Carsten,

I would if I would know the answer to my problem ;). Once I'm figuring
out how to get tramp to connect to webdav resources I'm more than  
happy

to write about it.

BTW. the documentation is a bit misleading here :
8<-
If Emacs can directly write to the WebDAV directory1 accessed by
MobileOrg, just point to this directory using the variable
org-mobile-directory. Using the tramp  method, org-mobile-directory  
may

point to a remote directory accessible through, for example, ssh/scp:

(setq org-mobile-directory "/scpc:u...@remote.host:org/webdav/")
8<-

This sounds almost like you can connect to webdav by using the example
given. But that only applies to a ssh+scp connection (!= webdav) (I
wonder how would one get to connect MobileOrg App to that since  
(afaik)

that one can currently only connect to webdav shares.


The idea here is that you might be able to connect to the server in  
two different ways, webdav and scp.  Emacs can then use scp, so that  
you do not have to mount the server on your computer.  MobileOrg will  
then use webdav.


Note that there is a version of MobileOrg coming up with Dropbox  
support.  I have tested it already - it makes the entire world of pain  
with webdavs go away... :)





/Dietmar/


- Carsten




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


Re: [Orgmode] [PATCH] Emacs 22 support

2010-06-03 Thread Bernt Hansen
Carsten Dominik  writes:

> can you pease rewrite the patch one more time, using the new org- 
> string-match-p function?
>
> Thanks.

Absolutely :)  I'll send it today.

Regards,
Bernt

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


Re: [Orgmode] Why I can't publish my project under Windows?

2010-06-03 Thread Giovanni Ridolfi
Water Lin  writes:

> I can publish my org projects under Ubuntu but I can't publish it under
> Windows. All settings are the same especially the home directory. I have
> set the home path for different platform.
>
> While I publish my org project under Windows, Emacs reminds me
> following

1. Which windows? XP, Vista?
2. Are you under cygwin ?
3. Which Emacs-version?
4. which org-version?

> errors:
> ==
> Debugger entered--Lisp error: (file-error "Searching for program" "no such 
> file or directory" "touch")
>   call-process("touch" nil 0 nil "e:/water/My 
> Dropbox/EmacsHome/.org-timestamps/X25e4900e8c818b67efbd6a89083ad0458650dbfa")
>   org-publish-update-timestamp("e:/water/My 
> Dropbox/EmacsHome/org/notes/index.org" "e:/water/My 
> Dropbox/EmacsHome/org/private_html/notes/" org-publish-org-to-html)
> =

>  call-process("touch" nil 0 nil "e:/water/My 
> Dropbox/EmacsHome/.org-timestamps/X25e4900e8c818b67efbd6a89083ad0458650dbfa")
   ^
why do you have the word "touch" in your configuration?
Do you call the "touch" program under GNU/Linux? 
Do you have it installed under Windows?

>
> What's the meaning of .org-timestamps folder? 
from the description of the variable:

  "Name of directory in which to store publishing timestamps."

Do you have it *in your home* under Windows?

Could you, please, customize the org-publish-use-timestamps-flag to nil

(defcustom org-publish-use-timestamps-flag t
  "When non-nil, use timestamp checking to publish only changed files.
When nil, do no timestamp checking and always publish all files."

to see if you still have the publishing problem?

cheers,
Giovanni

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


Re: [Orgmode] Why I can't publish my project under Windows?

2010-06-03 Thread Carsten Dominik

Hi Walter,

you are not using the most recent version of Org-mode. "touch" was  
needed earlier, but if you get the latest version from git, it is no  
longer necessary.


The .timestamps directory is used to record information about files  
already published.


HTH

- Carsten

On Jun 3, 2010, at 1:31 PM, Water Lin wrote:



I can publish my org projects under Ubuntu but I can't publish it  
under
Windows. All settings are the same especially the home directory. I  
have

set the home path for different platform.

While I publish my org project under Windows, Emacs reminds me  
following

errors:
==
Debugger entered--Lisp error: (file-error "Searching for program"  
"no such file or directory" "touch")
 call-process("touch" nil 0 nil "e:/water/My Dropbox/EmacsHome/.org- 
timestamps/X25e4900e8c818b67efbd6a89083ad0458650dbfa")
 org-publish-update-timestamp("e:/water/My Dropbox/EmacsHome/org/ 
notes/index.org" "e:/water/My Dropbox/EmacsHome/org/private_html/ 
notes/" org-publish-org-to-html)

=

What's the meaning of .org-timestamps folder? What's wrong with my
system?

BTW: why I also can't publish projects with Chinese folder under
Windows? How can I set it?

Thanks

Water Lin

--
Water Lin's notes and pencils: http://en.waterlin.org
Email: water...@ymail.com
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


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


- Carsten




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


Re: [Orgmode] Possible html publish inline image bug

2010-06-03 Thread Birch Browning
Yep, that's got it.

Thanks to both of you for fixing this bug. And, thanks for all the great
work on org-mode. It's really improved my efficiency and effectiveness at
getting things done.

B

On Thu, Jun 3, 2010 at 4:28 AM, Carsten Dominik
wrote:

> Hi Birch,
>
> this problem should be fixed now, thanks to Tom for acting so quickly.
>
> Please pull and try, and report back!
>
> - Carsten
>
>
> On Jun 2, 2010, at 3:01 AM, Birch Browning wrote:
>
>  Dear all,
>>
>> I used to be able to do this:
>>
>> [[file:myfile.pdf][file:myfile.jpg]]
>>
>> to show an image on the html page that was a link to the PDF file. This
>> now seems to be honked up.
>>
>> All I get now on the html page is 'file:myfile.jpg' as a link.
>>
>> The html produced is:
>>
>> myfile.jpg
>>
>> Org-mode version 6.36trans (release_6.36.141.gbc53b)
>>
>> [[file:myfile.jpg]]
>>
>> shows the image file inline, but obviously does not link.
>>
>> Suggestions?
>> ___
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>
> - Carsten
>
>
>
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Meta-grouping properties?

2010-06-03 Thread Juri Krivov
Hello Sven,

On Wed, Jun 2, 2010 at 11:40 AM, Sven Bretfeld  wrote:

> Hi all
>
> Is it possible to define meta-groups for certain properties? For
> example:
>
> * TODO Some Task
>  :PROPERTIES:
>  :dowith:   PR-Group
>  :END:
> * TODO Another Task
>  :PROPERTIES:
>  :dowith:   John
>  :END:
> * TODO A Third Task
>  :PROPERTIES:
>  :dowith:   Mary
>  :END:
>
> The PR-Group consists of four people including John and Mary. So when
> John is with me, I would like to be able to build an agenda view that
> shows "Some Task" and "Another Task", when Mary is with me, "Some Task"
> and "A Third Task" should show up.
>
> This would be easiest if I could make org aware who actually belongs to
> the PR-Group and then just filter the Agenda View for John (or Mary
> resp.).
>
I dont' think this can be done yet.  But
I am interested in this idea.  How do you hope to define groups?  In
variable
or in buffer with special group syntax?  Should every search matching
for a name alwasy automatically always include groups, or do you think
there should be explicit call like
+groups(John)
in tags query?
I want to lear more lisp, so maybe I will try my hand on
his idea.  Learning always goes better with project at hand.

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


[Orgmode] Why I can't publish my project under Windows?

2010-06-03 Thread Water Lin

I can publish my org projects under Ubuntu but I can't publish it under
Windows. All settings are the same especially the home directory. I have
set the home path for different platform.

While I publish my org project under Windows, Emacs reminds me following
errors:
==
Debugger entered--Lisp error: (file-error "Searching for program" "no such file 
or directory" "touch")
  call-process("touch" nil 0 nil "e:/water/My 
Dropbox/EmacsHome/.org-timestamps/X25e4900e8c818b67efbd6a89083ad0458650dbfa")
  org-publish-update-timestamp("e:/water/My 
Dropbox/EmacsHome/org/notes/index.org" "e:/water/My 
Dropbox/EmacsHome/org/private_html/notes/" org-publish-org-to-html)
=

What's the meaning of .org-timestamps folder? What's wrong with my
system?

BTW: why I also can't publish projects with Chinese folder under
Windows? How can I set it?

Thanks

Water Lin

-- 
Water Lin's notes and pencils: http://en.waterlin.org
Email: water...@ymail.com
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


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


Re: [Orgmode] feature request: C-k safety

2010-06-03 Thread Juri Krivov
On Thu, Jun 3, 2010 at 12:19 AM, Carsten Dominik
wrote:

> Hi Scott,
>
> OK, I am giving you a variable org-ctrl-k-protect-subtree to get this
> protection, either with a query or by throwing an error.
>
> But:  my prediction is that you will set this variable to nil again soon :D
>
LoL!
Actually, I think is a gread idea, and I will test it also.  Probably error
will
be much better than query. Thank you Scott and Carsten.
Greetings
Juri


>
> Let me know how it goes.
>
> Cheers
>
> - Carsten
>
>
> On Jun 1, 2010, at 4:51 PM, Scott Otterson wrote:
>
>  For what must be the dozenth time, I've just accidentally deleted a large
>> tree by typing C-k while in a headline.
>>
>> This is really easy to do because emacs users have "C-k deletes to the end
>> of the line" worn deeply into their neural pathways -- it's so automatic for
>> me that the keystroke is close to subconscious.  A mistaken C-k is
>> especially hard to detect because org-mode displays the result exactly like
>> what your subconscious expects, that is, a collapsed headline is deleted to
>> the end -- and the tree underneath is wiped out with no noticeable warning.
>>
>> Feature request: add an option preventing tree deletion with C-k without
>> user confirmation.  Actually, I'd like an option to prevent it period.
>>
>> If this option is already in there, then you're encouraged to tell me to
>> RTFM.  But then also please tell me where it is, because I can't find it.
>>
>> Thanks much,
>>
>> Scott
>>
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Something ate my timestamps

2010-06-03 Thread Uwe Schuerkamp
On 3 June 2010 12:54, Giovanni Ridolfi  wrote:
> Carsten Dominik  writes:
>> On Jun 3, 2010, at 12:05 PM, Uwe Schuerkamp wrote:
>
>>> A simple test confirms the problem with a very simple agenda file for
>>> a new user:
>>>
>>> * TODO fix empty agenda
>>>  SCHEDULED:  <2010-06-02 Do>
>>>
>>> and the agenda remains empty for that date.
>>>
>>> Also, the agenda todo overview remains empty.
>>
>> What is the value of org-agenda-files?
>
> In other words:
> did you add the file to the "agenda file list"
> with `C-c ['
>
> (as explained in the manual section "Agenda files")?
>

Thanks Giovanni, that fixed the problem. Funnily enough I don't recall
removing the main file (I keep all my stuff in a single org file) from
the agenda file list, must have been some keypresses gone astray here!
;-)

All the best & thanks much for helping to restore my agenda!

Uwe

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


Re: [Orgmode] Something ate my timestamps

2010-06-03 Thread Giovanni Ridolfi
Carsten Dominik  writes:
> On Jun 3, 2010, at 12:05 PM, Uwe Schuerkamp wrote:

>> A simple test confirms the problem with a very simple agenda file for
>> a new user:
>>
>> * TODO fix empty agenda
>>  SCHEDULED:  <2010-06-02 Do>
>>
>> and the agenda remains empty for that date.
>>
>> Also, the agenda todo overview remains empty.
>
> What is the value of org-agenda-files?

In other words: 
did you add the file to the "agenda file list"
with `C-c ['  

(as explained in the manual section "Agenda files")?

cheers,

Giovanni

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


Re: [Orgmode] GitHub

2010-06-03 Thread Ian Barton

On 02/06/10 20:46, Daniel Martins wrote:

Maybe this is a silly question but

Is it possible to use UbuntuOne as an alternative to DropBox?

https://one.ubuntu.com


Not silly at all. Yes you can. There a couple of differences:

Ubuntu One handles symlinks differently to Dropbox.
Ubuntu One is not cross platform.

There may be differences in the default free data allowance, but I can't 
check this at the moment.


Ian.

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


Re: [Orgmode] Something ate my timestamps

2010-06-03 Thread Carsten Dominik

Hi Uwe,

this works without problem for me.

What is the value of org-agenda-files?

- Carsten

On Jun 3, 2010, at 12:05 PM, Uwe Schuerkamp wrote:


Hi folks,

I'm a relatively new org-mode user, but have been an avid emacs user
since the late 80s. I recently updated to ubuntu 10.04 and installed
the debian archive of version 6.36c, only to find my previously filled
agenda empty in emacs23.

A simple test confirms the problem with a very simple agenda file for
a new user:

* TODO fix empty agenda
 SCHEDULED:  <2010-06-02 Do>

(I'm using the german version, but also tried removing the day name to
no avail)

and the agenda remains empty for that date.

Also, the agenda todo overview remains empty.

Any ideas what could be causing this? I've also tried using the
ubuntu-provided package (6.35 I believe), but that doesn't solve the
problem, either.

Thanks in advance for any pointers,

Uwe

PS: I checked the mail archive to see if this is a known problem, but
apparently it's not, please forgive me if I overlooked something
obvious.

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


- Carsten




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


[Orgmode] Something ate my timestamps

2010-06-03 Thread Uwe Schuerkamp
Hi folks,

I'm a relatively new org-mode user, but have been an avid emacs user
since the late 80s. I recently updated to ubuntu 10.04 and installed
the debian archive of version 6.36c, only to find my previously filled
agenda empty in emacs23.

A simple test confirms the problem with a very simple agenda file for
a new user:

* TODO fix empty agenda
  SCHEDULED:  <2010-06-02 Do>

(I'm using the german version, but also tried removing the day name to
no avail)

and the agenda remains empty for that date.

Also, the agenda todo overview remains empty.

Any ideas what could be causing this? I've also tried using the
ubuntu-provided package (6.35 I believe), but that doesn't solve the
problem, either.

Thanks in advance for any pointers,

Uwe

PS: I checked the mail archive to see if this is a known problem, but
apparently it's not, please forgive me if I overlooked something
obvious.

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


Re: [Orgmode] Re: Problem with pushing to webdav server [6.35g]

2010-06-03 Thread Dietmar Winkler
Carsten,

I would if I would know the answer to my problem ;). Once I'm figuring
out how to get tramp to connect to webdav resources I'm more than happy
to write about it.

BTW. the documentation is a bit misleading here :
8<-
If Emacs can directly write to the WebDAV directory1 accessed by
MobileOrg, just point to this directory using the variable
org-mobile-directory. Using the tramp  method, org-mobile-directory may
point to a remote directory accessible through, for example, ssh/scp:

 (setq org-mobile-directory "/scpc:u...@remote.host:org/webdav/")
8<-

This sounds almost like you can connect to webdav by using the example
given. But that only applies to a ssh+scp connection (!= webdav) (I
wonder how would one get to connect MobileOrg App to that since (afaik)
that one can currently only connect to webdav shares.

/Dietmar/

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


Re: [Orgmode] Pretty org-entities in org-mode buffers

2010-06-03 Thread Carsten Dominik

Hi Eric,

have you been able to get past this issue?

- Carsten

On May 17, 2010, at 5:01 PM, Eric Schulte wrote:


So looking into this slightly deeper,

I do have org-pretty-entities set to t in my config.

Toggling entities display with C-c C-x \ has no effect.

The value of org-highlight-latex-fragments-and-specials is nil.

Entities are only displayed when I search for the "\\" character, no
other searches result in displayed entities.

Interestingly, when starting with a fresh "emacs -Q" and only loading

--8<---cut here---start->8---
(load-file "~/src/org/lisp/org-install.el")
(setq org-pretty-entities t)
--8<---cut here---end--->8---

I have the same problem, so maybe my version of Emacs is to blame, I'm
using the latest from the emacs git/bzr repo

--8<---cut here---start->8---
~/src/emacs/src/emacs --version
GNU Emacs 24.0.50.1
Copyright (C) 2010 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
--8<---cut here---end--->8---

When I get some more time, I'll look into this further.

Thanks -- Eric

Carsten Dominik  writes:


On May 16, 2010, at 11:09 PM, Eric Schulte wrote:


Hi Carsten,

Thanks for folding in this feature.

I'm having some weird issues using the new entities display.  The
entities are not fontified in my org-mode buffers despite having set
the
org-pretty-entities variable to t.  However if I search
`isearch-forward-regexp' for the "\\" character in the buffer then  
all

of the entities are displayed (e.g. \sum is replaced with ∑).

Any idea why the entity display is only working during a search?


One idea:  Do you have turned on org-highlight-latex-fragments-and-
specials?

- Carsten




Thanks -- Eric

Carsten Dominik  writes:


Hi everyone,

a modified version of Eric's code is now included into Org, I just
pushed it
to the git repo.

You can use the command `C-c C-x \' to toggle this feature.

The variable `org-pretty-entities' determines if this mode is on by
default.

Finally, you can use

#+STARTUP: entitiespretty
#+STARTUP: entitiesplain

to change things on a per-file base.

Thanks to Eric for this great idea.

- Carsten

On May 5, 2010, at 6:19 PM, Eric Schulte wrote:


Hi,

Recently I've been making use of org-entites for exporting my  
greek/

math
heavy class notes to HTML.  I'm really loving the results.

This morning I've started playing around with the below function
`org-pretty-entities', which is adapted from Phil Hagelberg's
`pretty-lambdas'[1].  Calling this function in an org-mode buffer
will
have the effect of fontifying all org-entities text strings as the
character which they represent, so \Delta is replaced with Δ,
\lambda
with λ, \in with ∈, and so forth.

I've just started playing with this, and I make no guarantees as  
to

it's
safety or utility, but I was very pleasantly surprised by the
simplicity
of the function, and how nice it's been to see my special  
characters

appear in org-mode buffers as I type.

#+begin_src emacs-lisp :results silent
(defun org-pretty-entities ()
 (interactive)
 (font-lock-add-keywords
  nil (mapcar
   (lambda (el)
 (list
  (concat "(?\\(" (regexp-quote "\\") (nth 0 el) "[\s]" "\
\)")
  `(0 (progn (compose-region (match-beginning 1) (-
(match-
end 1) 1)
 ,(nth 6 el)) nil
   org-entities)))

(org-pretty-entities)
#+end_src

To try this out, just evaluate the above code block inside of an
org-mode buffer, then starting typing out org-entities.

Hope others find this useful.

Best -- Eric

Footnotes:
[1]  
http://github.com/technomancy/emacs-starter-kit/blob/master/starter-kit-defuns.el#L135


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


- Carsten


- Carsten


- Carsten




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


Re: [Orgmode] [PATCH] Emacs 22 support

2010-06-03 Thread Carsten Dominik

Hi Bernt,

can you pease rewrite the patch one more time, using the new org- 
string-match-p function?


Thanks.

- Carsten

On Jun 2, 2010, at 1:47 PM, Bernt Hansen wrote:

* contrib/lisp/org-special-blocks.el (org-special-blocks-make- 
special-cookies):

Emacs 22 doesn't have string-match-p
---
Updated patch available at git://git.norang.ca/org-mode.git emacs22

contrib/lisp/org-special-blocks.el |3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/contrib/lisp/org-special-blocks.el b/contrib/lisp/org- 
special-blocks.el

index af50b30..a381920 100644
--- a/contrib/lisp/org-special-blocks.el
+++ b/contrib/lisp/org-special-blocks.el
@@ -51,7 +51,8 @@ seen.  This is run after a few special cases are  
taken care of."

  (when (or htmlp latexp)
(goto-char (point-min))
(while (re-search-forward "^#\\+\\(begin\\|end\\)_\\(.*\\)$" nil  
t)
-  (unless (string-match-p org-special-blocks-ignore-regexp  
(match-string 2))

+  (unless (save-match-data
+   (string-match org-special-blocks-ignore-regexp (match-string 
2)))
(replace-match
 (if (equal (downcase (match-string 1)) "begin")
 (concat "ORG-" (match-string 2) "-START")
--
1.7.1.240.g225c


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


- Carsten




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


Re: [Orgmode] Possible html publish inline image bug

2010-06-03 Thread Carsten Dominik

Hi Birch,

this problem should be fixed now, thanks to Tom for acting so quickly.

Please pull and try, and report back!

- Carsten

On Jun 2, 2010, at 3:01 AM, Birch Browning wrote:


Dear all,

I used to be able to do this:

[[file:myfile.pdf][file:myfile.jpg]]

to show an image on the html page that was a link to the PDF file.  
This now seems to be honked up.


All I get now on the html page is 'file:myfile.jpg' as a link.

The html produced is:

myfile.jpg


Org-mode version 6.36trans (release_6.36.141.gbc53b)

[[file:myfile.jpg]]

shows the image file inline, but obviously does not link.

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


- Carsten




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


Re: [Orgmode] Re: Problem with pushing to webdav server [6.35g]

2010-06-03 Thread Carsten Dominik

Hi Dietmar,

this may be worth a FAQ entry.  Can I convince you to write one.  I am  
sure there are other webdav issues that could be added to this.


The FAQ has now a new section about MobileOrg...

- Carsten

On Jun 3, 2010, at 10:17 AM, Dietmar Winkler wrote:


Dietmar Winkler  gmx.de> writes:

Investigating further showed that tramp seems to not call the correct
org-mobile-directory

e.g.,  '(org-mobile-directory "/davs:123456   
mediacenter.gmx.net")


but actually

Tramp: Sending command `ssh davs   -q -e none && exit || exit'


OK I found the error myself

- '(org-mobile-directory "/davs:123456  mediacenter.gmx.net")
+ '(org-mobile-directory "/davs:123456  mediacenter.gmx.net:/")

Thing is that tramp will refuse to connect to that location because  
it's a
remote host and dav(s) only works on local hosts. But I thought that  
tramp makes
use of gvfs in the background. But apparently it doesn't. I'm using  
Emacs 23.1.1
which includes tramp so what am I missing to connect to a dav(s)  
server via gvfs?


/Dietmar/


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


- Carsten




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


[Orgmode] Re: Problem with pushing to webdav server [6.35g]

2010-06-03 Thread Dietmar Winkler
Dietmar Winkler  gmx.de> writes:
> Investigating further showed that tramp seems to not call the correct
> org-mobile-directory
> 
> e.g.,  '(org-mobile-directory "/davs:123456  mediacenter.gmx.net")
> 
> but actually
> 
> Tramp: Sending command `ssh davs   -q -e none && exit || exit'

OK I found the error myself

- '(org-mobile-directory "/davs:123456  mediacenter.gmx.net")
+ '(org-mobile-directory "/davs:123456  mediacenter.gmx.net:/")

Thing is that tramp will refuse to connect to that location because it's a
remote host and dav(s) only works on local hosts. But I thought that tramp makes
use of gvfs in the background. But apparently it doesn't. I'm using Emacs 23.1.1
which includes tramp so what am I missing to connect to a dav(s) server via 
gvfs?

/Dietmar/


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


[Orgmode] Setting total effort of a task vs. the daily effort

2010-06-03 Thread Mats Kindahl
Hi all,

I've just recently started using org-mode (but I've been using Emacs
for a very long time) and find it very useful for planning the daily work.

Quite often I have tasks that are more than a day, and I want to plan
the total effort for the task and still plan for how many hours I want
to work on it a specific day.

If the task had a natural split, I could easily create different
subtasks and set the effort for those, but in many cases, there are
tasks that do not have a natural split into subtasks.

When planning the week, it is not easy to see how to allocate such a
task over the week since whatever day I place it on it will take up
two days of effort.

Apart from splitting such a task into subtasks, is there a way to both
set a total amount of work and spread it out over several days by
setting the number of hours for each day?

Best wishes,
Mats Kindahl
-- 
Mats Kindahl
Lead Software Developer
MySQL Replication, Oracle

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