Re: [Orgmode] org-mode CSS property export bug

2010-04-23 Thread Sebastian Rose
Rick Moynihan rick.moyni...@gmail.com writes:

 On 22 April 2010 22:29, Sebastian Rose sebastian_r...@gmx.de wrote:
 Rick Moynihan rick.moyni...@gmail.com writes:

 Hey Rick,

 interesting observation! I found, the pages validate everywhere, and so
 I started to search. It seems to be valid CSS 2 (I couldn't find a
 evidence though).

 Looks like an inconsistency in the W3C specs, as it appears to be
 invalid (or absent from) the CSS selector spec, if not elsewhere.

 http://groups.google.com/group/jquery-en/msg/ca6ecd94ad4a23bd


Yess - and that refers to: http://www.w3.org/TR/CSS2/grammar.html

I saw this document, but I'm not familiar with flex notation:

  chars|{chars}|{chars}


Hm - seems to be valid XHTML, but no valid CSS2... It's hard to use
in stylesheets anyway and elderly browsers will not understand

  h3[id=sec-1.1] { }

either, will they?

We will have to change the `.' character for the IDs then...



OK then, should we switch the IDs to sec-1_1 or sec-1-1?


I like sec-1-1 better - it's easier to type :)




Best wishes


   Sebastian


 Opera and firefox know how to handle that:


 h3[id=sec-1.1]
 {
  background-color:yellow;
 }


 Nice to know how to reference it.

 Cheers,

 R.


-- 
~~
Sebastian  Rose  Fachinformatiker / Anwendungsentwicklung
Viktoriastr. 22  Entwicklung von Anwendungen mit freien Werkzeugen
30451  Hannover  und Bibliotheken.

0173  83 93 417  sebastian_r...@gmx.de s.r...@emma-stil.de
~~


___
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] org-agenda-goto should push mark before moving point

2010-04-23 Thread Carsten Dominik

Hi Andreas,

On Apr 22, 2010, at 10:57 PM, Andreas Seltenreich wrote:


Hi,

many commands in Emacs that move the point long distances push the  
mark
so you can go back using C-u C-SPC.  org-agenda-goto doesn't do  
this,
and I found it a bit annoying that I have to navigate the outline  
again

to find back to where the point was before using the Agenda.

Patch attached.

regards,
andreas

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index c68038d..9f35069 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -6082,6 +6082,7 @@
 (pos (marker-position marker)))
(switch-to-buffer-other-window buffer)
(widen)
+(push-mark)
(goto-char pos)
(when (org-mode-p)
  (org-show-context 'agenda)


I am no sure this is the right thing to do.  Because, often you will  
show *many* places from the agenda before going back to the buffer.   
Org-agenda-goto is called by many other functions like org-agenda- 
show, org-agenda-recenter etc.


This might work better:

(defun my-org-agenda ()
   (interactive)
   (push-mark)
   (call-interactively 'org-agenda))

(define-key global-map \C-ca 'my-org-agenda)

Maybe you can test this and report back?

- 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


- 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] org-mode CSS property export bug

2010-04-23 Thread Carsten Dominik


On Apr 23, 2010, at 3:51 AM, Rick Moynihan wrote:


On 22 April 2010 22:29, Sebastian Rose sebastian_r...@gmx.de wrote:

Rick Moynihan rick.moyni...@gmail.com writes:

Hey Rick,

interesting observation! I found, the pages validate everywhere,  
and so

I started to search. It seems to be valid CSS 2 (I couldn't find a
evidence though).


Looks like an inconsistency in the W3C specs, as it appears to be
invalid (or absent from) the CSS selector spec, if not elsewhere.

http://groups.google.com/group/jquery-en/msg/ca6ecd94ad4a23bd


Opera and firefox know how to handle that:


h3[id=sec-1.1]
{
 background-color:yellow;
}


We could change . to _ , but that would break old links, so I am  
hesitating.

But of course if this really violates standards, we can change it.

Sebastian has the last word on these issues.

- Carsten





Nice to know how to reference it.

Cheers,

R.


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


- 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] M-Right and M-Left behave differently on headings and list items

2010-04-23 Thread Carsten Dominik


On Apr 22, 2010, at 6:02 PM, Carsten Dominik wrote:



On Apr 21, 2010, at 4:44 PM, Dan Davison wrote:


Carsten Dominik carsten.domi...@gmail.com writes:


On Apr 21, 2010, at 3:32 PM, Bastien wrote:


Carsten Dominik carsten.domi...@gmail.com writes:


do others agree with Matti's view?


FWIW, I do.


There is still another difference.

Currently, when I execute the indentation command
several times in a row, the range to which this applies
is locked.

So for example

   - level 1a
  - level 2a
  - level 2b
  - level 2c
   - level 1b

If I now go on level 1a and use M-S-left, level 1b becomes a sibling
of 2c.  If I immediately after this do M-S-right, 1b should be  
indented

along with 2c, but this does not happen because the item range is
locked.  If, however, you do something in between, like moving the
cursor by one character, 1b will be included.

I believe I did this a long time ago, because I felt that not  
locking

the range for commands in direct succession would too quickly modify
the structure, including at places outside of the current view (
beyond the window end)

If you are calling for more consistency, maybe this feature should
go as well?


I hope that this is sufficiently closely related to belong in this
thread: I find it surprising that org-do-demote deactivates the
region. Let's say I start out with

* 1
** 11
* 111
* 112
* 2

and I wish to move to make 111 and 112 be children of 11

The way that seems natural to me is to select headings 111 and 112,  
and

apply org-demote-subtree twice in succession. So with point at the
beginning of the 111 line,

C-space down down M-right M-right


Hi Dan,

I do agree with your observation.  However, keeping the mark active  
would mean that further cursor motions will still have the  
highlighted region hanging around, and I found this the bigger  
headache.


What I do in these cases is

M-right C-x C-x M-right

which is not pretty but workable.


If you have a better solution, please let me know.

- Carsten



- Carsten



However, this leads me to

* 1
** 11
** 111
** 112
** 2

because after one application of org-demote-subtree, the region  
becomes

deactivated and the second demotion applies to heading 2, which is
unlikely to have been intended.

Dan




- 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


- 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] M-Right and M-Left behave differently on headings and list items

2010-04-23 Thread Carsten Dominik


On Apr 22, 2010, at 12:15 PM, Bastien wrote:


Carsten Dominik carsten.domi...@gmail.com writes:


Excellent question.  I think the cleanest would be that M-left/right
on a folded item that does have children throws an error.


+1



This is how it now works.



--
Bastien


- 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] export problem

2010-04-23 Thread Nick Dokos
Nick Dokos nicholas.do...@hp.com wrote:

 charles snyder clsny...@gmail.com wrote:
 
  Thanks Nick!
  
 Glad to help!
 

BTW, I forgot that you originally reported two problems: the freemind export
was one of them, but you also had problems with a PDF export. AFAICT, the
solution to the freemind problem could not possibly affect the PDF export,
so I assume that the latter is still a problem - is that correct?

Thanks,
Nick

  On 2 different machines,
  I got a no match when I tried C-h f org-export-as-freemind RET
  and when I followed your instructions:
  
  M-x load-library RET org-freemind RET
  followed by C-c C-e m
  
  It worked!
  
  so, when I added:
  
  (load-library C:/Users/clsnyder/Documents/org-6.33/lisp/org-freemind) to 
  my .emacs, it works!
  
  but I have no clue why it stopped working and why I need to add this when 
  the line above it in .emacs is:
  
  (add-to-list 'load-path C:/Users/clsnyder/Documents/org-6.33/lisp)
  
 
 The add-to-list just tells emacs where to find the files that it needs to 
 load.
 Because of it, you should be able to load org-freemind using just
 
 (load-library org-freemind)
 
 The loading itself can be done in various ways: explicitly as shown above, or
 implicitly through the autoload mechanism.
 
 In my case, I load org-install.el (in my .emacs). org-install.el contains the 
 following:
 
 (autoload 'org-export-as-freemind org-freemind \
 Not documented
 
 \(fn ARG optional HIDDEN EXT-PLIST TO-BUFFER BODY-ONLY PUB-DIR) t nil)
 
 so that when org-export-as-freemind is called, the autoload loads 
 org-freemind.el (or
 org-freemind.elc if the compiled file exists), that defines the function and 
 the
 call succeeds.
 
 At least, that's how it *should* work. You could do a little detective work 
 in your
 setup to see how things are initialized and why it did not work.
 
 One hint is that after the autoload is done but before you call the function,
 if you say
 
C-h f org-export-as-freemind RET
 
 it will say
 
 ,
 | org-export-as-freemind is an interactive autoloaded Lisp function in
 | `org-freemind.el'.
 | 
 | (org-export-as-freemind ARG optional HIDDEN EXT-PLIST TO-BUFFER
 | BODY-ONLY PUB-DIR)
 | 
 | Not documented
 `
 
 After you call the function once (which completes the loading),
 
C-h f org-export-as-freemind RET
 
 will say something else:
 
 ,
 | org-export-as-freemind is an interactive compiled Lisp function in
 | `org-freemind.el'.
 | 
 | (org-export-as-freemind ARG optional HIDDEN EXT-PLIST TO-BUFFER
 | BODY-ONLY PUB-DIR)
 | 
 | Not documented.
 `
 
 Of course, in your case, emacs didn't know the function at all, so the
 autoload never happened: either you are not loading org-install.el or
 org-install.el does not contain the autoload form.
 
 HTH,
 Nick
 
 
 
 
 
 
 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode
 


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


Re: [Orgmode] [patch] org-agenda-goto should push mark before moving point

2010-04-23 Thread Andreas Seltenreich
Carsten Dominik writes:

 On Apr 22, 2010, at 10:57 PM, Andreas Seltenreich wrote:
 (switch-to-buffer-other-window buffer)
 (widen)
 +   (push-mark)
 (goto-char pos)

 I am no sure this is the right thing to do.  Because, often you will
 show *many* places from the agenda before going back to the buffer.
 Org-agenda-goto is called by many other functions like org-agenda- 
 show, org-agenda-recenter etc.

Well, I'd prefer too many marks over too few.  Popping multiple marks
off the local mark ring is still faster than moving point around
manually.

 This might work better:

 (defun my-org-agenda ()
(interactive)
(push-mark)
(call-interactively 'org-agenda))

 (define-key global-map \C-ca 'my-org-agenda)

 Maybe you can test this and report back?

Won't work for me since most of the time I don't call the Agenda from
the affected buffers.  I guess advising goto-char and checking the
backtrace for org-agenda-goto isn't a good idea either since goto-char
is a C function...  I'm afraid having git merge along that change
indefinitely is the only option for me as long as I'm the only one
deeming it a good thing.

Thanks,
andreas


___
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] org-mode CSS property export bug

2010-04-23 Thread Sebastian Rose
Carsten Dominik carsten.domi...@gmail.com writes:
 On Apr 23, 2010, at 3:51 AM, Rick Moynihan wrote:

 On 22 April 2010 22:29, Sebastian Rose sebastian_r...@gmx.de wrote:
 Rick Moynihan rick.moyni...@gmail.com writes:

 Hey Rick,

 interesting observation! I found, the pages validate everywhere, and so
 I started to search. It seems to be valid CSS 2 (I couldn't find a
 evidence though).

 Looks like an inconsistency in the W3C specs, as it appears to be
 invalid (or absent from) the CSS selector spec, if not elsewhere.

 http://groups.google.com/group/jquery-en/msg/ca6ecd94ad4a23bd

 Opera and firefox know how to handle that:


 h3[id=sec-1.1]
 {
  background-color:yellow;
 }

 We could change . to _ , but that would break old links, so I am hesitating.
 But of course if this really violates standards, we can change it.

 Sebastian has the last word on these issues.


* Links

  How many links like that will exist?
  Only links from external sites will break.
  I found one section link, but that's sec-1  (on de.wikipedia.org)

  Most links to certain sections use those custom IDs I guess.

* org-info.js

  I would then add the underscore to the regexp in org-info.js.
  People who use that will have to upgrade, too.


* Are there more modules involved??

sh$ grep -Fr sec- .
 org-docbook.el:(defcustom org-export-docbook-section-id-prefix sec-
 org-exp.el:(format sec-%s (org-section-number level
 org-html.el:   (setq href (format sec-%s snumber))
 org-html.el:   (setq href (cdr (assoc (concat sec- snumber) 
org-export-preferred-target-alist)))
 org-html.el:   (setq href (or href (concat sec- snumber)))
 org-latex.el:(sec-depth (length org-export-latex-sectioning)))
 org-latex.el:(if ( hl-levels sec-depth) sec-depth hl-levels



Let's do it.

You don't want people to point on orgmode saying They don't even use
valid CSS-IDs, do you?

And I guess most of us users will just be fine with it.



  Sebastian


 - Carsten



 Nice to know how to reference it.

 Cheers,

 R.


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

 - 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] org-mode CSS property export bug

2010-04-23 Thread Rick Moynihan
On 23 April 2010 07:30, Carsten Dominik carsten.domi...@gmail.com wrote:

 We could change . to _ , but that would break old links, so I am hesitating.
 But of course if this really violates standards, we can change it.

 Sebastian has the last word on these issues.

Unfortunately it seems that underscores, though no-longer invalid are
not without their problems either, at least according to Eric Meyer
(author of a number of CSS books):

http://devedge-temp.mozilla.org/viewsource/2001/css-underscores/

Though this page is old, and the browsers listed are largely
deprecated... I don't know what modern browser support is like for
underscores... I'm guessing it's pretty good and the point is largely
moot.

As far as I can see there are three options.

1) Use underscores (against the above advice) (practically probably
not a huge issue) e.g. outline-container-1_1
2) Overload the use of hyphens to be for both spaces and .'s...  e.g
outline-container-1-1
3) Stop using hyphens for spaces and switch to camel case convention,
freeing hyphens to be substitutes for .'s e.g. outlineContainer1-1.
This option seems like the best design, though it completely blows
backwards compatability away so is probably a non-starter.  Leaving us
with 1) or 2).

Personally I think *if* underscores aren't a problem for modern
browsers, ie8, firefox 3.5+, recent opera's safari and chrome we use
them.

R.


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


[Orgmode] Emacs 24: add symlink to .dir-settings.el

2010-04-23 Thread Sebastian Rose
Hi,


I found emacs 24 does not respect the

   .dir-settings.el

anymore. Instead, it reads the

  .dir-locals.el


As it may have the exactly same contents, could we add a symlink?

http://www.kernel.org/pub/software/scm/git/docs/git-config.html
states it will work on FAT, too (there a file is created, but you cannot
change the type by accident).


I tested, and it works:

   $ ln -s  .dir-settings.el .dir-locals.el
   
   $ git add .dir-locals.el
   
   $ git commit
   Waiting for Emacs...
   [mit-symlink 7a09e3f] Added a symlink `.dir-locals.e.'
