Re: [O] case sensitivity

2012-03-23 Thread Bastien
Hi Ilya,

Ilya Shlyakhter  writes:

> How should case-sensitivity work in Org?  The documentation doesn't
> specify.  From past messages, it looks like tags and todo keywords
> are defined to be case-sensitive.  What about priorities, categories,
> user-defined properties, regexp matching of entries, following of
> links-to-headlines?  Other cases?

Let's take cases one by one.

If there is an issue with a syntactic element being case-(in)sensitive
while (1) it should not and/or (2) docs suggests otherwise, then let's
tackle the problem.

But I'm sure you're not short of examples :)

Thanks,

-- 
 Bastien



[O] org-notify.el by Peter Münster now in contrib/lisp/

2012-03-23 Thread Bastien
Hi all,

I just added org-notify.el to the list of contributed modules.

Thanks to Peter for this addition!

Please test it and document it at will.

All best,

-- 
 Bastien



[O] case sensitivity

2012-03-23 Thread Ilya Shlyakhter
How should case-sensitivity work in Org?  The documentation doesn't 
specify.  From past messages, it looks like tags and todo keywords

are defined to be case-sensitive.  What about priorities, categories,
user-defined properties, regexp matching of entries, following of
links-to-headlines?  Other cases?





[O] bug#9809: 24.0.90; flyspell-auto-correct-word hard to access in org-mode

2012-03-23 Thread Stefan Monnier
> Isn't there an underlying bug in Emacs here?

Whether it's a bug or not depends on point of view.  flyspell takes the
position that it binds M-TAB, so if you want to bind M-tab to something
else you can (and you still get flyspell's command on C-M-i and on ESC
TAB).


Stefan





[O] bug#9809: 24.0.90; flyspell-auto-correct-word hard to access in org-mode

