[Orgmode] Re: mobile org

2010-04-20 Thread Reinout van Rees

On 04/20/2010 04:12 AM, clsnyder wrote:

Hi

I have a web-dav set up via dreamhost on a remote server
(http://myfile.clsnyder.com/orgmode/index.org)

I have mobile org on my iphone.

When I ftp transferred files to the server, they show up on the iphone app, and
sync and work fine.

I am unable to push or pull anything from my windows/mac home computers from the
server via emacs;
Under Org Mobile group, I put http://myfile.clsnyder.com/orgmode/ as the org
mobile directory (where would I input the username and password?)

When I try to push files and views or get captured, I get a
org-mobile-check-setup: Please set `org-directory' to the directory where your
org files live error

? any ideas


In your emacs config, you need to set that org-directory variable so 
that org mode knows where to get/send the files.


See http://orgmode.org/manual/Setting-up-the-staging-area.html

For instance:

(setq org-mobile-directory /scp:yoursever.org:orgmode/)

You've set the org mobile directory: please check whether that ended 
up as 'org-mobile-directory' in your emacs config. Perhaps you only set 
it once and didn't save the settings?


Another point: sure that the http://; of yours is writable?  I'd rather 
expect ftp or https or scp instead of plain http.



Reinout




___
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] [ANN] Exporter for taskjuggler

2010-04-20 Thread Christian Egli
John Hendy jw.he...@gmail.com writes:

 I'd stick with looking into TJ3 org-mode integration over 2.4. Or
 perhaps take a look at the first of the references on how to use both:

 - http://www.taskjuggler.org/tj3/manual/TaskJuggler_2x_Migration.html

The exporter is pretty agnostic towards either tj3 or tj2.4. It pretty
much just exports the properties you define in your nodes. It also does
some magic with regards to dependecy and resource export, but these have
not changed in tj3. While I haven't tested it with tj3 the export from
an org file should also work for tj3. You might have to tweak the
reports some, but this can be done with the customize interface.

HTH
Christian
-- 
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland


___
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: [Babel] Macro for begin_src?

2010-04-20 Thread Sébastien Vauban
Hi Eric,

Eric S Fraga wrote:
 it might be nice to have a worg page on snippets for org-mode?

Sure. Or having them somewhere in the git directories...


 I'm happy to contribute a few.

 figure:
 #name : figure
 # --
 #+attr_latex: width=$1\textwidth
 [[file:$2.pdf]]
 $0

Better use \linewidth instead of \textwidth. You will avoid bad surprises.

They are generally equivalent, but \linewidth is more often the real width to
consider: it is correctly adapted in column environments, itemized lists and
quotes, to cite a few.

Seb

-- 
Sébastien Vauban



___
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] linking to emacs info nodes? Multiline comments?

2010-04-20 Thread LanX
Thanx, linking works! :)

Anyway this Link-To-Info syntax doesn't seem to be documented on the web
page...

http://orgmode.org/manual/External-links.html#External-links


 I don't understand the context (why do you have to define a variable
exactly?),
 but you can include double quotes in a lisp string by escaping it with a
backslash:

I was trying to embed org-mode (and other) syntax in lisp-code.

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

2010-04-20 Thread Matti De Craene
Hello all,

When operating on a heading, M-Right/M-Left promotes or demotes one
heading only, and M-S-Right/M-S-Left promotes or demotes an entire
subtree.

When operating on list items however, there is no distinction between
M-Right/M-Left and M-S-Right/M-S-Left. Both key combinations operate
on the current item and on all subitems

Example: No difference between M-Right and M-S-Right on item 1 below:
- item 1
- item 2
- item 3

I find this behaviour somewhat confusing.

Attached patch seems to fix that for me.

Kind Regards,

Matti
diff --git a/lisp/org-list.el b/lisp/org-list.el
index d3bfb6b..05793e7 100644
--- a/lisp/org-list.el
+++ b/lisp/org-list.el
@@ -975,12 +975,15 @@ I.e. to the text after the last item.
 (setq firstp (org-first-list-item-p))
 (save-excursion
   (setq end (and (org-region-active-p) (region-end)))
-  (if (memq last-command '(org-shiftmetaright org-shiftmetaleft))
+  (if (and (memq last-command '(org-shiftmetaright org-shiftmetaleft))
+	(memq this-command '(org-shiftmetaright org-shiftmetaleft)))
 	  (setq beg org-last-indent-begin-marker
 		end org-last-indent-end-marker)
 	(org-beginning-of-item)
 	(setq beg (move-marker org-last-indent-begin-marker (point)))
-	(org-end-of-item)
+	(if (memq this-command '(org-shiftmetaright org-shiftmetaleft))
+	  (org-end-of-item)
+	  (org-end-of-line))
 	(setq end (move-marker org-last-indent-end-marker (or end (point)
   (goto-char beg)
   (setq ind-bul (org-item-indent-positions)
___
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: subtitle in export?

2010-04-20 Thread Sébastien Vauban
Hi Matt,

Matt Price wrote:
 Is it possible to add a subtitle when exporting an orgmode document?
 Or phrased differently, can I define a multi-line title for a
 document?  I don't see an obvious way to do it, though perhaps there's
 a latex option I don't understand at all.

--8---cut here---start-8---
#+TITLE: Documentation \linebreak Nouvelles demandes
--8---cut here---end---8---

Is this it?

Seb

-- 
Sébastien Vauban



___
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] Problem exporting to LaTeX/PDF from command line

2010-04-20 Thread Francesco Pizzolante
Hi,

I forgot to mention that, of course, when I do the same operation within
Emacs, using the C-c C-e l, the file is exported without problem.

Any idea?

Thanks,
Francesco

Francesco Pizzolante wrote:
 Hi,

 I'm trying to write a shell script in order to convert/export Org files to
 LaTeX/PDF from the command line (org2tex/org2pdf). The whole process works
 well, except that it seems that some bits of the exportation are not executed.

 Here's an example of what I do.

 I'm using the org-interaction.el file from Blorgit:

 (require 'org)
 (require 'cl)

 (setq font-lock-mode t)

 (defun refresh-then-find-file (file)
   Find file ensuring that the latest changes on disk are
 represented in the file.
   (let (file-buf)
 (while (setq file-buf (get-file-buffer file))
   (kill-buffer file-buf))
 (find-file file)))

 (defmacro with-temp-filebuffer (file rest body)
   Open FILE into a temporary buffer execute BODY there like
 `progn', then kill the FILE buffer returning the result of
 evaluating BODY.
   (let ((temp-result (make-symbol temp-result))
 (temp-file (make-symbol temp-file)))
 `(let (,temp-result ,temp-file)
(refresh-then-find-file ,file)
(setf ,temp-file (current-buffer))
(setf ,temp-result (progn ,@body))
(kill-buffer ,temp-file)
,temp-result)))

 ;; (defvar org-interaction-prefix .exported_)
 (defvar org-interaction-prefix )

 (defun org-file-to-html (file-path)
   Open up an org file, publish it to html, and then return the
 html as a string.
   (let* ((file-name (file-name-nondirectory file-path))
  (file-dir (file-name-directory file-path))
  (html-path (expand-file-name (concat org-interaction-prefix 
 file-name) file-dir)))
 (if (and (file-exists-p html-path)
  ( 0 (time-to-seconds
(time-subtract
 (nth 5 (file-attributes html-path))
 (nth 5 (file-attributes file-path))
 html-path
   (with-temp-filebuffer
file-path
(org-mode)
(save-window-excursion
  (org-export-as-html-to-buffer nil)
  (write-file html-path)
  (kill-buffer (current-buffer)))

 (defun org-file-to-latex (file-path)
   Open up an org file, publish it to latex, and then return the
 latex as a string.
   (let* ((file-name (file-name-nondirectory file-path))
  (file-dir (file-name-directory file-path))
  (latex-path (expand-file-name (concat org-interaction-prefix 
 file-name .tex) file-dir)))
 (if (and (file-exists-p latex-path)
  ( 0 (time-to-seconds
(time-subtract
 (nth 5 (file-attributes latex-path))
 (nth 5 (file-attributes file-path))
 latex-path
   (with-temp-filebuffer
file-path
(org-mode)
(save-window-excursion
  (org-export-as-latex-to-buffer nil)
  (write-file latex-path)
  (kill-buffer (current-buffer)))

 (defun org-file-to-pdf (file-path)
   Open up an org file and export it as pdf.
   (let* ((file-name (file-name-sans-extension file-path))
  (file-dir (file-name-directory file-path))
  (org-tmp-path (make-temp-file org-file-to-pdf-))
  (pdf-tmp-path (concat org-tmp-path .pdf))
  (tex-tmp-path (concat org-tmp-path .tex))
  (pdf-path (expand-file-name (concat org-interaction-prefix file-name 
 .pdf) file-dir)))
 (if (and (file-exists-p pdf-path)
  ( 0 (time-to-seconds
(time-subtract
 (nth 5 (file-attributes pdf-path))
 (nth 5 (file-attributes file-path))
 pdf-path
   (with-temp-filebuffer
file-path
(write-file org-tmp-path)
(org-mode)
(save-window-excursion
  (org-export-as-pdf nil)
  (rename-file pdf-tmp-path pdf-path t)
  (delete-file org-tmp-path)
 ;; (delete-file tex-tmp-path)
  (kill-buffer (current-buffer)))

 ;; customization
 ;; (setq org-export-blocks-witheld '(hidden comment))

 ;; Start the server
 ;; (server-start)

 ;; save the emacsclient server socket location
 ;; (with-temp-file /tmp/emacsclient-socket-dir
 ;;   (insert server-socket-dir))


 Here's the file I'm trying to convert (test.org):

 #+TITLE:   Features report
 #+AUTHOR:Francesco Pizzolante
 #+EMAIL: f...@missioncriticalit.com
 #+DATE:  2010-04-19
 #+DESCRIPTION:
 #+KEYWORDS:
 #+LANGUAGE: en_US

 #+LaTeX_CLASS_OPTIONS: [a4paper]

 * First test
 ** tatatata


 On the command line, I run the following command:

 emacs --batch -l org-interaction.el --eval (org-file-to-latex  
 \~/test.org\)


 My observation is that the #+LATEX_CLASS_OPTIONS are not taken into account. I
 can add any option there, I always see the default one (11pt).

 It is really strange because if I add a #+LATEX_CLASS directive, this one is
 well taken into account and I get the 

Re: [OT] [Orgmode] Re: [Babel] Macro for begin_src?

2010-04-20 Thread Eric S Fraga
On Tue, 20 Apr 2010 11:19:10 +0200, Sébastien Vauban 
wxhgmqzgw...@spammotel.com wrote:

[...]

  I'm happy to contribute a few.
 
  figure:
  #name : figure
  # --
  #+attr_latex: width=$1\textwidth
  [[file:$2.pdf]]
  $0
 
 Better use \linewidth instead of \textwidth. You will avoid bad surprises.
 
 They are generally equivalent, but \linewidth is more often the real width to
 consider: it is correctly adapted in column environments, itemized lists and
 quotes, to cite a few.
 
 Seb

Interesting.  I've always used textwidth and have never run into
problems: it does adapt to column environments and I've never really
used this within lists or quotes I guess.  Good to know and I'll try
to re-train my fingers to type linewidth instead!  (and I've already
updated my snippet...)

Thanks,
eric


___
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: How you ORGanize yourself? (aka: Why not one file to rule'em all?)

2010-04-20 Thread Carsten Dominik


On Apr 19, 2010, at 5:07 PM, Matthew Lundin wrote:


Hi Carsten,

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


On Apr 17, 2010, at 3:50 PM, Matt Lundin wrote:


FWIW, I've found it quite convenient to rely on filetags to organize
my notes. I've written a few functions that allow me to limit my
agenda to a subset of agenda files that share a filetag (e.g.,
emacs or writing). This is a bit quicker than calling agenda
commands on all agenda files and then filtering afterward. It also
allows for greater focus on a particular area of work. Here are the
functions:
http://orgmode.org/worg/org-hacks.php#set-agenda-files-by-filetag  
 

Hi Matt,

this is very interesting!

One idea:  Instead of setting the value of org-agenda-files,
you can also restrict in the following way:

(org-agenda-remove-restriction-lock)
(put 'org-agenda-files 'org-restrict my-file-list)
(setq org-agenda-overriding-restriction 'files)

The restriction sticks until you remove it with `C-c C_x '

I am not sure this will work better for your case - but maybe it  
will.


Thanks for the tip! That's much more elegant.

I find that (org-agenda-restriction-lock) makes subsequent calls to
my-org-agenda-files-by-filetag slow, since it refreshes the current
agenda.


Are there any potential pitfalls if I use (setq org-agenda-restrict  
nil)

instead?



I think you might mean org-agenda-remove-restriction-lock?

That function does some cleanup which I think you should keep,
so maybe just call it like this:

(org-agenda-remove-restriction-lock 'noupdate)

Otherwise, while you are inside your system, (setq org-agenda-restrict  
nil)

is enough - only when you mix the normal subtree/file restriction with
you system, you may get funny effects.

- 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: How you ORGanize yourself? (aka: Why not one file to rule'em all?)

2010-04-20 Thread Matthew Lundin
Carsten Dominik carsten.domi...@gmail.com writes:

 On Apr 19, 2010, at 5:07 PM, Matthew Lundin wrote:

 I find that (org-agenda-restriction-lock) makes subsequent calls to
 my-org-agenda-files-by-filetag slow, since it refreshes the current
 agenda.


 Are there any potential pitfalls if I use (setq org-agenda-restrict
 nil)
 instead?

 I think you might mean org-agenda-remove-restriction-lock?

Yes, sorry for the typo.

 That function does some cleanup which I think you should keep,
 so maybe just call it like this:

 (org-agenda-remove-restriction-lock 'noupdate)

Thanks! This was exactly what I was looking for.

 Otherwise, while you are inside your system, (setq org-agenda-restrict
 nil) is enough - only when you mix the normal subtree/file restriction
 with you system, you may get funny effects.

I've put updated versions of the functions on Worg:

http://orgmode.org/worg/org-hacks.php#set-agenda-files-by-filetag

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] Re: Automatic clock-in

2010-04-20 Thread Andrea Crotti
Benjamin Andresen be...@in-ulm.de writes:

 Hey Andrea,


 Maybe C-u M-x org-clock-in RET does what you want.

 br,
 benny

Ah great that's really nice, I always forget to try the magic C-u
first...
So by the way what is the real function called when prefixing C-u?
I mean, can I call it directly?

I see that (universal-argument) is a function but it doesn't take any
argument actually...



___
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: Automatic clock-in

2010-04-20 Thread Eric S Fraga
On Tue, 20 Apr 2010 14:51:57 +0200, Andrea Crotti andrea.crott...@gmail.com 
wrote:
 Ah great that's really nice, I always forget to try the magic C-u
 first...
 So by the way what is the real function called when prefixing C-u?
 I mean, can I call it directly?

The same function (i.e. org-clock-in in this case) except that an
argument is passed to it.  You can see from the definition of org-clock-in:

,
| (defun org-clock-in (optional select)
|   Start the clock on the current item.
| If necessary, clock-out of the currently active clock.
| With prefix arg SELECT, offer a list of recently clocked tasks to
| clock into.  When SELECT is `C-u C-u', clock into the current task and mark
| is as the default task, a special task that will always be offered in
| the clocking selection, associated with the letter `d'.
`

that there is an optional argument called select which will be
defined if you use C-u or C-u C-u as the documentation says.

HTH,
eric


___
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] subtitle in export?

2010-04-20 Thread Carsten Dominik


On Apr 19, 2010, at 6:27 PM, Dan Davison wrote:


Org has org-export-html-final-hook but no latex equivalent, nor a
general after-export hook? Is that right? (I feel like I must be
missing
something there.)


All backends have a final hook - org-export-latex-final-hook in
this
case.


Ah, I see, Emacs doesn't know about it until I cause
(require 'org-latex)
to happen. As I said, I felt that I was missing something...


I think add-hook is still OK to use.


Sorry, yes, I didn't mean to suggest that this was preventing user
customisation.  I was just trying to explain how I had hastily come to
the erroneous conclusion that the hook variable didn't exist.

Is there a convenient way to load all features in core org-mode at
startup so that I don't make the same mistake again?


You could add org-require-autoloaded-modules to org-mode-hook, but I  
am not sure if this still has the complete list of autoloaded modules.


A more radical solution is org-reload.  When I want to make sure  
everything is loaded in order to look for custom variables, I press `C- 
c C-x !', and that will pull everything in.


HTH

- Carsten




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





___
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: bug: org-decrypt-entry and org-refile

2010-04-20 Thread Carsten Dominik

Reverted, thanks.

- Carsten

On Apr 20, 2010, at 2:05 AM, Bernt Hansen wrote:


That was me trying to make things better and failing miserably :)

Carsten:  Please revert commit a30955.

This also fixes the same message when I refile the last entry out of
refile.org so that it has only the #+FILETAGS: line left.

Thanks,
Bernt


Richard Riley rileyrg...@gmail.com writes:

If I create a new org-item using the following web template (from  
the

firefox browser or from within emacs itself)

(bookmarks 119 * %T %c %i bookmarks.org top nil)

and then attempt to refile from within the creation *remember*  
buffer using C-c C-w I get:-


,
| Debugger entered--Lisp error: (error Before first headline at  
position 375 in buffer *Remember*)
|   signal(error (Before first headline at position 375 in buffer  
*Remember*))
|   error(Before first headline at position %d in buffer %s 375  
#buffer *Remember*)
|   byte-code(`p#‡ [error Before first headline at position %d  
in buffer %s] 4)

|   org-back-to-heading(t)
|   org-decrypt-entry()
|   run-hooks(org-reveal-start-hook)
|   org-reveal()
|   org-refile(nil)
|   call-interactively(org-refile nil nil)
`

Simply removing the org-reveal from the org-refile call fixes this  
but I

suspect some deeper work probably needs to be done in the
org-refile part to make the code aware
that the remember buffer is not the one to be concerned about after  
the

refile so that org-back-to-heading works.

regards

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] Increase width in agenda view?

2010-04-20 Thread Manish
On Mon, Apr 19, 2010 at 10:19 PM, Johan Ekh wrote:
 Hi all, is it possible to increase the width in the Week-agenda
 view such that the TODO keyword and the title task text get
 more space? My tags to the right of the title text gets
 misaligned if the title text is too long.

If you are okay with hiding CATEGORY then you can try the following
hack from Manuel Hermenegildo[fn:1]

--8---cut here---start-8---
;;
;; With this typing L in agenda and todo buffers allows toggling
;; whether category/file names appear or not at the left or entries in
;; agenda/todo listings.
;;

(defvar my-org-agenda-list-category t)
(defun my-org-agenda-toggle-list-category ()
 Toggles whether category/file name appears or not at the left
  of entries in agenda listings. Useful to unclutter listings.
  (interactive)
  (if my-org-agenda-list-category
  (progn
(setq my-org-agenda-list-category nil)
(setq org-agenda-prefix-format
  '((agenda  .   %-12:c%?-12t% s)
(timeline  .   % s)
(todo  .   %-12:c)
(tags  .   %-12:c)
(search .   %-12:c)))
)
(setq my-org-agenda-list-category t)
(setq org-agenda-prefix-format
  '((agenda  .   %?-12t% s)
(timeline  .   % s)
(todo  .   )
(tags  .   )
(search .   )))
)
  (org-agenda-redo))
(my-org-agenda-toggle-list-category)

(add-hook
 'org-mode-hook
 (lambda ()
   (define-key org-agenda-keymap   L 'my-org-agenda-toggle-list-category)
   (define-key org-agenda-mode-map L 'my-org-agenda-toggle-list-category)
 ))
--8---cut here---end---8---

Regards
-- 
Manish

Footnotes:
[fn:1] http://article.gmane.org/gmane.emacs.orgmode/10909


___
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: [Babel] Macro for begin_src?

2010-04-20 Thread Eric Schulte
Sébastien Vauban wxhgmqzgw...@spammotel.com writes:

 Hi Eric,

 Eric S Fraga wrote:
 it might be nice to have a worg page on snippets for org-mode?

 Sure. Or having them somewhere in the git directories...


+1 for git directories.

That way users who keep their Emacs config in git repos can add the
snippets as a submodule, and I can include the submodule in the literate
emacs-starter-kit [1].

-- Eric



 I'm happy to contribute a few.

 figure:
 #name : figure
 # --
 #+attr_latex: width=$1\textwidth
 [[file:$2.pdf]]
 $0

 Better use \linewidth instead of \textwidth. You will avoid bad surprises.

 They are generally equivalent, but \linewidth is more often the real width to
 consider: it is correctly adapted in column environments, itemized lists and
 quotes, to cite a few.

 Seb

Footnotes: 
[1]  http://eschulte.github.com/emacs-starter-kit/



___
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: Automatic clock-in

2010-04-20 Thread Bastien
Andrea Crotti andrea.crott...@gmail.com writes:

 Ah great that's really nice, I always forget to try the magic C-u
 first...
 So by the way what is the real function called when prefixing C-u?
 I mean, can I call it directly?

For example:

(define-key org-mode-map \C-c\C-x\C-I
  (lambda () (interactive) (org-clock-in '(4

-- 
 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] Problem exporting to LaTeX/PDF from command line

2010-04-20 Thread Nick Dokos
Francesco Pizzolante f...@missioncriticalit.com wrote:

 Hi,
 
 I forgot to mention that, of course, when I do the same operation within
 Emacs, using the C-c C-e l, the file is exported without problem.
 
 Any idea?
 

I tried a little debugging on this, but I didn't get very far before I
ran out of time. The re-search-forward for #+LaTeX_CLASS_OPTIONS in
org-export-latex-set-initial-vars fails and it looks to me like a rather
subtle problem: the temp file buffer looks empty. Whether that's the
fault of the with-temp-file-buffer macro or something else, I'm not
sure.

Nick

 
 Francesco Pizzolante wrote:
  Hi,
 
  I'm trying to write a shell script in order to convert/export Org files to
  LaTeX/PDF from the command line (org2tex/org2pdf). The whole process works
  well, except that it seems that some bits of the exportation are not 
  executed.
 
  Here's an example of what I do.
 
  I'm using the org-interaction.el file from Blorgit:
 
  (require 'org)
  (require 'cl)
 
  (setq font-lock-mode t)
 
  (defun refresh-then-find-file (file)
Find file ensuring that the latest changes on disk are
  represented in the file.
(let (file-buf)
  (while (setq file-buf (get-file-buffer file))
(kill-buffer file-buf))
  (find-file file)))
 
  (defmacro with-temp-filebuffer (file rest body)
Open FILE into a temporary buffer execute BODY there like
  `progn', then kill the FILE buffer returning the result of
  evaluating BODY.
(let ((temp-result (make-symbol temp-result))
  (temp-file (make-symbol temp-file)))
  `(let (,temp-result ,temp-file)
 (refresh-then-find-file ,file)
 (setf ,temp-file (current-buffer))
 (setf ,temp-result (progn ,@body))
 (kill-buffer ,temp-file)
 ,temp-result)))
 
  ;; (defvar org-interaction-prefix .exported_)
  (defvar org-interaction-prefix )
 
  (defun org-file-to-html (file-path)
Open up an org file, publish it to html, and then return the
  html as a string.
(let* ((file-name (file-name-nondirectory file-path))
   (file-dir (file-name-directory file-path))
   (html-path (expand-file-name (concat org-interaction-prefix 
  file-name) file-dir)))
  (if (and (file-exists-p html-path)
   ( 0 (time-to-seconds
 (time-subtract
  (nth 5 (file-attributes html-path))
  (nth 5 (file-attributes file-path))
  html-path
(with-temp-filebuffer
 file-path
 (org-mode)
 (save-window-excursion
   (org-export-as-html-to-buffer nil)
   (write-file html-path)
   (kill-buffer (current-buffer)))
 
  (defun org-file-to-latex (file-path)
Open up an org file, publish it to latex, and then return the
  latex as a string.
(let* ((file-name (file-name-nondirectory file-path))
   (file-dir (file-name-directory file-path))
   (latex-path (expand-file-name (concat org-interaction-prefix 
  file-name .tex) file-dir)))
  (if (and (file-exists-p latex-path)
   ( 0 (time-to-seconds
 (time-subtract
  (nth 5 (file-attributes latex-path))
  (nth 5 (file-attributes file-path))
  latex-path
(with-temp-filebuffer
 file-path
 (org-mode)
 (save-window-excursion
   (org-export-as-latex-to-buffer nil)
   (write-file latex-path)
   (kill-buffer (current-buffer)))
 
  (defun org-file-to-pdf (file-path)
Open up an org file and export it as pdf.
(let* ((file-name (file-name-sans-extension file-path))
   (file-dir (file-name-directory file-path))
   (org-tmp-path (make-temp-file org-file-to-pdf-))
   (pdf-tmp-path (concat org-tmp-path .pdf))
   (tex-tmp-path (concat org-tmp-path .tex))
   (pdf-path (expand-file-name (concat org-interaction-prefix 
  file-name .pdf) file-dir)))
  (if (and (file-exists-p pdf-path)
   ( 0 (time-to-seconds
 (time-subtract
  (nth 5 (file-attributes pdf-path))
  (nth 5 (file-attributes file-path))
  pdf-path
(with-temp-filebuffer
 file-path
 (write-file org-tmp-path)
 (org-mode)
 (save-window-excursion
   (org-export-as-pdf nil)
   (rename-file pdf-tmp-path pdf-path t)
   (delete-file org-tmp-path)
  ;; (delete-file tex-tmp-path)
   (kill-buffer (current-buffer)))
 
  ;; customization
  ;; (setq org-export-blocks-witheld '(hidden comment))
 
  ;; Start the server
  ;; (server-start)
 
  ;; save the emacsclient server socket location
  ;; (with-temp-file /tmp/emacsclient-socket-dir
  ;;   (insert server-socket-dir))
 
 
  Here's the file I'm trying to convert (test.org):
 
  #+TITLE:   Features report
  #+AUTHOR:Francesco Pizzolante
  #+EMAIL: f...@missioncriticalit.com
  

Re: [Orgmode] Problem exporting to LaTeX/PDF from command line

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

 Francesco Pizzolante f...@missioncriticalit.com wrote:
 
  Hi,
  
  I forgot to mention that, of course, when I do the same operation within
  Emacs, using the C-c C-e l, the file is exported without problem.
  
  Any idea?
  
 
 I tried a little debugging on this, but I didn't get very far before I
 ran out of time. The re-search-forward for #+LaTeX_CLASS_OPTIONS in
 org-export-latex-set-initial-vars fails and it looks to me like a rather
 subtle problem: the temp file buffer looks empty. Whether that's the
 fault of the with-temp-file-buffer macro or something else, I'm not
 sure.
 

Still not sure what is going on, but this modified org-interaction.el
file (it loads the necessary org-XXX.el files explicitly - be sure to
change the load-path appropriately) seems to work for me. I have not tried
to load org-XXX.elc files to see whether that works or not.

Nick

---
(add-to-list 'load-path /home/nick/src/emacs/org/org-mode/lisp)
(load-library org.el)
(load-library org-latex.el)
(load-library org-list.el)
(load-library org-macs.el)
(load-library org-compat.el)
(require 'cl)

(setq font-lock-mode t)

(defun refresh-then-find-file (file)
  Find file ensuring that the latest changes on disk are
represented in the file.
  (let (file-buf)
(while (setq file-buf (get-file-buffer file))
  (kill-buffer file-buf))
(find-file file)))

(defmacro with-temp-filebuffer (file rest body)
  Open FILE into a temporary buffer execute BODY there like
`progn', then kill the FILE buffer returning the result of
evaluating BODY.
  (let ((temp-result (make-symbol temp-result))
(temp-file (make-symbol temp-file)))
`(let (,temp-result ,temp-file)
   (refresh-then-find-file ,file)
   (setf ,temp-file (current-buffer))
   (setf ,temp-result (progn ,@body))
   (kill-buffer ,temp-file)
   ,temp-result)))

;; (defvar org-interaction-prefix .exported_)
(defvar org-interaction-prefix )

(defun org-file-to-html (file-path)
  Open up an org file, publish it to html, and then return the
html as a string.
  (let* ((file-name (file-name-nondirectory file-path))
 (file-dir (file-name-directory file-path))
 (html-path (expand-file-name (concat org-interaction-prefix file-name) 
file-dir)))
(if (and (file-exists-p html-path)
 ( 0 (time-to-seconds
   (time-subtract
(nth 5 (file-attributes html-path))
(nth 5 (file-attributes file-path))
html-path
  (with-temp-filebuffer
   file-path
   (org-mode)
   (save-window-excursion
 (org-export-as-html-to-buffer nil)
 (write-file html-path)
 (kill-buffer (current-buffer)))

(defun org-file-to-latex (file-path)
  Open up an org file, publish it to latex, and then return the
latex as a string.
  (let* ((file-name (file-name-nondirectory file-path))
 (file-dir (file-name-directory file-path))
 (latex-path (expand-file-name (concat org-interaction-prefix file-name 
.tex) file-dir)))
(if (and (file-exists-p latex-path)
 ( 0 (time-to-seconds
   (time-subtract
(nth 5 (file-attributes latex-path))
(nth 5 (file-attributes file-path))
latex-path
  (with-temp-filebuffer
   file-path
   (org-mode)
   (save-window-excursion
 (org-export-as-latex-to-buffer nil)
 (write-file latex-path)
 (kill-buffer (current-buffer)))

(defun org-file-to-pdf (file-path)
  Open up an org file and export it as pdf.
  (let* ((file-name (file-name-sans-extension file-path))
 (file-dir (file-name-directory file-path))
 (org-tmp-path (make-temp-file org-file-to-pdf-))
 (pdf-tmp-path (concat org-tmp-path .pdf))
 (tex-tmp-path (concat org-tmp-path .tex))
 (pdf-path (expand-file-name (concat org-interaction-prefix file-name 
.pdf) file-dir)))
(if (and (file-exists-p pdf-path)
 ( 0 (time-to-seconds
   (time-subtract
(nth 5 (file-attributes pdf-path))
(nth 5 (file-attributes file-path))
pdf-path
  (with-temp-filebuffer
   file-path
   (write-file org-tmp-path)
   (org-mode)
   (save-window-excursion
 (org-export-as-pdf nil)
 (rename-file pdf-tmp-path pdf-path t)
 (delete-file org-tmp-path)
;; (delete-file tex-tmp-path)
 (kill-buffer (current-buffer)))

;; customization
;; (setq org-export-blocks-witheld '(hidden comment))

;; Start the server
;; (server-start)

;; save the emacsclient server socket location
;; (with-temp-file /tmp/emacsclient-socket-dir
;;   (insert server-socket-dir))


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

Re: [Orgmode] Re: Automatic clock-in

2010-04-20 Thread Nick Dokos
Andrea Crotti andrea.crott...@gmail.com wrote:

 Benjamin Andresen be...@in-ulm.de writes:
 
  Hey Andrea,
 
 
  Maybe C-u M-x org-clock-in RET does what you want.
 
  br,
  benny
 
 Ah great that's really nice, I always forget to try the magic C-u
 first...
 So by the way what is the real function called when prefixing C-u?

The same function is called, but with the optional SELECT argument set.
C-h f org-clock-in says:

,
| org-clock-in is an interactive compiled Lisp function in
| `org-clock.el'.
| 
| (org-clock-in optional SELECT)
| 
| Start the clock on the current item.
| If necessary, clock-out of the currently active clock.
| With prefix arg SELECT, offer a list of recently clocked tasks to
| clock into.  When SELECT is `C-u C-u', clock into the current task and mark
| is as the default task, a special task that will always be offered in
| the clocking selection, associated with the letter `d'.
`

 I mean, can I call it directly?
 

You mean from lisp code? You call it like this:

(org-clock-in 4)

(that's what C-u M-x org-clock-in does), or

(org-clock-in 16)

(that's what C-u C-u M-x org-clock-in does.)

And, btw, that's what C-u and C-u C-u do *always*: see section 7.10,
Numeric Arguments, in the Emacs manual.

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


Nick Dokos: Re: [Orgmode] Problem exporting to LaTeX/PDF from command line

2010-04-20 Thread Nick Dokos
Talking to myself again...

--- Forwarded Message

Date:Tue, 20 Apr 2010 11:46:41 -0400
From:Nick Dokos nicholas.do...@hp.com
To:  nicholas.do...@hp.com
Subject: Re: [Orgmode] Problem exporting to LaTeX/PDF from command line

Nick Dokos nicholas.do...@hp.com wrote:

 Nick Dokos nicholas.do...@hp.com wrote:
 
  Francesco Pizzolante f...@missioncriticalit.com wrote:
  
   Hi,
   
   I forgot to mention that, of course, when I do the same operation within
   Emacs, using the C-c C-e l, the file is exported without problem.
   
   Any idea?
   
  
  I tried a little debugging on this, but I didn't get very far before I
  ran out of time. The re-search-forward for #+LaTeX_CLASS_OPTIONS in
  org-export-latex-set-initial-vars fails and it looks to me like a rather
  subtle problem: the temp file buffer looks empty. Whether that's the
  fault of the with-temp-file-buffer macro or something else, I'm not
  sure.
  
 
 Still not sure what is going on, but this modified org-interaction.el
 file (it loads the necessary org-XXX.el files explicitly - be sure to
 change the load-path appropriately) seems to work for me. I have not tried
 to load org-XXX.elc files to see whether that works or not.
 
 Nick
 
 ---
 (add-to-list 'load-path /home/nick/src/emacs/org/org-mode/lisp)
 ...

I think that's the problem: picking up org from the *right* place works.
Picking it up from whatever is built-in with your emacs does not. So just
fix the load-path before you (require 'org) and all shall be well (famous
last words...)

Nick


--- End of Forwarded Message



___
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] linking to emacs info nodes? Multiline comments?

2010-04-20 Thread Nick Dokos
LanX lanx.p...@googlemail.com wrote:

 Thanx, linking works! :)
 
 Anyway this Link-To-Info syntax doesn't seem to be documented on the web 
 page...
 
 http://orgmode.org/manual/External-links.html#External-links
 

Here's a patch:

diff --git a/doc/org.texi b/doc/org.texi
index ead8372..0fc2635 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -2826,6 +2826,7 @@ gnus:group@r{Gnus group 
link}
 gnus:group#id @r{Gnus article link}
 bbdb:R.*Stallman  @r{BBDB link (with regexp)}
 irc:/irc.com/#emacs/bob   @r{IRC link}
+info:org:External%20links @r{Info node link (with encoded 
space)}
 shell:ls *.org@r{A shell command}
 elisp:org-agenda  @r{Interactive Elisp command}
 elisp:(find-file-other-frame Elisp.org) @r{Elisp form to evaluate}



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


[Orgmode] Re: [PATCH] followup to `org-rember-templates' docstring

2010-04-20 Thread Carsten Dominik


On Apr 20, 2010, at 7:36 PM, Matt Lundin wrote:


Hi Carsten,

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


On Apr 16, 2010, at 10:45 AM, Chris Gray wrote:


Carsten Dominik wrote:


Hi Stepan
On Apr 16, 2010, at 12:23 AM, Štěpán Němec wrote:




Hello,



I'm sorry for my somewhat precocious previous mail (which I
unfortunately still don't see posted, I use Gmane and am not
subscribed
-- any chance of making the list not moderated?).



No, we like it spam free here.  Please subscribe, if you don't want
to receive the mails, use some throw-away web-based email address.


With all mailman mailing lists, it's also possible subscribe using
your
normal email address and turn off delivery.  It's one of the options
in
the settings screen.  This makes it easier to remember which email
address you should use to write to the list with.


This may be worth a FAQ entry.



I just added an FAQ on this.


Hi Matt,

thank you so much.

- 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] linking to emacs info nodes? Multiline comments?

2010-04-20 Thread Carsten Dominik

Thanks a lot, the patch is applied.

- Carsten

On Apr 20, 2010, at 6:12 PM, Nick Dokos wrote:


LanX lanx.p...@googlemail.com wrote:


Thanx, linking works! :)

Anyway this Link-To-Info syntax doesn't seem to be documented on  
the web page...


http://orgmode.org/manual/External-links.html#External-links



Here's a patch:

diff --git a/doc/org.texi b/doc/org.texi
index ead8372..0fc2635 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -2826,6 +2826,7 @@ gnus:group 
@r{Gnus group link}

gnus:group#id @r{Gnus article link}
bbdb:R.*Stallman  @r{BBDB link (with regexp)}
irc:/irc.com/#emacs/bob   @r{IRC link}
+info:org:External%20links @r{Info node link (with  
encoded space)}

shell:ls *.org@r{A shell command}
elisp:org-agenda  @r{Interactive Elisp  
command}

elisp:(find-file-other-frame Elisp.org) @r{Elisp form to evaluate}



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


- Carsten





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


[Orgmode] Tags not lining up in org-indent-mode

2010-04-20 Thread Jason Dunsmore
I noticed that org-mode's tags do not line up along the right side when
org-indent-mode is enabled (indent-mode is an excellent feature, by the
way).  Probably because tab characters are being used to align the tags
on the right side.

Is there a way to use spaces instead of tabs to align tags, or is there
some other way to fix this?  I'm using Org-mode version 6.35trans
(release_6.35g.72.ge603).  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] Increase width in agenda view?

2010-04-20 Thread Johan Ekh
Ha! I found it! Thanks Carsten.
For this advice and for the super org-mode!

Oh, the variable is Org Agenda Tags Column in the group Org Agenda/Org
Agenda Line Format
if someone else also wants to know...

/Johan

On Tue, Apr 20, 2010 at 3:33 PM, Carsten Dominik
carsten.domi...@gmail.comwrote:

 Hi Johan,


 On Apr 19, 2010, at 6:49 PM, Johan Ekh wrote:

  Hi all,
 is it possible to increase the width in the Week-agenda view such that the
 TODO keyword
 and the title task text get more space? My tags to the right of the title
 text gets misaligned
 if the title text is too long.



 Take a look at this page

 http://orgmode.org/worg/org-tutorials/org-customize.php

 and then try if you can find the variable yourself.
 If not, get back to me and I will tell you :-)

 - Carsten

 Hint: this has to do with the line format.




 Best regards,
 Johan

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


 - Carsten




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


[Orgmode] Using Times in org-mode calc?

2010-04-20 Thread David Frascone
I'm trying to make a running log, but I can't seem to get times entered in
HH:MM:SS to work right.

Well -- they work right, but I can't get things to re-display in that
format.  And, sometimes math is just screwy.

For example:

| Distance | Time | Time| Speed | Speed  |
|  (Miles) | HH:MM:SS | Decimal | (MPH) | (Min/Mile) |
|--+--+-+---+|
|  2.0 |12:34 | 3:17|   ||
|3 |30:45 | |   ||
 #+TBLFM: $3=$2/2


As you can see the 3:17 is some very strange calculation.  Not sure what it
did.  If I use =$2, it returns 6:17

It seemed like it was doing something wright, but, now it looks like maybe
it just doesn't understand HH:MM:SS format?

What would be the easiest way to implement something like that table?  Lisp
functions?
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [PATCH] followup to `org-rember-templates' docstring

2010-04-20 Thread Matt Lundin
Hi Carsten,

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

 On Apr 16, 2010, at 10:45 AM, Chris Gray wrote:

 Carsten Dominik wrote:

 Hi Stepan
 On Apr 16, 2010, at 12:23 AM, Štěpán Němec wrote:


 Hello,

 I'm sorry for my somewhat precocious previous mail (which I
 unfortunately still don't see posted, I use Gmane and am not
 subscribed
 -- any chance of making the list not moderated?).

 No, we like it spam free here.  Please subscribe, if you don't want
 to receive the mails, use some throw-away web-based email address.

 With all mailman mailing lists, it's also possible subscribe using
 your
 normal email address and turn off delivery.  It's one of the options
 in
 the settings screen.  This makes it easier to remember which email
 address you should use to write to the list with.

 This may be worth a FAQ entry.


I just added an FAQ on this.

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] org-babel language support

2010-04-20 Thread Izaak Beekman
How much work is it to support a new compiled langauge?  I am interested in
using org-babel for Fortran literate programming (LP).  I am new to
org-mode, but know a little bit of e-lisp, and might start hacking at this
after some preliminary investigation.  The main functionality I am looking
for is pretty printing documentation, and code export (tangling).

Izaak Beekman
===
Princeton University Doctoral Candidate
Mechanical and Aerospace Engineering
ibeek...@princeton.edu

UMD-CP Visiting Graduate Student
Aerospace Engineering
ibeek...@umiacs.umd.edu
ibeek...@umd.edu
___
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: How you ORGanize yourself? (aka: Why not one file to rule'em all?)

2010-04-20 Thread Flavio Souza

Hi everybody!

I use these files:

org2010.org:

- This is the file where I insert all my tasks and projects.
- It is divided by these topics:

* GTD Inbox
* Work
* Personal
* Agenda
** Appointments
** Bills
* Summary
** Estimated Hours
** Worked Hours

- At GTD Inbox, I collect all my new tasks and projects by using  
org-remember. In my weekly review, I file them at appropriate section.
- Work and Personal is where I file my tasks and projects and give them  
tags. This helps me filter within agenda view.

- I clock every task I am doing to get my working hours summary.
- Sometimes I use the archive feature to get rid of done tasks and  
finished projects to a separated file.


notes.org

- This is a file where I collect everything that I want to take note and  
file for reference. This is used along with org-remember.

- It is divided by four topics:

* Ideas
* Jornal
* Phone Calls
* General Notes

I also have lots of other files that I fill in with notes. Every note has  
a title with * and text body. All the files have a name that starts with  
nt_. I do not look at them very often, so I don't mind to have lots of  
note files. I use Google Desktop or grep to search information in them  
when I need it. These notes file vary a lot, for example, I have a  
nt_windows.txt file that has notes about windows tips and tricks I  
collected over time.


So far, this setup is working perfectly and I am able to track all my  
projects and tasks. Thanks to orgmode!


Bye!

flaviosouza
www.flaviosouza.net



___
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: suggestions of Android smartphones

2010-04-20 Thread Daniel Martins
2010/4/19 Matthew Jones m...@matburt.net:
 Maybe I misunderstood what you meant about the swipe feature.   There is a
 keyboard called Swype which is fairly overrated.

Sorry for the misspelling and confusion!

 I can't comment on how well or if a bluetooth keyboard would work... I think
 if I were going to go to the trouble of carrying around a keyboard I would
 rather just carry my netbook.

This is a good point. And carrying my netbook is exactly what I am
doing right now! However, for exceptional cases (eg a trip) it would
be interesting to have some comfort while writing a long text in the
hotel.

Anyway Matthew for Org-mode purposes your MobileOrg for Android (with
Agenda view) will be enough!

Daniel


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


 On Mon, Apr 19, 2010 at 7:12 PM, Daniel Martins daniel...@gmail.com wrote:

 2010/4/19 Matthew Jones m...@matburt.net:
  I used swype for about 2 days on my droid before getting rid of it...
  it's a
  good concept that needs be iterated on.

 I could not follow your comment here


  Trying to use emacs from any of the Android shells is borderline
  impossible... unless you have a full keyboard to hook up to your Android
  phone then I would say you should rule out using it in that fashion.

 A bluetooth keyboard such as

 http://www.dealextreme.com/details.dx/sku.34724
 http://www.dealextreme.com/details.dx/sku.6443
 http://www.dealextreme.com/details.dx/sku.28954


 is possible to be used with an Android phone? It worths an investment?


 Daniel

  One of the features I'm working on for the MobileOrg beta (along with
  being
  able to capture notes and change todo states) is a home screen widget
  that
  will show your Agenda or Todo list, this way you don't have to open the
  application to view or adjust these items.
  73
  Matthew W. Jones (KI4ZIB)
  http://matburt.net
 
 
  On Mon, Apr 19, 2010 at 8:35 AM, Daniel Martins daniel...@gmail.com
  wrote:
 
  The device I was tantalized to buy was the
 
  Motorola Quench
 
  maybe mainly for Swipe feature
 
  http://www.youtube.com/watch?v=zWpqsDnXIOY  (at about 1:00)
 
  or maybe for the price (in Brazil is about 500 USD while the Milestone
  is about 780 USD. I know both are outrageous prices in American or
  European terms!). BTW the Quench in Brazil DOES NOT seem to come with
  the swype feature...
 
  In fact, I doubt I could edit in Emacs or similar in a phone. I am
  afraid of virtual keyboards and small physical keyboards as well :)
  For someone over forties I tend to do not consider these typing
  devices as toys or at least funny :)
 
  For this reason I think that a nice interface such as MobileOrg with
  agenda view would be the best.
 
  ConnectBot seems to be an option as well (when you have connection, of
  course!)
 
  Sven, you seem quite happy with a virtual keyboard. Am I right?
 
  Daniel
 
  2010/4/19 Richard Riley rileyrg...@gmail.com:
   Eric S Fraga ucec...@ucl.ac.uk writes:
  
   On Sun, 18 Apr 2010 11:07:32 -0300, Daniel Martins
   daniel...@gmail.com wrote:
  
    --- resending with a proper title ---
  
   Matthew,
  
   Just a suggestion for newbies.
  
   Could you generate a video of MobileOrg Android similar to those of
   the MobileOrg Iphone.
  
   I am still open to suggestions of Android smartphones.
  
   If I need to access a remote ssh account and open Emacs, the
   available
   keyborards are OK?
  
   Daniel
  
   I have the same questions!  My current mobile phone contract expires
   in 3 months and I'm looking at upgrading to an Android phone.  The
   current best deal I have found is for the Samsung Galaxy Portal, aka
   the i5700.  [1] I'm looking at upgrading to replace my Nokia
   internet
   tablet (n810) and non-smart phone with one unit.  The nokia does a
   really nice job of running emacs and org-mode, mind you.
  
   I'm particularly interested in knowing how the different handsets
   approach the keying in of keys like C-x, M-x, TAB, et al.
  
   Thanks,
   eric
  
  
   +1 on this. I had almost decided on the Motorola Milestone (Droid)
   but
   would love to hear others experiences. Using org-mode in a term emacs
   is
   not ideal because a lot of shift/arrow/fn chords dont work in the
   terminals
   I tried (xterm, urxvt etc) and so doubt they will on a mobile device
   either : so my hard core usage of only emacs -nw inside urxvt and
   tmux
   soon dwindled and I'm back to using emacs in X. The only problem I
   now
   have is not being to find a way to use ONE x frame with emacsclient
   being able to create it if its not already done (I bet I've missed
   something obvious but emacsclient -c always creates a new frame and
   emacsclient wont create it if its not already there on my emacs).
  
  
  
  
   ___
   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] turn off inclusion of JavaScript helper code?

2010-04-20 Thread Stefan Vollmar
Hello, 

in our org-mode generated HTML pages we find these snippets:

script type=text/javascript
!--/*--![CDATA[/*!--*/
 function CodeHighlightOn(elem, id)
 { ...
 }
 function CodeHighlightOff(elem, id)
 { ...
 }
/*]]*///--
/script

We have just noticed that MS Internet Explorer complains that these lines pose 
a security risk (Firefox and Safari have no problem with them), deleting the 
JavaScript code solves the issue. I have found a link that might explain the 
problem: http://www.codingforums.com/archive/index.php/t-78039.html
(the problem is limited to locally accessed HTML pages, not HTML content that 
is accessed over a network; we now use org-mode to generate a locally stored 
collection of online help files in HTML - so this is an awkward issue for us)

As our pages do not need this JavaScript code anyway, having a switch that 
prevents this code from being included would be a good solution from our point 
of view. Naturally, we could have a postprocessing script to remove the 
offending lines before releasing the HTML content, however, that seems such a 
crude approach.

Here is a suggestion, maybe there could be a new switch for #+OPTIONS:

javascript: turn on/off inclusion of JavaScript helper code for code 
highlighting

and while we are at it:

css: turn on/off inclusion of stylesheet?

Warm regards,
 Stefan
-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: voll...@nf.mpg.de   http://www.nf.mpg.de








smime.p7s
Description: S/MIME cryptographic 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] Re: suggestions of Android smartphones

2010-04-20 Thread Sven Bretfeld
Matthew Jones m...@matburt.net writes:

 ConnectBot seems to be an option as well (when you have connection, of
 course!)

 Sven, you seem quite happy with a virtual keyboard. Am I right?

I wouldn't write a book with it. But I wrote some paragraphs of articles
and do my Gnus stuff via ConnectBot. It's possible. But you have to
become used to the soft-keyboard. Anyway, as soon as I hear of a
blutooth qwerty keyboard working with Android, small and lightweight
enough (or foldable) to have it with me in my bag, I will be the first
to buy it.

ConnectBot is especially annoying when sitting in a train. Then, the
connection uses to break down every few minutes because of tunnels or
sometimes without any recognizable reason. And then working is no longer
possible. But that's the only situation when I really miss a genuine
Emacs port for Android. Thank god Emacs works with buffers, not files,
and that we have Emacs-daemon. Otherwise one would lose all the work,
when the connection breaks. 

Greetings,

Sven


___
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] turn off inclusion of JavaScript helper code?

2010-04-20 Thread Sebastian Rose
Stefan Vollmar voll...@nf.mpg.de writes:
 Hello,

 in our org-mode generated HTML pages we find these snippets:

 script type=text/javascript
 !--/*--![CDATA[/*!--*/
  function CodeHighlightOn(elem, id)
  { ...
  }
  function CodeHighlightOff(elem, id)
  { ...
  }
 /*]]*///--
 /script

 We have just noticed that MS Internet Explorer complains that these
 lines pose a security risk (Firefox and Safari have no problem with
 them), deleting the JavaScript code solves the issue. I have found a
 link that might explain the problem:
 http://www.codingforums.com/archive/index.php/t-78039.html

 (the problem is limited to locally accessed HTML pages, not HTML
 content that is accessed over a network; we now use org-mode to
 generate a locally stored collection of online help files in HTML - so
 this is an awkward issue for us)


M-x customize-variable RET org-export-html-style-include-scripts


You can turn the inclusion off in your `org-export-projects-alist':

:style-include-scripts nil




 As our pages do not need this JavaScript code anyway, having a switch that 
 prevents this code from being included would be a good solution from our 
 point of view. Naturally, we could have a postprocessing script to remove 
 the offending lines before releasing the HTML content, however, that seems 
 such a crude approach.

 Here is a suggestion, maybe there could be a new switch for #+OPTIONS:

 javascript: turn on/off inclusion of JavaScript helper code for code 
 highlighting

 and while we are at it:

 css: turn on/off inclusion of stylesheet?



M-x customize-variable org-export-html-style-include-default RET


And per project in  `org-export-projects-alist':

   :style-include-default nil



HTH

  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-babel language support

2010-04-20 Thread Dan Davison
Izaak Beekman ibeek...@umiacs.umd.edu writes:

 How much work is it to support a new compiled langauge?  I am interested in
 using org-babel for Fortran literate programming (LP).  I am new to org-mode,
 but know a little bit of e-lisp, and might start hacking at this after some
 preliminary investigation.  The main functionality I am looking for is pretty
 printing documentation, and code export (tangling). 

Hi Izaak,

If you are just after export and tangling then you are in luck.

Prior to Org-babel, Org-mode already supported pretty fontified export
of code in any language that emacs understands. Use C-e for the export
dispatcher, which leads to e.g. html and latex export.

And to get tangling working for fortran, once org-babel is installed all
you need is

  (org-babel-add-interpreter fortran)
  (add-to-list 'org-babel-tangle-langs '(fortran f))

Here's the fortran src block I just tested. C-e b should bring up a
browser tab showing fontified code. You need to have the htmlize emacs
package loaded, which is in the org-mode contrib dir. And M-x
org-babel-tangle should create a fortran file containing the code, with
the .f extension replacing .org.

* fortran
  Some fortran code taken from Wikipedia
#+begin_src fortran :tangle yes
  FUNCTION string_concat(s1, s2) ! This is a comment
 TYPE (string), INTENT(IN) :: s1, s2
 TYPE (string) string_concat
 string_concat%string_data = s1%string_data(1:s1%length) // 
s2%string_data(1:s2%length)  ! This is a 
continuation
 string_concat%length = s1%length + s2%length
  END FUNCTION string_concat
#+end_src

A couple of points about export: for CSS control over the html produced,
see the variables org-export-htmlize-output-type and
org-export-html-style. For latex, one can get fontified code by
including the listings package. See section 11.3 Literal Examples of the
manual.

As for full org-babel support for fortran, Eric Schulte (the main
org-babel author) has recently added support for compilation and
execution of C and C++, so you would definitely want to take a look at
org-babel-C.el (if you haven't already). He may have further advice.

Dan





 Izaak Beekman
 ===
 Princeton University Doctoral Candidate
 Mechanical and Aerospace Engineering
 ibeek...@princeton.edu

 UMD-CP Visiting Graduate Student
 Aerospace Engineering
 ibeek...@umiacs.umd.edu
 ibeek...@umd.edu
 ___
 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] reference headlines and export html as section number

2010-04-20 Thread Ning Sean
Hi,

I want to reference a headline inside another headline, and showing the
section number when exporting to html.

So suppose I have an org file:

* headline A
* headline B references headline A

When export to html, I want to see the following:

1 headline A
2 headline B references 1

How do I do that?

Thanks,
Ning
___
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] reference headlines and export html as section number

2010-04-20 Thread Sebastian Rose
Ning Sean nings...@gmail.com writes:
 Hi,

 I want to reference a headline inside another headline, and showing the
 section number when exporting to html.

 So suppose I have an org file:

 * headline A
 * headline B references headline A

 When export to html, I want to see the following:

 1 headline A
 2 headline B references 1

 How do I do that?

The only way to achieve this is sending a patch, I fear. Currently, the
result will look like this:

  1 headline A
  2 headline B references headline A



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] Using Times in org-mode calc?

2010-04-20 Thread Xiao-Yong Jin
On Tue, 20 Apr 2010 12:03:29 -0400, David Frascone wrote:

 I'm trying to make a running log, but I can't seem to get times entered in 
 HH:MM:SS to work right.
 Well -- they work right, but I can't get things to re-display in that 
 format.  And, sometimes math is just screwy.

 For example:

 Distance | Time | Time    | Speed | Speed  |
   (Miles) | HH:MM:SS | Decimal | (MPH) | (Min/Mile) |
 --+--+-+---+|
   2.0 |    12:34 | 3:17    |   |    |
     3 |    30:45 | |   |    |
  #+TBLFM: $3=$2/2

 As you can see the 3:17 is some very strange calculation.  Not sure what it 
 did.  If I use =$2, it returns 6:17

 It seemed like it was doing something wright, but, now it looks like maybe it 
 just doesn't understand HH:MM:SS format?

 What would be the easiest way to implement something like that table?  Lisp 
 functions? 

Calc uses `:' as a fraction bar to represent fractional
numbers.  So as a result,

  12  6
  = 
  34 17

I'm not sure what is the correct way to do it.  But I use a
cheap hack -- abuse the degree notation.  Calc understands
arc degrees as a form of 1...@34'00, that is 

DEGREE @ MIN ' SEC

I use DEGREE field as hours, thus normal arithmetic works
out of the box.

Hope it helps.
-- 
Jc/*__o/*
X\ * (__
Y*/\  


___
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