1 files changed, 1 insertions(+), 0 deletions(-)
create mode 12 .dir-locals.el
   
   $ rm .dir-locals.el 
   
   $ git reset --hard
   HEAD is now at 7a09e3f Added a symlink `.dir-locals.e.'
   
   $ ls -la .dir*
   lrwxrwxrwx 1 sebastian ... 11:53 .dir-locals.el - .dir-settings.el
   -rw-r--r-- 1 sebastian ... 10:44 .dir-settings.el


Objections?


   Sebastian


___
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] org-mode CSS property export bug

2010-04-23 Thread Sebastian Rose
Rick Moynihan rick.moyni...@gmail.com writes:
 As far as I can see there are three options.

 1) Use underscores (against the above advice) (practically probably
 not a huge issue) e.g. outline-container-1_1
 2) Overload the use of hyphens to be for both spaces and .'s...  e.g
 outline-container-1-1
 3) Stop using hyphens for spaces and switch to camel case convention,
 freeing hyphens to be substitutes for .'s e.g. outlineContainer1-1.
 This option seems like the best design, though it completely blows
 backwards compatability away so is probably a non-starter.  Leaving us
 with 1) or 2).

 Personally I think *if* underscores aren't a problem for modern
 browsers, ie8, firefox 3.5+, recent opera's safari and chrome we use
 them.

Allright then.


He says:

  Internet Explorer 6 for Windows, published after the errata, permits 
   underscores and escaped underscores.

So do IE4x and IE5x.
Internet Explorer seems not to be the problem? IE7+ anyone?


   Opera 3.x through 5.x does not recognize underscores or escaped
   underscores, and so acts the same as Navigator 4.x in this regard.

Very old browsers. Do we have to support them?



The appended testfile works in Opera10 an FF 3.6. Is there something
missing? 



   Sebastian


Title: H_1_2 should have yellow background






 H_1 
 H_1_1 
 H_1_2 
My headline should have a yellow background.
 H_1_3 
 H_1_4 



___
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] org-mode CSS property export bug

2010-04-23 Thread Rick Moynihan
On 23 April 2010 11:46, Sebastian Rose sebastian_r...@gmx.de wrote:
 Very old browsers. Do we have to support them?

I personally don't care for older browsers, though others may differ here.

 The appended testfile works in Opera10 an FF 3.6. Is there something
 missing?

It works also in Safari 4, and Chrome (both webkit based so you'd
expect it to work).  So this seems fine to me.

R.


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


[Orgmode] Limited #+INCLUDE ?

2010-04-23 Thread Giles Chamberlin
I've been using org-mode for some course work: write an essay about
your software including the interesting bits, add all source code in an
appendix.

#+INCLUDE solves the inclusion of source code files very nicely - I'm 
guaranteed that my document includes the latest versions, type set as I
wish.

Unfortunately at the moment I'm cutting and pasting the snippets of
interesting code into the body of the essay.  What I'd like to do is
be able to label interesting regions of code in the source file and then
import the labelled blocks into my essay. Is there a way of doing this?

-- 
Giles



___
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] Org and XeTeX?

2010-04-23 Thread Carsten Dominik


On Apr 22, 2010, at 7:02 PM, Thomas S. Dye wrote:



On Apr 22, 2010, at 6:10 AM, Ross Laird wrote:

I mostly use XeTeX (rather than LaTeX). Can Org be setup to use the  
XeTeX
engine? I've looked at the variable org-export-latex-classes (as  
well as

org-export-latex-package-alist), and it looks like I can insert the
XeTeX-specific code:

  \TeXXeTstate=1
  \usepackage{fontspec,xunicode}
   
\defaultfontfeatures 
{Numbers=OldStyle,Scale=MatchLowercase,Mapping=tex-text}

  \setmainfont{Sabon LT Std}
  \setromanfont[Mapping=tex-text]{Sabon LT Std}
  \setsansfont[Scale=MatchUppercase]{Myriad Pro}
  \usepackage{xltxtra}

But can Org use XeTeX? The command is xelatex rather than latex.

Ross

--
Ross A. Laird, PhD
www.rosslaird.com


Aloha Ross,

Earlier this month when changes were made to the LaTeX export  
configuration, xetex compatibility was left to the user.  There is a  
footnote to this effect in the manual:


[103] The default LaTeX output is designed for processing with  
pdftex or latex. It includes packages that are not compatible with  
xetex and possibly luatex. See the variables org-export-latex- 
default-packages-alist and org-export-latex-packages-alist.



You can use the variable `org-latex-to-pdf-process' to change the  
commands that are used to process the tex file.


And you can customize org-export-latex-classes to make the class  
headers look like this:


  \TeXXeTstate=1
  \usepackage{fontspec,xunicode}
   
\defaultfontfeatures{Numbers=OldStyle,Scale=MatchLowercase,Mapping=tex- 
text}

  \setmainfont{Sabon LT Std}
  \setromanfont[Mapping=tex-text]{Sabon LT Std}
  \setsansfont[Scale=MatchUppercase]{Myriad Pro}
  \usepackage{xltxtra}
  [DEFAULT-PACKAGES]
  [PACKAGES]
  [EXTRA]

And you can change things around any way you like.

HTH

- Carsten








If you get export to xetex working, I think it would be useful to  
document the solution either here on the mailing list or, better,  
somewhere on Worg.


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


- 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] org-mode CSS property export bug

2010-04-23 Thread Rick Moynihan
On 23 April 2010 12:00, Rick Moynihan rick.moyni...@gmail.com wrote:
 On 23 April 2010 11:46, Sebastian Rose sebastian_r...@gmx.de wrote:
 Very old browsers. Do we have to support them?

 I personally don't care for older browsers, though others may differ here.

 The appended testfile works in Opera10 an FF 3.6. Is there something
 missing?

 It works also in Safari 4, and Chrome (both webkit based so you'd
 expect it to work).  So this seems fine to me.


On the topic of CSS id's, is it possible to set a property on a
headline to set the CSS id/class for the outline-container div? e.g.

* Navigation
:PROPERTIES:
:CSS_ID: navigation-bar
:CSS_CLASS: side-bar
:END:

R.


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


[Orgmode] Re: org-mode CSS property export bug

2010-04-23 Thread Richard Riley
Rick Moynihan rick.moyni...@gmail.com writes:

 On 23 April 2010 11:46, Sebastian Rose sebastian_r...@gmx.de wrote:
 Very old browsers. Do we have to support them?

 I personally don't care for older browsers, though others may differ
 here.

+1 : Don't support them. We'd never get anywhere in SW if we kept
looking for compatibility with old broken applications. Let the
curmudgeons upgrade ;)




___
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] Mobile Org Sharing Questions

2010-04-23 Thread David Frascone
I know it's a bit of an RTFM, but, I'm trying to figure out the best way to
keep my org-mode in sync with my iPhone (Using MobileOrg).  And, I'm VERY
new to orgmode, and a bit new to emacs.  I can easily do a one way sync
(org-mode to somewhere, via html), but I'm looking for a better way (two way
sync, like MobileOrg)

I have dropbox, but it's not webdav.
I also have an iDisk, but it's a pain to keep that synched.  I simply don't
like the mac synching.
I signed up for the other webdav account, but, I'm not sure if that's the
best way to do it.

I can easily use ssh to keep my org files somewhere.  But, that doesn't help
the reverse path.
I run my own apache at home, so, I suppose I could install webdav there, but
I have concerns about security, having never messed with it.

So, I guess my questions are:


What's the simplest method that's possibly insecure (i.e. some random webdav
provider)?
And, what's the simplest method that's secure?



Thanks in advance,


-Dave
___
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] Shift-Arrow Pass Through for windmove?

2010-04-23 Thread Daniel E . Doherty

All,

I make *very* frequent use of the shift-arrow keys to move from window
to window inside emacs via windmove.  It is probably the most frequent
key combination I access.

Anyway, is there a way to make org-mode friendlier to it by passing the
key along whenever org-mode would otherwise throw an error.  For
example, when not on a heading, when in the agenda, and wherever else?

I really like Carsten's use of the arrow keys for structure editing and
don't want to lose that, just whenever org-mode can't make use of the
keys.

Regards,
-- 
===
,[ Law Offices ]   
| Daniel E. Doherty
| 7300 W. 110th Street, Suite 930  
| Overland Park, KS 66210
| 913.338.7182 (Phone)   
| 913,338.7164 (FAX) 
`



___
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] M-Right and M-Left behave differently on headings and list items

2010-04-23 Thread Matti De Craene
Hello Carsten, Bastien, others,

 Excellent question.  I think the cleanest would be that M-left/right
 on a folded item that does have children throws an error.

I see two alternatives to showing an error:
  (a) First unfold, then proceed with M-left/right
  (b) Act as if M-S-left/right was called ( = current behaviour of
folded list items)

Personally, I like (a) somewhat more than showing error. Then again,
in most cases I would manually unfold first anyway to see what's below
the parent.


Matti

On Thu, Apr 22, 2010 at 12:15 PM, Bastien bastien.gue...@wikimedia.fr wrote:
 Carsten Dominik carsten.domi...@gmail.com writes:

 Excellent question.  I think the cleanest would be that M-left/right
 on a folded item that does have children throws an error.

 +1

 --
  Bastien



___
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] Emacs 24: add symlink to .dir-settings.el

2010-04-23 Thread Greg Newman
not being a smartass Sebastian but emacs 24?  Or 23.x?

On Fri, Apr 23, 2010 at 5:59 AM, Sebastian Rose sebastian_r...@gmx.dewrote:

 Hi,


 I found emacs 24 does not respect the

   .dir-settings.el

 anymore. Instead, it reads the

  .dir-locals.el


 As it may have the exactly same contents, could we add a symlink?

 http://www.kernel.org/pub/software/scm/git/docs/git-config.html
 states it will work on FAT, too (there a file is created, but you cannot
 change the type by accident).


 I tested, and it works:

   $ ln -s  .dir-settings.el .dir-locals.el

   $ git add .dir-locals.el

   $ git commit
   Waiting for Emacs...
   [mit-symlink 7a09e3f] Added a symlink `.dir-locals.e.'
1 files changed, 1 insertions(+), 0 deletions(-)
create mode 12 .dir-locals.el

   $ rm .dir-locals.el

   $ git reset --hard
   HEAD is now at 7a09e3f Added a symlink `.dir-locals.e.'

   $ ls -la .dir*
   lrwxrwxrwx 1 sebastian ... 11:53 .dir-locals.el - .dir-settings.el
   -rw-r--r-- 1 sebastian ... 10:44 .dir-settings.el


 Objections?


   Sebastian


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

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


Re: [Orgmode] Emacs 24: add symlink to .dir-settings.el

2010-04-23 Thread Greg Newman
Thanks Sebastian.  Call me out-of-the-loop.  I wasn't even aware :D

On Fri, Apr 23, 2010 at 6:30 AM, Sebastian Rose sebastian_r...@gmx.dewrote:

 Greg Newman gregoryjnew...@gmail.com writes:

  not being a smartass Sebastian but emacs 24?  Or 23.x?

 GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.18.3) of
 2010-04-14 on beteigeuze


 It's the trunk of that date. I use it all day and it's fine. Only one
 crash including my x-server - but I'm not sure who is to blame: Emacs or
 my fingers.

 I don't even recall the magic key on this machine, hence I could press
 it once in a while without knowing it :-D



  Sebastian



 
  On Fri, Apr 23, 2010 at 5:59 AM, Sebastian Rose sebastian_r...@gmx.de
 wrote:
 
  Hi,
 
 
  I found emacs 24 does not respect the
 
.dir-settings.el
 
  anymore. Instead, it reads the
 
   .dir-locals.el
 
 
  As it may have the exactly same contents, could we add a symlink?
 
  http://www.kernel.org/pub/software/scm/git/docs/git-config.html
  states it will work on FAT, too (there a file is created, but you cannot
  change the type by accident).
 
 
  I tested, and it works:
 
$ ln -s  .dir-settings.el .dir-locals.el
 
$ git add .dir-locals.el
 
$ git commit
Waiting for Emacs...
[mit-symlink 7a09e3f] Added a symlink `.dir-locals.e.'
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 12 .dir-locals.el
 
