[Orgmode] Re: installing updating Org on other platform

2010-07-15 Thread Bernt Hansen
Adam  writes:

> If anyone is using Org-mode with Gnu Emacs on Win XP, then I would be 
> grateful 
> for their comments. 
>
> Have just updated to Org version 6.36c.While Org appears to work 
> normally, 
> and version 6.36c is reported evaluating  org-version And the recent 
> Footnotes sorting feature works. But I fear the update or installation is 
> somehow not proper. 
>
> My only suspicions for this are;  that publishing to HTML seems problematic, 
> and that there are no  .elc  files appearing where the org.el files are 
> located. 
>
> To install, I downloaded the 6.36c zip, and copied all and only the 
> /lisp/*.el  files into the folder ~/Emacs/Lisp/org. 
>
> I notice that in  .emacs  the entry 
> (add-to-list 'load-path "C:/emacs/lisp/org") 
>
> or as I first had it,
> (add-to-list 'load-path "C:/emacs/org-6.36c")
>
> neither have any effect.   It seems Emacs will find Org in ~/emacs/lisp/org 
> no 
> matter what.  Only  (require 'org)  is present in my  .emacs  and then 
> some Org settings. 
>
> Any comments appreciated. 

Hi Adam,

At work I run org-mode from a git repository on Windows XP.  I never
compile my org-mode files anymore.

My git repository lives in ~/git/org-mode/ with the .el files in
~/git/org-mode/lisp

I have the following setup in my ~/.emacs

,[ .emacs ]
| (add-to-list 'load-path (expand-file-name "~/git/org-mode/lisp"))
| (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . 
org-mode))
| (require 'org-install)
`

Make sure your org-mode files are found first in your load-path so that
you load the version you want and not some other version provided by
Emacs.  Your load-path should point to the directory your .el files are
in.

I would just unzip the entire 6.36c zip file without moving anything
from their default locations and point your load-path at the lisp
subdirectory.

GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1
Org-mode version 6.36trans (release_6.36.630.gbca27)

HTH,
Bernt

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


Re: [Orgmode] installing updating Org on other platform

2010-07-15 Thread Adam
Thanks, John.  

> I'm not on Win XP, but just wanted to ask for clarification as it might
> help others help you...
>
> > To install, I downloaded the 6.36c zip, and copied all and only the
> > /lisp/*.el  files into the folder ~/Emacs/Lisp/org.

I copied all the contents of the archive   org-6.36c/lisp/   directory, into 
C:/emacs/lisp/org/ 

> > I notice that in  .emacs  the entry
> > (add-to-list 'load-path "C:/emacs/lisp/org")
> >
> > or as I first had it,
> > (add-to-list 'load-path "C:/emacs/org-6.36c")
> >
> > neither have any effect.   It seems Emacs will find Org in
> > ~/emacs/lisp/org no
> > matter what.  Only  (require 'org)  is present in my  .emacs  and then
> > some Org settings.
>
> This might be extremely minute, but the GNU Emacs FAQ includes a trailing
> slash in the instructions on how to add directories to one's load path via
> .emacs [1]:
>
> (add-to-list 'load-path "/dir/subdir/")

Above is inaccurate, the  .emacs  load-path directories DO have the 
trailing slash. 


> Not sure if that will help you at all. Primarily I'd focus on making sure
> ../emacs/org[-6.36c] is where you think it is? Not to come across as
> insulting... just never hurts to be sure!
>
> [1] See 5.17 here: http://www.gnu.org/software/emacs/emacs-faq.html

Thanks , will re-read the FAQ.  Although it doesn't seem to refer to 
installing or updating packages with Emacs, Like Org or Remember etc. 

As I say, Emacs seems to find the Org 6.35c  components in 
C:/emacs/lisp/org/It hasn't however ever generated  .elc  files 
from them - and I think that may be wrong, but don't know. 


___
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 and emacs init

2010-07-15 Thread Julien Fantin
Still had some issues with your function Eric, but finally found the
time to make it work on my system.
Posting it here since I didn't use  the first time around,
and someone else might find it useful.

(defun my-org-babel-load-file (file)
  (let ((orig-file (expand-file-name file dotfiles-dir))
(tmp-file (make-temp-file "my-ob-load" nil ".org")))
(with-temp-file tmp-file
  (insert-file-contents orig-file))
(org-babel-load-file tmp-file)))

Thanks for your help !

Cheers

On Sat, Jul 3, 2010 at 3:56 AM, Eric Schulte  wrote:
> Hi Julien,
>
> Org-mode prefers when it is used in buffers that are associated with
> files.  The following version creates temporary files for each load.  It
> will litter your /tmp directory instead of your emacs directory --
> although it shouldn't be hard to add a quick cleanup at the end of the
> function.
>
> Cheers -- Eric
>
>
> (defun my-org-babel-load-file (file)
>   (let ((tmp-file (make-temp-file "my-ob-load")))
> (with-temp-file tmp-file
>   (insert-file-contents
>(expand-file-name file dotfiles-dir))
>   (org-mode)
>   (org-babel-execute-buffer
>
>
> Julien Fantin  writes:
>
>> Hi eric,
>> I'v been trying to find a way to avoid the tangling involved in using
>> org-babel-load-file when loading my config, as it clobbers my emacs directoy
>> with files I don't use.
>>
>> But I'm getting errors with this function :
>>
>> (defun my-org-babel-load-file (file)
>>   (with-temp-buffer (insert-file-contents (expand-file-name file
>> dotfiles-dir))
>>                     (org-mode)
>>                     (org-babel-execute-buffer)))
>>
>> (my-org-babel-load-file "init.org")
>>
>> It's giving me a hard time apparently due to org-babel-insert-result calling
>> orgtbl-to-orgtbl on blocks of emacs-lisp which return nil.
>>
>>  Could you suggest how to do this properly ?
>>
>> cheers and congratulations on the integration !
>>
>> On Mon, Jun 28, 2010 at 7:59 PM, Eric Schulte wrote:
>>
>>> Hi Richard,
>>>
>>> Happy this is sorted out.  A similar startup example is available in the
>>> init.el file in my copy of the Emacs Starter Kit [1], which also tangles
>>> all configuration from org files.
>>>
>>> Cheers -- Eric
>>>
>>> Richard Riley  writes:
>>>
>>> > Firstly  : Carsten and Eric I emailed you privately as I had no news
>>> > access - pls ignore. Problem solved.
>>> >
>>> > With the latest git pull for org-mode I couldn't start my emacs because
>>> > my init files are org files untangled using babel. Here is an updated
>>> > init.el which which uses the new names and pulls in  ob-tangle.
>>> >
>>> >
>>> > (setq dotfiles-dir (file-name-directory (or (buffer-file-name)
>>> load-file-name)))
>>> >
>>> > (let* ((org-dir (expand-file-name
>>> >                  "lisp" (expand-file-name
>>> >                          "org-mode" dotfiles-dir)))
>>> >        (org-contrib-dir (expand-file-name
>>> >                          "lisp" (expand-file-name
>>> >                                "contrib" (expand-file-name
>>> >                                             ".." org-dir
>>> >        (load-path (append (list org-dir org-contrib-dir (concat org-dir
>>> "/babel"))
>>> >                           (or load-path nil
>>> >   (message "%s" org-dir)
>>> >   ;; load up Org-mode and Org-babel
>>> >   (require 'org-install)
>>> >   (require 'ob)
>>> >   (require 'ob-tangle)
>>> > )
>>>
>>> Footnotes:
>>> [1]  http://github.com/eschulte/emacs-starter-kit/blob/master/init.el
>>>
>>>
>>> ___
>>> 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] Patchwork: Patch 138 Accepted

2010-07-15 Thread Nick Dokos
Friedrich Delgado  wrote:

> Hi!
> 
> I'd appreciate if the subject line and body of those patchwork mails
> could be a little more informative, since I can't really be bothered
> to click on those urls in order to figure out what's going on.
> 

I'm really trying to be nice here and not be an officious bastard, but
wouldn't it be more politic to express yourself a bit differently?  It
seems to me that if I'm trying to convince somebody else to do some
amount of work so that I don't have to do a (minuscule) amount of work
on my side, then pointing out that *I* can't be bothered does not invite
much sympathy, let alone a desire to comply with the request.

Regards,
Nick

> Carsten Dominik schrieb:
> > Patch 138 (http://patchwork.newartisans.com/patch/138/) is now Accepted.
> > 
> > This relates to the following submission:
> > 
> > http://mid.gmane.org/%3Cm21vb4bpg2.fsf%40bo.yax.org.uk%3E
> > 
> > ___
> > 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
> > 
> ---Zitatende---
> 
> -- 
> Friedrich Delgado Friedrichs 
>  TauPan on Ircnet and Freenode ;)
> 
> ___
> 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] programming for org-mode

2010-07-15 Thread Nick Dokos
Eric Schulte  wrote:

> > I presume that paredit is useful because it's a minor mode, so you can
> > enable it on an org-mode buffer (e.g. using babel).
> 
> No, even for emacs-lisp code blocks I use C-c ' to edit the code in
> emacs-lisp mode.  I do have "[" and "]" globally bound to
> `insert-parenthesis' and `move-past-close-and-reindent' respectively,
> but that's probably a little too radical for most users.
> 
> I only enable paredit minor-mode in lispy modes.
> 

Ah, OK.

> > But if you are editing a .el file, then emacs-lisp mode provides all
> > these facilities (C-M-f -> forward-sexp, etc.) and you don't need
> > paredit.  Do I have that right?
> >
> 
> Not quite,
> 
> Paredit has a number of nice features aside from sexp movement,
> including /electric/ insertion of both open and close parenthesis,
> brackets and quotation's which greatly increase the speed with which one
> can write lisp code -- all the while ensuring that the code in the
> buffer is /valid/ in terms of balanced parenthesis.
> 

Thanks for the explanation!

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] programming for org-mode

2010-07-15 Thread Eric Schulte
Hi Nick,

Nick Dokos  writes:

> Eric Schulte  wrote:
>
>> ... 
>> If you are going to do any serious work with lisp, I would emphatically
>> recommend using paredit-mode, and becoming friends with the Sexp
>> movement functions
>> ++
>> | C-M-f | runs the command paredit-forward   |
>> |---+|
>> | C-M-b | runs the command paredit-backward  |
>> |---+|
>> | C-M-u | runs the command backward-up-list  |
>> |---+|
>> | C-M-k | runs the command kill-sexp |
>> |---+|
>> | C-y   | runs the command yank  |
>> ++
>> 
>> They allow you to manipulate lisp code on the level of logical
>> expressions, the utility of which can not be over stated.
>> 
>
> I presume that paredit is useful because it's a minor mode, so you can
> enable it on an org-mode buffer (e.g. using babel).

No, even for emacs-lisp code blocks I use C-c ' to edit the code in
emacs-lisp mode.  I do have "[" and "]" globally bound to
`insert-parenthesis' and `move-past-close-and-reindent' respectively,
but that's probably a little too radical for most users.

I only enable paredit minor-mode in lispy modes.

> But if you are editing a .el file, then emacs-lisp mode provides all
> these facilities (C-M-f -> forward-sexp, etc.) and you don't need
> paredit.  Do I have that right?
>

Not quite,

Paredit has a number of nice features aside from sexp movement,
including /electric/ insertion of both open and close parenthesis,
brackets and quotation's which greatly increase the speed with which one
can write lisp code -- all the while ensuring that the code in the
buffer is /valid/ in terms of balanced parenthesis.

Cheers -- Eric

>
> Thanks,
> Nick
>
> PS. The ultimate *reference* for emacs lisp is the Emacs Lisp Reference
> manual
>
> http://www.gnu.org/software/emacs/manual/html_node/elisp/index.html
>
> At some point in one's emacs-lisp programming life, it will be necessary
> to refer to it - but it is very much a reference manual, not a tutorial.

___
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] fix for error of quoted and emphasized text in LaTeX export

2010-07-15 Thread Scot Becker
Robert,

Did you have a chance to try this yet?  I'm keen to know if it seems to
work.  I'll try if I get the chance, but (perhaps like you), I'm no expert,
and it might be a few days before I have a chance to play with it.

Scot


On Wed, Jul 7, 2010 at 3:48 PM, Robert Hennig wrote:

> Dear Orgmode List,
>
> In LaTeX export the following will fail:
>
> "/Hello/" -> ``/Hello/''
>
> instead of
>
> "/Hello/" -> ``\emph{Hello}''
>
> The fix I propose is to change the order of
> calling
> org-export-latex-quotation-marks AFTER
> org-export-latex-fontify in
> the org-export-latex-content function, because the quotation marks would
> be changed and do not match the regexp anymore.
>
> But I'm not too shure if there are other implications to regard.
>
> best regards,
>
>
> Robert Hennig
>
> ___
> 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] programming for org-mode

2010-07-15 Thread Nick Dokos
Eric Schulte  wrote:

> ... 
> If you are going to do any serious work with lisp, I would emphatically
> recommend using paredit-mode, and becoming friends with the Sexp
> movement functions
> ++
> | C-M-f | runs the command paredit-forward   |
> |---+|
> | C-M-b | runs the command paredit-backward  |
> |---+|
> | C-M-u | runs the command backward-up-list  |
> |---+|
> | C-M-k | runs the command kill-sexp |
> |---+|
> | C-y   | runs the command yank  |
> ++
> 
> They allow you to manipulate lisp code on the level of logical
> expressions, the utility of which can not be over stated.
> 

I presume that paredit is useful because it's a minor mode, so you can
enable it on an org-mode buffer (e.g. using babel). But if you are
editing a .el file, then emacs-lisp mode provides all these facilities
(C-M-f -> forward-sexp, etc.) and you don't need paredit.  Do I have
that right?

Thanks,
Nick

PS. The ultimate *reference* for emacs lisp is the Emacs Lisp Reference
manual

http://www.gnu.org/software/emacs/manual/html_node/elisp/index.html

At some point in one's emacs-lisp programming life, it will be necessary
to refer to it - but it is very much a reference manual, not a tutorial.

___
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: Possible Bug in org-refile [6.36trans (release_6.36.654.g2cd3)]

2010-07-15 Thread Scot Becker
No bug here.  If I SAVE the buffer to a file, everything works great.  I had
something wrong with the value of org-refile-targets in my full set up that
triggered all this.  I think I can make it right.

Carry on...

Scot
___
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] Patchwork: Patch 138 Accepted

2010-07-15 Thread Friedrich Delgado
Hi!

I'd appreciate if the subject line and body of those patchwork mails
could be a little more informative, since I can't really be bothered
to click on those urls in order to figure out what's going on.

Carsten Dominik schrieb:
> Patch 138 (http://patchwork.newartisans.com/patch/138/) is now Accepted.
> 
> This relates to the following submission:
> 
> http://mid.gmane.org/%3Cm21vb4bpg2.fsf%40bo.yax.org.uk%3E
> 
> ___
> 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
> 
---Zitatende---

-- 
Friedrich Delgado Friedrichs 
 TauPan on Ircnet and Freenode ;)

___
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: Behavior of Gnus when called from an hyperlink

2010-07-15 Thread Sébastien Vauban
Hi Tassilo,

Tassilo Horn wrote:
> Sébastien Vauban  writes:
>
> that is takes so long for one group but the other group on the same server
> is fast is really strange, and currently I don't understand what might cause
> that... :-(
>
>>> Profile the gnus code as it processes the two requests? The differences
>>> should be telling.
>>
>> Could you just give me a hint (function name or so) or a place to look for
>> some info on how to do that?
>
> I'd edebug the function `org-gnus-follow-link'. It'll be cool if you could
> tell me what is the long running function in there.

I've followed Nick's procedure, hoping to get even more details:

--8<---cut here---start->8---
Function Name
Call Count Elapsed Time Average Time
org-return1 
  336.683827336.683827
org-open-at-point 1 
  336.683692336.683692
org-gnus-open 1 
  336.681615336.681615
org-gnus-follow-link  1 
  336.681557336.681557
gnus-summary-goto-article 1 
  315.14423 315.14423
gnus-summary-refer-article1 
  315.144193315.144193
gnus-summary-insert-subject   1 
  313.003412313.003412
gnus-read-header  1 
  312.994378312.994378
gnus-request-head 1 
  312.993525312.993525
gnus-activate-group   1 
  13.587475 13.587475
gnus-group-read-group 1 
  7.949638  7.949638
gnus-summary-read-group   1 
  7.94967.9496
gnus-summary-read-group-1 1 
  7.949586  7.949586
gnus-select-newsgroup 1 
  7.851293  7.851293
gnus-request-group1 
  6.671263  6.671263
gnus-server-opened4 
  3.312642  0.8281605000
gnus-summary-select-article   1 
  2.104991  2.104991
gnus-summary-display-article  1 
  2.104918  2.104918
gnus-article-prepare  1 
  2.097906  2.097906
gnus-request-article-this-buffer  2 
  1.906248  0.953124
gnus-check-group-server   1 
  1.795364  1.795364
gnus-request-scan 1 
  1.397761  1.397761
gnus-check-server 2 
  1.123801  0.5619005
org-metaup4 
  0.384125  0.09603125
org-move-subtree-up   4 
  0.381949  0.09548725
org-move-subtree-down 4 
  0.38187   0.0954675
org-save-markers-in-region3 
  0.364508  0.121502
org-agenda-save-markers-for-cut-and-paste 3 
  0.364005  0.121335
org-check-and-save-marker 
714 0.358820  0.0005025504
org-shifttab  8 
  0.156744  0.019593
org-global-cycle  8 
  0.15602   0.0195025
org-cycle 8 
  0.155811  0.0194764999
org-cycle-internal-global 8 
  0.148777  0.018597125
gnus-run-hooks
22  0.133493  0.0060679090
gnus-summary-mark-read-and-unread-as-read 1 
  0.124569  0.124569
gnus-summary-mark-article 1 
  0.124472  0.124472
g

[Orgmode] Possible Bug in org-refile [6.36trans (release_6.36.654.g2cd3)]

2010-07-15 Thread Scot Becker
I can't seem to make org-refile work.

Using Emacs development sources from a pull last night, and the latest
org-mode sources from a git pull and make done just
now from the org-mode repository. I do this:

(1) Start clean:

emacs -Q -eval "(setq load-path (cons
\"~/.emacs.d/vendor/org-mode/lisp\" load-path))"

(2) Create a new buffer and start org-mode

C-x b try.org RET

M-x org-mode

(3) Make a minimal file:


* One

* Two

* Three

* Four

(4) Try refiling a node under any other node

C-c C-w One RET

RESULT in Message buffer:

Getting targets...done

find-buffer-visiting: Wrong type argument: arrayp, nil

And of course no refiling is done.  No customizations to
org-refile-targets should mean that I can refile
under the top-level headlines in the current file.

What's up?

Here's the info from org-bug:


Emacs  : GNU Emacs 24.0.50.2 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2010-07-14 on mayim
Package: Org-mode version 6.36trans (release_6.36.654.g2cd3)

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)

 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-preprocess-hook '(org-export-blocks-preprocess)

 org-tab-first-hook '(org-hide-block-toggle-maybe
  org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p

 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines

  org-optimize-window-after-visibility-change)
 org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook org-show-block-all

append local]
   5]
 #[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook
org-babel-show-result-all append local]
   5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)

 org-ctrl-c-ctrl-c-hook '(org-babel-lob-execute-maybe org-babel-hash-at-point
  org-babel-execute-src-block-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((lob org-babel-exp-lob-one-liners)

  (src org-babel-exp-inline-src-blocks))
 org-occur-hook '(org-first-headline-recenter)
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc

   org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-export-blocks '((src org-babel-exp-src-blocks nil)

 (comment org-export-blocks-format-comment t)
 (ditaa org-export-blocks-format-ditaa nil)
 (dot org-export-blocks-format-dot nil))
 )
___
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] programming for org-mode

2010-07-15 Thread David Maus
Ah, heck, just forgot:

Casting Spells in Lisp
http://www.lisperati.com/casting.html

Comic book about programming in Lisp, Emacs Lisp Version available.

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


pgpfQkHRmtNAJ.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] installing updating Org on other platform

2010-07-15 Thread John Hendy
Hi,


I'm not on Win XP, but just wanted to ask for clarification as it might help
others help you...

On Thu, Jul 15, 2010 at 2:32 PM, Adam  wrote:

> To install, I downloaded the 6.36c zip, and copied all and only the
> /lisp/*.el  files into the folder ~/Emacs/Lisp/org.
>
>
Can you define what ~ stands for above? For example:
- Linux typically = /home/username/
- Mac typically = /Users/username/
- Win = ???
--- Doing a 'dir ~' from the prompt yielded 'Volume in drive C has no label'
or cd ~ yields 'The system cannot find the path specified'


> I notice that in  .emacs  the entry
> (add-to-list 'load-path "C:/emacs/lisp/org")
>
> or as I first had it,
> (add-to-list 'load-path "C:/emacs/org-6.36c")
>
> neither have any effect.   It seems Emacs will find Org in ~/emacs/lisp/org
> no
> matter what.  Only  (require 'org)  is present in my  .emacs  and then
> some Org settings.
>

This might be extremely minute, but the GNU Emacs FAQ includes a trailing
slash in the instructions on how to add directories to one's load path via
.emacs [1]:

(add-to-list 'load-path "/dir/subdir/")


Not sure if that will help you at all. Primarily I'd focus on making sure
../emacs/org[-6.36c] is where you think it is? Not to come across as
insulting... just never hurts to be sure!

[1] See 5.17 here: http://www.gnu.org/software/emacs/emacs-faq.html


> Any comments appreciated.
>
> ___
> 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] programming for org-mode

2010-07-15 Thread David Maus
Eric Schulte wrote:
>[1  ]
>So,

>The way that I learned how to program in emacs lisp was mainly using two
>commands `elisp-index-search' bound to `C-h e' on my system, and most
>importantly `describe-function' bound to `C-h f'.  With
>`describe-function' you can look at the source code of functions whose
>behavior you are familiar with, you can then copy portions of the code
>to your *scratch* buffer where they can be edited and evaluated with
>`eval-defun' bound to `C-M-x'.  Now with Babel, instead of doing this in
>the scratch buffer you could do this in emacs-lisp code blocks in an org
>file, enabling notes and hierarchical organization -- it can be nice to
>have your noodling all collected in one file for later reference.

>If you are going to do any serious work with lisp, I would emphatically
>recommend using paredit-mode, and becoming friends with the Sexp
>movement functions

+1 and not to forget eldoc (M-x eldoc-mode)[1] that displays the
description of a variable or the arguments of a function in
minibuffer.

For hacking Org mode in particular there is a "Hacking" section in the
manual that explains the mapping and the property API.

For getting in touch with Emacs Lisp there's Xah Lee's Emacs Lisp
Tutorial, too[3].

HTH & happy hacking,

 -- David

[1] http://www.emacswiki.org/emacs/?ElDoc

[2] http://orgmode.org/manual/Hacking.html

[3] http://xahlee.org/emacs/elisp.html

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


pgpmbWH0nH4p3.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


[Orgmode] Re: iCal export and complex diary sexps

2010-07-15 Thread Dan Griswold
On 15 Jul 2010, sven.bretf...@gmx.ch wrote:

> There was a thread about this some weeks ago. The iCal export does not
> support org-diary-class entries or other complex diary sexps.

I missed that thread, but it's an issue I looked into some time ago,
with regard to sexps. The basic issue is that org-export-icalendar-*
calls icalendar.el, which currently does not support the export of
complex sexps.

In other words, it doesn't do much good for us to say that Org ought to
export these things to ical, because the feature is missing not from org
but from a completely different package.

I, too, wish the feature was available. But there's no point in
complaining here about it. I hope that Ulf Jasper (the author of
icalendar.el) is working on this problem. The package appears to
be in active development, but I can't confirm that.

So, assuming the best, others are working on what is truly not a trivial
problem. I looked at the ical specification, and it made my brain
hurt. It is very complex to program in a conversion of sexp to the ical
format. I'd rather that Carsten and others working actively on org-mode
not be distracted by a puzzle that is really not central to org's
functionality or purpose.

Perhaps org-explort-icalendar could (for the elisp savvy) easily support
org-diary-class, but at this stage, with the limitations of
icalendar.el, it would only be elementary support, because the function
appears to be a nifty way of specifying what (diary-block) does, but
without the option of "skip". To program in more than this gets us right
back to the fundamental problem, the lack of the needed feature in
icalendar.el.

> I want to ask if anybody has a workaround on this issue in the
> meantime. For example, it could possibly be solved by an
> after-export-hook that scans org-files for org-diary-class, converts
> the relevant entries to the iCal format and appends them to the ics
> file.

My way of handling this was to create a file with certain important
recurring events in ical format (these happen on the second Tuesday and
the second Thursday, those good sexp candidates). I have a function that
appends this file to the file icalendar-export-file creates, and have
all this tied in by a function called by after-save-hook. Something
similar, I'm sure, could be done for org-export-icalendar-*



-- 
--
Dan Griswold
Rochester, NY
--


___
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] installing updating Org on other platform

2010-07-15 Thread Adam
If anyone is using Org-mode with Gnu Emacs on Win XP, then I would be grateful 
for their comments. 

Have just updated to Org version 6.36c.While Org appears to work normally, 
and version 6.36c is reported evaluating  org-version And the recent 
Footnotes sorting feature works. But I fear the update or installation is 
somehow not proper. 

My only suspicions for this are;  that publishing to HTML seems problematic, 
and that there are no  .elc  files appearing where the org.el files are 
located. 

To install, I downloaded the 6.36c zip, and copied all and only the 
/lisp/*.el  files into the folder ~/Emacs/Lisp/org. 

I notice that in  .emacs  the entry 
(add-to-list 'load-path "C:/emacs/lisp/org") 

or as I first had it,
(add-to-list 'load-path "C:/emacs/org-6.36c")

neither have any effect.   It seems Emacs will find Org in ~/emacs/lisp/org no 
matter what.  Only  (require 'org)  is present in my  .emacs  and then 
some Org settings. 

Any comments appreciated. 

___
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: Re Audible reminder in org-mode not working

2010-07-15 Thread Sébastien Vauban
Hi Matt and Evita,

evita moreno wrote:
>> The first question: Does your computer "beep" under other circumstances?
>> It's very likely that Linux Mint disables the beep by default. What is
>> the result the following command produce?
>> 
>> lsmod | grep pcspkr
>> 
>> If pcspkr is enabled
>
> Typing $ sudo lsmod | grep pcspkrin my terminal does not give anything. It
> simply shows the next prompt (if I am using the correct terminology - I am
> new in emacs and Linux!).

Just to say I do have sound emitted by my laptop, though I don't have the
above module loaded (just checked your command).

Maybe grepping on `snd' would give interesting feedback?

--8<---cut here---start->8---
[...@mundaneum] ~>lsmod | grep -i snd
snd_hda_codec_realtek   203310  1 
snd_hda_intel  21941  2 
snd_hda_codec  74201  2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep   5412  1 snd_hda_codec
snd_pcm_oss35308  0 
snd_mixer_oss  13746  1 snd_pcm_oss
snd_pcm70662  3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_seq_dummy   1338  0 
snd_seq_oss26726  0 
snd_seq_midi4557  0 
snd_rawmidi19056  1 snd_seq_midi
snd_seq_midi_event  6003  2 snd_seq_oss,snd_seq_midi
snd_seq47263  6 
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer  19098  2 snd_pcm,snd_seq
snd_seq_device  5700  5 
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd54148  16 
snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore   6620  1 snd
snd_page_alloc  7076  2 snd_hda_intel,snd_pcm
--8<---cut here---end--->8---

Best regards,
  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] [PATCH] Correct some docstrings [part 2]

2010-07-15 Thread Carsten Dominik

Accepted, with minor reversals.

- Carsten

On Jul 15, 2010, at 7:54 PM, Philip Rooke wrote:



This is a second patch in a series that makes some straightforward
corrections to a number of docstrings.  Each change is normally to:

- correct a typo, or
- fix up hyperlinks to function or variable names, or
- ensure slightly better conformance with the documentation guidelines
 and tips given in the Elisp manual

No attempt is made to provide missing docstrings or document  
arguments.


Cheers,

Phil

--

lisp/org-docbook.el|8 +++---
lisp/org-docview.el|   11 ++--
lisp/org-entities.el   |8 --
lisp/org-exp-blocks.el |   58 +++ 
+

lisp/org-exp.el|   29 ++--
lisp/org-feed.el   |4 +-
lisp/org-freemind.el   |   14 +-
lisp/org-habit.el  |3 ++
lisp/org-html.el   |   56  
+

9 files changed, 106 insertions(+), 85 deletions(-)

diff --git a/lisp/org-docbook.el b/lisp/org-docbook.el
index bbd0bed..c136d20 100644
--- a/lisp/org-docbook.el
+++ b/lisp/org-docbook.el
@@ -26,7 +26,7 @@
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs.  If not, see .

-;; Commentary:
+;;; Commentary:
;;
;; This library implements a DocBook exporter for org-mode.  The basic
;; idea and design is very similar to what `org-export-as-html' has.
@@ -142,8 +142,8 @@ people work on the same document."
  :type 'string)

(defcustom org-export-docbook-footnote-id-prefix "fn-"
-  "The prefix of footnote IDs used during exporting.  Like
-`org-export-docbook-section-id-prefix', this variable can help
+  "The prefix of footnote IDs used during exporting.
+Like `org-export-docbook-section-id-prefix', this variable can help
avoid same set of footnote IDs being used multiple times."
  :group 'org-export-docbook
  :type 'string)
@@ -155,7 +155,7 @@ avoid same set of footnote IDs being used  
multiple times."

("=" "" "")
("~" "" "")
("+" "" ""))
-  "Alist of DocBook expressions to convert emphasis fontifiers.
+  "A list of DocBook expressions to convert emphasis fontifiers.
Each element of the list is a list of three elements.
The first element is the character used as a marker for fontification.
The second element is a formatting string to wrap fontified text with.
diff --git a/lisp/org-docview.el b/lisp/org-docview.el
index 5db6594..b3a5178 100644
--- a/lisp/org-docview.el
+++ b/lisp/org-docview.el
@@ -62,7 +62,7 @@
  )))

(defun org-docview-store-link ()
-  "Store a link to a docview buffer"
+  "Store a link to a docview buffer."
  (when (eq major-mode 'doc-view-mode)
;; This buffer is in doc-view-mode
(let* ((path buffer-file-name)
@@ -75,11 +75,16 @@
   :description path

(defun org-docview-complete-link ()
-  "Use the existing file name completion for file: links to get the  
file name,

-   then ask the user for the page number and append it."
+  "Use the existing file name completion for file.
+Links to get the file name, then ask the user for the page number
+and append it."
  (concat (replace-regexp-in-string "^file:" "docview:" (org-file- 
complete-link))

  "::"
  (read-from-minibuffer "Page:" "1")))


(provide 'org-docview)
+
+(provide 'org-docview)
+
+;;; org-docview.el ends here
diff --git a/lisp/org-entities.el b/lisp/org-entities.el
index 59734dc..501eb1c 100644
--- a/lisp/org-entities.el
+++ b/lisp/org-entities.el
@@ -26,6 +26,8 @@
;;
;;; Commentary:

+;;; Code:
+
(require 'org-macs)

(declare-function org-table-align "org-table" ())
@@ -459,7 +461,7 @@ loaded, add these packages to `org-export-latex- 
packages-alist'."
("Diamond" "\\diamond" t "⋄" "[diamond]" "[diamond]"  
"⋄")

("loz" "\\diamond" t "◊" "[lozenge]" "[lozenge]" "◊")
)
-  "Default entities used in Org-mode to preduce special characters.
+  "Default entities used in Org-mode to produce special characters.
For details see `org-entities-user'.")

(defsubst org-entity-get (name)
@@ -521,7 +523,7 @@ Kind can be any of `latex', `html', `ascii',  
`latin1', or `utf8'."

(org-table-align)))

(defun org-entities-help ()
-  "Create a Help buffer with all available entities"
+  "Create a Help buffer with all available entities."
  (interactive)
  (with-output-to-temp-buffer "*Org Entity Help*"
(princ "Org-mode entities\n=\n\n")
@@ -555,7 +557,7 @@ Kind can be any of `latex', `html', `ascii',  
`latin1', or `utf8'."



(defun replace-amp ()
-  "Postprocess HTML file to unescape the ampersant."
+  "Postprocess HTML file to unescape the ampersand."
  (interactive)
  (while (re-search-forward "&\\([^<;]+;\\)" nil t)
(replace-match (concat "&" (match-string 1)) t t)))
diff --git a/lisp/org-exp-blocks.el b/lisp/org-exp-blocks.el
index 4bf5db6..bbe245c 100644
--- a/lisp/org-exp-blocks.el
+++ b/lisp/org-exp-blocks.el
@@ -68,6 +68,8 @@
;; `org-export-blocks-add-block'

[Orgmode] Patchwork: Patch 138 Accepted

2010-07-15 Thread Carsten Dominik
Patch 138 (http://patchwork.newartisans.com/patch/138/) is now Accepted.

This relates to the following submission:

http://mid.gmane.org/%3Cm21vb4bpg2.fsf%40bo.yax.org.uk%3E

___
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] Correct some docstrings [part 2]

2010-07-15 Thread Philip Rooke

This is a second patch in a series that makes some straightforward
corrections to a number of docstrings.  Each change is normally to:

- correct a typo, or
- fix up hyperlinks to function or variable names, or
- ensure slightly better conformance with the documentation guidelines
  and tips given in the Elisp manual

No attempt is made to provide missing docstrings or document arguments.

Cheers,

Phil

-- 

 lisp/org-docbook.el|8 +++---
 lisp/org-docview.el|   11 ++--
 lisp/org-entities.el   |8 --
 lisp/org-exp-blocks.el |   58 
 lisp/org-exp.el|   29 ++--
 lisp/org-feed.el   |4 +-
 lisp/org-freemind.el   |   14 +-
 lisp/org-habit.el  |3 ++
 lisp/org-html.el   |   56 +
 9 files changed, 106 insertions(+), 85 deletions(-)

diff --git a/lisp/org-docbook.el b/lisp/org-docbook.el
index bbd0bed..c136d20 100644
--- a/lisp/org-docbook.el
+++ b/lisp/org-docbook.el
@@ -26,7 +26,7 @@
 ;; You should have received a copy of the GNU General Public License
 ;; along with GNU Emacs.  If not, see .
 
-;; Commentary:
+;;; Commentary:
 ;;
 ;; This library implements a DocBook exporter for org-mode.  The basic
 ;; idea and design is very similar to what `org-export-as-html' has.
@@ -142,8 +142,8 @@ people work on the same document."
   :type 'string)
 
 (defcustom org-export-docbook-footnote-id-prefix "fn-"
-  "The prefix of footnote IDs used during exporting.  Like
-`org-export-docbook-section-id-prefix', this variable can help
+  "The prefix of footnote IDs used during exporting.
+Like `org-export-docbook-section-id-prefix', this variable can help
 avoid same set of footnote IDs being used multiple times."
   :group 'org-export-docbook
   :type 'string)
@@ -155,7 +155,7 @@ avoid same set of footnote IDs being used multiple times."
 ("=" "" "")
 ("~" "" "")
 ("+" "" ""))
-  "Alist of DocBook expressions to convert emphasis fontifiers.
+  "A list of DocBook expressions to convert emphasis fontifiers.
 Each element of the list is a list of three elements.
 The first element is the character used as a marker for fontification.
 The second element is a formatting string to wrap fontified text with.
diff --git a/lisp/org-docview.el b/lisp/org-docview.el
index 5db6594..b3a5178 100644
--- a/lisp/org-docview.el
+++ b/lisp/org-docview.el
@@ -62,7 +62,7 @@
   )))
 
 (defun org-docview-store-link ()
-  "Store a link to a docview buffer"
+  "Store a link to a docview buffer."
   (when (eq major-mode 'doc-view-mode)
 ;; This buffer is in doc-view-mode
 (let* ((path buffer-file-name)
@@ -75,11 +75,16 @@
:description path
 
 (defun org-docview-complete-link ()
-  "Use the existing file name completion for file: links to get the file name,
-   then ask the user for the page number and append it."
+  "Use the existing file name completion for file.
+Links to get the file name, then ask the user for the page number
+and append it."
   (concat (replace-regexp-in-string "^file:" "docview:" 
(org-file-complete-link))
  "::"
  (read-from-minibuffer "Page:" "1")))
 
 
 (provide 'org-docview)
+
+(provide 'org-docview)
+
+;;; org-docview.el ends here
diff --git a/lisp/org-entities.el b/lisp/org-entities.el
index 59734dc..501eb1c 100644
--- a/lisp/org-entities.el
+++ b/lisp/org-entities.el
@@ -26,6 +26,8 @@
 ;;
 ;;; Commentary:
 
+;;; Code:
+
 (require 'org-macs)
 
 (declare-function org-table-align "org-table" ())
@@ -459,7 +461,7 @@ loaded, add these packages to 
`org-export-latex-packages-alist'."
 ("Diamond" "\\diamond" t "⋄" "[diamond]" "[diamond]" "⋄")
 ("loz" "\\diamond" t "◊" "[lozenge]" "[lozenge]" "◊")
 )
-  "Default entities used in Org-mode to preduce special characters.
+  "Default entities used in Org-mode to produce special characters.
 For details see `org-entities-user'.")
 
 (defsubst org-entity-get (name)
@@ -521,7 +523,7 @@ Kind can be any of `latex', `html', `ascii', `latin1', or 
`utf8'."
 (org-table-align)))
 
 (defun org-entities-help ()
-  "Create a Help buffer with all available entities"
+  "Create a Help buffer with all available entities."
   (interactive)
   (with-output-to-temp-buffer "*Org Entity Help*"
 (princ "Org-mode entities\n=\n\n")
@@ -555,7 +557,7 @@ Kind can be any of `latex', `html', `ascii', `latin1', or 
`utf8'."
 
 
 (defun replace-amp ()
-  "Postprocess HTML file to unescape the ampersant."
+  "Postprocess HTML file to unescape the ampersand."
   (interactive)
   (while (re-search-forward "&\\([^<;]+;\\)" nil t)
 (replace-match (concat "&" (match-string 1)) t t)))
diff --git a/lisp/org-exp-blocks.el b/lisp/org-exp-blocks.el
index 4bf5db6..bbe245c 100644
--- a/lisp/org-exp-blocks.el
+++ b/lisp/org-exp-blocks.el
@@ -68,6 +68,8 @@
 ;; `org-export-blocks-add-block' to add your block type to
 ;; `org-export-blocks'.
 

Re: [Orgmode] programming for org-mode

2010-07-15 Thread Eric Schulte
So,

The way that I learned how to program in emacs lisp was mainly using two
commands `elisp-index-search' bound to `C-h e' on my system, and most
importantly `describe-function' bound to `C-h f'.  With
`describe-function' you can look at the source code of functions whose
behavior you are familiar with, you can then copy portions of the code
to your *scratch* buffer where they can be edited and evaluated with
`eval-defun' bound to `C-M-x'.  Now with Babel, instead of doing this in
the scratch buffer you could do this in emacs-lisp code blocks in an org
file, enabling notes and hierarchical organization -- it can be nice to
have your noodling all collected in one file for later reference.

If you are going to do any serious work with lisp, I would emphatically
recommend using paredit-mode, and becoming friends with the Sexp
movement functions
| C-M-f | runs the command paredit-forward  |
| C-M-b | runs the command paredit-backward |
| C-M-u | runs the command backward-up-list |
| C-M-k | runs the command kill-sexp|
| C-y   | runs the command yank |
They allow you to manipulate lisp code on the level of logical
expressions, the utility of which can not be over stated.

As for working with Org-mode in particular, I'd recommend looking at the
documentation and source-code of Org-mode functions with
`describe-function', and then looking for how these functions are
actually used in the Org-mode code base with `rgrep'.

For a more structured learning experience, I've heard very good things
about http://www.gnu.org/software/emacs/emacs-lisp-intro/, although I
haven't used it myself.

Hope this helps.  Happy Hacking -- Eric

Ivanov Dmitry  writes:

> Hi, can anyone give me a tutorial for org-mode programming and it's API.
>

I'm afraid there is no such thing as an org-mode api, the closest you
could come would be

grep -i defun org/lisp/org.el

for a list of function names and their arguments, or run
`describe-function' then type "org-" into the minibuffer, tab complete,
and then search through the resulting function-names.

>
> I just read Eric Schultes module org-collector.el, but I can't
> understand the code: how it is organized and how to write the elisp
> for org-mode.
>

If you have any org-collector.el specific questions please let me know.

>
> Can anyone help?
>
>
> ___
> 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] Correct some docstrings

2010-07-15 Thread Carsten Dominik


On Jul 15, 2010, at 5:26 PM, Philip Rooke wrote:


This patch makes some straightforward corrections to a number of
docstrings.  Each change is normally to:

- correct a typo, or
- fix up hyperlinks to function or variable names, or
- ensure slightly better conformance with the documentation guidelines
 and tips given in the Elisp manual

No attempt is made to provide missing docstrings or document  
arguments.


Cheers,

Phil


Awesome, thanks!

- Carsten



--

lisp/org-agenda.el |   71  
+--

lisp/org-ascii.el  |5 ++-
lisp/org-bbdb.el   |2 +-
lisp/org-beamer.el |   21 +++-
lisp/org-capture.el|   33 ++--
lisp/org-clock.el  |   32 +++
lisp/org-colview-xemacs.el |   23 +++---
lisp/org-colview.el|   17 +-
lisp/org-compat.el |6 ++--
lisp/org-crypt.el  |   18 ++-
lisp/org-ctags.el  |   56 ++
11 files changed, 148 insertions(+), 136 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 191ee52..1134558 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -142,8 +142,8 @@ specifies the maximum number of lines that will  
be added for each entry

that is listed in the agenda view.

Note that this variable is not used during display, only when  
exporting
-the agenda.  For agenda display, see org-agenda-entry-text-mode and  
the

-variable `org-agenda-entry-text-maxlines'."
+the agenda.  For agenda display, see the variables `org-agenda- 
entry-text-mode'

+and `org-agenda-entry-text-maxlines'."
  :group 'org-agenda
  :type 'integer)

@@ -595,7 +595,7 @@ to make his option also apply to the tags-todo  
list."
There are different motivations for using different values, please  
think

carefully when configuring this variable.

-This applie when creating the global todo list.
+This applies when creating the global todo list.
Valid values are:

nearDon't show near deadline entries.  A deadline is near when  
it is

@@ -762,7 +762,7 @@ Needs to be set before org.el is loaded."
  :type 'boolean)

(defcustom org-agenda-start-with-follow-mode nil
-  "The initial value of follow-mode in a newly created agenda  
window."
+  "The initial value of follow mode in a newly created agenda  
window."

  :group 'org-agenda-startup
  :type 'boolean)

@@ -1008,7 +1008,7 @@ When this is non-nil, the string will be split  
on whitespace, and each

snippet will be searched individually, and all must match in order to
select an entry.  A snippet is then a single string of non-white
characters, or a string in double quotes, or a regexp in {} braces.
-If a snippet is preceeded by \"-\", the snippet must *not* match.
+If a snippet is preceded by \"-\", the snippet must *not* match.
\"+\" is syntactic sugar for positive selection.  Each snippet may
be found as a full word or a partial word, but see the variable
`org-agenda-search-view-force-full-words'.
@@ -1018,7 +1018,7 @@ with each space character matching any amount  
of whitespace, including

line breaks.

Even when this is nil, you can still switch to Boolean search  
dynamically
-by preceeding the first snippet with \"+\" or \"-\".  If the first  
snippet
+by preceding the first snippet with \"+\" or \"-\".  If the first  
snippet
is a regexp marked with braces like \"{abc}\", this will also switch  
to

boolean search."
  :group 'org-agenda-search-view
@@ -1029,8 +1029,7 @@ boolean search."
  'org-agenda-search-view-always-boolean))

(defcustom org-agenda-search-view-force-full-words nil
-  "Non-nil me
-ans, search words must be matches as complete words.
+  "Non-nil means, search words must be matches as complete words.
When nil, they may also match part of a word."
  :group 'org-agenda-search-view
  :type 'boolean)
@@ -1286,7 +1285,7 @@ range, respectively."
  (function

(defcustom org-agenda-scheduled-leaders '("Scheduled: " "Sched.%2dx:  
")

-  "Text preceeding scheduled items in the agenda view.
+  "Text preceding scheduled items in the agenda view.
This is a list with two strings.  The first applies when the item is
scheduled on the current day.  The second applies when it has been  
scheduled
previously, it may contain a %d indicating that this is the nth time  
that
@@ -1299,7 +1298,7 @@ that passed since this item was scheduled  
first."

  (string :tag "Scheduled previously")))

(defcustom org-agenda-inactive-leader "["
-  "Text preceeding item pulled into the agenda by inactive time  
stamps.
+  "Text preceding item pulled into the agenda by inactive time  
stamps.

These entries are added to the agenda when pressing \"[\"."
  :group 'org-agenda-line-format
  :type '(list
@@ -1307,7 +1306,7 @@ These entries are added to the agenda when  
pressing \"[\"."

  (string :tag "Scheduled previously")))

(defcustom org-agenda-deadline-leaders '("Deadline:  " "In %3d d.: ")
-  "Text p

[Orgmode] Patchwork: Patch 137 Accepted

2010-07-15 Thread Carsten Dominik
Patch 137 (http://patchwork.newartisans.com/patch/137/) is now Accepted.

This relates to the following submission:

http://mid.gmane.org/%3Cm21vb4dav8.fsf%40bo.yax.org.uk%3E

___
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] Correct some docstrings

2010-07-15 Thread Philip Rooke
This patch makes some straightforward corrections to a number of
docstrings.  Each change is normally to:

- correct a typo, or
- fix up hyperlinks to function or variable names, or
- ensure slightly better conformance with the documentation guidelines
  and tips given in the Elisp manual

No attempt is made to provide missing docstrings or document arguments.

Cheers,

Phil

-- 

 lisp/org-agenda.el |   71 +--
 lisp/org-ascii.el  |5 ++-
 lisp/org-bbdb.el   |2 +-
 lisp/org-beamer.el |   21 +++-
 lisp/org-capture.el|   33 ++--
 lisp/org-clock.el  |   32 +++
 lisp/org-colview-xemacs.el |   23 +++---
 lisp/org-colview.el|   17 +-
 lisp/org-compat.el |6 ++--
 lisp/org-crypt.el  |   18 ++-
 lisp/org-ctags.el  |   56 ++
 11 files changed, 148 insertions(+), 136 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 191ee52..1134558 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -142,8 +142,8 @@ specifies the maximum number of lines that will be added 
for each entry
 that is listed in the agenda view.
 
 Note that this variable is not used during display, only when exporting
-the agenda.  For agenda display, see org-agenda-entry-text-mode and the
-variable `org-agenda-entry-text-maxlines'."
+the agenda.  For agenda display, see the variables `org-agenda-entry-text-mode'
+and `org-agenda-entry-text-maxlines'."
   :group 'org-agenda
   :type 'integer)
 
@@ -595,7 +595,7 @@ to make his option also apply to the tags-todo list."
 There are different motivations for using different values, please think
 carefully when configuring this variable.
 
-This applie when creating the global todo list.
+This applies when creating the global todo list.
 Valid values are:
 
 nearDon't show near deadline entries.  A deadline is near when it is
@@ -762,7 +762,7 @@ Needs to be set before org.el is loaded."
   :type 'boolean)
 
 (defcustom org-agenda-start-with-follow-mode nil
-  "The initial value of follow-mode in a newly created agenda window."
+  "The initial value of follow mode in a newly created agenda window."
   :group 'org-agenda-startup
   :type 'boolean)
 
@@ -1008,7 +1008,7 @@ When this is non-nil, the string will be split on 
whitespace, and each
 snippet will be searched individually, and all must match in order to
 select an entry.  A snippet is then a single string of non-white
 characters, or a string in double quotes, or a regexp in {} braces.
-If a snippet is preceeded by \"-\", the snippet must *not* match.
+If a snippet is preceded by \"-\", the snippet must *not* match.
 \"+\" is syntactic sugar for positive selection.  Each snippet may
 be found as a full word or a partial word, but see the variable
 `org-agenda-search-view-force-full-words'.
@@ -1018,7 +1018,7 @@ with each space character matching any amount of 
whitespace, including
 line breaks.
 
 Even when this is nil, you can still switch to Boolean search dynamically
-by preceeding the first snippet with \"+\" or \"-\".  If the first snippet
+by preceding the first snippet with \"+\" or \"-\".  If the first snippet
 is a regexp marked with braces like \"{abc}\", this will also switch to
 boolean search."
   :group 'org-agenda-search-view
@@ -1029,8 +1029,7 @@ boolean search."
   'org-agenda-search-view-always-boolean))
 
 (defcustom org-agenda-search-view-force-full-words nil
-  "Non-nil me
-ans, search words must be matches as complete words.
+  "Non-nil means, search words must be matches as complete words.
 When nil, they may also match part of a word."
   :group 'org-agenda-search-view
   :type 'boolean)
@@ -1286,7 +1285,7 @@ range, respectively."
  (function
 
 (defcustom org-agenda-scheduled-leaders '("Scheduled: " "Sched.%2dx: ")
-  "Text preceeding scheduled items in the agenda view.
+  "Text preceding scheduled items in the agenda view.
 This is a list with two strings.  The first applies when the item is
 scheduled on the current day.  The second applies when it has been scheduled
 previously, it may contain a %d indicating that this is the nth time that
@@ -1299,7 +1298,7 @@ that passed since this item was scheduled first."
  (string :tag "Scheduled previously")))
 
 (defcustom org-agenda-inactive-leader "["
-  "Text preceeding item pulled into the agenda by inactive time stamps.
+  "Text preceding item pulled into the agenda by inactive time stamps.
 These entries are added to the agenda when pressing \"[\"."
   :group 'org-agenda-line-format
   :type '(list
@@ -1307,7 +1306,7 @@ These entries are added to the agenda when pressing 
\"[\"."
  (string :tag "Scheduled previously")))
 
 (defcustom org-agenda-deadline-leaders '("Deadline:  " "In %3d d.: ")
-  "Text preceeding deadline items in the agenda view.
+  "Text preceding deadline items in 

[Orgmode] RE: Re Audible reminder in org-mode not working

2010-07-15 Thread evita moreno

Hello Matt (and thank you for your time!),
Typing $ sudo lsmod | grep pcspkrin my terminal does not give anything. It 
simply shows the next prompt (if I am using the correct terminology - I am new 
in emacs and Linux!).
I was able to change the value of the visible bell but I was not able to find a 
corresponding option for the ring-bell-function. More specifically, the former 
comes up with a menu/button inside the buffer, which, if selected, allows one 
to modify value of the visible-bell. The latter (i.e., the ring-bell-function) 
does not offer such an option.
Any suggestions are more than welcome.
Maybe it is the distribution that disables the audible bell.
Many thanks once more,
Evita
> From: m...@imapmail.org
> To: evitamoren...@live.com
> CC: emacs-orgmode@gnu.org
> Subject: Re: Re Audible reminder in org-mode not working
> Date: Thu, 15 Jul 2010 08:33:27 -0400
> 
> evita moreno  writes:
> 
> > Dear all,
> >
> > I have a question which may look like it is already answered but the
> > solutions provided in previous threads don't really work for me. FYI, I
> > am using a Linux Mint Isadora distribution and I tried to run org-mode
> > both in a console-session of emacs (emacs -nw) and in an emacs GUI. I
> > have tried to set an audible reminder for my appointments using:
> >
> > (setq appt-audible t)
> >
> > For some reason, this does not seem to work (the visible reminder works
> > just fine). I am sure it does not have to do with volume as it works
> > fine with other apps. BTW, the code I am using is collected from
> > various threads and given that I know next to nothing in LISP, I can
> > safely assume that this is probably the reason the whole audible
> > reminder thing is not working 
> >
> > I was wondering whether anyone out there could provide a bit of code to
> > set audible reminders in org-mode (preferably working in a console
> > too). I am teaching young people to use emacs and org-mode to do their
> > research and running emacs in a console is probably the best thing to
> > do to to stop them from getting distracted from menus, toolbars and
> > other things!
> 
> The first question: Does your computer "beep" under other circumstances?
> It's very likely that Linux Mint disables the beep by default. What is
> the result the following command produce?
> 
> lsmod | grep pcspkr
> 
> If pcspkr is enabled, you might want check the value of the following
> options with M-x describe-variable
> 
> visible-bell
> ring-bell-function
> 
> Best,
> Matt
  
_
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969___
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] programming for org-mode

2010-07-15 Thread Ivanov Dmitry
Hi, can anyone give me a tutorial for org-mode programming and it's API.

I just read Eric Schultes module org-collector.el, but I can't understand the 
code: how it is organized and how to write the elisp  for org-mode.

Can anyone help?


___
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] [BUG] org remember broken

2010-07-15 Thread Thierry Volpiatto
Hi Carsten,

Carsten Dominik  writes:

> Hi Thierry,
>
>
> I cannot easily see why org-decrypt-entry is being called, and if it
> is being called in
> the remember buffer or where?

I don't know, i didn't have time to look carefuly, just sent the
backtrace.

> Anyway, most of us are moving to org-capture, so I would be more
> inclined
> to look into this if this is still an issue in org-capture

This is working fine and is very nice, like the facility to export my
remember templates :-).

Thanks.

-- 
Thierry Volpiatto
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 

___
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] [babel] feature request - tangle-and-evaluate-tangled-file

2010-07-15 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 13/07/2010 10:14, Dr Rainer M Krug wrote:
> On 12/07/2010 19:51, Eric Schulte wrote:
>> Rainer M Krug  writes:
> 
>>> Hi Eric,
>>>
>>> On Fri, Jul 9, 2010 at 5:44 PM, Eric Schulte  wrote:
>>>
 Hi Rainer,

 Rainer M Krug  writes:

> On Thu, Jul 8, 2010 at 9:03 PM, Eric Schulte 
 wrote:
 [...]
>>
>> (add-hook 'org-babel-post-tangle-hook
>>  (lambda () (ess-load-file (buffer-file-name
>>
>
> Unfortunately, this does not work. I put the code above into my
> emacs.organd nothing happens - not even an error message. I tried to
> use the C-h v to customise the variable, but I don't manage it.

 If the variable isn't registered with C-h v, then it sounds like maybe
 you need to update Org-mode, and/or re-run make clean && make.

>>>
>>> OK - that is working now.
>>>
>>>

> In addition, The filename for es-load-file shoud not be the buffer
> name, but the buffer name with the extension replaced with R.
>

 `buffer-file-name', returns the name of the file that the buffer is
 visiting, so wouldn't this already be the case if the filename ends with
 .R?

>>>
>>> Isn't the buffer from which I am tangling the org buffer, and not the result
>>> from the tangling? (see below for further remarks.
>>>
> 
>> No this hook is run from /within/ a buffer visiting the file of tangled
>> code, so in the example hook function above (buffer-file-name) will
>> equal the name of the file of tangled R code.  From your later message
>> it looks like the issues below have been resolved.
> 
> Thanks a lot for a very useful addition, and I will see abut the
> buffer-name and come back if it is still the org-file buffer for me,

I finally tried it out, and it is still the same: when I tangle an org
file, for the hook as defined above, buffer-file-name is the org file.

Cheers,

Raienr

> 
> Rainer
> 
> 
>> Best -- Eric
> 
>>>
>>>

 This minimal example with the hook defined as above works for me.  After
 tangling I can jump to the *R* buffer where both x and y are defined.

 --8<---cut here---start->8---
 ** tangle R and load
   :PROPERTIES:
   :tangle:   to-load.r
   :END:

 #+begin_src R :comments yes
  x <- 8
 #+end_src

 #+begin_src R
  y <- 9
 #+end_src
 --8<---cut here---end--->8---

>>>
>>> Not here -
>>>
>>> Emacs and org-mode version:
>>>
>>> GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
>>> Org-mode version 6.36trans (release_6.36.603.g227b)
>>>
>>> 1) if no R process is running, I get the following message:
>>> ess-start-process-specific: No ESS processes running; not yet implemented to
>>> start (Initial,nil)
>>> No problem 0 I can start an R process manually.
>>>
>>> 2) when an R session is running, I get the following error message from ESS:
>>> Errors: Use C-c ` to find error.
>>> Symbol's function definition is void: with-temp-filebuffer
>>>
>>> and from ESS:
>>>
>>> Error in source("/home/rkrug/tmp/R.org") :
>>>   /home/rkrug/tmp/R.org:1:1: unexpected '^'
>>> 1: **
>>>
>>> it seems to submit the org file (the buffer is saved as R.org) to R.
>>>
>>> So buffer-file-name should actually be replaced with the name from the file
>>> name resulting from the tangling, in the easiest case (which would be fine
>>> with me) the org buffer name with .org replaced with .R.
>>> So I did the following (my firs elisp code!):
>>>
>>>   (add-hook 'org-babel-post-tangle-hook
>>> (lambda () (ess-load-file (replace-regexp-in-string ".org" ".R"
>>> buffer-file-name
>>>
>>> and it is working - except that I still get the Symbol's function definition
>>> is void: with-temp-filebuffer , but it does not seem to do anything.
>>>
>>> Thanks a lot,
>>>
>>> Rainer
>>>
>>>
>>>
>>>
>>>
>
> I am sorry about all these questions, but emacs-lisp I have never used
> emacs-lisp (I should - and I will!)
>

 No problem at all, but be careful about learning too much lisp as you
 may begin to grow dissatisfied with R :)

 Best -- Eric

>
> Cheers and thanks for your patience,
>
> Rainer
>
>
>> Best -- Eric
>>
>> Rainer M Krug  writes:
>>
>>> Hi
>>>
>>> I am using org-babel for literate programming in R and I am using the
>>> following approach to test the code:
>>>
>>> 1) tangle
>>> 2) refresh buffer containing the tangled code (I use auto-revert-mode
 or
>>> global-auto-revert-mode for that)
>>> 3) load the tangled file into an existing R session via ESS R for
>> evaluation
>>>
>>> This involves switching between buffers in always the same sequence.
>>> Therefore my suggestion:
>>>
>>> would it be possible to have a tangle-and-evaluate-tangled-file
>> funcction,
>>> which

[Orgmode] [BABEL] Change "split-ratio" for secnd buffer when using C-c '

2010-07-15 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

is there a way of changing the split-ratio / the size of the second
buffer when using C-c ' from 50% to e.g. 70%? I would prefer to have
that buffer bigger then the org-buffer from which it was opened.

Thanks,

Rainer
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkw/AOwACgkQoYgNqgF2egoo0ACcD2Fd0luN1bpqu87u5ZUNjl8a
KBMAn0l/Vdhu9yi5ziFE+W+OIO8qoqmb
=F/gR
-END 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


[Orgmode] Re: Re Audible reminder in org-mode not working

2010-07-15 Thread Matt Lundin
evita moreno  writes:

> Dear all,
>
> I have a question which may look like it is already answered but the
> solutions provided in previous threads don't really work for me. FYI, I
> am using a Linux Mint Isadora distribution and I tried to run org-mode
> both in a console-session of emacs (emacs -nw) and in an emacs GUI. I
> have tried to set an audible reminder for my appointments using:
>
> (setq appt-audible t)
>
> For some reason, this does not seem to work (the visible reminder works
> just fine). I am sure it does not have to do with volume as it works
> fine with other apps. BTW, the code I am using is collected from
> various threads and given that I know next to nothing in LISP, I can
> safely assume that this is probably the reason the whole audible
> reminder thing is not working 
>
> I was wondering whether anyone out there could provide a bit of code to
> set audible reminders in org-mode (preferably working in a console
> too). I am teaching young people to use emacs and org-mode to do their
> research and running emacs in a console is probably the best thing to
> do to to stop them from getting distracted from menus, toolbars and
> other things!

The first question: Does your computer "beep" under other circumstances?
It's very likely that Linux Mint disables the beep by default. What is
the result the following command produce?

lsmod | grep pcspkr

If pcspkr is enabled, you might want check the value of the following
options with M-x describe-variable

visible-bell
ring-bell-function

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


Re: [Orgmode] Re: \nbsp usage

2010-07-15 Thread Erik Butz
Hi all,

the problem was on my side, the change was for some reason not picked
up by git.
Works also for me now.

Thanks Carsten for the quick fix.

Cheers,

Erik

___
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: Inline image display and Emacs 22

2010-07-15 Thread Bernt Hansen
Bernt Hansen  writes:

> Carsten Dominik  writes:
>
>> On Jul 15, 2010, at 3:30 AM, Bernt Hansen wrote:
>>
>>> Bernt Hansen  writes:
>>>
5. org-reveal (C-c C-r) works slightly differently in Emacs 22 and
   23.  I actually prefer the Emacs 22 version.

   If I am in a folded buffer and C-c C-r on a headline the
   following task is /not/ revealed in Emacs 23 but it is in
   Emacs 22.
>>
>> What do you mean by "the following task".
>> Can you make a step-by-step guide, please?

What do you mean by "the following task"  ;)

My confusion seems to be what is the 'following headline' in the
description for org-show-following-headline.

This turns out to be pilot error I think.  It's a combination of
narrowing to subtree and not understanding that org-reveal shows only
the next SIBLING task (as opposed to the next child task.)

>
> Okay.  Of course today I can't reproduce that behaviour at will :-P
> I'll post a recipe when I can reproduce it reliably with a simple
> example.

Here;s my recipe:

This works the same in Emacs 22 and Emacs 23 so I was mistaken about it
being an Emacs 23 only issue -- I just notice this more in Emacs 23 at
work.

,[ sample.org ]
| * one
| * two
| ** two.one
| ** two.two
| *** TODO two.two.one
|  TODO next subtask
| *** TODO two.two.three
| ** two.three
| * three
`

If you put the point on the headline for two.two
C-x n s
M-x hide-other RET

then

C-c C-r

seems to do nothing.

It does not reveal the task two.two.one which is what I want so I can
safely edit the content of two.two.

C-c C-r seems to do nothing when the buffer is narrowed to subtree and
there is no sibling task after the current task you want to reveal --
even if that task has child tasks.  I think it is working as designed
but it isn't as convenient as it could be.

I have
   org-show-hierarchy-above t
and
   org-show-following-heading t

I expected (incorrectly it seems) that org-show-following-heading would
show the next heading in the file (i.e. two.two.one (the child of
two.two) not the sibling which is not part of the narrowed buffer)

Regards,
Bernt

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


[Orgmode] Re: Inline image display and Emacs 22

2010-07-15 Thread Bernt Hansen
Carsten Dominik  writes:

> On Jul 15, 2010, at 3:30 AM, Bernt Hansen wrote:
>
>> Bernt Hansen  writes:
>>
>>>5. org-reveal (C-c C-r) works slightly differently in Emacs 22 and
>>>   23.  I actually prefer the Emacs 22 version.
>>>
>>>   If I am in a folded buffer and C-c C-r on a headline the
>>>   following task is /not/ revealed in Emacs 23 but it is in
>>>   Emacs 22.
>
> What do you mean by "the following task".
> Can you make a step-by-step guide, please?

Okay.  Of course today I can't reproduce that behaviour at will :-P
I'll post a recipe when I can reproduce it reliably with a simple
example.

Thanks,
Bernt

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


Re: [Orgmode] Re: How to setup xdg for org-protocol ?

2010-07-15 Thread Sebastian Rose
Sébastien Vauban  writes:
> Hi Sebastian,
>
> Sebastian Rose wrote:
>> Julien Fantin  writes:
>>> Thanks Sebastian and David,
>>> I now have firefox working, I had to use that html file though, as firefox
>>> wouldn't bring up the application selection dialog with the test links on
>>> worg.
>>> Will now look into getting xdg-mime to work for chromium ...
 Or, of course "Firefox 3.5 specific (works without installed Gnome
 libraries)".  Worked fine for me (dwm), just one thing that is IIRC
 not mentioned on Worg: You have to click on protocol link to set path
 to emacsclient.  E.g.

 cat >> /tmp/test.html
 http://orgmode.org/worg/org-contrib/org-protocol.php#sec-3_5
>>
>> Was it the mouse click, that made it work?
>>
>> If so, I could add a note on that page `for FF 3.5 click on one of these
>> links ...'.
>
> I had the same problem this morning, with latest FFx on latest Ubuntu.
>
> I never had the window asking for which application to launch when clicking on
> a `org-protocol://' link...
>
> until I re-did the manipulation with:
>
>
> gconftool-2 -s /desktop/gnome/url-handlers/org-protocol/command 
> '/usr/bin/emacsclient %s' --type String
> gconftool-2 -s /desktop/gnome/url-handlers/org-protocol/enabled --type 
> Boolean true
>
> (described on 
> http://kb.mozillazine.org/Register_protocol#All_Firefox_versions_.28requires_certain_Gnome_libraries_to_be_installed.29)
>
> "Next time you click a link of protocol-type foo you will be asked which
> application to open it with." : for me, after the above step (`gconftool-2'),
> just entering `org-protocol://' in a new tab was sufficient to ask, this time,
> for which application to run. Finally...


OK then.  I'll adjust the docs this evening accordingly.


Thanks for your reports.


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] Inserting date/time stamps including seconds

2010-07-15 Thread Miguel Ruiz
> I am interesting to hear why you'd want to have that.

Well, basically I have a main .org file as a logbook, and a inactive date/time 
stamp would serve as a unique identification field; I need different time 
stamps in the same minute.

Best wishes.






___
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] Change "split-ratio" for secnd buffer when using C-c '

2010-07-15 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

is there a way of changing the split-ratio / the size of the second
buffer when using C-c ' from 50% to e.g. 70%? I would prefer to have
that buffer bigger then the org-buffer from which it was opened.

Thanks,

Rainer
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkw+2w8ACgkQoYgNqgF2ego/qQCeLBV9vNXM1IhFrNh/+T6eZDwZ
wsoAn1tQuf6BI8Mwcur/q4IoW/kG/75I
=/h9T
-END 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


[Orgmode] Re Audible reminder in org-mode not working

2010-07-15 Thread evita moreno

Dear all,
I have a question which may look like it is already answered but the solutions 
provided in previous threads don't really work for me. FYI, I am using a Linux 
Mint Isadora distribution and I tried to run org-mode both in a console-session 
of emacs (emacs -nw) and in an emacs GUI. I have tried to set an audible 
reminder for my appointments using:
(setq appt-audible t)
For some reason, this does not seem to work (the visible reminder works just 
fine). I am sure it does not have to do with volume as it works fine with other 
apps. BTW, the code I am using is collected from various threads and given that 
I know next to nothing in LISP, I can safely assume that this is probably the 
reason the whole audible reminder thing is not working 
I was wondering whether anyone out there could provide a bit of code to set 
audible reminders in org-mode (preferably working in a console too). I am 
teaching young people to use emacs and org-mode to do their research and 
running emacs in a console is probably the best thing to do to to stop them 
from getting distracted from menus, toolbars and other things!
Thanks a lot for taking the time to read my (rather) lengthy message.
-Evita
_
Hotmail: Powerful Free email with security by Microsoft.
https://signup.live.com/signup.aspx?id=60969___
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: LaTeX calendar from org-mode agenda?

2010-07-15 Thread Christian Egli
"Alan E. Davis"  writes:

> It seems possible that at least one of the LaTeX / org gurus on this
> list has used LaTeX monthly calendars.  I have had some problems with
> LaTeX calendars, but they look really nice, and it would seem not
> unlikely to use that format as an output from Org-agenda.

Well, I haven't used it in a while, but there is code[1] in the contrib
section that generates hipster pda style calendars[2] for you.
Admittedly it just uses the cal-tex-* infrastructure, so if you have
problems with that, I guess this is of little help.

> I found LaTeX monthly calendars pretty ridiculous when they are
> bloated with dozens of repeated tasks from the diary file.  A well
> sorted list of events would seem to me to suite this nice-looking hard
> copy calendar nicely.  

Maybe you should define what your requirements are, i.e. how exactly you
want your calendar to look. Then as a next step you might want to try to
get a mock-up using tikz (and its calendar library)[3]. Once you have
that I'd be happy to hack up some lisp that generates the tikz latex
from say an Org Mode Agenda view or from a diary file.

> The ability to print out a nice, concise hardcopy checklist from
> org-agenda would make a world of difference.

OK, this seems like another requirement unrelated to the calendar above.
You know that you can export an agenda view to PDF, html or text[4].
If that is not enough, again, create a mock-up using tikz to make it
really nice looking. I will then help you to write the lisp to generate
the needed latex. I've long wanted some nice looking export of the
agenda. Your input might just give me enough impetus to hack something
up.

Thanks
Christian

Footnotes: 
[1]  http://repo.or.cz/w/org-mode.git/blob/HEAD:/contrib/scripts/org2hpda
[2]  http://en.wikipedia.org/wiki/Hipster_PDA
[3]  http://www.texample.net/tikz/examples/feature/calendar-library/
[4]  http://orgmode.org/manual/Exporting-Agenda-Views.html
-- 
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] tangling with leaving non-source code lines as empty lines?

2010-07-15 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 13/07/2010 19:22, Eric Schulte wrote:
> Hi Rainer,
> 
> Dr Rainer M Krug  writes:
> 
>> On 13/07/2010 02:46, Eric Schulte wrote:
>>> Hi Rainer,
>>>
>>> With the tangling comments generated by the latest Org-mode, the
>>> following function should be able to jump from any code in a tangled
>>> code file back to the relevant block in the original Org-mode file.
>>
>> Wow - that was quick.
>>
>> Thanks.
>>
>>>
>>> --8<---cut here---start->8---
>>> (defun org-babel-tangle-jump-to-org ()
>>>   "Jump from a tangled code file to the related Org-mode file."
>>>   (interactive)
>>>   (let ((mid (point))
>>> target-buffer target-char
>>> start end link path block-name)
>>> (save-window-excursion
>>>   (save-excursion
>>> (unless (and (re-search-backward org-bracket-link-analytic-regexp nil t)
>>>  (setq start (point))
>>>  (setq link (match-string 0))
>>>  (setq path (match-string 3))
>>>  (setq block-name (match-string 5))
>>>  (re-search-forward (concat " " (regexp-quote block-name)
>>> " ends here[\n\r]") nil t)
>>>  (setq end (point))
>>>  (< start mid) (< mid end))
>>>   (error "not in tangled code")))
>>>   (when (string-match "::" path)
>>> (setq path (substring path 0 (match-beginning 0
>>>   (find-file path) (setq target-buffer (current-buffer))
>>>   (goto-char start) (org-open-link-from-string link)
>>>   (if (string-match "[^ \t\n\r]:\\([[:digit:]]+\\)" block-name)
>>>   (org-babel-next-src-block
>>>(string-to-int (match-string 1 block-name)))
>>> (org-babel-goto-named-src-block block-name))
>>>   (setq target-char (point)))
>>> (pop-to-buffer target-buffer)
>>> (goto-char target-char)))
>>> --8<---cut here---end--->8---
>>>
>>
>> I tried it out, and realised that one needs to name the blocks
>> (#+srcname:) to be able to use it. Then it jumps to the code block in
>> the org file.
>>
> 
> Have you tried this on un-named code blocks (with the latest Org-mode
> from git)?  It should work for those as well -- it parses the name, and
> uses org-babel-next-src-block to jump down the appropriate number of
> blocks.

OK - I tried it this morning (after updating org-mode), and it is
working even with unnamed blocks - perfect.

> 
>>
>> Two more things (As pointed out in the other email) would be nice:
>>
>> 1) it would be nice to jump to the line of code in the Org-mode file
>> which corresponds to the line in the code file
>>
> 
> Agreed, I was planning on implementing this, it shouldn't be difficult.

Great - thanks

> 
>>
>> 2) It would be brilliant, if one could call the function from the
>> Org-file buffer and enter the line number and then jump to the block /
>> line in the block.
>>
> 
> That's a great suggestions, I will certainly look at folding it in.

Perfect - I am looking forward to that.

> 
>>
>> In addition:
>> 3) it would be very useful, if this function could be used with
>> non-named source blocks.
>>
> 
> As I said above, I /believe/ that it is usable as such now, however if
> you could come up with an example where this fails, please do let me
> know.

Working - thanks.

> 
>>
>> But that function is already quite usefull.
>>
> 
> Great, I'll post any future improvements I make to this thread, and
> please do let me know if you run across errant behavior or new
> potentially useful behavior.

I am looking forward to any additions,

Cheers,

Rainer

> 
> Cheers -- Eric
> 
>>
>> Thanks,
>>
>> Rainer
>>
>>
>>> This is too large of a block of untested code to push into Org-mode now,
>>> however please give it a try, and let me know if you think this could be
>>> generally useful.  Hopefully after the feature-freeze we can fold
>>> something like this into Babel to ease navigation between Org files and
>>> their tangled offspring.
>>>
>>> Cheers -- Eric
>>>
>>> "Eric Schulte"  writes:
>>>
 Hi Rainer,

 If I'm understand you correctly you want the absolute position (by LOC)
 of the lines of R code to be the same in both the original org file and
 the tangled file or R code.  I don't think this is possible.  It is
 possible to tangle code blocks in any order (not just the order in which
 they appear in the original org file), so there are many valid tangling
 scenarios in which this feature could not work.

 Rather, I think that it may make sense to have a function for jumping
 back and forth between tangled code blocks and the related Org file.  In
 that case the R errors could be followed to the tangled R code file,
 from which you could easily jump to the relevant line in the relevant
 code block in the Org file.  If you are tangling with comments, then it
 should be possible to have a fun

[Orgmode] Re: Tiny font in org-agenda-columns when using emacs --daemon

2010-07-15 Thread Liang Wang
Jakob Lombacher  lombacher.net> writes:

> 
> Hi,
> 
> When I start emacs as daemon "emacs --daemon"  and than attache a
> client to it, the org-agenda-columns view appears in a very tiny font.
> If I start emacs "normally" the view appears in standard font size.
> 
> I found out that the "Org Column face" is set to different values
> (Height: 1, ...). I can adapt it and it works, but when I start the
> emacsclient again, all settings are lost.
> So it looks like the emacsclient overwrites those settings.
> 
> Has anybody an idea what's the cause of that? Can anybody report the
> same behavior?
> 

It's been annoying me for a long time.  Here is my quick fix.

(defun wl-org-column-view-uses-fixed-width-face ()
  ;; copy from org-faces.el
  (when (fboundp 'set-face-attribute)
;; Make sure that a fixed-width face is used when we have a column table.
(set-face-attribute 'org-column nil
:height (face-attribute 'default :height)
:family (face-attribute 'default :family

(when (and (fboundp 'daemonp) (daemonp))
  (add-hook 'org-mode-hook 'wl-org-column-view-uses-fixed-width-face))


> I use emacs 23.1-r3 on a gentoo linux system and org-mode 6.36c.
> 
> Jakob
> 
> ___
> 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] Re: Inline image display and Emacs 22

2010-07-15 Thread Carsten Dominik


On Jul 15, 2010, at 3:30 AM, Bernt Hansen wrote:


Bernt Hansen  writes:


   5. org-reveal (C-c C-r) works slightly differently in Emacs 22 and
  23.  I actually prefer the Emacs 22 version.

  If I am in a folded buffer and C-c C-r on a headline the
  following task is /not/ revealed in Emacs 23 but it is in
  Emacs 22.


What do you mean by "the following task".
Can you make a step-by-step guide, please?

- Carsten


 My workaround for this is to move to the next line and
  then do C-c C-r in Emacs 23 to get the desired behaviour, and
  then return to the headline.


M-x hide-other
C-c C-r

seems to reliably reproduce this for me.

-Bernt


- 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: Inline image display and Emacs 22

2010-07-15 Thread Carsten Dominik

Hi Bernt,

On Jul 15, 2010, at 3:14 AM, Bernt Hansen wrote:


Hi Carsten,

I'm seriously considering ditching my Emacs 22 in favour of Emacs 23
from a git snapshot.  I'm running an older version of Emacs from a
stable debian system as my workstation setup -- I've been too lazy to
upgrade so far but there are now a few nagging issues with org-mode  
that

are just starting to bug me enough to make this move.

 1. Inline image display doesn't seem to work correctly in Emacs22
The images are displayed but they all overlap each other in the
top-left corner of the document.  In the case of my org-mode
document at http://doc.norang.ca/org-mode.html I only see the
largest image in Emacs since the others are hidden behind it (I
guess).  I really miss this feature in Emacs 22.

 2. Moving from agenda buffers to org buffers goes to the wrong place.
This happens very frequently for me in Emacs 22.  I've never seen
this problem in Emacs 23.  I've lived with this for a long time
and just redoing the command goes to the right place.  I'm not
expecting this to ever get fixed since I think it's an Emacs 22
issue and not worth pursuing.

 3. C-l handling is much nicer in Emacs 23 (okay this has nothing to  
do
with org-mode :)  Can I emulate that behaviour in Emacs 22  
somehow?


 4. Copying subtrees with C-c C-x c loses fontification in the copies.
I don't know if this happens in Emacs 23.

 And there are probably more issues I can't remember right off the top
 of my head right now.

So the only reason for me to stay at Emacs 22 is if there is some
benefit to the org-mode community for testing... and to be honest this
has been my main deterrent from doing the upgrade to Emacs 23 so far.


I'd much rather have you on Emacs 23 and do your testing there.  After  
all,
23.1 has been released one year ago, and it fixes so many things,  
everyone
should upgrade.  I think there is no reason to use Emacs 22 anymore at  
all.
You write about "using a git snapshot".  If you do that you will  
actually

be testing Emacs 24.  Emacs 23 should be considered finised and stable.

- 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] iCal export and complex diary sexps

2010-07-15 Thread Sven Bretfeld
Hi all

There was a thread about this some weeks ago. The iCal export does not
support org-diary-class entries or other complex diary sexps.

I want to ask if anybody has a workaround on this issue in the meantime.
For example, it could possibly be solved by an after-export-hook that
scans org-files for org-diary-class, converts the relevant entries to
the iCal format and appends them to the ics file.

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