Re: [Orgmode] Bug: Docstring of org-export-as-latex [6.35i]

2010-05-10 Thread Carsten Dominik

Applied, thanks.

- Carsten

On May 9, 2010, at 2:11 PM, Jan Moringen wrote:


Hi,

the docstring of org-export-as-latex contains incorrectly escaped \
characters resulting in two passages being rendered like
^Hegin{document}...^Hnd{document}.

The attached patch should fix the problem (The patch is against the
org-mode version included in GNU Emacs).

Emacs  : GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version  
2.12.9) of

2010-05-07 on azurit
Package: Org-mode version 6.35i
org-export-as-latex- 
docstring.diff___

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] Bug: [PATCH] org-store-link not working for Gnus articles on gmane.emacs.orgmode [6.36trans (release_6.36.3.gd087.dirty)]

2010-05-10 Thread Carsten Dominik

Applied, thanks.

- Carsten

On May 9, 2010, at 6:02 PM, Gregory J. Grubbs wrote:



Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?   
See


http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.



org-store-link is not working for Gnus articles, due to the 'To' field
being set to nil in org-gnus-store-link (actually, the relevant field
comes back as nil from gnus-summary-article-header).  M-x org-store- 
link

calls the debugger with the following backtrace:

--8---cut here---start-8---
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
 string-match(%-?[0-9.]*c nil)
 (if (string-match re (cdr e)) (progn (let ... ... ...)))
 (when (string-match re (cdr e)) (let (... ...) (add-text-properties  
0 3 ... safe) (setcdr e ...)))
 (while (setq e (pop tbl)) (setq re (concat %-?[0-9.]* ...)) (when  
(string-match re ...) (let ... ... ...)) (while (string-match re  
string) (setq rpl ...) (setq string ...)))
 (let ((tbl ...) (case-fold-search nil) (pchg 0) e re rpl) (while  
(setq e ...) (setq re ...) (when ... ...) (while ... ... ...))  
(while (setq pchg ...) (let ... ...)) string)
 org-replace-escapes(Email from %f: %.30s ((%c) (%F . \Sven  
Bretfeld\ sven.bretf...@gmx.ch) (%f . Sven Bretfeld) (%T)  
(%t . ?) (%s . Re: suggestions of Android smartphones)  
(%m . 87k4s1rzuc@gmx.ch)))

 org-email-link-description()
 (setq desc (org-email-link-description) link (org-gnus-article-link  
group newsgroups message-id x-no-archive))
 (let* ((group gnus-newsgroup-name) (header ...) (from ...) (message- 
id ...) (date ...) (subject ...) (to ...) newsgroups x-no-archive  
desc link) (when (org-xor current-prefix-arg org-gnus-prefer-web- 
links) (save-window-excursion ...) (setq to ... newsgroups ... x-no- 
archive ...)) (org-store-link-props :type gnus :from from :subject  
subject :message-id message-id :group group :to to) (setq desc (org- 
email-link-description) link (org-gnus-article-link group newsgroups  
message-id x-no-archive)) (org-add-link-props :link  
link :description desc) link)
 (cond ((eq major-mode ...) (let* ... ...)) ((memq major-mode ...)  
(let* ... ... ... ... ... link)))

 org-gnus-store-link()
 run-hook-with-args-until-success(org-gnus-store-link)
 org-store-link(nil)
 call-interactively(org-store-link t nil)
 execute-extended-command(nil)
 call-interactively(execute-extended-command nil nil)

--8---cut here---end---8---


The error is occuring when the cdr is taken of '(%T)  -- a patch
follows ... it seems correct to me that the code be made robust in the
presence of a non-cons cell.

I have tested the links generated; they work for the article links I
have tested.

--8---cut here---start-8---
diff --git a/lisp/org.el b/lisp/org.el
old mode 100644
new mode 100755
index 8f9e16c..85c79ee
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -17700,7 +17700,7 @@ so values can contain further %-escapes if  
they are define later in TABLE.