$ rm .dir-locals.el
 
$ git reset --hard
HEAD is now at 7a09e3f Added a symlink `.dir-locals.e.'
 
$ ls -la .dir*
lrwxrwxrwx 1 sebastian ... 11:53 .dir-locals.el - .dir-settings.el
-rw-r--r-- 1 sebastian ... 10:44 .dir-settings.el
 
 
  Objections?
 
 
Sebastian
 
 
  ___
  Emacs-orgmode mailing list
  Please use `Reply All' to send replies to the list.
  Emacs-orgmode@gnu.org
  http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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


[Orgmode] Emacs 24; view-diary-entries-initially

2010-04-23 Thread Tomas Dahlqvist
I have started using Emacs 24 from git. When I tried org-time-stamp I
got an error since org sets some variables which calendar wants to
treat as aliases. I tried removing the setting of these variables from
org. This works for emacs 24, but does this work for Emacs 22 and 23?
Should this be changed in Emacs 24 instead of in Org? Is this already
changed in later versions of org?

The diff below is from the git version of Emacs 24 which uses org 6.35i.

diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el
index 1cec8a8..7309fd8 100644
--- a/lisp/org/org-agenda.el
+++ b/lisp/org/org-agenda.el
@@ -7313,9 +7313,7 @@ argument, latitude and longitude will be prompted for.
 (date (calendar-gregorian-from-absolute day))
 (calendar-move-hook nil)
 (calendar-view-holidays-initially-flag nil)
-(calendar-view-diary-initially-flag nil)
-(view-calendar-holidays-initially nil)
-(view-diary-entries-initially nil))
+(calendar-view-diary-initially-flag nil))
 (calendar)
 (calendar-goto-date date)))

diff --git a/lisp/org/org.el b/lisp/org/org.el
index 98179ed..88dcb4e 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -13516,9 +13516,7 @@ user.
 (calendar-frame-setup nil)
 (calendar-move-hook nil)
 (calendar-view-diary-initially-flag nil)
-(view-diary-entries-initially nil)
 (calendar-view-holidays-initially-flag nil)
-(view-calendar-holidays-initially nil)
 (timestr (format-time-string
   (if with-time %Y-%m-%d %H:%M %Y-%m-%d) def))
 (prompt (concat (if prompt (concat prompt  ) )
@@ -14578,9 +14576,7 @@ A prefix ARG can be used to force the current date.
   (let ((tsr org-ts-regexp) diff
(calendar-move-hook nil)
(calendar-view-holidays-initially-flag nil)
-   (view-calendar-holidays-initially nil)
-   (calendar-view-diary-initially-flag nil)
-   (view-diary-entries-initially nil))
+   (calendar-view-diary-initially-flag nil))
 (if (or (org-at-timestamp-p)
(save-excursion
  (beginning-of-line 1)

Tomas Dahlqvist


___
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] Emacs 24; view-diary-entries-initially

2010-04-23 Thread Carsten Dominik

Hi Tomas,

this is alrady fixed in the current git version, in a way that is  
compatible with emacs 22-24.  Will in in the Emacs bzr repo soon.



Thanks.

- Carsten

On Apr 23, 2010, at 2:41 PM, Tomas Dahlqvist wrote:


I have started using Emacs 24 from git. When I tried org-time-stamp I
got an error since org sets some variables which calendar wants to
treat as aliases. I tried removing the setting of these variables from
org. This works for emacs 24, but does this work for Emacs 22 and 23?
Should this be changed in Emacs 24 instead of in Org? Is this already
changed in later versions of org?

The diff below is from the git version of Emacs 24 which uses org  
6.35i.


diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el
index 1cec8a8..7309fd8 100644
--- a/lisp/org/org-agenda.el
+++ b/lisp/org/org-agenda.el
@@ -7313,9 +7313,7 @@ argument, latitude and longitude will be  
prompted for.

(date (calendar-gregorian-from-absolute day))
(calendar-move-hook nil)
(calendar-view-holidays-initially-flag nil)
-(calendar-view-diary-initially-flag nil)
-(view-calendar-holidays-initially nil)
-(view-diary-entries-initially nil))
+(calendar-view-diary-initially-flag nil))
(calendar)
(calendar-goto-date date)))

diff --git a/lisp/org/org.el b/lisp/org/org.el
index 98179ed..88dcb4e 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -13516,9 +13516,7 @@ user.
(calendar-frame-setup nil)
(calendar-move-hook nil)
(calendar-view-diary-initially-flag nil)
-(view-diary-entries-initially nil)
(calendar-view-holidays-initially-flag nil)
-(view-calendar-holidays-initially nil)
(timestr (format-time-string
  (if with-time %Y-%m-%d %H:%M %Y-%m-%d) def))
(prompt (concat (if prompt (concat prompt  ) )
@@ -14578,9 +14576,7 @@ A prefix ARG can be used to force the  
current date.

  (let ((tsr org-ts-regexp) diff
   (calendar-move-hook nil)
   (calendar-view-holidays-initially-flag nil)
-   (view-calendar-holidays-initially nil)
-   (calendar-view-diary-initially-flag nil)
-   (view-diary-entries-initially nil))
+   (calendar-view-diary-initially-flag nil))
(if (or (org-at-timestamp-p)
   (save-excursion
 (beginning-of-line 1)

Tomas Dahlqvist


___
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] Emacs 24; view-diary-entries-initially

2010-04-23 Thread Nick Dokos
Tomas Dahlqvist tomas.dahlqv...@gmail.com wrote:

 I have started using Emacs 24 from git.

Just a note for the unwary: the emacs project page says

 Note that the CVS and Git repositories are *not* up-to-date.

IOW, you *have* to use bzr to access the sources, if you intend to keep
up-to-date with emacs24 development.

Nick



___
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] error when exporting to pdf

2010-04-23 Thread Nick Dokos
Buck Brody buckbr...@gmail.com wrote:


 I'm not sure how to run pdflatex.  I didn't mention earlier, but I run emacs
 on Windows.
 

How to run pdflatext is extremely dependent on what TeX system you have
installed. Also, how to run command-line programs differs if e.g. you have
cygwin installed. These are questions that only you can answer. In particular,
you *have* installed a TeX system on your machine, right?

In the meantime, how about sending the .tex file itself to the list? If
we can process it to pdf, then that indicts your TeX setup. If not, then
your orgmode setup might be at fault. The file itself should be in the
same directory that your .org file is (I think).

BTW, the reason that the backtrace is not useful in this case is that we know
exactly why emacs got an error: it tried to call an external program to do the
processing. IOW, seeing into the emacs processing (which is what the backtrace
shows) is not going to be useful: we need to see inside the tex-pdf
processing instead.

HTH,
Nick


  Hi Buck,
 
  In this process, Org-mode will produce a .tex file.  Try running pdflatex
  on the file by hand, this will give you (and, if still necessary, us),
  more information on what is going wrong.
 
  - Carsten
 
 
  On Apr 21, 2010, at 2:22 AM, Buck Brody wrote:
 
   I am trying to export to PDF.  I typed C-c C-e d.  Which should be,
  export as LaTeX and process to PDF and open PDF file.  I received a
  message that said PDF file was not produced.  The org file I used was the
  one in the example http://orgmode.org/worg/org-tutorials/org-beamer.php.
   Version information and backtrace are below.  Thanks for your help.
 
  Buck
 
  Versions:
 
  Emacs 22.3.1
 
  Org-Mode 6.34c
 
  Backtrace:
  Debugger entered--Lisp error: (error PDF file was not produced)
   signal(error (PDF file was not produced))
   error(PDF file was not produced)
   (if (not (file-exists-p pdffile)) (error PDF file was not produced)
  (set-window-configuration wconfig) (when org-export-pdf-remove-logfiles
  (dolist ... ... ...)) (message Exporting to PDF...done) pdffile)
   (let* ((wconfig ...) (lbuf ...) (file ...) (base ...) (pdffile ...) (cmds
  org-latex-to-pdf-process) (outbuf ...) (bibtex-p ...) cmd)
  (with-current-buffer outbuf (erase-buffer)) (message Processing LaTeX
  file...) (if (and cmds ...) (funcall cmds file) (while cmds ... ... ...
  ...)) (message Processing LaTeX file...done) (if (not ...) (error PDF
  file was not produced) (set-window-configuration wconfig) (when
  org-export-pdf-remove-logfiles ...) (message Exporting to PDF...done)
  pdffile))
   org-export-as-pdf(nil)
   (let ((pdffile ...)) (if pdffile (org-open-file pdffile) (error PDF file
  was not produced)))
   org-export-as-pdf-and-open(nil)
   call-interactively(org-export-as-pdf-and-open)
   (if (and bg (nth 2 ass) (not ...) (not ...)) (let (...)
  (set-process-sentinel p ...) (message Background process \%s\: started
  p)) (if subtree-p (progn ... ...)) (call-interactively (nth 1 ass)) (when
  (and bpos ...) (let ... ... ... ... ...)))
   (let* ((bg ...) subtree-p (help [t]   insert the export option
  template\n[v]   limit export to visible part of outline tree\n[1]   only
  export the current subtree\n[SPC] publish enclosing subtree (with
  LaTeX_CLASS or EXPORT_FILE_NAME prop)\n\n[a] export as ASCII [A] to
  temporary buffer\n\n[h] export as HTML  [H] to temporary buffer   [R]
  export region\n[b] export as HTML and open in browser\n\n[l] export as 
  LaTeX
  [L] to temporary buffer\n[p] export as LaTeX and process to PDF
 [d] ... and open PDF file\n\n[D] export as DocBook   [V] export as
  DocBook, process to PDF, and open\n\n[m] export as Freemind mind map\n[x]
  export as XOXO\n[g] export using Wes Hardaker's generic exporter\n\n[i]
  export current file as iCalendar file\n[I] export all agenda files as
  iCalendar files   [c] ...as one combined file\n\n[F] publish current file
 [P] publish current project\n[X] publish a project...  [E]
  publish every projects) (cmds ...) r1 r2 ass (cpos ...) (cbuf ...) bpos)
  (save-excursion (save-window-excursion ... ... ... ... ... ... ...)) (and
  bpos (goto-char bpos)) (setq r2 (if ... ... r1)) (unless (setq ass ...)
  (error No command associated with key %c r1)) (if (and bg ... ... ...)
  (let ... ... ...) (if subtree-p ...) (call-interactively ...) (when ...
  ...)))
   org-export(nil)
   call-interactively(org-export)
  ___
  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
 
 
 
 
 
 --001636c931b27821d70484d56b11
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 Carsten,divbr/divdivI#39;m not sure how to run pdflatex. =A0I didn=
 #39;t mention earlier, but I run emacs on Windows./divdivbr/divdi=
 vBuckbrbrdiv class=3Dgmail_quoteOn Wed, Apr 21, 

[Orgmode] exporting to latex with multiple authors

2010-04-23 Thread Chris Gray
Hi,

When I export an org file with the line

#+AUTHOR: Me \and Another person

I get

\author{Me $\wedge$ Another person}

which isn't exactly what I had in mind. :)

I suppose I could use the following:

#+LaTeX: \author{Me \and Another person}

but obviously that won't be portable to other export formats.  So I
guess the question is whether there is a good way to have multiple
authors in an org file, and if there isn't, should there be?

Cheers,
Chris

P.S.  It's just a matter of taste, but I always preferred \land and \lor
when typesetting logical ands and ors.



___
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] exporting to latex with multiple authors

2010-04-23 Thread Carsten Dominik

Hi Chris,

I agree and have changed org-entities to use land and lor instead.

You might have to write \and{} in the author line, I am not sure.

- Carsten

On Apr 23, 2010, at 5:06 PM, Chris Gray wrote:


Hi,

When I export an org file with the line

#+AUTHOR: Me \and Another person

I get

\author{Me $\wedge$ Another person}

which isn't exactly what I had in mind. :)

I suppose I could use the following:

#+LaTeX: \author{Me \and Another person}

but obviously that won't be portable to other export formats.  So I
guess the question is whether there is a good way to have multiple
authors in an org file, and if there isn't, should there be?

Cheers,
Chris

P.S.  It's just a matter of taste, but I always preferred \land and  
\lor

when typesetting logical ands and ors.



___
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] org-mode CSS property export bug

2010-04-23 Thread Carsten Dominik


On Apr 23, 2010, at 2:22 PM, Rick Moynihan wrote:


On 23 April 2010 12:00, Rick Moynihan rick.moyni...@gmail.com wrote:

On 23 April 2010 11:46, Sebastian Rose sebastian_r...@gmx.de wrote:

Very old browsers. Do we have to support them?


I personally don't care for older browsers, though others may  
differ here.



The appended testfile works in Opera10 an FF 3.6. Is there something
missing?


It works also in Safari 4, and Chrome (both webkit based so you'd
expect it to work).  So this seems fine to me.



On the topic of CSS id's, is it possible to set a property on a
headline to set the CSS id/class for the outline-container div? e.g.

* Navigation
:PROPERTIES:
:CSS_ID: navigation-bar
:CSS_CLASS: side-bar
:END:



You can already use the HTML_CONTAINER_CLASS property.  And for an ID,  
I think CUSTOM_ID will work.


- 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] org-mode CSS property export bug