2012-03-23 Thread Lennart Borgman
On Fri, Mar 23, 2012 at 23:31, Bastien Guerry  wrote:
>
> Hi Glenn,
>
> Glenn Morris  writes:
>
> > Eric Hanchrow wrote:
> >
> >> I started emacs with "emacs -Q".  Then I typed
> >>
> >>     M-x o r g - m o d e  M-x f l y s p e l l -
> >>     m o d e  C-h c  C-h c M-TAB
> >>
> >> C-h c  showed me " runs the command pcomplete".
> >> C-h c  M-TAB (which I typed via Ctrl+Alt+i) showed me "M-TAB runs the
> >> command flyspell-auto-correct-word".
> >>
> >> I expected _both_ key events --  and M-TAB -- to show me
> >> flyspell-auto-correct-word.
> >
> > This occurs because org.el for some reason tries to define the M-TAB key
> > 3 different ways:
> >
> > (org-defkey org-mode-map [(meta tab)] 'pcomplete)
> > (org-defkey org-mode-map "\M-\t" 'pcomplete)
> > (org-defkey org-mode-map "\M-\C-i"      'pcomplete)
> >
> > Removing all but the second definition would fix this.
> >
> > Ref "Named ASCII Control Characters" in the lispref.
> >
> >     If you do not want to distinguish between (for example)  and
> >     `C-i', make just one binding, for the ASCII character  (octal
> >     code 011). If you do want to distinguish, make one binding for this
> >     ASCII character, and another for the "function key" `tab'.
>
> Thanks.  This is now fixing in Org repo, I'll close the bug when
> this goes into Emacs.

Isn't there an underlying bug in Emacs here? Should not the flyspell
binding have overrided the org-mode-map binding from the beginning
(since org-mode-map is a major mode map)?





Re: [O] bug#9435: 23.3.50; infinite loop in org-submit-bug-report

2012-03-23 Thread Bastien
Leo  writes:

> I am running Org-mode version 7.7.
>
> 1. emacs -q
> 2. (setq org-modules (quote (org-bbdb org-bibtex org-gnus org-info org-habit 
> org-inlinetask org-irc org-protocol org-w3m org-mouse)))
> 3. M-x org-mode
> 4. From the menubar Org => Send bug report
>
> You should observe the infinite loop. A backtrace is shown in
> http://paste.pound-python.org/raw/11999/.

This has been fixed in Org.  Closing.

-- 
 Bastien



Re: [O] Refile clear-cache after refiling to new headline?

2012-03-23 Thread Nathan Neff
I'd like to bump this thread -- it seems like this is an error/bug
with refiling.

On Fri, Mar 9, 2012 at 8:44 AM, Nathan Neff  wrote:
> I have org-refile-use-cache set.
>
> I refile a headline to foo.org/foo which doesn't exist yet.
>
> I'm prompted to create "foo" headline.  I accept.
>
> Then, I refile another note to foo.org/foo
>
> foo.org/foo appears as the default refile location in the mini-buffer.

Note that I see "Refile subtree 'foo' to foo.org//foo" in the prompt
-- the double-slashes look odd.

> So far so good.  I press Enter.
>
> But now, I'm prompted again to create "foo" headline.  I accept, and
> now foo.org has two "foo" headlines.
>
> Is this correct behavior?
>
> Of course, if I run C-0 C-x C-w then the foo headline is accepted
> without a prompt.
>
> It seems like org-mode didn't need to have the cache refreshed if
> you added a new headline by using org-refile.  Am I just imagining things?
>
> Thanks,
> -Nate



[O] bug#9809: 24.0.90; flyspell-auto-correct-word hard to access in org-mode

2012-03-23 Thread Bastien Guerry
Hi Glenn,

Glenn Morris  writes:

> Eric Hanchrow wrote:
>
>> I started emacs with "emacs -Q".  Then I typed
>>
>> M-x o r g - m o d e  M-x f l y s p e l l -
>> m o d e  C-h c  C-h c M-TAB
>>
>> C-h c  showed me " runs the command pcomplete".
>> C-h c  M-TAB (which I typed via Ctrl+Alt+i) showed me "M-TAB runs the
>> command flyspell-auto-correct-word".
>>
>> I expected _both_ key events --  and M-TAB -- to show me
>> flyspell-auto-correct-word.
>
> This occurs because org.el for some reason tries to define the M-TAB key
> 3 different ways:
>
> (org-defkey org-mode-map [(meta tab)] 'pcomplete)
> (org-defkey org-mode-map "\M-\t" 'pcomplete)
> (org-defkey org-mode-map "\M-\C-i"  'pcomplete)
>
> Removing all but the second definition would fix this.
>
> Ref "Named ASCII Control Characters" in the lispref.
>
> If you do not want to distinguish between (for example)  and
> `C-i', make just one binding, for the ASCII character  (octal
> code 011). If you do want to distinguish, make one binding for this
> ASCII character, and another for the "function key" `tab'.

Thanks.  This is now fixing in Org repo, I'll close the bug when
this goes into Emacs.

-- 
 Bastien





[O] bug#11042: bug#11042: 24.0.94; dangerous org manual: parse-time-months and parse-time-weekdays

2012-03-23 Thread Bastien
Closing this bug.

-- 
 Bastien





[O] bug#8748: emacs 23.3 for windows, org-mode, tables

2012-03-23 Thread Bastien Guerry
Hi Alexander,

Alexander Sidorov  writes:

> Org-mode in emacs for Windows doesn't allow to create prooperly
> tables. This is the result of creation a table 5x2:
>
> |   |   |   |   |   | |---+---+---+---+---| |   |   |   |   |   |
>
> (all rows in one row). It happens always. I guess that used wrong
> "end-line" symbol.

Do you still see this bug with a recent Emacs / Org ?

-- 
 Bastien





[O] bug#7776: C-; does not work on indented lines in org-mode

2012-03-23 Thread Bastien Guerry
Lennart Borgman  writes:

> C-; does not put # in column 0.

Closing this bug.







[O] bug#7776: C-; does not work on indented lines in org-mode

2012-03-23 Thread Bastien Guerry
Lennart Borgman  writes:

> C-; does not put # in column 0.

C-; is for headlines only.

You can comment lines by selecting them then M-; on the region.





Re: [O] HTML Export Error : org-export-replace-src-segments-and-examples: Args out of range: 0, 0

2012-03-23 Thread Bastien
Hi Sankalp,

Sankalp  writes:

> I'm not quite sure what we mean here by a minimal setup. Is it a
> stripped down version of my .emacs with no dependencies? or is it the
> publishing setup I'm using?

I'm thinking of a test-file.org containing all the content you added in
regex-python.org *and* a #+begin_src section loading Org and your setup.

I tried to export your file and did not reproduce your problem.  Assume
every bit of your config might be useful, especially when it comes to
testing Babel.  Of course, if there are external dependancies such as
python, just tell so.

> Please clarify and I'll send what is required.

Thanks!

-- 
 Bastien



[O] bug#11042: bug#11042: 24.0.94; dangerous org manual: parse-time-months and parse-time-weekdays

2012-03-23 Thread Bastien
Hi Michael,

I removed the part of `org-read-date' docstring about
`parse-time-weekdays' and `parse-time-months'.  You're right
that this can lead too errors.

Michael Heerdegen  writes:

> The thread is not completely visible in google groups, dunno why.
> Please read at gnu.emacs.gnus with a newsreader.

Done.

> The problem was that the user replaced the English names with German
> names - instead of adding them to the lists.  This broke Gnus.

Chances are that this will break Org too.

> At least, the documentation in the org manual _must_ be improved, so
> that the user is enabled to do the right thing without breaking anything
> else.

Done.

>> Org heavily depends on parse-time.el.  Providing a defcustom in Org
>> that is tied to parse-time.el at the same time is not trivial.
>
> Why not?  You could just write a function `org-parse-time-string' that
> binds `parse-time-months' and `parse-time-weekdays' accordingly and
> calls `parse-time-string'.  Then you would just need to call this new
> function from org code.

Actually, there is already `org-parse-time-string', which does not rely
on `parse-time-string' at all.  Org relies on `parse-time-string'
through `org-read-date', a core command of Org.  

Thanks,

-- 
 Bastien





Re: [O] Bug: columnview times don't accumulate properly [7.8.03 (release_7.8.03.576.gbeb02)]

2012-03-23 Thread Bastien
Hi Myles,

Myles English  writes:

>> i.e. the 0:10 is not being picked up in the accumulation.
>
> The attached patch produces the expected output, for the same test
> file:

I applied a slightly modified version of your patch.

Thanks a lot!

-- 
 Bastien



[O] Bug: Tabbing error with asterisks [7.8.03]

2012-03-23 Thread Ken Williams
I have the following document:

--
#+TITLE: Test Doc
#+AUTHOR: Ken Williams

* Top header

Top paragraph.

#+begin_src R
library(testthat)

test_that("failures", {
  expect_that(6, equals(9))
  expect_that(6, equals(9))
  expect_that(6, equals(9))
  expect_that(6, equals(9))
  expect_that(6, equals(9))
})
#+end_src

#+results:
#+begin_example
 Error: Test failure in 'failures'
* 6 not equal to 9
Mean relative difference: 0.333
* 6 not equal to 9
Mean relative difference: 0.333
* 6 not equal to 9
Mean relative difference: 0.333
* 6 not equal to 9
Mean relative difference: 0.333
* 6 not equal to 9
Mean relative difference: 0.333
#+end_example
--


When I put the point on the top headline and hit , it doesn't fold the 
complete section, it only folds up to the line "* 6 not equal to 9".  So 
something thinks that line is a header, even though it's within a 
"#+begin_example" section.

By contrast, the syntax coloring looks correct - the lines starting with '#' 
are red, and the lines inside the "#+begin_src" and "#+begin_example" sections 
are gray, as expected.


Emacs  : GNU Emacs 23.3.1 (i386-mingw-nt6.1.7600)
 of 2011-03-10 on 3249CTO
Package: Org-mode version 7.8.03

--
Ken Williams, Senior Research Scientist
WindLogics
http://windlogics.com


CONFIDENTIALITY NOTICE: This e-mail message is for the sole use of the intended 
recipient(s) and may contain confidential and privileged information. Any 
unauthorized review, use, disclosure or distribution of any kind is strictly 
prohibited. If you are not the intended recipient, please contact the sender 
via reply e-mail and destroy all copies of the original message. Thank you.



Re: [O] HTML Export Error : org-export-replace-src-segments-and-examples: Args out of range: 0, 0

2012-03-23 Thread Sankalp
Hi Bastien,

On 21 March 2012 20:01, Bastien  wrote:

> Hi,
>
> Sankalp  writes:
>
> > I'm facing a strange issue. On exporting the attached .org file to
> > HTML, I often have to do it in 2 passes.
>
> Can you share a minimal setup so that we can reproduce the problem
> with the regex-python.org file you provided?
>
>
I'm not quite sure what we mean here by a *minimal setup*. Is it a stripped
down version of my .emacs with no dependencies? or is it the publishing
setup I'm using?

Please clarify and I'll send what is required.


> Thanks,
>
> --
>  Bastien
>

Thanks a lot for the help

--
Sankalp

***
If humans could mate with software, I'd have org-mode's
babies.
  --- Chris League on Twitter.
   http://orgmode.org/worg/org-quotes.html
***


[O] [MobileOrg] Thought about sync with [Gcal] for orgmode and mobileorg

2012-03-23 Thread Matthew Sauer
This could probably also work without the mobile element and might be
easier to develop the initial part if it is a solid design.   I just
have to get this out of my head so I can focus on school and work
without worrying about forgetting the idea.  I also wanted to get some
feedback to see what people think.  I know it isn't the most elegant
idea but it might work.

I do know it has to have a few problems but I thought I would throw it out.

So, now that I have an android tablet using mobileorg and wanting to
use org-mode on the desktop I have run into a problem. My spouse is
not at the technical level to work with me on this. I know I can use
orgmode to organize my tasks and leave emacs running at home to do
pushes and pulls and sort things via tags once it gets to the home
machine. The problem comes at the calendar level.

At this point I have finally gotten my wife to use google calendar so
that she can see what I am doing and she pushes her items into google
calendar so we can plan easier.

So, here is my thought -- I have an android tablet, I am okay with
putting my calendar data in google calendar and I can schedule pulls
via emacs out of google calendar into org-mode and then as long as I
have my sync set up correctly, when I look at my org-mobile agenda, my
calendar is populated with my stuff and my wife's stuff  and
eventually some of my children's stuff.

What I am wondering, if I can set up the google calendar api
correctly. Could I, pull down the google calendar (2 months of data or
some other arbitrary common sense timeframe), pull from org-mobile.
The google file would be converted to org and have all the org data
from 2 months forward (or after whatever time period we pulled from
google EDIT*** Actually would need to download all data from
current time forward due to possible data loss*ENDEDIT***) put
on the end. These two files would be two branches of the same git
repository and then merged (any added google data from the time period
pulled and any added org data) into one file that would make up the
calendar part of the org agenda. This would then be pushed back to
mobileorg and then the first two months of the google calendar being
synced with would be deleted and an ics from the org data would be
re-uploaded with the name of the google calendar on it.

The git repo would track all changes, so you wouldn't have to worry
about losing data and I imagine any changes could be sent to an email
or added to an orgfile as an archive -- also, any conflicts in the git
merge (could we retain both sides of the data if conflicting changes
occured) could be emailed and/or set as a task for resolution in org
before repushing to mobile.

I imagine this could be scripted to run at different intervals during
different day periods.

Just trying to get some feedback and make a note of the thought before
I return to my work and school projects. Cross posted on G+
https://plus.google.com/104366164892501386820/posts/fZydBCoDEuf

Matthew Sauer



[O] Org Babel C/C++

2012-03-23 Thread Daimrod

Hi,

I've made a small patch to ob-C.el so it now includes the current
directory to the list of directories to be searched for header files.
Without this, I cannot include a local header file because the
compilation happens in /tmp and thus gcc or g++ doesn't search for
header files in the directory I currently work.

diff --git a/lisp/ob-C.el b/lisp/ob-C.el
index f1525aa..4f33fc4 100644
--- a/lisp/ob-C.el
+++ b/lisp/ob-C.el
@@ -96,15 +96,14 @@ or `org-babel-execute:C++'."
 	  (progn
 	(with-temp-file tmp-src-file (insert full-body))
 	(org-babel-eval
-	 (format "%s -o %s %s %s -I \"%s\""
+	 (format "%s -o %s %s %s"
 		 (cond
 		  ((equal org-babel-c-variant 'c) org-babel-C-compiler)
 		  ((equal org-babel-c-variant 'cpp) org-babel-C++-compiler))
 		 (org-babel-process-file-name tmp-bin-file)
 		 (mapconcat 'identity
 (if (listp flags) flags (list flags)) " ")
-		 (org-babel-process-file-name tmp-src-file)
-		 (file-name-directory (expand-file-name (buffer-file-name ""
+		 (org-babel-process-file-name tmp-src-file)) ""
 ((lambda (results)
(org-babel-reassemble-table
 	(if (member "vector" (cdr (assoc :result-params params)))


[O] Exporting org-bibtex links as \cite{} refs in Latex

2012-03-23 Thread Olivier Berger
Hi.

Sorry in advance if this has already been covered.

AFAICT there's not yet a standard latex export for org-bibtex links.

I think that the following in org-bibtex.el :
 (org-add-link-type "bibtex" 'org-bibtex-open)
sets what's needed to navigate links like
[[bibtex:mybib.bib::abibtexref]] (or [[file:mybib.bib::abibtexref]] ?)
to the contents of the bibtex notice, but doesn't help with how the
latex export needs to be.

AFAIU, it lacks a second function that could be used to export the links.
So all that's needed is another function as :
(org-add-link-type "bibtex" 'org-bibtex-open 'org-bibtex-export) which
would render as \cite{abibtexref}.

Something like :
(defun org-bibtex-export (path desc format)
  (let* ((search (when (string-match "::#?\\(.+\\)\\'" path)
   (match-string 1 path)))
 (path (substring path 0 (match-beginning 0
(cond ((eq format 'latex)
   (if (or (not desc)
   (equal 0 (search "bibtex:" desc)))
   (format "\\cite{%s}" search)
 (format "\\cite[%s]{%s}" desc search))

I think this can work (see more details in [0]), and maybe that wouldn't
be too hard to patch org-bibtex for something more generic ?

Is this reasonable ?

I'm not following the list regularly, so any feedback by email couldn't
hurt.

Best regards,

[0] 
http://www-public.it-sudparis.eu/~berger_o/weblog/2012/03/23/how-to-manage-and-export-bibliographic-notesrefs-in-org-mode/

-- 
Olivier BERGER 
http://www-public.it-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8
Ingenieur Recherche - Dept INF
Institut TELECOM, SudParis (http://www.it-sudparis.eu/), Evry (France)




[O] Navigatable and exportable bib/notes links - Was: Re: Integration of RefTeX and LaTeX export

2012-03-23 Thread Olivier Berger
Hi.

FWIW, I've been inspired by your code and some other posts on the topic
of bibliographic references / notes management with org-mode and have
summarized the results in [0].

The end result : links like [[note:abibref]] or [[bib:abibref]] which
respectively point to a bibliography notes or a bibtex section in a
.bib, and which both can be exported to latex as regular \cite{abibref}
references would do.

Hope this helps.

Best regards,

[0] 
http://www-public.it-sudparis.eu/~berger_o/weblog/2012/03/23/how-to-manage-and-export-bibliographic-notesrefs-in-org-mode/

Nick Dokos  writes:

> I'm pretty sure the second function is not quoted properly in your
> org-add-link-type so it ends up actually getting called at the time of
> the org-add-link-type is called.
>
> Try the following:
>
>
>
> --8<---cut here---start->8---
> (defun rt-follow-handler (path)
>   (message "dummy handler called, path = %s" path)
>   (let ((arg (concat "\\cite{" path "}")))
> (reftex-view-crossref arg)))
>
> (defun rt-export-handler  (path desc format)
>   (message "my handler is called")
>   (cond ((eq format 'latex)
>(if (or (not desc) (equal 0 (search "rtcite:" desc)))
>(format "\\cite{%s}" path)
>  (format "\\cite[%s]{%s}" desc path)
>
> (require 'org)
> (org-add-link-type "rtcite" 
>  (function rt-follow-handler)
>  (function rt-export-handler))
> --8<---cut here---end--->8---
>
>
>
> By way of explanation:
>
> I had this as part of a minimal .emacs and it seems to work more or
> less OK: I replaced the error call with a message call, because it
> actually triggered and blew up :-) The rt-export-handler needs tweaking
> but you 'll know what to do better than I do when you see the latex
> output.
>
> I had to (require 'org) to pick up the definition of org-add-link-type:
> that seems to be a missing autoload somewhere.
>
> And finally I like to quote functions with function, not quote, for
> compiled-code reasons, but in most cases, it won't make any difference:
> use quotes if you prefer.
>
> Nick
>

-- 
Olivier BERGER 
(OpenPGP: 4096R/7C5BB6A5)
http://www.olivierberger.com/weblog/




Re: [O] Missing date in Org-Agenda Day buffer

2012-03-23 Thread Rasmus Rempling

Hi Bastien,

/rasmus


On 2012-03-21 23:59, Bastien wrote:

Hi Rasmus,

Rasmus Rempling  writes:


When scheduling may working day I use the Org-Agenda Day view and the
column mode with the format as given below. This work very well and I am
happy with the set-up. However, as shown in the attached png file the date
is missing. My initial thought was that it is the same color as the shadowy
highlight of the table headlines, but this is the same as the effort-sum. I
have tried to find a solution, but not succeded.

I have tried two different background/foreground with the same result
(black/white and reverse).

This should be fixed now, please confirm.

As a workaround

If you don't clone from master/hotfix, you can set
`org-agenda-columns-show-summaries' to nil as a temporary
workaround.

Thanks to you and Nick for reporting this!

I confirm that the workaround works. The date is not missing. However, 
putting the show-summaries to nil omits the summation of effort and 
clock, which are in the same row.

I dont clone. Is the faulting summation only a problem of the workaround?

Thank you for looking into this.

/rasmus



Re: [O] R sessionInfo() and orgmode footnotes

2012-03-23 Thread cberry
Alejandro Reyes  writes:

> Dear all,
>
> I am having troubles to export my documents to a pdf when I have the R
> sessionInfo() as a result. Nevertheless I can export them as a html.
> I think org-mode export to latex is getting confused with the output
> of the sessionInfo() function and the footnotes definition. The next
> is a example:

I confirm that this fails with I try to export to latex. From my
*Messages* buffer:

Exporting to LaTeX...
org-babel-exp processing...
executing R code block...
Code block evaluation complete.
org-export-latex-preprocess: Wrong type argument: integer-or-marker-p, nil

but not html.

Chuck

>
>
> EXAMPLE
> This is a strange case [fn:1]
> #+BEGIN_SRC R :exports both :results output
> x <- rnorm(100)
> sessionInfo()
> #+END_SRC
> [fn:1] It does not let me export to latex
>
>
> I am using the latest version of org-mode and emacs.
> Cheers,
>
> Alejandro
>
>

-- 
Charles C. BerryDept of Family/Preventive Medicine
cberry at ucsd edu  UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901




Re: [O] [RFC] warn time for appointments

2012-03-23 Thread Nick Dokos
Peter Münster  wrote:

> On Fri, Mar 23 2012, Ivan Kanis wrote:
> 
> > I got no reply to my RFC and to my tentative patches. Does that mean
> > everybody is happy with the default 12 minutes warning time?
> 
> No, I'm not happy with 12 minutes. But there is
> https://github.com/p-m/org-notify where you can have arbitrary warning
> times (seconds, weeks, whatever...).
> Does it fit your needs?
> 
> (I'll ask Bastien for inclusion in contrib...)
> 

BTW, I had done some simple performance measurements and hit some hiccups
previously. I just repeated them and I believe things are much improved:

org-notify-process8   0.521915  0.065239375
org-notify-todo-list  8   0.512575  0.064071875
org-notify-make-todo  194 0.048578  0.0002504020

Another time

org-notify-process11  1.624320  0.1476654545
org-notify-todo-list  11  1.516659  0.1378780909
org-notify-make-todo  596 0.239687  0.0004021593

and I've seen the avg time (last column) of org-notify-process go up to
0.22s, whereas before it used to be 5s or so, and even after the first
round of optimization that Peter did, it went down but still was over a
second (1.6s iirc). That caused significant hesitation when typing.

At this point,I do not notice any such hesitation - otoh, I'm sure I'm
not stressing it very much: that would require constructing a suitable
load generator, which I have not done.

But previously, things were bad enough that I had to turn off the notify
process. Now, I'm leaving it on and (mostly) not noticing that
it's there, so that's definitely progress.

Thanks Peter!
Nick



Re: [O] [RFC] warn time for appointments

2012-03-23 Thread Bernt Hansen
Peter Münster  writes:

> On Fri, Mar 23 2012, Ivan Kanis wrote:
>
>> I got no reply to my RFC and to my tentative patches. Does that mean
>> everybody is happy with the default 12 minutes warning time?
>
> No, I'm not happy with 12 minutes. But there is
> https://github.com/p-m/org-notify where you can have arbitrary warning
> times (seconds, weeks, whatever...).
> Does it fit your needs?
>
> (I'll ask Bastien for inclusion in contrib...)

I'm happy with the 12 minute warning time.  If I have an appointment at
2PM I stick that on my calendar... if it takes 2 hours to drive there I
put second task (Drive to wherever) at noon so I get a 12 minute warning
before I have to jump in my car and go.

Regards,
Bernt



Re: [O] [PATCH] Add "Time-stamp: <>" in (first 8 lines of) export template

2012-03-23 Thread Bastien
Hi Brian,

Brian Wightman  writes:

> On Tue, Mar 20, 2012 at 7:45 AM, Sebastien Vauban
>  wrote:
>> Then, I can provide a patch with `time-stamp' function added to
>> `before-save-hook' in Org mode.
>
> I would lobby against this being the default template, as these time
> stamps really mess up the ability to merge org files from multiple
> branches without conflicts.
>
> A --- B --- D
> \ /
>  \C/
>
> At the merge, D would have a conflict to resolve by hand.
>
> I used timestamps and the save hook mentioned above for a while and
> ended up needing to do unnecessary (and in the context of a rev
> control like GIT - non-useful) manual conflict resolution, so have
> since removed them from every file I had previously added them to.

I agree adding Time-stamp as a keyword could lead to such problems.  
So unless there are new arguments for such an inclusion, I'm closing
this right now.  

Sébastien, if you have your own hack for this, please share it on Worg!

Best,

-- 
 Bastien



Re: [O] [PATCH] org-show-subtree

2012-03-23 Thread Bastien
naga uni  writes:

> I'm using org-mode with outline-minor-mode.
> I found a trouble with C-c C-o C-s, show-subtree, says

C-c C-o C-s is not an Org binding, isn't it?

Anyway, I agree org-show-subtree could be turned into a
command, so I accepted your patch.

Thanks!

-- 
 Bastien



Re: [O] Org security report

2012-03-23 Thread Bastien
"DownloadRoute.com"  writes:

>  We would like to inform you that your program Org 7.8.03 has 
> 
> successfully passed antivirus and antispyware tests and were so   
> 
> impressed that we decided to give you our 100% CLEAN award! We use
> 
> for scanning now four of the best antivirus engines available on the  
> 
> market.   
> 

Thanks -- but I just unsubscribed from your mailing list.

Bye,

-- 
 Bastien



Re: [O] [PATCH] Tags/properties matcher: Fixed issues with todo-only matches

2012-03-23 Thread Bastien
Hi Ilya,

Ilya Shlyakhter  writes:

> Patch attached.  Original problem was that org-map-entries for
> "MYPROP>2/!" was not limiting itself to TODO entries, even though
> org-tags-view for the same matcher was.

I tested this patch since you sent it -- it works fine.  
Committed to hotfix right now.  Thanks a lot for this!

Best,

-- 
 Bastien



Re: [O] Bug: Consistency graph redisplay with links in filtered headings [7.8.03]

2012-03-23 Thread Bastien
Hi Thomas,

Thomas Morgan  writes:

> Habit lines containing links get mangled on redisplay when they are
> filtered out of the agenda view.

Applied, thanks for the test/config files, that helps a lot.

Best,

-- 
 Bastien



Re: [O] BUG(?): #+BINDing org-export-publishing-directory only affects HTML output, not PDF or Babel results

2012-03-23 Thread Bastien
Hi,

I fixed this bug.

Christian Moe  writes:

> On 3/8/12 7:38 AM, A. Major wrote:
>> Thanks, but the "dir" PROPERTY appears to affect the target directory for
>> babel's results, neither the HTML nor the PDF output are influenced that way.
>
> Yes, that's why I said "this part of the problem".
>
>> Combining BIND and the "dir" PROPERTY, I can get HTML and babel files in the
>> right place, but not the PDF.
>>
>> Any other suggestions? :)
>
> Yep. Change three characters in org-latex.el. Problem
> solved. Maybe. :)

You showed the direction -- thanks!  The right fix is to use
org-export-latex-options-plist, which is initialized by combining
opt-plist (general options for publishing) and ext-plist (local LaTeX
options for publishing.)

Thanks,

-- 
 Bastien



Re: [O] GSoC 2012 -- Elisp backend for Ragel

2012-03-23 Thread Rustom Mody
On Fri, Mar 23, 2012 at 4:42 PM, Aurélien Aptel wrote:

> So, as an experienced org-mode developper you're saying it's very
> hard? I should focus on the ragel part in the application and try to
> go as far as i can for org-mode then. I still need something I can be
> evaluated to for the mid-term and final evaluation.
>
> Can you be my mentor? If no one can I should apply for another project :/
>

I am rather far from being an org mode developer; just a user.

Adding a ragel backend for elisp on its own is too small for a gsoc project
Using ragelized elisp to rewrite orgmode is a wonderful project, but large.

The best solution is to chalk out a subset of the latter and work at that

Ive cced the ragel list in case Adrian Thurston, the ragel author, thinks
differently

For the first Adrian and the ragel list is your best bet.
For the second the orgmode list and developers.

For myself I am interested and would like to be informed. I dont think I
know enough of the internals of either to be the sole responsible party.


Re: [O] GSoC 2012 -- Elisp backend for Ragel

2012-03-23 Thread Aurélien Aptel
So, as an experienced org-mode developper you're saying it's very
hard? I should focus on the ragel part in the application and try to
go as far as i can for org-mode then. I still need something I can be
evaluated to for the mid-term and final evaluation.

Can you be my mentor? If no one can I should apply for another project :/



Re: [O] Problem with timestamps and ical export

2012-03-23 Thread Charles Philip Chan
Sorry for the noise- I found my mistake. :-(

Charles

-- 
"...and scantily clad females, of course.  Who cares if it's below zero
outside"
(By Linus Torvalds)



Re: [O] [RFC] warn time for appointments

2012-03-23 Thread Peter Münster
On Fri, Mar 23 2012, Ivan Kanis wrote:

> I got no reply to my RFC and to my tentative patches. Does that mean
> everybody is happy with the default 12 minutes warning time?

No, I'm not happy with 12 minutes. But there is
https://github.com/p-m/org-notify where you can have arbitrary warning
times (seconds, weeks, whatever...).
Does it fit your needs?

(I'll ask Bastien for inclusion in contrib...)

-- 
   Peter




[O] Problem with timestamps and ical export

2012-03-23 Thread Charles Philip Chan
Hello all:

I have start to use the icalendar exporter in Org-mode and I have
"org-icalendar-use-plain-timestamp" set to "t". However, this exports
both active and inactive timestamp. How would I go about to only export
active timestamps?

Thanks.

Charles

-- 
"I'd crawl over an acre of 'Visual This++' and 'Integrated Development
That' to get to gcc, Emacs, and gdb.  Thank you."
(By Vance Petree, Virginia Power)


pgp4xs1g2SXVq.pgp
Description: PGP signature


Re: [O] new exporter: exporting subtree with "outside calls"

2012-03-23 Thread Andreas Leha
Nicolas Goaziou  writes:

> Hello,
>
> Andreas Leha  writes:
>
>> I experience problems with the new export engine (accessible via
>> org-export-dispatch).
>>
>> When I limit the export to the current subtree,
>> the export fails with
>> ,
>> | if: reference 'foo' not found in this buffer
>> `
>> when 'foo' is the name of a source block defined outside of that subtree
>> but called inside.
>>
>> Here is an example:  How do I export the first subtree only with the new
>> exporter?
>
> You can't, but that's a bug. I have pushed a commit that should fix that
> problem. May you confirm this?
>
>
> Regards,

Hi Nicolas,

thanks for the quick fix.  I can confirm, that it is working for me now.

Cheers,
Andreas




Re: [O] [RFC] warn time for appointments

2012-03-23 Thread Ivan Kanis
> In bzr emacs there is a new variable called appt-warning-time-regexp. It
> contains a string for how many minutes we want to be reminded of an
> appointment...

I got no reply to my RFC and to my tentative patches. Does that mean
everybody is happy with the default 12 minutes warning time?
-- 
Ivan Kanis
http://kanis.fr

We make a living by what we get, we make a life by what we give.
-- Winston Churchill

I am listening to "Supersystem - The Love Story".



[O] [patch] A experimental toy which is used to preview latex fragements

2012-03-23 Thread FengShu
Hi everyone!
This is a experimental toy, which use 
'(car org-latex-to-pdf-process) to convert latex formula fragements ,the
 converting path is "latex->pdf->png" using imagemagick.
I'm not a programmer and only know little elisp,so the code quality
is poor...





>From 6a3fbe47d967f8d234d3aead058148cc46b7d376 Mon Sep 17 00:00:00 2001
From: FengShu 
Date: Fri, 23 Mar 2012 16:05:37 +0800
Subject: [PATCH] Ihis is a experimental toy, which use '(car
 org-latex-to-pdf-process) to convert latex formula,the
 converting path is "latex->pdf->png" using imagemagick.

---
 lisp/org.el |  106 ++-
 1 files changed, 105 insertions(+), 1 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 811b41b..7eea801 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16966,7 +16966,7 @@ Some of the options can be changed using the variable
 		(setq executables-checked t))
 
 	  (unless (file-exists-p movefile)
-		(org-create-formula-image
+		(org-create-formula-image-with-imagemagick
 		 txt movefile opt forbuffer))
 	  (if overlays
 		  (progn
@@ -17168,6 +17168,99 @@ inspection."
 	(loop for e in '(".dvi" ".tex" ".aux" ".log" ".png") do
 	  (delete-file (concat texfilebase e)))
 	pngfile
+;; convert tex file to pdf ,than convert pdf file  to pngfile used imagemagick 
+(defun org-create-formula-image-with-imagemagick (string tofile options buffer)
+  "This calls imagemagick."
+  (require 'org-latex)
+  (let* ((tmpdir (if (featurep 'xemacs)
+		 (temp-directory)
+		   temporary-file-directory))
+	 (texfilebase (make-temp-name
+		   (expand-file-name "orgtex" tmpdir)))
+	 (texfile (concat texfilebase ".tex"))
+	 (pdffile (concat texfilebase ".pdf"))
+	 (pngfile (concat texfilebase ".png"))
+	 (fnh (if (featurep 'xemacs)
+  (font-height (face-font 'default))
+(face-attribute 'default :height nil)))
+	 (scale (or (plist-get options (if buffer :scale :html-scale)) 1.0))
+	 (dpi (number-to-string (* scale (floor (* 0.9 (if buffer fnh 140.))
+	 (fg (or (plist-get options (if buffer :foreground :html-foreground))
+		 "Black"))
+	 (bg (or (plist-get options (if buffer :background :html-background))
+		 "Transparent")))
+(if (eq fg 'default) (setq fg (org-latex-color :foreground)))
+(if (eq bg 'default) (setq bg (org-latex-color :background)))
+(with-temp-file texfile
+  (insert (org-splice-latex-header
+	   org-format-latex-header
+	   org-export-latex-default-packages-alist
+	   org-export-latex-packages-alist t
+	   org-format-latex-header-extra))
+  (insert "\n\\begin{document}\n" 
+	  "\\definecolor{fg}{rgb}{" fg "}\n"
+	  "\\definecolor{bg}{rgb}{" bg "}\n"
+	  "\n\\pagecolor{bg}\n"
+	  "\n{\\color{fg}\n"
+	  string
+	  "\n}\n"
+	  "\n\\end{document}\n" )
+  (require 'org-latex)
+  (org-export-latex-fix-inputenc))
+(let ((dir default-directory))
+  (condition-case nil
+	  (progn
+	(cd tmpdir)
+	(setq cmd (car org-latex-to-pdf-process))
+	(while (string-match "%b" cmd)
+	  (setq cmd (replace-match
+			 (save-match-data
+			   (shell-quote-argument texfile))
+			 t t cmd)))
+	(while (string-match "%f" cmd)
+	  (setq cmd (replace-match
+			 (save-match-data
+			   (shell-quote-argument (file-name-nondirectory texfile)))
+			 t t cmd)))
+	(while (string-match "%o" cmd)
+	  (setq cmd (replace-match
+			 (save-match-data
+			   (shell-quote-argument (file-name-directory texfile)))
+			 t t cmd)))
+	(shell-command cmd))
+	(error nil))
+  (cd dir))
+(if (not (file-exists-p pdffile))
+	(progn (message "Failed to create pdf file from %s" texfile) nil)
+  (condition-case nil
+	  (if (featurep 'xemacs)
+	  (call-process "convert" nil nil nil
+			"-density" "96"
+			"-trim"
+			"-antialias"
+			pdffile
+			"-quality" "100"
+;;			"-sharpen" "0x1.0"
+			pngfile)
+	(call-process "convert" nil nil nil
+			  "-density" dpi
+			  "-trim"
+			  "-antialias"
+			  pdffile
+			  "-quality" "100"
+;;			  "-sharpen" "0x1.0"
+			  pngfile))
+	(error nil))
+  (if (not (file-exists-p pngfile))
+	  (if org-format-latex-signal-error
+	  (error "Failed to create png file from %s" texfile)
+	(message "Failed to create png file from %s" texfile)
+	nil)
+	;; Use the requested file name and clean up
+	(copy-file pngfile tofile 'replace)
+	(loop for e in '(".pdf" ".tex" ".aux" ".log" ".png") do
+	  (delete-file (concat texfilebase e)))
+	pngfile
 
 (defun org-splice-latex-header (tpl def-pkg pkg snippets-p &optional extra)
   "Fill a LaTeX header template TPL.
@@ -17239,6 +17332,17 @@ SNIPPETS-P indicates if this is run to create snippet images for HTML."
 	   ((eq attr :background) 'background
 		   (color-values (face-attribute 'default attr nil))
 
+(defun org-latex-color (attr)
+  "Return an rgb color specification for latex color package."
+  (