e re rpl)
(while (setq e (pop tbl))
  (setq re (concat %-?[0-9.]* (substring (car e) 1)))
-  (when (string-match re (cdr e))
+  (when (and (cdr e) (string-match re (cdr e)))
(let ((sref (substring (cdr e) (match-beginning 0) (match- 
end 0)))

  (safe SREF))
  (add-text-properties 0 3 (list 'sref sref) safe)
--8---cut here---end---8---





Emacs  : GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600)
of 2010-05-08 on G41R2F1
Package: Org-mode version 6.36trans (release_6.36.3.gd087.dirty)

current state:
==
(setq
org-clock-in-switch-to-state STARTED
org-export-latex-after-initial-vars-hook '(org-beamer-after-initial- 
vars)

org-special-ctrl-a/e t
org-agenda-clockreport-parameter-plist '(:link t :maxlevel 99)
org-agenda-custom-commands '((P Projects tags Project|project| 
PROJECT ((org-use-tag-inheritance nil)))

  (o Open Scan agenda 
			   ((org-agenda-ndays 1) (org-clock-modeline-total (quote  
today)) (tags -noagenda) (org-agenda-dim-blocked-tasks nil)
(org-agenda-overriding-columns-format %CATEGORY %ALLTAGS  
%30ITEM %CLOCKSUM) (org-agenda-start-with-clockreport-mode t)
(org-agenda-files (quote (~/work/openscan/openscan.org ~/ 
projects/misc.org ~/projects/habits.org))) (org-refile-targets  
(quote ((nil :maxlevel . 3
(org-clock-clocktable-default-properties (quote (:maxlevel  
1 :step day

   )
			  (S Started Tasks todo STARTED ((org-agenda-todo- 
ignore-with-date nil))) (w Tasks waiting on something tags  
WAITING ((org-use-tag-inheritance nil)))

  (dc Clock report agenda 
			   ((org-agenda-ndays 1) 

Re: [Orgmode] C-v and M-v in inserting dates

2010-05-10 Thread Carsten Dominik


On May 8, 2010, at 10:48 PM, Leo wrote:


Hello Carsten,

I think the key C-v and M-v during inserting date (ie. C-c !) should  
do

something similar as those in the calendar window.


Yes, this works now like this.

Thanks.

- Carsten



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


[Orgmode] Re: C-v and M-v in inserting dates

2010-05-10 Thread Leo
On 2010-05-10 07:56 +0100, Carsten Dominik wrote:
 Hello Carsten,
 I think the key C-v and M-v during inserting date (ie. C-c !) should
 do something similar as those in the calendar window.

 Yes, this works now like this.

Thank you. Tested it and it worked well.

Leo


___
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: huge font in column view

2010-05-10 Thread Sébastien Vauban
Hi Eraldo,

Eraldo Helal wrote:
 When I press 'C-c C-x C-c' on a headline in org-mode, I get into column view
 as expected, however the font is huuuge!
 I remember seeing the same sized font when starting emacs without my config
 file.
 I have set the font size for this very reason... but column mode seems to
 ignore it

 According to what I read, column view gets the font size from the 'default
 font'.
 Until now I thought I had changed the default font with '(set-face-attribute
 'default nil :height 80)'.
 How else can I set the default font size? Or is the problem elsewhere?

I have exactly the same problem: huge font in the table itself, normal font
size for the header of the table.

I've tried everything: adding font size specs, and so on.

Nothing did it for me...

So, this is just to say you're not alone experiencing this problem.

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] Poll: Who is using these commands

2010-05-10 Thread Jörg Hagmann

Using them all,
JH

On 5/8/10 11:14 AM, Carsten Dominik wrote:

Hi everyone,

I am wondering:

How many of your are using these keys

C-c C-f
C-c C-b
C-c C-n
C-c C-p

for navigation through the outline?  These are first class keys,
and I would have good uses for these keys if most people don't 
actually use them.


Another question:

C-c C-v   currently make the TODO sparse tree.

I would like to put this tree on `C-c / t' which would be quite logical
and free up another first class key.

Opinions, veto-attempts?



___
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: Poll: Who is using these commands

2010-05-10 Thread Ulf Stegemann
Carsten Dominik carsten.domi...@gmail.com wrote:

 How many of your are using these keys

 C-c C-f
 C-c C-b
 C-c C-n
 C-c C-p

 for navigation through the outline?

I use them all the time but I don't mind if they'd change.

 Another question:

 C-c C-v   currently make the TODO sparse tree.

dto.


Ulf




___
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: Exporting to single LaTeX file and multiple HTML files

2010-05-10 Thread Ulf Stegemann
Hi David, Eric, all,

David Maus dm...@ictsoc.de wrote:

 The function below could be a starting point of a more general
 functionality: It takes a file and splits copys all headlines with a
 certain level to a separate output file.

Eric Schulte schulte.e...@gmail.com wrote:

 Possibly one of these...
 - http://eschulte.github.com/babel-dev/publish.html
 - http://orgmode.org/worg/org-tutorials/org-jekyll.php

thank you both for the pointers, they all look interesting and I'll have
a closer look at it soon.

Originally, I've asked the question because of a forthcoming project
with a rather large documentation where I'd like to advocate org as
documentation system. However, since the whole thing has been postponed,
the matter is less pressing.

Nevertheless, I think that having a functionality to split files on
export would be a nice improvement of org mode. If I would really need
this some day, I'd probably write something to achieve it but certainly
not in elisp as it would take me far too long due to lack of skill. I'd
rather go for a ruby, perl or even shell script for post-processing the
export.

However, such post-processing would certainly not be the very best
solution, an implementation in elisp would be much better.

Regarding the split criteria, I'd say that splitting by section level is
probably the most common case, although keeping track of the section
numbering may pose a problem as David has already mentioned. Splitting
by tag may be also useful. Ideally, section level or tag could be
defined as export option.

As said, the topic has been currently put on hold for me, but I'd
nevertheless appreciate any hints and pointers regarding it.

Ulf




___
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: huge font in column view

2010-05-10 Thread Sébastien Vauban
Hi Carsten,

Carsten Dominik wrote:
 On May 7, 2010, at 8:20 PM, Eraldo Helal wrote:

 When I press 'C-c C-x C-c' on a headline in org-mode, I get into column
 view as expected, however the font is huuuge! I remember seeing the same
 sized font when starting emacs without my config file. I have set the font
 size for this very reason... but column mode seems to ignore it

 According to what I read, column view gets the font size from the 'default
 font'. Until now I thought I had changed the default font with '(set-face-
 attribute 'default nil :height 80)'. How else can I set the default font
 size? Or is the problem elsewhere?

 what is the spec of the face org-column in your setup? Does it make a
 difference to specify the size for org-column explicitly?

As I said, I have the same problems.

Though, I tried setting the size explicitly:

--8---cut here---start-8---
(org-column ((t (:background gold :height 80 :family Consolas
(org-agenda-column-dateline ((t (:background deep sky blue :height 80 :family 
Consolas
--8---cut here---end---8---

but it does not help.

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


[Orgmode] auto-fill in a body often insert a space?

2010-05-10 Thread sun yongke
Hi,body:

I am running the  org-mode(6.34c-1) from the deb on emacs23 on
ubuntu(lucid).  I have turned on auto-fill and set fill-column

when I use the command 'org-export-as-html',there are some spaces in
where the auto-fill is.
I want to modify this bug by edit the file
/usr/share/emacs/site-lisp/org-mode/org-html.el,But no effect。

Which file and function  I should edit to correct this bug?



-- 
sunyongke
孙永科
Tel: 15808796485
___
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] Poll: Who is using these commands

2010-05-10 Thread Carsten Dominik


On May 9, 2010, at 12:03 AM, Scott Randby wrote:


On 05/08/2010 04:22 PM, Friedrich Delgado Friedrichs wrote:

Hi!
Carsten Dominik schrieb:

I am wondering:

How many of your are using these keys

C-c C-f
C-c C-b
C-c C-n
C-c C-p


Never. I always use the speed commands since they became available.


The problem I have with speed commands is that, according to the  
manual, they only work when the cursor is at the beginning of a  
headline. I need commands that work when the cursor is anywhere on  
the headline.


How about if C-M-a went back to the beginning of the heading and then  
you use speed commands?  Would that be an alternative, or is that one  
command to much?


- Carsten



Scott Randby




for navigation through the outline?  These are first class keys,
and I would have good uses for these keys if most people don't
actually use them.

Another question:

C-c C-v   currently make the TODO sparse tree.


I use that one quite often. If you decided to use it for something
else, I would override it in my config.





___
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: huge font in column view

2010-05-10 Thread Sébastien Vauban
Carsten,

Carsten Dominik wrote:
 On May 10, 2010, at 11:53 AM, Sébastien Vauban wrote:
 Carsten Dominik wrote:
 On May 7, 2010, at 8:20 PM, Eraldo Helal wrote:

 When I press 'C-c C-x C-c' on a headline in org-mode, I get into column
 view as expected, however the font is huuuge! I remember seeing the same
 sized font when starting emacs without my config file. I have set the
 font size for this very reason... but column mode seems to ignore it

 According to what I read, column view gets the font size from the
 'default font'. Until now I thought I had changed the default font with
 '(set-face- attribute 'default nil :height 80)'. How else can I set the
 default font size? Or is the problem elsewhere?

 what is the spec of the face org-column in your setup? Does it make a
 difference to specify the size for org-column explicitly?

 As I said, I have the same problems.

 Though, I tried setting the size explicitly:

 --8---cut here---start-8---
 (org-column ((t (:background gold :height 80 :family Consolas
 (org-agenda-column-dateline ((t (:background deep sky blue :height 80
 :family Consolas
 --8---cut here---end---8---

 but it does not help.

 What do you get if you do M-x describe-face on the following faces:

 default

--8---cut here---start-8---
Face: default (sample) (customize this face)

Documentation:
Basic default face.

Family: Consolas
   Foundry: microsoft
 Width: normal
Height: 79
Weight: normal
 Slant: normal
Foreground: black
Background: white
 Underline: nil
  Overline: nil
Strike-through: nil
   Box: nil
   Inverse: nil
   Stipple: nil
  Font: #font-object 
-microsoft-Consolas-normal-normal-normal-*-11-*-*-*-m-0-iso10646-1
   Fontset: 
-microsoft-Consolas-normal-normal-normal-*-11-*-*-*-m-0-fontset-auto1
   Inherit: nil
--8---cut here---end---8---


 org-level-1

--8---cut here---start-8---
Face: org-level-1 (sample) (customize this face)

Documentation:
Face used for level 1 headlines.

Defined in `org-faces.el'.

Family: Arial
   Foundry: unspecified
 Width: unspecified
Height: 1.8
Weight: bold
 Slant: unspecified
Foreground: cornflower blue
Background: unspecified
 Underline: unspecified
  Overline: unspecified
Strike-through: unspecified
   Box: unspecified
   Inverse: unspecified
   Stipple: unspecified
  Font: unspecified
   Fontset: unspecified
   Inherit: unspecified

[back]
--8---cut here---end---8---


 org-level-2

--8---cut here---start-8---
Face: org-level-2 (sample) (customize this face)

Documentation:
Face used for level 2 headlines.

Defined in `org-faces.el'.

Family: Arial
   Foundry: unspecified
 Width: unspecified
Height: 1.6
Weight: bold
 Slant: unspecified
Foreground: LimeGreen
Background: unspecified
 Underline: unspecified
  Overline: unspecified
Strike-through: unspecified
   Box: unspecified
   Inverse: unspecified
   Stipple: unspecified
  Font: unspecified
   Fontset: unspecified
   Inherit: unspecified

[back]
--8---cut here---end---8---


 org-column

--8---cut here---start-8---
Face: org-column (sample) (customize this face)

Documentation:
Face for column display of entry properties.
This is actually only part of the face definition for the text in column view.
The following faces apply, with this priority.

1. The color of the reference face.  This is normally the level fact that
   is used in the outline.  In agenda-mode, it will be the face of the
   first character in the line.  The color is explicitly retained to
   make sure that the column line still looks a bit like the structure
   line it is masking.

2. The `org-column' face.

3. The remaining properties of the reference face.

Since column view works by putting overlays with a display property
over individual characters in the buffer, the face of the underlining
character (this might for example be the a TODO keyword) might still
shine through in some properties.  So when your column view looks
funny, with random colors, weight, strike-through, try to explicitly
set the properties in the `org-column' face.  For example, set
:underline to nil, or the :slant to `normal'.

Under XEmacs, the rules are simpler, because the XEmacs version of
column view defines special faces for each outline level.  See the file
`org-colview-xemacs.el' for details.

Defined in `org-faces.el'.

Family: DejaVu Sans Mono
   Foundry: unspecified
 Width: unspecified
Height: 122
Weight: 

Re: [Orgmode] Re: huge font in column view

2010-05-10 Thread Carsten Dominik

Hi Sebastian,

well, you org-column face says that it wants to be 122/10 points, so  
that is already relatively big.  It is possible (but I am not sure)  
that the factor 1.8 you have set for level on faces still shines  
through as well, but I don't think this should be the case.


You need to find out how the 122 gets into the definition for org- 
column.


- Carsten

On May 10, 2010, at 1:10 PM, Sébastien Vauban wrote:


Carsten,

Carsten Dominik wrote:

On May 10, 2010, at 11:53 AM, Sébastien Vauban wrote:

Carsten Dominik wrote:

On May 7, 2010, at 8:20 PM, Eraldo Helal wrote:

When I press 'C-c C-x C-c' on a headline in org-mode, I get into  
column
view as expected, however the font is huuuge! I remember seeing  
the same
sized font when starting emacs without my config file. I have  
set the
font size for this very reason... but column mode seems to  
ignore it


According to what I read, column view gets the font size from the
'default font'. Until now I thought I had changed the default  
font with
'(set-face- attribute 'default nil :height 80)'. How else can I  
set the

default font size? Or is the problem elsewhere?


what is the spec of the face org-column in your setup? Does it  
make a

difference to specify the size for org-column explicitly?


As I said, I have the same problems.

Though, I tried setting the size explicitly:

--8---cut here---start-8---
(org-column ((t (:background gold :height 80 :family  
Consolas
(org-agenda-column-dateline ((t (:background deep sky  
blue :height 80

:family Consolas
--8---cut here---end---8---

but it does not help.


What do you get if you do M-x describe-face on the following faces:

default


--8---cut here---start-8---
Face: default (sample) (customize this face)

Documentation:
Basic default face.

   Family: Consolas
  Foundry: microsoft
Width: normal
   Height: 79
   Weight: normal
Slant: normal
   Foreground: black
   Background: white
Underline: nil
 Overline: nil
Strike-through: nil
  Box: nil
  Inverse: nil
  Stipple: nil
 Font: #font-object -microsoft-Consolas-normal-normal- 
normal-*-11-*-*-*-m-0-iso10646-1
  Fontset: -microsoft-Consolas-normal-normal-normal-*-11-*-*-*- 
m-0-fontset-auto1

  Inherit: nil
--8---cut here---end---8---



org-level-1


--8---cut here---start-8---
Face: org-level-1 (sample) (customize this face)

Documentation:
Face used for level 1 headlines.

Defined in `org-faces.el'.

   Family: Arial
  Foundry: unspecified
Width: unspecified
   Height: 1.8
   Weight: bold
Slant: unspecified
   Foreground: cornflower blue
   Background: unspecified
Underline: unspecified
 Overline: unspecified
Strike-through: unspecified
  Box: unspecified
  Inverse: unspecified
  Stipple: unspecified
 Font: unspecified
  Fontset: unspecified
  Inherit: unspecified

[back]
--8---cut here---end---8---



org-level-2


--8---cut here---start-8---
Face: org-level-2 (sample) (customize this face)

Documentation:
Face used for level 2 headlines.

Defined in `org-faces.el'.

   Family: Arial
  Foundry: unspecified
Width: unspecified
   Height: 1.6
   Weight: bold
Slant: unspecified
   Foreground: LimeGreen
   Background: unspecified
Underline: unspecified
 Overline: unspecified
Strike-through: unspecified
  Box: unspecified
  Inverse: unspecified
  Stipple: unspecified
 Font: unspecified
  Fontset: unspecified
  Inherit: unspecified

[back]
--8---cut here---end---8---



org-column


--8---cut here---start-8---
Face: org-column (sample) (customize this face)

Documentation:
Face for column display of entry properties.
This is actually only part of the face definition for the text in  
column view.

The following faces apply, with this priority.

1. The color of the reference face.  This is normally the level fact  
that

  is used in the outline.  In agenda-mode, it will be the face of the
  first character in the line.  The color is explicitly retained to
  make sure that the column line still looks a bit like the structure
  line it is masking.

2. The `org-column' face.

3. The remaining properties of the reference face.

Since column view works by putting overlays with a display property
over individual characters in the buffer, the face of the underlining
character (this might for example be the a TODO keyword) might still
shine through in some properties.  So when your column view looks
funny, with random colors, weight, strike-through, try to explicitly
set the properties in the `org-column' face. 

[Orgmode] Re: Frequently used files/headings

2010-05-10 Thread Štěpán Němec
Nathan Neff nathan.n...@gmail.com writes:
 I tried something like this, but all I get is Wrong type argument:
 integer-or-marker-p, (quote (second shortcut-def))

 #+srcname: map-nav(navigation-shortcuts=navigation-shortcuts)
 #+begin_src emacs-lisp
  (defun map-navigation-shortcuts (shortcut-def)
 (global-set-key (kbd (second shortcut-def)) (lambda () Goto Foo Org File
 (interactive)
 (org-id-goto '(third shortcut-def)

 (mapcar #'map-navigation-shortcuts navigation-shortcuts)

 #+end_src

 Can anyone point out where I'm going wrong?

I haven't tried your code, but the way you call `kbd' is obviously
wrong.

`kbd' is a macro and does not evaluate its arguments; try
using `read-kbd-macro' instead.

HTH,

Štěpán


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


[Orgmode] [babel] ascii package

2010-05-10 Thread david . hajage
Hello, 

I am developping a R package named ascii (available on CRAN). It can 
produce org markup from several class of R object. 
I think this could be usefull for some org/R users (with ':results org'), 
and so that it could be mentioned in the Tips for usage, just after 
LaTeX code from R on this page: 
http://orgmode.org/worg/org-contrib/babel/languages/org-babel-doc-R.php#sec-4 


Thank you very much for your attention.

David Hajage

PS - a working example: 

 library(ascii)
 options(asciiType = org)
 x - rnorm(100)
 y - x + rnorm(100)
 ascii(summary(lm(y ~ x)))
| | Estimate | Std. Error | t value | Pr(\|t\|)   |
|-+--++-+--|
| (Intercept) | -0.0679  | 0.1038 | -0.6543 | 0.5144   |
| x   | 0.9899   | 0.1056 | 9.3744  | 0.   |
 library(Hmisc)
 ascii(describe(esoph))
#+CAPTION: esoph
- 5 Variable
- 88 Observations

*agegp*
| n  | missing | unique |
| 88 | 0   | 6  |

|   | 25-34 | 35-44 | 45-54 | 55-64 | 65-74 | 75+ |
| Frequency | 15| 15| 16| 16| 15| 11  |
| % | 17| 17| 18| 18| 17| 12  |

*alcgp*
| n  | missing | unique |
| 88 | 0   | 4  |

 0-39g/day (23, 26%), 40-79 (23, 26%), 80-119 (21, 24%), 120+ (21, 24%)

*tobgp*
| n  | missing | unique |
| 88 | 0   | 4  |

 0-9g/day (24, 27%), 10-19 (24, 27%), 20-29 (20, 23%), 30+ (20, 23%)

*ncases*
| n  | missing | unique | Mean  | .05 | .10 | .25 | .50 | .75 | .90 | .95 
|
| 88 | 0   | 10 | 2.273 | 0.0 | 0.0 | 0.0 | 1.0 | 4.0 | 5.3 | 6.0 
|

|   | 0  | 1  | 2  | 3  | 4 | 5 | 6 | 8 | 9 | 17 |
| Frequency | 29 | 16 | 11 | 9  | 8 | 6 | 5 | 1 | 2 | 1  |
| % | 33 | 18 | 12 | 10 | 9 | 7 | 6 | 1 | 2 | 1  |

*ncontrols*
| n  | missing | unique | Mean  | .05 | .10 | .25 | .50 | .75  | .90  | 
.95  |
| 88 | 0   | 30 | 11.08 | 1.0 | 1.0 | 3.0 | 6.0 | 14.0 | 29.1 | 
40.0 |

 lowest:  1  2  3  4  5, highest: 40 46 48 49 60

L'intégrité de ce message n'étant pas assurée sur Internet, l'Institut Curie ne 
peut être tenu responsable de son contenu. 
Si vous n'êtes pas destinataire de ce message confidentiel, merci de le 
détruire et d'avertir immédiatement l'expéditeur.
Afin de contribuer au respect de l'environnement, merci de n'imprimer ce mail 
qu'en cas de nécessité.
___
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] ascii package

2010-05-10 Thread Dan Davison
david.haj...@curie.net writes:

 Hello,

 I am developping a R package named ascii (available on CRAN). It can produce 
 org markup from several class of R object.
 I think this could be usefull for some org/R users (with ':results org'), and 
 so that it could be mentioned in the Tips for usage, just after LaTeX code 
 from R on this page: 
 http://orgmode.org/worg/org-contrib/babel/languages/org-babel-doc-R.php#sec-4

Hi David,

Thanks for letting us know. I've added a section as you suggest,
although rather hastily. Please feel free to improve it (Worg is for
community editing). Your package looks very interesting and it would be
interesting to hear any further thoughts you have on the different ways
of using R in conjunction with Org and Org-babel using it.

Dan


 Thank you very much for your attention.

 David Hajage

 PS - a working example:

 library(ascii)
 options(asciiType = org)
 x - rnorm(100)
 y - x + rnorm(100)
 ascii(summary(lm(y ~ x)))
 | | Estimate | Std. Error | t value | Pr(\|t\|)   |
 |-+--++-+--|
 | (Intercept) | -0.0679  | 0.1038 | -0.6543 | 0.5144   |
 | x   | 0.9899   | 0.1056 | 9.3744  | 0.   |
 library(Hmisc)
 ascii(describe(esoph))
 #+CAPTION: esoph
 - 5 Variable
 - 88 Observations

 *agegp*
 | n  | missing | unique |
 | 88 | 0   | 6  |

 |   | 25-34 | 35-44 | 45-54 | 55-64 | 65-74 | 75+ |
 | Frequency | 15| 15| 16| 16| 15| 11  |
 | % | 17| 17| 18| 18| 17| 12  |

 *alcgp*
 | n  | missing | unique |
 | 88 | 0   | 4  |

  0-39g/day (23, 26%), 40-79 (23, 26%), 80-119 (21, 24%), 120+ (21, 24%)

 *tobgp*
 | n  | missing | unique |
 | 88 | 0   | 4  |

  0-9g/day (24, 27%), 10-19 (24, 27%), 20-29 (20, 23%), 30+ (20, 23%)

 *ncases*
 | n  | missing | unique | Mean  | .05 | .10 | .25 | .50 | .75 | .90 | .95 |
 | 88 | 0   | 10 | 2.273 | 0.0 | 0.0 | 0.0 | 1.0 | 4.0 | 5.3 | 6.0 |

 |   | 0  | 1  | 2  | 3  | 4 | 5 | 6 | 8 | 9 | 17 |
 | Frequency | 29 | 16 | 11 | 9  | 8 | 6 | 5 | 1 | 2 | 1  |
 | % | 33 | 18 | 12 | 10 | 9 | 7 | 6 | 1 | 2 | 1  |

 *ncontrols*
 | n  | missing | unique | Mean  | .05 | .10 | .25 | .50 | .75  | .90  | .95  |
 | 88 | 0   | 30 | 11.08 | 1.0 | 1.0 | 3.0 | 6.0 | 14.0 | 29.1 | 40.0 |

  lowest:  1  2  3  4  5, highest: 40 46 48 49 60


 L'intégrité de ce message n'étant pas assurée sur Internet, l'Institut Curie 
 ne peut être tenu responsable de son contenu. 
 Si vous n'êtes pas destinataire de ce message confidentiel, merci de le 
 détruire et d'avertir immédiatement l'expéditeur.
 Afin de contribuer au respect de l'environnement, merci de n'imprimer ce mail 
 qu'en cas de nécessité.
 ___
 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] Bug: Clock data and log messages no longer in drawers [6.36trans (release_6.36.7.gae1eb)]

2010-05-10 Thread Carsten Dominik

Hi Bernt,

can I ask you to try out which of the following lines (or both) cause  
the problem?


+  (org-set-local 'comment-start #)
+  (modify-syntax-entry ?\n )

Could you comment one and then the other to check?

Thanks.

- Carsten


On May 10, 2010, at 4:48 PM, Bernt Hansen wrote:



Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?   
See


http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


After updating to master this morning my clock data is no longer  
inside
my clock drawer.  Logbook drawers (for state changes) also do not  
end up

inside the drawer anymore.

org-log-into-drawer is a variable defined in `org.el'.
Its value is t

org-clock-into-drawer is a variable defined in `org-clock.el'.
Its value is CLOCK

The following task was created and clocked in and this is what I see:

,
| * New task
|   :CLOCK:
| :END:
|
| CLOCK: [2010-05-10 Mon 10:31]
`

This was broken by commit

9e9f083aa921f1124e9d405ef560550702210633 is the first bad commit
commit 9e9f083aa921f1124e9d405ef560550702210633
Author: Carsten Dominik carsten.domi...@gmail.com
Date:   Sat May 8 17:10:14 2010 +0200

   Fix comment syntax in org-mode

   Patch by Leo.

   If this works, we have fixed an issue that has bugged me for  
several

   years.

:04 04 f0b0d5f4cfef5257c957ff9e19b84d309c5ea1e0  
64581be3dd01b4783e02aa7c53f399a8931534b0 M	lisp


Regards,
Bernt



Emacs  : GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11)
of 2008-11-09 on raven, modified by Debian
Package: Org-mode version 6.36trans (release_6.36.7.gae1eb)

___
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] Question: org-remember and level1 target headline

2010-05-10 Thread Martin Pohlack
Hi all,

to practically prevent merge conflicts between the different machines
that I use I want to capture new items not directly under the global
Inbox headline, but under Inbox/$HOSTNAME.

For example, I often capture new items on my desktop and my notebook
and later sync.  The new items will always conflict as they are placed as
last child of Inbox.

I now switched my org-remember templates from statically specifying
Inbox as target headline to a helper function:

--

(defun my-host-name ()
  Returns the name of the current host minus the domain.
  (let ((hostname (downcase (system-name
(save-match-data
  (substring hostname (string-match ^[^.]+ hostname) (match-end 0)

(defun my-org-remember-headline ()
  (concatenate 'string Inbox/ (my-host-name)))

--

The problem now is that I would like the target to be:

* Inbox
*** $HOSTNAME
* new item

Instead, I get this:

* Inbox/$HOSTNAME
*** new items

My question now is how to specify the headline hierarchy here?

Cheers,
Martin

___
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: Clock data and log messages no longer in drawers [6.36trans (release_6.36.7.gae1eb)]

2010-05-10 Thread Leo
On 2010-05-10 17:33 +0100, Carsten Dominik wrote:
 Hi Bernt,

 can I ask you to try out which of the following lines (or both) cause
 the problem?

 +  (org-set-local 'comment-start #)
 +  (modify-syntax-entry ?\n )

 Could you comment one and then the other to check?

 Thanks.

 - Carsten

On 2010-05-10 18:04 +0100, Bernt Hansen wrote:
   Modified lisp/org.el
 diff --git a/lisp/org.el b/lisp/org.el
 index d37e64c..7379fff 100644
 --- a/lisp/org.el
 +++ b/lisp/org.el
 @@ -4452,7 +4452,7 @@ The following commands are available:
(org-set-local 'comment-start #)
(org-set-local 'comment-padding  )
(modify-syntax-entry ?# )
 -  (modify-syntax-entry ?\n )
 +  ;(modify-syntax-entry ?\n )
  
;; Align options lines
(org-set-local

This problem doesn't arise in emacs 23. I have tested it with current
stable release 23.2 and an old build from 2008 23.0.60 and they behave
as expected with org mode pulled from git today.

Here's a screenshot to demonstrate.

attachment: Screen shot 2010-05-10 at 19.21.41.png
I will see if I can provide a fix for emacs 22.

Best wishes,
Leo
___
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] escape '|' in a table

2010-05-10 Thread david . hajage
Hello, 

I would like to escape '|' character in a table. Is it possible?

For example: 

| p(t  \|x\|) | 
|--|
|  0.1 |

'Export as HTML' or 'export as LaTeX' doesn't produce the correct output (
org-mode 6.36 in emacs 23).

Thank you very much for any help.

david
L'intégrité de ce message n'étant pas assurée sur Internet, l'Institut Curie ne 
peut être tenu responsable de son contenu. 
Si vous n'êtes pas destinataire de ce message confidentiel, merci de le 
détruire et d'avertir immédiatement l'expéditeur.
Afin de contribuer au respect de l'environnement, merci de n'imprimer ce mail 
qu'en cas de nécessité.
___
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] ascii package

2010-05-10 Thread david . hajage
I definitly will.

I found a bug in my example: 

| | Estimate | Std. Error | t value | Pr(\|t\|)   |
|-+--++-+--|
| (Intercept) | -0.0679  | 0.1038 | -0.6543 | 0.5144   |
| x   | 0.9899   | 0.1056 | 9.3744  | 0.   |

I was thinking that '\|' can be used in a table to escape '|', but it 
doesn't work in both html and latex export.
Is it possible to produce a '|' in a table?

In the meantime, perhaps the first example should be removed from worg... 
(I don't have the possibility to do it from this computer).

Thank you very much.

david



Dan Davison davi...@stats.ox.ac.uk 
10/05/2010 18:01

A
david.haj...@curie.net
cc
emacs-orgmode@gnu.org
Objet
Re: [babel] ascii package






david.haj...@curie.net writes:

 Hello,

 I am developping a R package named ascii (available on CRAN). It can 
produce org markup from several class of R object.
 I think this could be usefull for some org/R users (with ':results 
org'), and so that it could be mentioned in the Tips for usage, just 
after LaTeX code from R on this page: 
 
http://orgmode.org/worg/org-contrib/babel/languages/org-babel-doc-R.php#sec-4


Hi David,

Thanks for letting us know. I've added a section as you suggest,
although rather hastily. Please feel free to improve it (Worg is for
community editing). Your package looks very interesting and it would be
interesting to hear any further thoughts you have on the different ways
of using R in conjunction with Org and Org-babel using it.

Dan


 Thank you very much for your attention.

 David Hajage

 PS - a working example:

 library(ascii)
 options(asciiType = org)
 x - rnorm(100)
 y - x + rnorm(100)
 ascii(summary(lm(y ~ x)))
 | | Estimate | Std. Error | t value | Pr(\|t\|)   |
 |-+--++-+--|
 | (Intercept) | -0.0679  | 0.1038 | -0.6543 | 0.5144   |
 | x   | 0.9899   | 0.1056 | 9.3744  | 0.   |
 library(Hmisc)
 ascii(describe(esoph))
 #+CAPTION: esoph
 - 5 Variable
 - 88 Observations

 *agegp*
 | n  | missing | unique |
 | 88 | 0   | 6  |

 |   | 25-34 | 35-44 | 45-54 | 55-64 | 65-74 | 75+ |
 | Frequency | 15| 15| 16| 16| 15| 11  |
 | % | 17| 17| 18| 18| 17| 12  |

 *alcgp*
 | n  | missing | unique |
 | 88 | 0   | 4  |

  0-39g/day (23, 26%), 40-79 (23, 26%), 80-119 (21, 24%), 120+ (21, 24%)

 *tobgp*
 | n  | missing | unique |
 | 88 | 0   | 4  |

  0-9g/day (24, 27%), 10-19 (24, 27%), 20-29 (20, 23%), 30+ (20, 23%)

 *ncases*
 | n  | missing | unique | Mean  | .05 | .10 | .25 | .50 | .75 | .90 | 
.95 |
 | 88 | 0   | 10 | 2.273 | 0.0 | 0.0 | 0.0 | 1.0 | 4.0 | 5.3 | 
6.0 |

 |   | 0  | 1  | 2  | 3  | 4 | 5 | 6 | 8 | 9 | 17 |
 | Frequency | 29 | 16 | 11 | 9  | 8 | 6 | 5 | 1 | 2 | 1  |
 | % | 33 | 18 | 12 | 10 | 9 | 7 | 6 | 1 | 2 | 1  |

 *ncontrols*
 | n  | missing | unique | Mean  | .05 | .10 | .25 | .50 | .75  | .90  | 
.95  |
 | 88 | 0   | 30 | 11.08 | 1.0 | 1.0 | 3.0 | 6.0 | 14.0 | 29.1 | 
40.0 |

  lowest:  1  2  3  4  5, highest: 40 46 48 49 60


 L'intégrité de ce message n'étant pas assurée sur Internet, l'Institut 
Curie ne peut être tenu responsable de son contenu. 
 Si vous n'êtes pas destinataire de ce message confidentiel, merci de le 
détruire et d'avertir immédiatement l'expéditeur.
 Afin de contribuer au respect de l'environnement, merci de n'imprimer ce 
mail qu'en cas de nécessité.
 ___
 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


L'intégrité de ce message n'étant pas assurée sur Internet, l'Institut Curie ne 
peut être tenu responsable de son contenu. 
Si vous n'êtes pas destinataire de ce message confidentiel, merci de le 
détruire et d'avertir immédiatement l'expéditeur.
Afin de contribuer au respect de l'environnement, merci de n'imprimer ce mail 
qu'en cas de nécessité.
___
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: escape '|' in a table

2010-05-10 Thread Mikael Fornius
david.haj...@curie.net writes:

 I would like to escape '|' character in a table. Is it possible?

I think not.

For export you can use \vert or write abs(x) instead.

-- 
Mikael Fornius

___
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] wish list: underscore

2010-05-10 Thread Sean Sieger
In Org files putting an underscore at each of a word begets an ugly
underline that extends to the original underscores and doubles them.

In Gnus mail putting an underscore at each end of a _word_ begets an
expected result of underlining the word itself.

I wish that Org would do that too, or at least leave it alone like say
info does.


___
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: Frequently used files/headings

2010-05-10 Thread Nathan Neff
On Mon, May 10, 2010 at 6:35 AM, Štěpán Němec step...@gmail.com wrote:
 Nathan Neff nathan.n...@gmail.com writes:
 I tried something like this, but all I get is Wrong type argument:
 integer-or-marker-p, (quote (second shortcut-def))

 #+srcname: map-nav(navigation-shortcuts=navigation-shortcuts)
 #+begin_src emacs-lisp
  (defun map-navigation-shortcuts (shortcut-def)
 (global-set-key (kbd (second shortcut-def)) (lambda () Goto Foo Org File
     (interactive)
     (org-id-goto '(third shortcut-def)

 (mapcar #'map-navigation-shortcuts navigation-shortcuts)

 #+end_src

 Can anyone point out where I'm going wrong?

 I haven't tried your code, but the way you call `kbd' is obviously
 wrong.

 `kbd' is a macro and does not evaluate its arguments; try
 using `read-kbd-macro' instead.

Stepan,

Thanks for your help -- The keyboard shortcut is now being mapped
correctly, but
whenever I press f6 a, I get Symbol's value as a variable is void:
shortcut-def

I suspect that (lambda()) is not evaluating (org-id-goto (third
shortcut-def)).  I need some way to do that.

I would really like to know an acceptable or standard way to
implement this feature -- I think it would help me a lot with learning
Lisp  functional languages.  Any help is appreciated!

Here's my new code:

#+tblname:navigation-shortcuts
| Vim | f6 a   | 733BD03F-0938-432F-B59A-BE235A2DE7E2 |

#+srcname: map-nav(navigation-shortcuts=navigation-shortcuts)
#+begin_src emacs-lisp
(defun map-navigation-shortcuts (shortcut-def)
(global-set-key (read-kbd-macro (second shortcut-def))
  (lambda ()
(interactive)
(org-id-goto (third shortcut-def ;; this line is not
evaluated inside lambda()
)

Thanks,
--Nate

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


[Orgmode] Re: Bug: Clock data and log messages no longer in drawers [6.36trans (release_6.36.7.gae1eb)]

2010-05-10 Thread Leo
On 2010-05-10 19:50 +0100, Bernt Hansen wrote:
 Actually I got this to occur both in emacs 22 and on an older version of
 Emacs 23 on windows today.

 GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600) of 2009-11-03 on
 LENNART-69DE564 (patched)

 GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-11-09
 on raven, modified by Debian

 Regards,
 Bernt

You are right. Sorry I didn't use the clock in/out much. The problem is
once :CLOCK: is inserted the second run doesn't trigger the problem any
more. Could you try the patch below and see if it fixes the issue?

The cause:

After changing the syntax of \n to mean the end of comment, it is no
longer a whitespace. Thus regexp like \S- will match it. Unfortunately
we didn't fix the comment-end syntax earlier so regexps relying on
syntax might be different. But I believe it is still better setting a
correct comment end and fixing the rest.

Carsten, could you check whether the following change still matches the
full set of properties allowed?

diff --git a/lisp/org/org.el b/lisp/org/org.el
index 96b4145..9727852 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -16976,12 +16976,12 @@ which make use of the date at the cursor.
   (save-excursion (org-indent-line-to column)))
 (setq column (current-column))
 (beginning-of-line 1)
-(if (looking-at
-\\([ \t]+\\)\\(:[-_0-9a-zA-Z]+:\\)[ \t]*\\(\\S-.*\\(\\S-\\|$\\)\\))
-   (replace-match (concat (match-string 1)
-  (format org-property-format
-  (match-string 2) (match-string 3)))
-  t t))
+(when (re-search-forward \\([ \t]+\\)\\(:[-_0-9a-zA-Z]+:\\)[ 
\t]*\\(\\S-.*\\S-\\)
+(line-end-position) t)
+  (replace-match (concat (match-string 1)
+(format org-property-format
+(match-string 2) (match-string 3)))
+t t))
 (org-move-to-column column)))
 
 (defun org-set-autofill-regexps ()

___
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: Frequently used files/headings

2010-05-10 Thread Stephan Schmitt

Hi Nathan,

when the lambda form is evaluated (when you press f6) the variable
shortcut-def doesn't exist any more.

The problem is that elisp doesn't support closures.  See
this info page:
(elisp) Top  Variables  Variable Scoping  Extent

As a workaraound you can save the table in a global variable with setq
and access that variable in the lambda form.

Hth,
Stephan

Also sprach Nathan Neff:

On Mon, May 10, 2010 at 6:35 AM, Štěpán Němecstep...@gmail.com  wrote:

Nathan Neffnathan.n...@gmail.com  writes:

I tried something like this, but all I get is Wrong type argument:
integer-or-marker-p, (quote (second shortcut-def))

#+srcname: map-nav(navigation-shortcuts=navigation-shortcuts)
#+begin_src emacs-lisp
  (defun map-navigation-shortcuts (shortcut-def)
(global-set-key (kbd (second shortcut-def)) (lambda () Goto Foo Org File
 (interactive)
 (org-id-goto '(third shortcut-def)

(mapcar #'map-navigation-shortcuts navigation-shortcuts)

#+end_src

Can anyone point out where I'm going wrong?


I haven't tried your code, but the way you call `kbd' is obviously
wrong.

`kbd' is a macro and does not evaluate its arguments; try
using `read-kbd-macro' instead.


Stepan,

Thanks for your help -- The keyboard shortcut is now being mapped
correctly, but
whenever I pressf6  a, I get Symbol's value as a variable is void:
shortcut-def

I suspect that (lambda()) is not evaluating (org-id-goto (third
shortcut-def)).  I need some way to do that.

I would really like to know an acceptable or standard way to
implement this feature -- I think it would help me a lot with learning
Lisp  functional languages.  Any help is appreciated!

Here's my new code:

#+tblname:navigation-shortcuts
| Vim |f6  a   | 733BD03F-0938-432F-B59A-BE235A2DE7E2 |

#+srcname: map-nav(navigation-shortcuts=navigation-shortcuts)
#+begin_src emacs-lisp
(defun map-navigation-shortcuts (shortcut-def)
 (global-set-key (read-kbd-macro (second shortcut-def))
   (lambda ()
 (interactive)
 (org-id-goto (third shortcut-def ;; this line is not
evaluated inside lambda()
)

Thanks,
--Nate

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


___
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: Frequently used files/headings

2010-05-10 Thread Štěpán Němec
Stephan Schmitt drmab...@cs.tu-berlin.de writes:
 Hi Nathan,

 when the lambda form is evaluated (when you press f6) the variable
 shortcut-def doesn't exist any more.

 The problem is that elisp doesn't support closures.  See
 this info page:
 (elisp) Top  Variables  Variable Scoping  Extent

 As a workaraound you can save the table in a global variable with setq
 and access that variable in the lambda form.

Another way would be to use `lexical-let' from the CL package, i.e.:

  (global-set-key (read-kbd-macro (second shortcut-def))
  (lexical-let ((shortcut-def shortcut-def))
(lambda ()
  (interactive)
  (org-id-goto (third shortcut-def)

should do what you want.

  Štěpán

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


[Orgmode] Re: Bug: Clock data and log messages no longer in drawers [6.36trans (release_6.36.7.gae1eb)]

2010-05-10 Thread Carsten Dominik


On May 10, 2010, at 11:05 PM, Leo wrote:


On 2010-05-10 19:50 +0100, Bernt Hansen wrote:
Actually I got this to occur both in emacs 22 and on an older  
version of

Emacs 23 on windows today.

GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600) of 2009-11-03 on
LENNART-69DE564 (patched)

GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of  
2008-11-09

on raven, modified by Debian

Regards,
Bernt


You are right. Sorry I didn't use the clock in/out much. The problem  
is
once :CLOCK: is inserted the second run doesn't trigger the problem  
any

more. Could you try the patch below and see if it fixes the issue?

The cause:

After changing the syntax of \n to mean the end of comment, it is no
longer a whitespace. Thus regexp like \S- will match it.


Hi Leo, I did not realize that this change will make \S- match \n.
think I have to take this change back then.  I do not oversee in
any way how many regexps might break because of this.  This would
require a careful check of much of Org.

- Carsten


Unfortunately
we didn't fix the comment-end syntax earlier so regexps relying on
syntax might be different. But I believe it is still better setting a
correct comment end and fixing the rest.

Carsten, could you check whether the following change still matches  
the

full set of properties allowed?

diff --git a/lisp/org/org.el b/lisp/org/org.el
index 96b4145..9727852 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -16976,12 +16976,12 @@ which make use of the date at the cursor.
  (save-excursion (org-indent-line-to column)))
(setq column (current-column))
(beginning-of-line 1)
-(if (looking-at
-	 \\([ \t]+\\)\\(:[-_0-9a-zA-Z]+:\\)[ \t]*\\(\\S-.*\\(\\S-\\|$\\)\ 
\))

-   (replace-match (concat (match-string 1)
-  (format org-property-format
-  (match-string 2) (match-string 3)))
-  t t))
+(when (re-search-forward \\([ \t]+\\)\\(:[-_0-9a-zA-Z]+:\\) 
[ \t]*\\(\\S-.*\\S-\\)

+(line-end-position) t)
+  (replace-match (concat (match-string 1)
+(format org-property-format
+(match-string 2) (match-string 3)))
+t t))
(org-move-to-column column)))

(defun org-set-autofill-regexps ()


- 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: Clock data and log messages no longer in drawers [6.36trans (release_6.36.7.gae1eb)]

2010-05-10 Thread Leo
On 2010-05-10 22:42 +0100, Carsten Dominik wrote:
 Hi Leo, I did not realize that this change will make \S- match \n.

I was surprised too so I checked other modes and they have the same
behaviour.

 think I have to take this change back then. I do not oversee in any
 way how many regexps might break because of this. This would require a
 careful check of much of Org.

OK. Feel free to revert the change.

Leo

___
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: Clock data and log messages no longer in drawers [6.36trans (release_6.36.7.gae1eb)]

2010-05-10 Thread Carsten Dominik


On May 11, 2010, at 12:02 AM, Leo wrote:


On 2010-05-10 22:42 +0100, Carsten Dominik wrote:

Hi Leo, I did not realize that this change will make \S- match \n.


I was surprised too so I checked other modes and they have the same
behaviour.


think I have to take this change back then. I do not oversee in any
way how many regexps might break because of this. This would  
require a

careful check of much of Org.


OK. Feel free to revert the change.


Sorry about that, and thank you very much for the attempt!

- 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: Clock data and log messages no longer in drawers [6.36trans (release_6.36.7.gae1eb)]

2010-05-10 Thread Leo
On 2010-05-10 23:12 +0100, Carsten Dominik wrote:
 OK. Feel free to revert the change.

 Sorry about that, and thank you very much for the attempt!

No worries, Carsten. We did find out the cause of the mysterious
auto-fill problem except the time to fix it has passed.

Leo


___
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: org-mode color schemes with white or light background and black foregroung

2010-05-10 Thread Eric Schulte
I've started a place for color-theme collection on Worg -- which
includes a link to instructions for gettings and using the
color-theme.el color theme management package.

Please see http://orgmode.org/worg/org-color-themes.php

Hopefully this page will serve as a simple way for org-mode users to
share color themes.  The .org file includes instructions for adding your
new theme and screenshot which should be very straightforward.

Best -- Eric

Bastien bastien.gue...@wikimedia.fr writes:

 Eric Schulte schulte.e...@gmail.com writes:

 Maybe this would make a good Worg page, a collection of org-mode
 screenshots along with the required color-theme.el file?

 I started something like this long ago:

   http://lumiere.ens.fr/~guerry/org-color-themes.php

 But the right place is in Worg, maybe as a section in the
 org-screenshots.org page.

   http://orgmode.org/worg/org-screenshots.php

 If we get such a page going, I'd be happy to add my own dark color
 theme.

 Please edit Worg or send me your screenshots/color-themes and I'll put
 this online.

 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] huge font in column view

2010-05-10 Thread Eraldo Helal
Carsten Dominik carsten.domi...@gmail.com writes:

 Hi Eraldo,

 what is the spec of the face org-column in your setup?
Font: DejaVu Sans Mono
Height in 1/10 pt: 120
 Please read the docstring of that face and see if that helps
 you track down the problem.  Does it make a difference to
 specify the size for org-column explicitly?
Yes it does.

I have set '(set-face-attribute 'default nil :height 80)'
in my .emacs because I thought that changes the default font size (on
which the others are based on).

If that does not change it, how else can I change the default font size
(preferably without changing/defining the font family).

Thank you for that hint.

Greetings from Austria,
Eraldo

___
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] Recent export bug?

2010-05-10 Thread Thomas S . Dye

Aloha all,

The following minimal example doesn't export the Second heading to  
html.  The problem seems to be the :export: tag on the First heading.   
If I remove the tag, then both the First and Second headings make it  
into the export.  I don't expect the :export: tag on the First heading  
to stop export of the Second heading.


I found this behavior when I tried unsuccessfully to export an org  
file that successfully exported last on April 6th.  I don't believe  
I've changed any html export settings in the meantime.



---
*  
Setup 
:noexport:

#+TITLE: export-tag.org
#+AUTHOR:Tom Dye
#+EMAIL: t...@tsdye2.com
#+DATE:  2010-05-10 Mon
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE:  en
#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t :t
#+OPTIONS:   TeX:t LaTeX:nil skip:nil d:nil todo:t pri:nil tags:not-in- 
toc

#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 
path:http://orgmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:
#+LINK_HOME:

*  
First 
  :export:

Some First text

* Second
 Some Second text
---

I tried to run git bisect, but if I go far enough back in time then I  
run up against this:

eval-buffer: Symbol's function definition is void: org-overlay-put

This leaves me way over my head, but I did want you to know that I  
worked a bit to isolate the problem and did my best to track it down  
without success.


All the best,
Tom

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


[Orgmode] Re: Recent export bug?

2010-05-10 Thread Bernt Hansen
Thomas S. Dye t...@tsdye.com writes:

 Aloha all,

 The following minimal example doesn't export the Second heading to
 html.  The problem seems to be the :export: tag on the First heading.
 If I remove the tag, then both the First and Second headings make it
 into the export.  I don't expect the :export: tag on the First heading
 to stop export of the Second heading.

Hi Thomas,

If you use #+EXPORT_SELECT_TAGS then only headings with that tag are
exported (if any headings contain that tag the rest are removed).  I
don't think you can use both EXPORT_EXCLUDE_TAGS and EXPORT_SELECT_TAGS
in the same org-mode document in a meaningful way.

Normally you exclude stuff with only EXPORT_EXCLUDE_TAGS or you include
stuff only with EXPORT_SELECT_TAGS.

,
| org-export-select-tags is a variable defined in `org-exp.el'. |
| Its value is (export)   |
|   |
| Documentation:|
| Tags that select a tree for export.   |
| If any such tag is found in a buffer, all trees that do not carry one |
| of these tags will be deleted before export.  |
| Inside trees that are selected like this, you can still deselect a|
| subtree by tagging it with one of the `org-export-exclude-tags'.  |
`

,
| org-export-exclude-tags is a variable defined in `org-exp.el'.
| Its value is (noexport)
| 
| Documentation:
| Tags that exclude a tree from export.
| All trees carrying any of these tags will be excluded from export.
| This is without condition, so even subtrees inside that carry one of the
| `org-export-select-tags' will be removed.
`

Regards,
Bernt



 I found this behavior when I tried unsuccessfully to export an org
 file that successfully exported last on April 6th.  I don't believe
 I've changed any html export settings in the meantime.


 ---
 *  Setup
 :noexport:
 #+TITLE: export-tag.org
 #+AUTHOR:Tom Dye
 #+EMAIL: t...@tsdye2.com
 #+DATE:  2010-05-10 Mon
 #+DESCRIPTION:
 #+KEYWORDS:
 #+LANGUAGE:  en
 #+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t :t
 #+OPTIONS:   TeX:t LaTeX:nil skip:nil d:nil todo:t pri:nil
 tags:not-in- 
 toc
 #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 
 path:http://orgmode.org/org-info.js
 #+EXPORT_SELECT_TAGS: export
 #+EXPORT_EXCLUDE_TAGS: noexport
 #+LINK_UP:
 #+LINK_HOME:

 *  First
 :export:
 Some First text

 * Second
  Some Second text
 ---

 I tried to run git bisect, but if I go far enough back in time then I
 run up against this:
 eval-buffer: Symbol's function definition is void: org-overlay-put

 This leaves me way over my head, but I did want you to know that I
 worked a bit to isolate the problem and did my best to track it down
 without success.

 All the best,
 Tom

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

___
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: Recent export bug?

2010-05-10 Thread Thomas S. Dye


On May 10, 2010, at 2:13 PM, Bernt Hansen wrote:


Thomas S. Dye t...@tsdye.com writes:


Aloha all,

The following minimal example doesn't export the Second heading to
html.  The problem seems to be the :export: tag on the First heading.
If I remove the tag, then both the First and Second headings make it
into the export.  I don't expect the :export: tag on the First  
heading

to stop export of the Second heading.


Hi Thomas,

If you use #+EXPORT_SELECT_TAGS then only headings with that tag are
exported (if any headings contain that tag the rest are removed).  I
don't think you can use both EXPORT_EXCLUDE_TAGS and  
EXPORT_SELECT_TAGS

in the same org-mode document in a meaningful way.

Normally you exclude stuff with only EXPORT_EXCLUDE_TAGS or you  
include

stuff only with EXPORT_SELECT_TAGS.

,
| org-export-select-tags is a variable defined in `org- 
exp.el'. |
| Its value is  
(export)   |
| 
   |
|  
Documentation 
:|
| Tags that select a tree for  
export.   |
| If any such tag is found in a buffer, all trees that do not carry  
one |
| of these tags will be deleted before  
export.  |
| Inside trees that are selected like this, you can still deselect  
a|
| subtree by tagging it with one of the `org-export-exclude- 
tags'.  |

`

,
| org-export-exclude-tags is a variable defined in `org-exp.el'.
| Its value is (noexport)
|
| Documentation:
| Tags that exclude a tree from export.
| All trees carrying any of these tags will be excluded from export.
| This is without condition, so even subtrees inside that carry one  
of the

| `org-export-select-tags' will be removed.
`

Regards,
Bernt




Thanks Bernt,

I guess the bug was that I was able to mix these before with good  
effect.  I'm happy to report that bug is fixed now. :)


All the best,
Tom




I found this behavior when I tried unsuccessfully to export an org
file that successfully exported last on April 6th.  I don't believe
I've changed any html export settings in the meantime.


---
*  Setup
:noexport:
#+TITLE: export-tag.org
#+AUTHOR:Tom Dye
#+EMAIL: t...@tsdye2.com
#+DATE:  2010-05-10 Mon
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE:  en
#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t :t
#+OPTIONS:   TeX:t LaTeX:nil skip:nil d:nil todo:t pri:nil
tags:not-in-
toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0  
path:http://orgmode.org/org-info.js

#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:
#+LINK_HOME:

*  First
:export:
Some First text

* Second
Some Second text
---

I tried to run git bisect, but if I go far enough back in time then I
run up against this:
eval-buffer: Symbol's function definition is void: org-overlay-put

This leaves me way over my head, but I did want you to know that I
worked a bit to isolate the problem and did my best to track it down
without success.

All the best,
Tom

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



___
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] Poll: Who is using these commands

2010-05-10 Thread Scott Randby

On 05/10/2010 02:33 AM, Carsten Dominik wrote:


On May 9, 2010, at 12:03 AM, Scott Randby wrote:


On 05/08/2010 04:22 PM, Friedrich Delgado Friedrichs wrote:

Hi!
Carsten Dominik schrieb:

I am wondering:

How many of your are using these keys

C-c C-f
C-c C-b
C-c C-n
C-c C-p


Never. I always use the speed commands since they became available.


The problem I have with speed commands is that, according to the
manual, they only work when the cursor is at the beginning of a
headline. I need commands that work when the cursor is anywhere on
the headline.


How about if C-M-a went back to the beginning of the heading and then
you use speed commands? Would that be an alternative, or is that one
command to much?


I don't really care for this alternative as it make motion a 2 command process.

Scott



- Carsten



Scott Randby




for navigation through the outline? These are first class keys,
and I would have good uses for these keys if most people don't
actually use them.

Another question:

C-c C-v currently make the TODO sparse tree.


I use that one quite often. If you decided to use it for something
else, I would override it in my config.





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

2010-05-10 Thread Manish
From where can I get the latest version of org-taskjuggler?

Thanks
-- 
Manish

On Tue, Apr 20, 2010 at 1:39 PM, Christian Egli christian.e...@sbszh.ch wrote:
 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


___
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] Poll: Who is using these commands

2010-05-10 Thread Russell Adams
On Mon, May 10, 2010 at 08:33:16AM +0200, Carsten Dominik wrote:
 How about if C-M-a went back to the beginning of the heading and then  
 you use speed commands?  Would that be an alternative, or is that one  
 command to much?

 - Carsten

Carsten,

That's a good compromise. I never minded the originals being two-keys,
and really only the FIRST in a series will have two keypresses.

Thanks.

--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

___
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-export-as-html: Does not increment index values

2010-05-10 Thread chandan

Hi all,
   Consider the following org file:

* list
 1. First item.
#+BEGIN_SRC txt
Some text.
#+END_SRC
 2. Second item.
#+BEGIN_SRC txt
Some more text.
#+END_SRC

Exporting an org file with the above listed contents generates an HTML 
page with non-incrementing indicies for First item and Second item. 
Both have 1 as their indicies.


I am using GNU/Emacs 23.2.

Regards,
chandan 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


Re: [Orgmode] Literate programming

2010-05-10 Thread Jan Böcker
 Ivanov Dmitry usr...@gmail.com writes:
 
 The tree buffer seems an ideal tool for this project.

What is this tree buffer you speak of?
Are you telling me that I can already use Org to view the outline
Leo-style, with the outline structure (folded to the content startup
visibility) in one window and an indirect buffer narrowed to the body
text of the current headline in a second window?

That would be wonderful! (If not, I would definitely be interested in
creating such a feature, but I have no idea where to start.)

I had used Leo at the end of high school to make an overview of all the
topics I needed to know for the exams. This particular feature has been
an entry on my ideas to implement if I ever have infinite time list
for some time.

Regards,
Jan

___
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