2010-04-23 Thread Carsten Dominik


On Apr 23, 2010, at 12:46 PM, Sebastian Rose wrote:


Rick Moynihan rick.moyni...@gmail.com writes:

As far as I can see there are three options.

1) Use underscores (against the above advice) (practically probably
not a huge issue) e.g. outline-container-1_1
2) Overload the use of hyphens to be for both spaces and .'s...  e.g
outline-container-1-1
3) Stop using hyphens for spaces and switch to camel case convention,
freeing hyphens to be substitutes for .'s e.g. outlineContainer1-1.
This option seems like the best design, though it completely blows
backwards compatability away so is probably a non-starter.  Leaving  
us

with 1) or 2).

Personally I think *if* underscores aren't a problem for modern
browsers, ie8, firefox 3.5+, recent opera's safari and chrome we use
them.


Allright then.


He says:

 Internet Explorer 6 for Windows, published after the errata, permits
  underscores and escaped underscores.

So do IE4x and IE5x.
Internet Explorer seems not to be the problem? IE7+ anyone?


  Opera 3.x through 5.x does not recognize underscores or escaped
  underscores, and so acts the same as Navigator 4.x in this regard.

Very old browsers. Do we have to support them?



I don't think so.

- Carsten





The appended testfile works in Opera10 an FF 3.6. Is there something
missing?



  Sebastian


test.html


- 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: Support (or not) for Emacs 21, and XEmacs

2010-04-23 Thread Michael Sperber

Carsten Dominik carsten.domi...@gmail.com writes:

 4. Can you make XEmacs understand mouse-3 instead of button3 ?  Or
maybe it does understand these by now?

It actually does this now.  I've attached a patch that eliminates the
relevant featurep conditionals.

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 93ef921..886dacf 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -1663,9 +1663,9 @@ The following commands are available:
 (org-defkey org-agenda-mode-map \C-c\C-x\C-mp'org-mobile-push)
 
 (org-defkey org-agenda-mode-map
-  (if (featurep 'xemacs) [(button2)] [(mouse-2)]) 'org-agenda-goto-mouse)
+  [(mouse-2)] 'org-agenda-goto-mouse)
 (org-defkey org-agenda-mode-map
-  (if (featurep 'xemacs) [(button3)] [(mouse-3)]) 'org-agenda-show-mouse)
+  [(mouse-3)] 'org-agenda-show-mouse)
 (when org-agenda-mouse-1-follows-link
   (org-defkey org-agenda-mode-map [follow-link] 'mouse-face))
 (easy-menu-define org-agenda-menu org-agenda-mode-map Agenda menu
diff --git a/lisp/org-mouse.el b/lisp/org-mouse.el
index 2d68b1a..22624d3 100644
--- a/lisp/org-mouse.el
+++ b/lisp/org-mouse.el
@@ -1132,7 +1132,7 @@ SCHEDULED: or DEADLINE: or ANYTHINGLIKETHIS:
'(lambda ()
  (setq org-mouse-context-menu-function 'org-mouse-agenda-context-menu)
  (define-key org-agenda-mode-map
-   (if (featurep 'xemacs) [button3] [mouse-3])
+   [mouse-3]
'org-mouse-show-context-menu)
  (define-key org-agenda-mode-map [down-mouse-3] 'org-mouse-move-tree-start)
  (define-key org-agenda-mode-map (if (featurep 'xemacs) [(control 
mouse-4)] [C-mouse-4]) 'org-agenda-earlier)
diff --git a/lisp/org.el b/lisp/org.el
index 7cad962..ebc55fd 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -4481,9 +4481,9 @@ The following commands are available:
 
 (defvar org-mouse-map (make-sparse-keymap))
 (org-defkey org-mouse-map
-  (if (featurep 'xemacs) [button2] [mouse-2]) 'org-open-at-mouse)
+  [mouse-2] 'org-open-at-mouse)
 (org-defkey org-mouse-map
-  (if (featurep 'xemacs) [button3] [mouse-3]) 'org-find-file-at-mouse)
+  [mouse-3] 'org-find-file-at-mouse)
 (when org-mouse-1-follows-link
   (org-defkey org-mouse-map [follow-link] 'mouse-face))
 (when org-tab-follows-link
@@ -13590,9 +13590,9 @@ user.
 (map (copy-keymap calendar-mode-map))
 (minibuffer-local-map (copy-keymap minibuffer-local-map)))
(org-defkey map (kbd RET) 'org-calendar-select)
-   (org-defkey map (if (featurep 'xemacs) [button1] [mouse-1])
+   (org-defkey map [mouse-1]
'org-calendar-select-mouse)
-   (org-defkey map (if (featurep 'xemacs) [button2] [mouse-2])
+   (org-defkey map [mouse-2]
'org-calendar-select-mouse)
(org-defkey minibuffer-local-map [(meta shift left)]
(lambda () (interactive)
@@ -17743,7 +17743,7 @@ the functionality can be provided as a fall-back.)
   (org-set-local 'fill-paragraph-function 'org-fill-paragraph)
   ;; Adaptive filling: To get full control, first make sure that
   ;; `adaptive-fill-regexp' never matches.  Then install our own matcher.
-  (unless (local-variable-p 'adaptive-fill-regexp)
+  (unless (local-variable-p 'adaptive-fill-regexp (current-buffer))
 (org-set-local 'org-adaptive-fill-regexp-backup
adaptive-fill-regexp))
   (org-set-local 'adaptive-fill-regexp \000)
___
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] Shift-Arrow Pass Through for windmove?

2010-04-23 Thread Sebastian Rose
Daniel E. Doherty ded-...@ddoherty.net writes:

 All,

 I make *very* frequent use of the shift-arrow keys to move from window
 to window inside emacs via windmove.  It is probably the most frequent
 key combination I access.

 Anyway, is there a way to make org-mode friendlier to it by passing the
 key along whenever org-mode would otherwise throw an error.  For
 example, when not on a heading, when in the agenda, and wherever else?

 I really like Carsten's use of the arrow keys for structure editing and
 don't want to lose that, just whenever org-mode can't make use of the
 keys.

Yes, that would be helpfull!

I guess you could do this:



(defun my/org-windmove-right-maybe (optional arg)
  (interactive P)
  (if (and (not (org-on-heading-p))
   (not (org-at-item-p)))
  (windmove-right arg)  
  (org-shiftright arg)))


;; and bind it in org-mode-hook:

(add-hook 'org-mode-hook
  (lambda ()
   (define-key org-mode-map [(shift right)]
'my/org-windmove-right-maybe)))




  Sebastian


___
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] LATEX_CLASS

2010-04-23 Thread Nicolas Girard
Hi all,
I've just noticed that it's no longer allowed to put neither '-' nor
'_' in the latex class, such as:

#+LATEX_CLASS: auto-report

I personaly find it a little bit annoying and wished to know if this
was intentional

Thanks in advance,
cheers,

Nicolas


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


[Orgmode] org-mime - issues and remarks

2010-04-23 Thread David Maus
While skimming the source code of org-mime I noticed two severe issues
with regards to the MIME specifications:

  - when creating an attachment for a image org-mime (still) uses the
file extension as MIME media subtype for Gnus messages. This not
in compliance with RFC 2046.  As mentioned before org-mime
should/could use the function to determine MIME media type of
message-mode and mime-edit-mode respectively.

For SEMI the function is `mime-find-file-type', called with the
file name as argument and returns a list whose first element is a
string with MIME media type and second element is MIME media
subtype.

  - when creating an attachment for a image org-mime uses the path to
the image for the value of the content-id header.  This violates
RFC2045, section 7.

The value of the content-iD header field is syntactically
identical to the message-id header.

addr-spec   =  local-part @ domain

For SEMI the function for creating a message-id string is
`wl-draft-make-message-id-string' that is called without any
argument and returns a shiny new message-id header field value
/with/ the angle brackets.

Furthermore there are some minor glitches:

  - the filename parameter is only defined for the
content-disposition header field; because images are attachments
they can/should be easily send with

content-disposition: attachment; filename=filename

For SEMI (replace _ by -):

__[[type/subtype
content-disposition: attachment; filename=filename][base64]]

  - org-mime uses `reporter-compose-outgoing' to open a new message
draft.  This is not a could solution because (a) org-mine does not
want to send a bug report and (b) would depend on reporter.el
without necessity.

  - org-mime /should/ add information to the user-agent mail header
field indicating that the message was created with the help of
org-mime.

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


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


Re: [Orgmode] Shift-Arrow Pass Through for windmove?

2010-04-23 Thread Sebastian Rose
Daniel E. Doherty ded-...@ddoherty.net writes:
 All,

 I make *very* frequent use of the shift-arrow keys to move from window
 to window inside emacs via windmove.  It is probably the most frequent
 key combination I access.

 Anyway, is there a way to make org-mode friendlier to it by passing the
 key along whenever org-mode would otherwise throw an error.  For
 example, when not on a heading, when in the agenda, and wherever else?

 I really like Carsten's use of the arrow keys for structure editing and
 don't want to lose that, just whenever org-mode can't make use of the
 keys.

 Regards,



And here all the arrow keys. 

It's somewhat inelegant, since you always need to keep track of new
useful org-bindings.

I would find an org-internal solution helpfull too. I use windmove.

Actually, your email made hack this together :)




binQ09xAxQixy.bin
Description: application/emacs-lisp


  Sebastian
___
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] error when exporting to pdf

2010-04-23 Thread Buck Brody
Nick,

I have pasted the tex file below.  Thanks for your help.

Buck

% Created 2010-04-23 Fri 12:11
\documentclass[presentation]{beamer}
\usetheme{Madrid}\usecolortheme{default}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{amssymb}
\usepackage{hyperref}


\title{Example Presentation}
\author{Carsten Dominik}
\date{23 April 2010}

\begin{document}

\maketitle

\begin{frame}
\frametitle{Outline}
\setcounter{tocdepth}{3}
\tableofcontents
\end{frame}


\section{This is the first structural section}
\label{sec-1}


\begin{frame}
\frametitle{Frame 1}
\framesubtitle{with a subtitle}
\label{sec-1.1}
\begin{columns}[t]
\begin{column}{0.5\textwidth}
\begin{block}{Thanks to Eric Fraga}
\label{sec-1.1.1}

for the first viable beamer setup in Org
\end{block}
\end{column}
\begin{column}{0.5\textwidth}
\begin{block}2-{Thanks to everyone else}
\label{sec-1.1.2}

for contributing to the discussion
\end{block}
\end{column}
\end{columns}
\end{frame}
\begin{frame}
\frametitle{Frame 2}
\framesubtitle{Like 1, but now with explicit columns}
\transblindsvertical[duration=1]
\label{sec-1.2}
\begin{columns} % columns
\label{sec-1.2.1}
\begin{column}{0.5\textwidth}
\label{sec-1.2.1.1}
\begin{block}{Thanks to Eric Fraga}
\label{sec-1.2.1.1.1}

  for the first viable beamer setup in Org
\end{block}
\end{column}
\begin{column}{0.5\textwidth}
\label{sec-1.2.1.2}
\begin{block}2-{Thanks to everyone else}
\label{sec-1.2.1.2.1}

  for contributing to the discussion
\end{block}
\end{column}
\end{columns}
\end{frame}
\begin{frame}
\frametitle{Frame 2}
\framesubtitle{where we will not use columns}
\label{sec-1.3}
\begin{itemize}

\item Request\\
\label{sec-1.3.1}%
Please test this stuff!
\end{itemize} % ends low level
\end{frame}

\end{document}

On Fri, Apr 23, 2010 at 11:00 AM, Nick Dokos nicholas.do...@hp.com wrote:

 Buck Brody buckbr...@gmail.com wrote:


  I'm not sure how to run pdflatex.  I didn't mention earlier, but I run
 emacs
  on Windows.
 

 How to run pdflatext is extremely dependent on what TeX system you have
 installed. Also, how to run command-line programs differs if e.g. you have
 cygwin installed. These are questions that only you can answer. In
 particular,
 you *have* installed a TeX system on your machine, right?

 In the meantime, how about sending the .tex file itself to the list? If
 we can process it to pdf, then that indicts your TeX setup. If not, then
 your orgmode setup might be at fault. The file itself should be in the
 same directory that your .org file is (I think).

 BTW, the reason that the backtrace is not useful in this case is that we
 know
 exactly why emacs got an error: it tried to call an external program to do
 the
 processing. IOW, seeing into the emacs processing (which is what the
 backtrace
 shows) is not going to be useful: we need to see inside the tex-pdf
 processing instead.

 HTH,
 Nick


   Hi Buck,
  
   In this process, Org-mode will produce a .tex file.  Try running
 pdflatex
   on the file by hand, this will give you (and, if still necessary,
 us),
   more information on what is going wrong.
  
   - Carsten
  
  
   On Apr 21, 2010, at 2:22 AM, Buck Brody wrote:
  
I am trying to export to PDF.  I typed C-c C-e d.  Which should be,
   export as LaTeX and process to PDF and open PDF file.  I received a
   message that said PDF file was not produced.  The org file I used
 was the
   one in the example
 http://orgmode.org/worg/org-tutorials/org-beamer.php.
Version information and backtrace are below.  Thanks for your help.
  
   Buck
  
   Versions:
  
   Emacs 22.3.1
  
   Org-Mode 6.34c
  
   Backtrace:
   Debugger entered--Lisp error: (error PDF file was not produced)
signal(error (PDF file was not produced))
error(PDF file was not produced)
(if (not (file-exists-p pdffile)) (error PDF file was not produced)
   (set-window-configuration wconfig) (when
 org-export-pdf-remove-logfiles
   (dolist ... ... ...)) (message Exporting to PDF...done) pdffile)
(let* ((wconfig ...) (lbuf ...) (file ...) (base ...) (pdffile ...)
 (cmds
   org-latex-to-pdf-process) (outbuf ...) (bibtex-p ...) cmd)
   (with-current-buffer outbuf (erase-buffer)) (message Processing LaTeX
   file...) (if (and cmds ...) (funcall cmds file) (while cmds ... ...
 ...
   ...)) (message Processing LaTeX file...done) (if (not ...) (error
 PDF
   file was not produced) (set-window-configuration wconfig) (when
   org-export-pdf-remove-logfiles ...) (message Exporting to
 PDF...done)
   pdffile))
org-export-as-pdf(nil)
(let ((pdffile ...)) (if pdffile (org-open-file pdffile) (error PDF
 file
   was not produced)))
org-export-as-pdf-and-open(nil)
call-interactively(org-export-as-pdf-and-open)
(if (and bg (nth 2 ass) (not ...) (not ...)) (let (...)
   (set-process-sentinel p ...) (message Background process \%s\:
 started
   p)) (if subtree-p 

[Orgmode] Re: Emacs 24; view-diary-entries-initially

2010-04-23 Thread Matt Lundin
Nick Dokos nicholas.do...@hp.com writes:

 Tomas Dahlqvist tomas.dahlqv...@gmail.com wrote:

 I have started using Emacs 24 from git.

 Just a note for the unwary: the emacs project page says

  Note that the CVS and Git repositories are *not* up-to-date.

 IOW, you *have* to use bzr to access the sources, if you intend to keep
 up-to-date with emacs24 development.


In my experience, this git mirror stays up-to-date:

http://repo.or.cz/w/emacs.git

Best,
Matt


___
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] due today notification

2010-04-23 Thread Buck Brody
Is there a way to know if an item is due today by only looking at the
headline or at an agenda?  For instance, could a tag today be triggered
based upon a deadline? Basically, when looking at a sparse tree or an
agenda, I would like to know what is due today without using agenda for
current day or week or going into column view.

Thanks
___
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] Mobile Org Sharing Questions

2010-04-23 Thread Matthew Jones
Hi David

http://orgmode.org/org.html#Pulling-from-MobileOrg

Currently you likely use org-mobile-push to put your files on the remote
server.  You should be able to use org-mobile-pull for retrieval, is this
not the case?

73,
Matthew W. Jones (KI4ZIB)
http://matburt.net


On Thu, Apr 22, 2010 at 12:12 PM, David Frascone d...@frascone.com wrote:


 I know it's a bit of an RTFM, but, I'm trying to figure out the best way to
 keep my org-mode in sync with my iPhone (Using MobileOrg).  And, I'm VERY
 new to orgmode, and a bit new to emacs.  I can easily do a one way sync
 (org-mode to somewhere, via html), but I'm looking for a better way (two way
 sync, like MobileOrg)

 I have dropbox, but it's not webdav.
 I also have an iDisk, but it's a pain to keep that synched.  I simply don't
 like the mac synching.
 I signed up for the other webdav account, but, I'm not sure if that's the
 best way to do it.

 I can easily use ssh to keep my org files somewhere.  But, that doesn't
 help the reverse path.
 I run my own apache at home, so, I suppose I could install webdav there,
 but I have concerns about security, having never messed with it.

 So, I guess my questions are:


 What's the simplest method that's possibly insecure (i.e. some random
 webdav provider)?
 And, what's the simplest method that's secure?



 Thanks in advance,


 -Dave

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


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


Re: [Orgmode] Mobile Org Sharing Questions

2010-04-23 Thread Marcelo de Moraes Serpa
Get an account at dreamhost, a domain, and buy SSL from them. I did that and
it works great for me (I have setup a subdomain of my main domain to point
to a SSL secured IP, which in turn, points to a virtualhost setup on VPS @
dreamhost, this virtualhost has WebDAV enabled and is password-protected,
naturally).

If you are using Mac OSX, it's the easiest thing in the world. Just use
finder to mount the WebDAV as a partition, and move this drive to the
startup items so it gets connected everytime you boot.

With Linux/Ubuntu, it's a little bit more CLI work, but you can get the very
same effect (mount the drive, get it mounted automatically at boot-time) --
in both cases, just Google and you'll find plenty of articles.

For Windows, I have no idea. Sorry.

Marcelo.

On Fri, Apr 23, 2010 at 12:17 PM, Matthew Jones bsdmatb...@gmail.comwrote:

 Hi David

 http://orgmode.org/org.html#Pulling-from-MobileOrg

 Currently you likely use org-mobile-push to put your files on the remote
 server.  You should be able to use org-mobile-pull for retrieval, is this
 not the case?

 73,
 Matthew W. Jones (KI4ZIB)
 http://matburt.net


 On Thu, Apr 22, 2010 at 12:12 PM, David Frascone d...@frascone.comwrote:


 I know it's a bit of an RTFM, but, I'm trying to figure out the best way
 to keep my org-mode in sync with my iPhone (Using MobileOrg).  And, I'm VERY
 new to orgmode, and a bit new to emacs.  I can easily do a one way sync
 (org-mode to somewhere, via html), but I'm looking for a better way (two way
 sync, like MobileOrg)

 I have dropbox, but it's not webdav.
 I also have an iDisk, but it's a pain to keep that synched.  I simply
 don't like the mac synching.
 I signed up for the other webdav account, but, I'm not sure if that's the
 best way to do it.

 I can easily use ssh to keep my org files somewhere.  But, that doesn't
 help the reverse path.
 I run my own apache at home, so, I suppose I could install webdav there,
 but I have concerns about security, having never messed with it.

 So, I guess my questions are:


 What's the simplest method that's possibly insecure (i.e. some random
 webdav provider)?
 And, what's the simplest method that's secure?



 Thanks in advance,


 -Dave

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



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


___
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] Mobile Org Sharing Questions

2010-04-23 Thread Marcelo de Moraes Serpa
On thing that I find could improve, though, is the workflow behind
org-mobile pull/push. Having to push from emacs and pull and then having to
update from the iPod/iPhone *manually* quickly becomes a hassle, and the
result is that I end up not using it as much as I wanted to.

I'm thinking about setting up a cron to run emacs to evaluate
'(org-mobile-pull)(org-mobile-push)' every hour so I get automatic sync to
my iPod. We could also have an option on org-mobile to auto-sync too. Not
sure iPhone's OS architecture allows that, though.

Marcelo.

On Fri, Apr 23, 2010 at 12:38 PM, Marcelo de Moraes Serpa 
celose...@gmail.com wrote:

 Get an account at dreamhost, a domain, and buy SSL from them. I did that
 and it works great for me (I have setup a subdomain of my main domain to
 point to a SSL secured IP, which in turn, points to a virtualhost setup on
 VPS @ dreamhost, this virtualhost has WebDAV enabled and is
 password-protected, naturally).

 If you are using Mac OSX, it's the easiest thing in the world. Just use
 finder to mount the WebDAV as a partition, and move this drive to the
 startup items so it gets connected everytime you boot.

 With Linux/Ubuntu, it's a little bit more CLI work, but you can get the
 very same effect (mount the drive, get it mounted automatically at
 boot-time) -- in both cases, just Google and you'll find plenty of articles.

 For Windows, I have no idea. Sorry.

 Marcelo.


 On Fri, Apr 23, 2010 at 12:17 PM, Matthew Jones bsdmatb...@gmail.comwrote:

 Hi David

 http://orgmode.org/org.html#Pulling-from-MobileOrg

 Currently you likely use org-mobile-push to put your files on the remote
 server.  You should be able to use org-mobile-pull for retrieval, is this
 not the case?

 73,
 Matthew W. Jones (KI4ZIB)
 http://matburt.net


 On Thu, Apr 22, 2010 at 12:12 PM, David Frascone d...@frascone.comwrote:


 I know it's a bit of an RTFM, but, I'm trying to figure out the best way
 to keep my org-mode in sync with my iPhone (Using MobileOrg).  And, I'm VERY
 new to orgmode, and a bit new to emacs.  I can easily do a one way sync
 (org-mode to somewhere, via html), but I'm looking for a better way (two way
 sync, like MobileOrg)

 I have dropbox, but it's not webdav.
 I also have an iDisk, but it's a pain to keep that synched.  I simply
 don't like the mac synching.
 I signed up for the other webdav account, but, I'm not sure if that's the
 best way to do it.

 I can easily use ssh to keep my org files somewhere.  But, that doesn't
 help the reverse path.
 I run my own apache at home, so, I suppose I could install webdav there,
 but I have concerns about security, having never messed with it.

 So, I guess my questions are:


 What's the simplest method that's possibly insecure (i.e. some random
 webdav provider)?
 And, what's the simplest method that's secure?



 Thanks in advance,


 -Dave

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



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



___
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] error when exporting to pdf

2010-04-23 Thread Mark Elston

Buck,

Once I installed beamer I was able to run pdflatex to produce the
presentation without error.  What do you get when you run either
latex or pdflatex?

Mark

On 4/23/2010 9:12 AM, Buck Brody wrote:

Nick,

I have pasted the tex file below.  Thanks for your help.

Buck

% Created 2010-04-23 Fri 12:11
\documentclass[presentation]{beamer}
\usetheme{Madrid}\usecolortheme{default}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{amssymb}
\usepackage{hyperref}


\title{Example Presentation}
\author{Carsten Dominik}
\date{23 April 2010}

\begin{document}

\maketitle

\begin{frame}
\frametitle{Outline}
\setcounter{tocdepth}{3}
\tableofcontents
\end{frame}


\section{This is the first structural section}
\label{sec-1}

\begin{frame}
\frametitle{Frame 1}
\framesubtitle{with a subtitle}
\label{sec-1.1}
\begin{columns}[t]
\begin{column}{0.5\textwidth}
\begin{block}{Thanks to Eric Fraga}
\label{sec-1.1.1}

 for the first viable beamer setup in Org
\end{block}
\end{column}
\begin{column}{0.5\textwidth}
\begin{block}2-{Thanks to everyone else}
\label{sec-1.1.2}

 for contributing to the discussion
\end{block}
\end{column}
\end{columns}
\end{frame}
\begin{frame}
\frametitle{Frame 2}
\framesubtitle{Like 1, but now with explicit columns}
\transblindsvertical[duration=1]
\label{sec-1.2}
\begin{columns} % columns
\label{sec-1.2.1}
\begin{column}{0.5\textwidth}
\label{sec-1.2.1.1}
\begin{block}{Thanks to Eric Fraga}
\label{sec-1.2.1.1.1}

   for the first viable beamer setup in Org
\end{block}
\end{column}
\begin{column}{0.5\textwidth}
\label{sec-1.2.1.2}
\begin{block}2-{Thanks to everyone else}
\label{sec-1.2.1.2.1}

   for contributing to the discussion
\end{block}
\end{column}
\end{columns}
\end{frame}
\begin{frame}
\frametitle{Frame 2}
\framesubtitle{where we will not use columns}
\label{sec-1.3}
\begin{itemize}

\item Request\\
\label{sec-1.3.1}%
Please test this stuff!
\end{itemize} % ends low level
\end{frame}

\end{document}




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


[Orgmode] org-timeline fails when dates appear on top

2010-04-23 Thread Daniel Clemente

Hi, with latest org use this buffer:


one
2010-04-23 vie

* two



and press C-c a L

You get:

 Debugger entered--Lisp error: (error Before first headline at position 6 in 
buffer c.org)
   signal(error (Before first headline at position 6 in buffer c.org))
   error(Before first headline at position %d in buffer %s 6 #buffer c.org)
   (condition-case nil (outline-back-to-heading invisible-ok) (error (error 
Before first headline at position %d in buffer %s ... ...)))
  org-back-to-heading(t)
…


___
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] Mobile Org Sharing Questions

2010-04-23 Thread Matthew Jones
That's an excellent idea I've considered adding an auto synchronization
mode to the Android version, Richard would need to comment on the iPhone
version.  It may be one of those things where it would automatically sync
when launched.

73,
Matthew W. Jones (KI4ZIB)
http://matburt.net


On Fri, Apr 23, 2010 at 1:40 PM, Marcelo de Moraes Serpa 
celose...@gmail.com wrote:

 On thing that I find could improve, though, is the workflow behind
 org-mobile pull/push. Having to push from emacs and pull and then having to
 update from the iPod/iPhone *manually* quickly becomes a hassle, and the
 result is that I end up not using it as much as I wanted to.

 I'm thinking about setting up a cron to run emacs to evaluate
 '(org-mobile-pull)(org-mobile-push)' every hour so I get automatic sync to
 my iPod. We could also have an option on org-mobile to auto-sync too. Not
 sure iPhone's OS architecture allows that, though.

 Marcelo.


 On Fri, Apr 23, 2010 at 12:38 PM, Marcelo de Moraes Serpa 
 celose...@gmail.com wrote:

 Get an account at dreamhost, a domain, and buy SSL from them. I did that
 and it works great for me (I have setup a subdomain of my main domain to
 point to a SSL secured IP, which in turn, points to a virtualhost setup on
 VPS @ dreamhost, this virtualhost has WebDAV enabled and is
 password-protected, naturally).

 If you are using Mac OSX, it's the easiest thing in the world. Just use
 finder to mount the WebDAV as a partition, and move this drive to the
 startup items so it gets connected everytime you boot.

 With Linux/Ubuntu, it's a little bit more CLI work, but you can get the
 very same effect (mount the drive, get it mounted automatically at
 boot-time) -- in both cases, just Google and you'll find plenty of articles.

 For Windows, I have no idea. Sorry.

 Marcelo.


 On Fri, Apr 23, 2010 at 12:17 PM, Matthew Jones bsdmatb...@gmail.comwrote:

 Hi David

 http://orgmode.org/org.html#Pulling-from-MobileOrg

 Currently you likely use org-mobile-push to put your files on the remote
 server.  You should be able to use org-mobile-pull for retrieval, is this
 not the case?

 73,
 Matthew W. Jones (KI4ZIB)
 http://matburt.net


 On Thu, Apr 22, 2010 at 12:12 PM, David Frascone d...@frascone.comwrote:


 I know it's a bit of an RTFM, but, I'm trying to figure out the best way
 to keep my org-mode in sync with my iPhone (Using MobileOrg).  And, I'm 
 VERY
 new to orgmode, and a bit new to emacs.  I can easily do a one way sync
 (org-mode to somewhere, via html), but I'm looking for a better way (two 
 way
 sync, like MobileOrg)

 I have dropbox, but it's not webdav.
 I also have an iDisk, but it's a pain to keep that synched.  I simply
 don't like the mac synching.
 I signed up for the other webdav account, but, I'm not sure if that's
 the best way to do it.

 I can easily use ssh to keep my org files somewhere.  But, that doesn't
 help the reverse path.
 I run my own apache at home, so, I suppose I could install webdav there,
 but I have concerns about security, having never messed with it.

 So, I guess my questions are:


 What's the simplest method that's possibly insecure (i.e. some random
 webdav provider)?
 And, what's the simplest method that's secure?



 Thanks in advance,


 -Dave

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



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




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


[Orgmode] [babel] Org-babel updates: code block preview, body expand on tangling, row/col-names, and hlines

2010-04-23 Thread Eric Schulte
Hi,

Dan and I have been hard at work putting together the following two
updates to Org-babel.  They introduce both the ability to expand code
blocks according to their header arguments for both previewing and
tangling, and three new header arguments for the handling of column
names, row names, and hlines in tables.

More information is available at the following urls and below:
http://eschulte.github.com/babel-dev/DONE-code-block-body-expansion-for-table-and-preview.html
http://eschulte.github.com/babel-dev/DONE-Handling-of-table-column-names-and-hlines-across-languages-.html

Cheers -- Eric

** code block body expansion for table and preview

 In org-babel, code is expanded prior to evaluation. I.e. the
 code that is actually evaluated comprises the code block
 contents, augmented with the extra code which assigns the
 referenced data to variables. It is now possible to preview
 expanded contents, and also to expand code during during
 tangling.  This expansion takes into account all header
 arguments, and variables.

- preview :: A new key-binding =C-c M-b p= bound to
 `org-babel-expand-src-block' can be used from inside of a source
 code block to preview its expanded contents (which can be very
 useful for debugging).

- tangling :: The expanded body can now be tangled, this includes
 variable values which may be the results of other source-code
 blocks, or stored in headline properties or tables.  One possible
 use for this is to allow those using org-babel for their emacs
 initialization to store values (e.g. usernames, passwords,
 etc...) in headline properties or in tables.

Here is an example of a code block and its resulting expanded body.

The data in the file.
#+tblname: user-data
| username | john-doe |
| password | abc123   |

The actual code block
#+srcname: setup-my-account
#+begin_src emacs-lisp :rownames yes :var data=user-data
  (setq my-special-username (first (first data)))
  (setq my-special-password (first (second data)))
#+end_src
  
  its expanded contents, as seen with =C-c M-b p=
#+begin_src emacs-lisp
  (let ((data (quote ((john-doe) (abc123)
  (setq my-special-username (first (first data)))
  (setq my-special-password (first (second data)))
  )
#+end_src

** Handling of table column names and hlines across languages 

Org-babel now supports three new header arguments, and new default
behavior for handling horizontal lines in tables (hlines), column
names, and rownames across all languages.  These are as follows

- =:hlines= :: Can take on the values of yes or no, with a default
 value of no.  These values have the following effects.

 - no :: results in all hlines being stripped from the input
  table.  In most languages this is the desired effect, as a
  raw 'hline symbol generally is interpreted as an unbound
  variable and leads to and error.  The following table would
  previously have lead to an error but is now processed as
  shown.

  : #+tblname: many-cols
  : | a | b | c |
  : |---+---+---|
  : | d | e | f |
  : |---+---+---|
  : | g | h | i |
  : 
  : #+source: echo-table
  : #+begin_src python :var tab=many-cols
  :   return tab
  : #+end_src
  : 
  : #+results: echo-table
  : | a | b | c |
  : | d | e | f |
  : | g | h | i |
  
 - yes :: leaves 'hlines in the table. This is the default for
  emacs-lisp which may want to handle hline symbols
  explicitly.

- =:colnames= :: Can take on the values of yes, no, or =nil= for
 unassigned.  The default value is =nil=.  These values have the
 following effects
 
 - =nil= :: If an input table /looks like/ it has column names
  (meaning if it's second row is an hline), then the column
  names will be removed from the table by org-babel before
  processing, then reapplied to the results, so for example
  the following code block has the effect shown.

  : #+tblname: less-cols
  : | a |
  : |---|
  : | b |
  : | c |
  :   
  : #+srcname: echo-table-again
  : #+begin_src python :var tab=less-cols
  :   return [[val + '*' for val in row] for row in tab]
  : #+end_src
  : 
  : #+results: echo-table-again
  : | a  |
  : ||
  : | b* |
  : | c* |

 - no :: No column name pre-processing will take place.

 - yes :: Column names are removed and reapplied as with =nil=
  even if the table does not look like it has column names
  (i.e. the second row is not an hline)

- =:rownames= :: Can take on the values of yes or no, with a
 default value of no.  These values have the following effects.

 - no :: No row name pre-processing will take place.

 - yes :: The first 

Re: [Orgmode] error when exporting to pdf

2010-04-23 Thread Nick Dokos
Buck Brody buckbr...@gmail.com wrote:


 I have pasted the tex file below.  Thanks for your help.
 

OK, I processed the tex file through pdflatex with no problems.
The pdf looks right too. So we can rule out org as the cause
of your problems and concentrate on your TeX setup. Since this
is off-topic for this list, you probably want to visit CTAN
(www.ctan.org) and figure out your options. But I'm sure that
if any questions come up, we'll do our best to answer them.

Nick


___
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] org-mime - issues and remarks

2010-04-23 Thread Sebastian Rose
Hi David,


David Maus dm...@ictsoc.de writes:
   - org-mime uses `reporter-compose-outgoing' to open a new message
 draft.  This is not a could solution because (a) org-mine does not
 want to send a bug report and (b) would depend on reporter.el
 without necessity.


reporter.el is part of emacs. Imagine an Emacs without reporter :)

Org-mime _will_ depend on something, won't it?



  Sebastian


___
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] Mobile Org Sharing Questions

2010-04-23 Thread Marcelo de Moraes Serpa
Cool!

Auto-sync on start would be simple enough to implement (I think) and would
help a lot, although I was thinking on a more deeply integration with the
underlying OS, like, sync even when the app is closed (not sure you can have
background services on the iPhone OS ?).

As for the emacs side, anyone has any better idea than a cron job? I'm not
an experienced elisper (not sure I could even call myself an elisp
programmer, even though I want to :)) so not sure we could more easily do
something from inside emacs itself.

Marcelo.

On Fri, Apr 23, 2010 at 12:59 PM, Matthew Jones bsdmatb...@gmail.comwrote:

 That's an excellent idea I've considered adding an auto synchronization
 mode to the Android version, Richard would need to comment on the iPhone
 version.  It may be one of those things where it would automatically sync
 when launched.

 73,
 Matthew W. Jones (KI4ZIB)
 http://matburt.net


 On Fri, Apr 23, 2010 at 1:40 PM, Marcelo de Moraes Serpa 
 celose...@gmail.com wrote:

 On thing that I find could improve, though, is the workflow behind
 org-mobile pull/push. Having to push from emacs and pull and then having to
 update from the iPod/iPhone *manually* quickly becomes a hassle, and the
 result is that I end up not using it as much as I wanted to.

 I'm thinking about setting up a cron to run emacs to evaluate
 '(org-mobile-pull)(org-mobile-push)' every hour so I get automatic sync to
 my iPod. We could also have an option on org-mobile to auto-sync too. Not
 sure iPhone's OS architecture allows that, though.

 Marcelo.


 On Fri, Apr 23, 2010 at 12:38 PM, Marcelo de Moraes Serpa 
 celose...@gmail.com wrote:

 Get an account at dreamhost, a domain, and buy SSL from them. I did that
 and it works great for me (I have setup a subdomain of my main domain to
 point to a SSL secured IP, which in turn, points to a virtualhost setup on
 VPS @ dreamhost, this virtualhost has WebDAV enabled and is
 password-protected, naturally).

 If you are using Mac OSX, it's the easiest thing in the world. Just use
 finder to mount the WebDAV as a partition, and move this drive to the
 startup items so it gets connected everytime you boot.

 With Linux/Ubuntu, it's a little bit more CLI work, but you can get the
 very same effect (mount the drive, get it mounted automatically at
 boot-time) -- in both cases, just Google and you'll find plenty of articles.

 For Windows, I have no idea. Sorry.

 Marcelo.


 On Fri, Apr 23, 2010 at 12:17 PM, Matthew Jones bsdmatb...@gmail.comwrote:

 Hi David

 http://orgmode.org/org.html#Pulling-from-MobileOrg

 Currently you likely use org-mobile-push to put your files on the remote
 server.  You should be able to use org-mobile-pull for retrieval, is this
 not the case?

 73,
 Matthew W. Jones (KI4ZIB)
 http://matburt.net


 On Thu, Apr 22, 2010 at 12:12 PM, David Frascone d...@frascone.comwrote:


 I know it's a bit of an RTFM, but, I'm trying to figure out the best
 way to keep my org-mode in sync with my iPhone (Using MobileOrg).  And, 
 I'm
 VERY new to orgmode, and a bit new to emacs.  I can easily do a one way 
 sync
 (org-mode to somewhere, via html), but I'm looking for a better way (two 
 way
 sync, like MobileOrg)

 I have dropbox, but it's not webdav.
 I also have an iDisk, but it's a pain to keep that synched.  I simply
 don't like the mac synching.
 I signed up for the other webdav account, but, I'm not sure if that's
 the best way to do it.

 I can easily use ssh to keep my org files somewhere.  But, that doesn't
 help the reverse path.
 I run my own apache at home, so, I suppose I could install webdav
 there, but I have concerns about security, having never messed with it.

 So, I guess my questions are:


 What's the simplest method that's possibly insecure (i.e. some random
 webdav provider)?
 And, what's the simplest method that's secure?



 Thanks in advance,


 -Dave

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



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





___
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] Mobile Org Sharing Questions

2010-04-23 Thread Matthew Jones
You could tie the push to the save hook fairly easily I would imagine.

73,
Matthew W. Jones (KI4ZIB)
http://matburt.net


On Fri, Apr 23, 2010 at 5:04 PM, Marcelo de Moraes Serpa 
celose...@gmail.com wrote:

 Cool!

 Auto-sync on start would be simple enough to implement (I think) and would
 help a lot, although I was thinking on a more deeply integration with the
 underlying OS, like, sync even when the app is closed (not sure you can have
 background services on the iPhone OS ?).

 As for the emacs side, anyone has any better idea than a cron job? I'm not
 an experienced elisper (not sure I could even call myself an elisp
 programmer, even though I want to :)) so not sure we could more easily do
 something from inside emacs itself.

 Marcelo.


 On Fri, Apr 23, 2010 at 12:59 PM, Matthew Jones bsdmatb...@gmail.comwrote:

 That's an excellent idea I've considered adding an auto
 synchronization mode to the Android version, Richard would need to comment
 on the iPhone version.  It may be one of those things where it would
 automatically sync when launched.

 73,
 Matthew W. Jones (KI4ZIB)
 http://matburt.net


 On Fri, Apr 23, 2010 at 1:40 PM, Marcelo de Moraes Serpa 
 celose...@gmail.com wrote:

 On thing that I find could improve, though, is the workflow behind
 org-mobile pull/push. Having to push from emacs and pull and then having to
 update from the iPod/iPhone *manually* quickly becomes a hassle, and the
 result is that I end up not using it as much as I wanted to.

 I'm thinking about setting up a cron to run emacs to evaluate
 '(org-mobile-pull)(org-mobile-push)' every hour so I get automatic sync to
 my iPod. We could also have an option on org-mobile to auto-sync too. Not
 sure iPhone's OS architecture allows that, though.

 Marcelo.


 On Fri, Apr 23, 2010 at 12:38 PM, Marcelo de Moraes Serpa 
 celose...@gmail.com wrote:

 Get an account at dreamhost, a domain, and buy SSL from them. I did that
 and it works great for me (I have setup a subdomain of my main domain to
 point to a SSL secured IP, which in turn, points to a virtualhost setup on
 VPS @ dreamhost, this virtualhost has WebDAV enabled and is
 password-protected, naturally).

 If you are using Mac OSX, it's the easiest thing in the world. Just use
 finder to mount the WebDAV as a partition, and move this drive to the
 startup items so it gets connected everytime you boot.

 With Linux/Ubuntu, it's a little bit more CLI work, but you can get the
 very same effect (mount the drive, get it mounted automatically at
 boot-time) -- in both cases, just Google and you'll find plenty of 
 articles.

 For Windows, I have no idea. Sorry.

 Marcelo.


 On Fri, Apr 23, 2010 at 12:17 PM, Matthew Jones 
 bsdmatb...@gmail.comwrote:

 Hi David

 http://orgmode.org/org.html#Pulling-from-MobileOrg

 Currently you likely use org-mobile-push to put your files on the
 remote server.  You should be able to use org-mobile-pull for retrieval, 
 is
 this not the case?

 73,
 Matthew W. Jones (KI4ZIB)
 http://matburt.net


 On Thu, Apr 22, 2010 at 12:12 PM, David Frascone d...@frascone.comwrote:


 I know it's a bit of an RTFM, but, I'm trying to figure out the best
 way to keep my org-mode in sync with my iPhone (Using MobileOrg).  And, 
 I'm
 VERY new to orgmode, and a bit new to emacs.  I can easily do a one way 
 sync
 (org-mode to somewhere, via html), but I'm looking for a better way (two 
 way
 sync, like MobileOrg)

 I have dropbox, but it's not webdav.
 I also have an iDisk, but it's a pain to keep that synched.  I simply
 don't like the mac synching.
 I signed up for the other webdav account, but, I'm not sure if that's
 the best way to do it.

 I can easily use ssh to keep my org files somewhere.  But, that
 doesn't help the reverse path.
 I run my own apache at home, so, I suppose I could install webdav
 there, but I have concerns about security, having never messed with it.

 So, I guess my questions are:


 What's the simplest method that's possibly insecure (i.e. some random
 webdav provider)?
 And, what's the simplest method that's secure?



 Thanks in advance,


 -Dave

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



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






___
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] LATEX_CLASS

2010-04-23 Thread Carsten Dominik

Hi Nicolas,

On Apr 23, 2010, at 6:02 PM, Nicolas Girard wrote:


Hi all,
I've just noticed that it's no longer


No longer?  I don't think I changed anything here...



allowed to put neither '-' nor
'_' in the latex class, such as:

#+LATEX_CLASS: auto-report

I personaly find it a little bit annoying and wished to know if this
was intentional


I have no objections against dashes in these names and have
changed the regexp to allow this now.

- 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] Shift-Arrow Pass Through for windmove?

2010-04-23 Thread Carsten Dominik


On Apr 23, 2010, at 6:12 PM, Sebastian Rose wrote:


Daniel E. Doherty ded-...@ddoherty.net writes:

All,

I make *very* frequent use of the shift-arrow keys to move from  
window
to window inside emacs via windmove.  It is probably the most  
frequent

key combination I access.

Anyway, is there a way to make org-mode friendlier to it by passing  
the

key along whenever org-mode would otherwise throw an error.  For
example, when not on a heading, when in the agenda, and wherever  
else?


I really like Carsten's use of the arrow keys for structure editing  
and

don't want to lose that, just whenever org-mode can't make use of the
keys.

Regards,




And here all the arrow keys.

It's somewhat inelegant, since you always need to keep track of new
useful org-bindings.

I would find an org-internal solution helpfull too. I use windmove.


I have now added

(defvar org-shiftup-hook nil
  Hook for functions attaching themselves to `S-up'.
See `org-ctrl-c-ctrl-c-hook' for more information.)
(defvar org-shiftdown-hook nil
  Hook for functions attaching themselves to `S-down'.
See `org-ctrl-c-ctrl-c-hook' for more information.)
(defvar org-shiftleft-hook nil
  Hook for functions attaching themselves to `S-left'.
See `org-ctrl-c-ctrl-c-hook' for more information.)
(defvar org-shiftright-hook nil
  Hook for functions attaching themselves to `S-right'.
See `org-ctrl-c-ctrl-c-hook' for more information.)

But I do not intend to attach specific functionality like windmove to  
them,

and I'd like to reserve the possibility to make S-cursor do something
in Org in more contexts.

Hope this still helps.

- Carsten





Actually, your email made hack this together :)


mime-attachment

 Sebastian
___
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: Support (or not) for Emacs 21, and XEmacs

2010-04-23 Thread Carsten Dominik

Hi Michael,

thank you very much for this!  I have (sort-of) applied the patch.

Please try to make your patches always against the latest git version  
of Org-mode - we are moveing very fast.


- Carsten

On Apr 23, 2010, at 5:50 PM, Michael Sperber wrote:



Carsten Dominik carsten.domi...@gmail.com writes:


4. Can you make XEmacs understand mouse-3 instead of button3 ?  Or
  maybe it does understand these by now?


It actually does this now.  I've attached a patch that eliminates the
relevant featurep conditionals.

--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 93ef921..886dacf 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -1663,9 +1663,9 @@ The following commands are available:
(org-defkey org-agenda-mode-map \C-c\C-x\C-mp'org-mobile-push)

(org-defkey org-agenda-mode-map
-  (if (featurep 'xemacs) [(button2)] [(mouse-2)]) 'org-agenda-goto- 
mouse)

+  [(mouse-2)] 'org-agenda-goto-mouse)
(org-defkey org-agenda-mode-map
-  (if (featurep 'xemacs) [(button3)] [(mouse-3)]) 'org-agenda-show- 
mouse)

+  [(mouse-3)] 'org-agenda-show-mouse)
(when org-agenda-mouse-1-follows-link
  (org-defkey org-agenda-mode-map [follow-link] 'mouse-face))
(easy-menu-define org-agenda-menu org-agenda-mode-map Agenda menu
diff --git a/lisp/org-mouse.el b/lisp/org-mouse.el
index 2d68b1a..22624d3 100644
--- a/lisp/org-mouse.el
+++ b/lisp/org-mouse.el
@@ -1132,7 +1132,7 @@ SCHEDULED: or DEADLINE: or ANYTHINGLIKETHIS:
   '(lambda ()
 (setq org-mouse-context-menu-function 'org-mouse-agenda-context- 
menu)

 (define-key org-agenda-mode-map
-   (if (featurep 'xemacs) [button3] [mouse-3])
+   [mouse-3]
   'org-mouse-show-context-menu)
 (define-key org-agenda-mode-map [down-mouse-3] 'org-mouse-move- 
tree-start)
 (define-key org-agenda-mode-map (if (featurep 'xemacs)  
[(control mouse-4)] [C-mouse-4]) 'org-agenda-earlier)

diff --git a/lisp/org.el b/lisp/org.el
index 7cad962..ebc55fd 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -4481,9 +4481,9 @@ The following commands are available:

(defvar org-mouse-map (make-sparse-keymap))
(org-defkey org-mouse-map
-  (if (featurep 'xemacs) [button2] [mouse-2]) 'org-open-at-mouse)
+  [mouse-2] 'org-open-at-mouse)
(org-defkey org-mouse-map
-  (if (featurep 'xemacs) [button3] [mouse-3]) 'org-find-file-at- 
mouse)

+  [mouse-3] 'org-find-file-at-mouse)
(when org-mouse-1-follows-link
  (org-defkey org-mouse-map [follow-link] 'mouse-face))
(when org-tab-follows-link
@@ -13590,9 +13590,9 @@ user.
 (map (copy-keymap calendar-mode-map))
 (minibuffer-local-map (copy-keymap minibuffer-local-map)))
(org-defkey map (kbd RET) 'org-calendar-select)
-   (org-defkey map (if (featurep 'xemacs) [button1] [mouse-1])
+   (org-defkey map [mouse-1]
'org-calendar-select-mouse)
-   (org-defkey map (if (featurep 'xemacs) [button2] [mouse-2])
+   (org-defkey map [mouse-2]
'org-calendar-select-mouse)
(org-defkey minibuffer-local-map [(meta shift left)]
(lambda () (interactive)
@@ -17743,7 +17743,7 @@ the functionality can be provided as a fall- 
back.)

  (org-set-local 'fill-paragraph-function 'org-fill-paragraph)
  ;; Adaptive filling: To get full control, first make sure that
  ;; `adaptive-fill-regexp' never matches.  Then install our own  
matcher.

-  (unless (local-variable-p 'adaptive-fill-regexp)
+  (unless (local-variable-p 'adaptive-fill-regexp (current-buffer))
(org-set-local 'org-adaptive-fill-regexp-backup
   adaptive-fill-regexp))
  (org-set-local 'adaptive-fill-regexp \000)


- 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] indented items in agenda searches

2010-04-23 Thread Nathan Neff
I just found the setting org-tags-match-list-sublevels,
and think it's really cool for viewing agenda searches.

For example, if you search for a tag project using an agenda search
on the following data:

* Cake   :project:
** Ingredients
*** Apples
*** Oranges
* Clean Room  :project:
** Vacuum
** Dust

You would see the items indented with periods in the agenda view, like this:

  foo:Cake
:project:
  foo:.Ingredients
  foo:..Apples
  foo:..Oranges
  foo:Clean Room
:project:
  foo:.Vacuum
  foo:.Dust

However, the indents only show up when I perform an agenda search.

If these items all were TODO items, then the indentation goes away.

Is there a setting to see the indents all the time in the agenda? Or a way
to do it in a custom search?

Thanks,
--Nate
___
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] LATEX_CLASS

2010-04-23 Thread Nicolas Girard
2010/4/23 Carsten Dominik carsten.domi...@gmail.com:
 On Apr 23, 2010, at 6:02 PM, Nicolas Girard wrote:

 Hi all,
 I've just noticed that it's no longer

 No longer?  I don't think I changed anything here...



Well, it's weird, because I just did a git pull today, last time was
about 5 weeks ago, and I used to get this to work:
#+LATEX_CLASS: auto-report


 allowed to put neither '-' nor
 '_' in the latex class, such as:

 #+LATEX_CLASS: auto-report

 I personaly find it a little bit annoying and wished to know if this
 was intentional

 I have no objections against dashes in these names and have
 changed the regexp to allow this now.


Thanks very much Carsten !

Cheers,
Nicolas


___
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] Shift-Arrow Pass Through for windmove?

2010-04-23 Thread Sebastian Rose
Carsten Dominik carsten.domi...@gmail.com writes:
 On Apr 23, 2010, at 6:12 PM, Sebastian Rose wrote:

 Daniel E. Doherty ded-...@ddoherty.net writes:
 All,

 I make *very* frequent use of the shift-arrow keys to move from window
 to window inside emacs via windmove.  It is probably the most frequent
 key combination I access.

 Anyway, is there a way to make org-mode friendlier to it by passing the
 key along whenever org-mode would otherwise throw an error.  For
 example, when not on a heading, when in the agenda, and wherever else?

 I really like Carsten's use of the arrow keys for structure editing and
 don't want to lose that, just whenever org-mode can't make use of the
 keys.

 Regards,



 And here all the arrow keys.

 It's somewhat inelegant, since you always need to keep track of new
 useful org-bindings.

 I would find an org-internal solution helpfull too. I use windmove.

 I have now added

 (defvar org-shiftup-hook nil
   Hook for functions attaching themselves to `S-up'.
 See `org-ctrl-c-ctrl-c-hook' for more information.)
 (defvar org-shiftdown-hook nil
   Hook for functions attaching themselves to `S-down'.
 See `org-ctrl-c-ctrl-c-hook' for more information.)
 (defvar org-shiftleft-hook nil
   Hook for functions attaching themselves to `S-left'.
 See `org-ctrl-c-ctrl-c-hook' for more information.)
 (defvar org-shiftright-hook nil
   Hook for functions attaching themselves to `S-right'.
 See `org-ctrl-c-ctrl-c-hook' for more information.)

 But I do not intend to attach specific functionality like windmove to them,
 and I'd like to reserve the possibility to make S-cursor do something
 in Org in more contexts.

 Hope this still helps.

This could be perfect!!!

But wouldn't the hook need to be called at the end of (e.g.)
`org-shiftright'?

I want to use windmove as the last resort, as does the OP:


-   (t (org-shiftselect-error
+   (t (if org-shiftright-hook
+   ((run-hook-with-args-until-success 'org-shiftright-hook))
+   (org-shiftselect-error

;; end of org-shiftright ($otpional arg)



Otherwise we would loose the org-mode specific functions.

We want to

  1. try to do somehing org-specific (if org-headline-p )
  2. else run the hook (i.e. windmove in this case)
  3. erroronly if 1. and 2. failed


We do use windmove but at the same time we do _not_ want to loose all
those shift-right... features to come ;)



Sebastian


___
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] Mobile Org Sharing Questions

2010-04-23 Thread Greg Newman
You don't really need a cron to do the push/pull thing.
What I have in my configs is the following.  You can add org-mobile-pull to
it to if you'd like:

(run-at-time 00:59 3600 'org-mobile-push)

This runs a push for me every hour.  If I'm not at my mac I still know that
within the hour
I'll have an updated agenda on my iPhone.




On Fri, Apr 23, 2010 at 5:31 PM, Matthew Jones bsdmatb...@gmail.com wrote:

 You could tie the push to the save hook fairly easily I would imagine.

 73,
 Matthew W. Jones (KI4ZIB)
 http://matburt.net


 On Fri, Apr 23, 2010 at 5:04 PM, Marcelo de Moraes Serpa 
 celose...@gmail.com wrote:

 Cool!

 Auto-sync on start would be simple enough to implement (I think) and would
 help a lot, although I was thinking on a more deeply integration with the
 underlying OS, like, sync even when the app is closed (not sure you can have
 background services on the iPhone OS ?).

 As for the emacs side, anyone has any better idea than a cron job? I'm not
 an experienced elisper (not sure I could even call myself an elisp
 programmer, even though I want to :)) so not sure we could more easily do
 something from inside emacs itself.

 Marcelo.


 On Fri, Apr 23, 2010 at 12:59 PM, Matthew Jones bsdmatb...@gmail.comwrote:

 That's an excellent idea I've considered adding an auto
 synchronization mode to the Android version, Richard would need to comment
 on the iPhone version.  It may be one of those things where it would
 automatically sync when launched.

 73,
 Matthew W. Jones (KI4ZIB)
 http://matburt.net


 On Fri, Apr 23, 2010 at 1:40 PM, Marcelo de Moraes Serpa 
 celose...@gmail.com wrote:

 On thing that I find could improve, though, is the workflow behind
 org-mobile pull/push. Having to push from emacs and pull and then having to
 update from the iPod/iPhone *manually* quickly becomes a hassle, and the
 result is that I end up not using it as much as I wanted to.

 I'm thinking about setting up a cron to run emacs to evaluate
 '(org-mobile-pull)(org-mobile-push)' every hour so I get automatic sync 
 to
 my iPod. We could also have an option on org-mobile to auto-sync too. Not
 sure iPhone's OS architecture allows that, though.

 Marcelo.


 On Fri, Apr 23, 2010 at 12:38 PM, Marcelo de Moraes Serpa 
 celose...@gmail.com wrote:

 Get an account at dreamhost, a domain, and buy SSL from them. I did
 that and it works great for me (I have setup a subdomain of my main domain
 to point to a SSL secured IP, which in turn, points to a virtualhost setup
 on VPS @ dreamhost, this virtualhost has WebDAV enabled and is
 password-protected, naturally).

 If you are using Mac OSX, it's the easiest thing in the world. Just use
 finder to mount the WebDAV as a partition, and move this drive to the
 startup items so it gets connected everytime you boot.

 With Linux/Ubuntu, it's a little bit more CLI work, but you can get the
 very same effect (mount the drive, get it mounted automatically at
 boot-time) -- in both cases, just Google and you'll find plenty of 
 articles.

 For Windows, I have no idea. Sorry.

 Marcelo.


 On Fri, Apr 23, 2010 at 12:17 PM, Matthew Jones 
 bsdmatb...@gmail.comwrote:

 Hi David

 http://orgmode.org/org.html#Pulling-from-MobileOrg

 Currently you likely use org-mobile-push to put your files on the
 remote server.  You should be able to use org-mobile-pull for retrieval, 
 is
 this not the case?

 73,
 Matthew W. Jones (KI4ZIB)
 http://matburt.net


 On Thu, Apr 22, 2010 at 12:12 PM, David Frascone 
 d...@frascone.comwrote:


 I know it's a bit of an RTFM, but, I'm trying to figure out the best
 way to keep my org-mode in sync with my iPhone (Using MobileOrg).  And, 
 I'm
 VERY new to orgmode, and a bit new to emacs.  I can easily do a one way 
 sync
 (org-mode to somewhere, via html), but I'm looking for a better way 
 (two way
 sync, like MobileOrg)

 I have dropbox, but it's not webdav.
 I also have an iDisk, but it's a pain to keep that synched.  I simply
 don't like the mac synching.
 I signed up for the other webdav account, but, I'm not sure if that's
 the best way to do it.

 I can easily use ssh to keep my org files somewhere.  But, that
 doesn't help the reverse path.
 I run my own apache at home, so, I suppose I could install webdav
 there, but I have concerns about security, having never messed with it.

 So, I guess my questions are:


 What's the simplest method that's possibly insecure (i.e. some random
 webdav provider)?
 And, what's the simplest method that's secure?



 Thanks in advance,


 -Dave

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



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







 

[Orgmode] [patch] Remove modeline if not org-clocking-p

2010-04-23 Thread Sebastian Rose
Hi Carsten and the Orgers,


I had this mode line entry now since I created that example file for
lists two (?) days ago.

As I accidentally removed the clocking information by hand, the clock
was gone. Somehow, I was clocked out anyway (`C-c C-x C-o'), but the
modeline string remained. No matter how hard I tried - I only got the
error message.

This patch removes the clock-entry from the modeline, if (not
org-clocking-p).





binLws5BhgP3o.bin
Description: application/emacs-lisp



Best wishes

   Sebastian
___
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] Shift-Arrow Pass Through for windmove?

2010-04-23 Thread Carsten Dominik


On Apr 24, 2010, at 1:19 AM, Sebastian Rose wrote:


Carsten Dominik carsten.domi...@gmail.com writes:

On Apr 23, 2010, at 6:12 PM, Sebastian Rose wrote:


Daniel E. Doherty ded-...@ddoherty.net writes:

All,

I make *very* frequent use of the shift-arrow keys to move from  
window
to window inside emacs via windmove.  It is probably the most  
frequent

key combination I access.

Anyway, is there a way to make org-mode friendlier to it by  
passing the

key along whenever org-mode would otherwise throw an error.  For
example, when not on a heading, when in the agenda, and wherever  
else?


I really like Carsten's use of the arrow keys for structure  
editing and
don't want to lose that, just whenever org-mode can't make use of  
the

keys.

Regards,




And here all the arrow keys.

It's somewhat inelegant, since you always need to keep track of new
useful org-bindings.

I would find an org-internal solution helpfull too. I use windmove.


I have now added

(defvar org-shiftup-hook nil
 Hook for functions attaching themselves to `S-up'.
See `org-ctrl-c-ctrl-c-hook' for more information.)
(defvar org-shiftdown-hook nil
 Hook for functions attaching themselves to `S-down'.
See `org-ctrl-c-ctrl-c-hook' for more information.)
(defvar org-shiftleft-hook nil
 Hook for functions attaching themselves to `S-left'.
See `org-ctrl-c-ctrl-c-hook' for more information.)
(defvar org-shiftright-hook nil
 Hook for functions attaching themselves to `S-right'.
See `org-ctrl-c-ctrl-c-hook' for more information.)

But I do not intend to attach specific functionality like windmove  
to them,

and I'd like to reserve the possibility to make S-cursor do something
in Org in more contexts.

Hope this still helps.


This could be perfect!!!

But wouldn't the hook need to be called at the end of (e.g.)
`org-shiftright'?

I want to use windmove as the last resort, as does the OP:


-   (t (org-shiftselect-error
+   (t (if org-shiftright-hook
+   ((run-hook-with-args-until-success 'org-shiftright-hook))
+   (org-shiftselect-error

;; end of org-shiftright ($otpional arg)



Otherwise we would loose the org-mode specific functions.

We want to

 1. try to do somehing org-specific (if org-headline-p )
 2. else run the hook (i.e. windmove in this case)
 3. erroronly if 1. and 2. failed


We do use windmove but at the same time we do _not_ want to loose all
those shift-right... features to come ;)


Well, the idea is hat these hooks *can* overrule what org-mode wants  
to do,

so whatever you put into the hook needs to decide if it wants to apply.

We could add *another* hook at the end...

- Carsten






Sebastian


- 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] org-mode CSS property export bug

2010-04-23 Thread Carsten Dominik


On Apr 23, 2010, at 1:00 PM, Rick Moynihan wrote:


On 23 April 2010 11:46, Sebastian Rose sebastian_r...@gmx.de wrote:

Very old browsers. Do we have to support them?


I personally don't care for older browsers, though others may differ  
here.



The appended testfile works in Opera10 an FF 3.6. Is there something
missing?


It works also in Safari 4, and Chrome (both webkit based so you'd
expect it to work).  So this seems fine to me.

R.



Can one of you please summarize what the conclusion is?

Thanks.

- 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: Emacs 24; view-diary-entries-initially

2010-04-23 Thread Nick Dokos
Matt Lundin m...@imapmail.org wrote:

 Nick Dokos nicholas.do...@hp.com writes:
 
  Tomas Dahlqvist tomas.dahlqv...@gmail.com wrote:
 
  I have started using Emacs 24 from git.
 
  Just a note for the unwary: the emacs project page says
 
   Note that the CVS and Git repositories are *not* up-to-date.
 
  IOW, you *have* to use bzr to access the sources, if you intend to keep
  up-to-date with emacs24 development.
 
 
 In my experience, this git mirror stays up-to-date:
 
 http://repo.or.cz/w/emacs.git
 

Matt,

Thanks very much for the pointer. However, I cannot clone it either
through http or through git:

$ socksify git clone git://repo.or.cz/w/emacs.git
Initialized empty Git repository in 
/home/nick/src/emacs/emacs.repo/emacs/.git/cd 
fatal: The remote end hung up unexpectedly

$ rm -rf emacs

$ git clone http://repo.or.cz/w/emacs.git
Initialized empty Git repository in /home/nick/src/emacs/emacs.repo/emacs/.git/
warning: remote HEAD refers to nonexistent ref, unable to checkout.

This was at work through a SOCKS proxy - I'll try again from home without a 
proxy,
but in the meantime, can you check whether it works for you?

Thanks,
Nick


___
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: Emacs 24; view-diary-entries-initially

2010-04-23 Thread Nick Dokos
Nick Dokos nicholas.do...@hp.com wrote:

  
  In my experience, this git mirror stays up-to-date:
  
  http://repo.or.cz/w/emacs.git
  
 
 Matt,
 
 Thanks very much for the pointer. However, I cannot clone it either
 through http or through git:
 
 $ socksify git clone git://repo.or.cz/w/emacs.git
 Initialized empty Git repository in 
 /home/nick/src/emacs/emacs.repo/emacs/.git/cd 
 fatal: The remote end hung up unexpectedly
 
 $ rm -rf emacs
 
 $ git clone http://repo.or.cz/w/emacs.git
 Initialized empty Git repository in 
 /home/nick/src/emacs/emacs.repo/emacs/.git/
 warning: remote HEAD refers to nonexistent ref, unable to checkout.
 
 This was at work through a SOCKS proxy - I'll try again from home without a 
 proxy,
 but in the meantime, can you check whether it works for you?
 

I goofed: the URL Matt posted is not the one to use for cloning. I used
it to visit the site and the correct URLs for cloning are right there in
front of my eyes.

Sorry for the noise,
Nick



___
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] A table formula bug: incremental column fill with negative values

2010-04-23 Thread William Henney
Hi all

The following is using today's git trunk of org-mode with emacs
23.1.94.1 (aquamacs 2.0preview5)

Consider the following table

| -8 |
||
||
||
#+TBLFM: $...@-1 - 1::@1$1=-8

Evaluate formulas once (C-u C-c *):

| -8 |
| -9 |
||
| -1 |

Evaluate formulas again (C-u C-c *):

| -8 |
| -9 |
||
||

What I expected:

|  -8 |
|  -9 |
| -10 |
| -11 |

The problem always seems to start at -10. When I turn on table
debugging, it first calculates the -10 value correctly, but then fails
to recognise the -10 cell as a number when calculating the next row,
using 0 instead, which results in -1. This is because during the
intermediate formatting of the cell the minus sign in -10 abuts the
column separator: |-10 |, and the |- part is then interpreted as
the beginning of an hline.

Any possibility of a fix? Just prepending a space to all calculated
negative numbers might be enough.

Cheers

Will

-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia


___
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


SOLVED Re: [Orgmode] cannot pull from repo.or.cz today

2010-04-23 Thread William Henney
Just to tie up this old thread.

On Thu, Mar 18, 2010 at 3:32 AM, Scot Becker scot.bec...@gmail.com wrote:
 ...and here.

 On Wed, Mar 17, 2010 at 6:37 PM, David Maus dm...@ictsoc.de wrote:

 William Henney wrote:
 Is anyone else seeing this?

 $ git pull --verbose
 repo.or.cz[0: 195.113.20.142]: errno=Operation timed out
 fatal: unable to connect a socket (Operation timed out)

 Nope, works fine here.


Thanks for checking!

It turned out that there was nothing wrong with repo.or.cz - the
problem was simply that the sysadmins at my institute had started to
block the port used by the git protocol (9418).

Thankfully, they listened to reason and I am now happily git-pulling
during office hours again!

Cheers

Will

-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia


___
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