Re: [Orgmode] problem with org-export-latex-todo-keyword-markup [7.4]

2011-02-16 Thread Michael Bach
On 02/16/2011 01:32 PM, Bastien wrote:
> Hi Phaebz,
>
> phaebz  writes:
>
>> I defined it as an associative list, as described in the manual:
>> org-export-latex-todo-keyword-markup evaluates to (("new"
>> . "\\new{%s}") ("done" . "\\done{%s}") ("todo" . "\\todo{%s}"))
> Use "NEW" "TODO" "DONE" instead of "new" "todo" "done", the search 
> for this is case-sensitive.
>
> HTH,
>

Thanks for the notice Bastien, I just read your message today, delivery was not 
really working it seems. See also my own reply to this...

cheers,
Michael

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


Re: [Orgmode] latex table export not centered

2011-02-16 Thread Andreas Leha
Thanks for looking into this.  Yes,  for me this issue still persists.

Org at commit 0f01b84... Small bug fix to org-ascii-level-start (again)
(as later 'htmlp' removal breaks latex export for me)

GNU emacs  23.2.1 (debian squeeze)

Regards,
Andreas


Am 11.02.2011 13:45, schrieb Bastien:
> Hi Andreas,
>
> Andreas Leha  writes:
>
>   
>> #+BIND: org-export-latex-tables-centered nil
>> #+TITLE:   Test Centered Tables
>>
>> * Test
>>   | col1 | col2 | col3 |
>>   |--+--+--|
>>   |1 |2 |3 |
>>
>>
>> But this does not work.  The table stays centered.
>> 
> I just tested this: the table is left aligned here (latest Org, GNU
> Emacs 24.0.50.1).
>
> Are you still having this issue?  What version of Org/Emacs?
>
>   

<>

smime.p7s
Description: S/MIME Cryptographic Signature
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: ical2org (better timezone recognition and better default for max_age option)

2011-02-16 Thread Arun Persaud
Hi

>>[option to ignore entries older than N days]
> Very useful option!  Thanks.
> 
> I would be tempted to make the default ignore any old events.  Any
> thoughts on this?

I changed it to ignore everything older than one week.

I also updated the timezone parsing a bit after reading part of section
4.3.5 of RFC2445 (ical). There seem to be 3 ways to specify a timezone

date+T+time   floating timezone=> assume local time
date+T+timeZ  always UTC
TZID=;date+T+time   time given in timezone

ical2org should now parse the first two correctly. Let me know in case
this doesn't work correctly. If I have more time, I'll play with the
third timezone spec too...

cheers

Arun

___
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] Announce first mockup for org-server

2011-02-16 Thread Torsten Wagner

Dear all,

based on the discussions of a google calendar sync
http://thread.gmane.org/gmane.emacs.orgmode/36517/focus=36754
and about Taskwarrior a command line org-mode like program
http://thread.gmane.org/gmane.emacs.orgmode/37020/focus=37076

a discussion started why not running emacs as an org-mode server and to 
define a command interface to directly communicate with org-mode.



A well defined API for such an server would have several benefits:

* External programs like orgmobile for Android and Iphone would not need 
to emulate well tested org-mode functions. They could simply order the 
server to execute them and send back the results (e.g. compile agenda).


* Mobile devices might save resources and battery power by not running 
emacs natively. This would work on devices without emacs.


* People could design different user-interfaces for different needs 
(e.g., mobile, web, widgets, command line) still using a full featured 
regular org-mode.


* Integration with other programs might be much easier (third party 
programs e.g., Taskwarrior just need to follow the API to communicate 
with org-mode)


* A server approach does not exclude running emacs natively on the 
device, instead of a full server address, 'localhost' could be used. 
Thus, it would be very easy to get a "offline" version for devices which 
can run emacs natively. Furthermore, emacs itself would be still one 
(the main) interface to org-mode.


* This is much different usage scenario then the org-export options, 
which basically transform org-mode files into another format. org-server 
should help to interactively communicate with org-mode.



Thinking about this for some time, I looked around and found the 
possibility of emacs (starting from emacs 22) to operate as server 
listing to certain ports.
I started a bit testing to see how server-communication in emacs looks 
like and ended up with a very very basic communication.
Even totally practically unusable (there is no functionality yet)  I 
thought that even at this early state it does not make much sense to 
keep it away from you. An API definition to communicate requires deep 
integration into org-mode and well thoughts how such a API might look 
like. This is something which requires intensive discussion and a good 
overview of org-mode internals (which I don't have).


Please find attached a first mock-up which demonstrates org-server 
communication.


Usage:
1. Copy org-server.el somewhere
2. Open in emacs and evaluate the buffer (or use another method to 
evaluate the file)

3. M-x org-server-start starts the org-server
4. Use a command line or a GUI based telnet client
5. Connect to localhost (127.0.0.1) and port 8051 (you can change the 
port in org-server.el if you need to use a different port)

6. Type something, press enter
7. To stop the server type M-x org-server-stop

If the command is recognized to be one of those
org-next-agenda org-search-header org-tag-search org-add-note 
org-add-tag org-remove-tag org-todo-sets

(all just made up without real functionality)
a message will be printed. If not the command will be rejected with a 
error message.


Again there is no function yet. It should simply demonstrate the 
possibility to receive and send commands to org-mode via a network 
connection. 99% of the code is copied from

http://www.emacswiki.org/emacs/EmacsEchoServer
I would like to express my thanks to the original author.

I would like to hear your ideas or even better your reports by playing 
around with it. I still have not much of an idea of elisp and org-mode 
internals and if many people here like the idea, maybe someone more 
capable would like to join or takeover to make all this happen...


All the best

With best regards

Torsten

;;; org-server.el --- A server mode for Emacs Org-mode

;; Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
;;
;; Author: Torsten Wagner 
;; Keywords: server, mobile, web, network
;; Homepage: http://orgmode.org
;; Version: 7.4
;;
;; This file is part of GNU Emacs.
;;
;; GNU Emacs is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs.  If not, see .

;;; Commentary:

;; 2002/02/17 NO RELEASE YET  This is just a very early mockup (even not 
alpha)
;;with no functionallity purely created for discussions on orgmode
;;mailing list. The code is 99% plain copied from 
;;http://www.emacswiki.org/em

[Orgmode] org-caption-shortn

2011-02-16 Thread Thomas S. Dye

Aloha all,

I stumbled across code in org-exp.el and org-latex.el that appears to  
my untrained eye to be designed to parse the optional argument to the  
LaTeX \caption command.


This bit in org-exp.el appears to parse out the optional command:

  (when (string-match "\\[\\(.*\\)\\]{\\(.*\\)}" cap)
(setq shortn (match-string 1 cap)
  cap (match-string 2 cap)))

Then it is easy to find code in org-latex.el by searching for 'shortn'  
that looks like it writes out the full command to the .tex file.


I can't find documentation for this, though.  It looks (to my  
untrained eye) like it should be possible to write something like:


#+CAPTION: [short]{long}

and get

\caption[short]{long} in the .tex file.

But this doesn't work for me.  The [short] part doesn't make it into  
the .tex file.


I don't know enough lisp to figure this out in a reasonable amount of  
time, so have come to the list to ask if anyone familiar with the code  
knows whether this should work or not, and if it should work, how to  
markup the org file.


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


Re: [Orgmode] Insert ampersand in HTML export?

2011-02-16 Thread Bastien
Hi uriel,

Uriel Avalos  writes:

> #+BIND: org-export-html-protect-char-alist '("&" . "&")
>
> That's telling me I'm using the "wrong type argument: listp, quote"

It must be this:

#+BIND: org-export-html-protect-char-alist '(("&" . "&"))

The "-alist" suffix means it should be an alist -- see the Info node for
Association lists in the Elisp manual.

-- 
 Bastien

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


Re: [Orgmode] Insert ampersand in HTML export?

2011-02-16 Thread Uriel Avalos
On Mon, 14 Feb 2011 01:04:16 +0100
Bastien  wrote:

> Uriel Avalos  writes:
> 
> > So this new variable is in the bleeding edge version of org-mode? 
> 
> Yes it is.
> 
> > Will download and test. Thanks
> 
> Thanks,
> 
> -- 
>  Bastien
> 
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Just installed the latest bleeding edge version of org.

How do I set that variable using BIND?

Recall, the goal is to export & to itself:

#+BIND: org-export-html-protect-char-alist '("&" . "&")

That's telling me I'm using the "wrong type argument: listp, quote"

___
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] graphics in eval vs graphics in export

2011-02-16 Thread Andreas Leha
Hi all,

I am having trouble with LaTeX export (again).  In my sample code, the
source block below the headline 'Plot' produces a correct pdf, when
evaluated (C-c C-c), but when exported, the pdf is broken.

(I am on commit 0f01b842bb2b6fada2579d0278fc53422e8ea62f since the
removal of htmlp prevents me from exporting)

Regards,
Andreas

PS: my sample code:

* Test

  #+srcname: plot_test
  #+begin_src R :session :exports code :eval never :noweb tangle :var
chromosome
plot(x=rnorm(10),
 y=rnorm(10))
  #+end_src

* Plot
  Produces fine pdf, when evaluated, but *not* when exported
  #+srcname: plot_test_1
  #+begin_src R :session :noweb tangle :file test_1.pdf  :exports
results :results graphics :width 8 :height 4
test <- 1
  
<>
  #+end_src

  #+results: plot_test_1
  [[file:test_1.pdf]]



** intern   :noexport:
  #+srcname: plot_one_test
  #+begin_src R :session :noweb tangle :file test.pdf
test <- test + 1

<>
  #+end_src






smime.p7s
Description: S/MIME Cryptographic Signature
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Context-sensitive word count in org mode (elisp)

2011-02-16 Thread Paul Sexton
That looks really good. My suggestion would be to modify it so that
'wc-count' can be redefined on a per-major-mode or per-buffer basis,
eg via a buffer-local variable 'wc-count-function'.

Then my org-word-count function could be slotted in fairly easily - 
I would just have to modify it so that it *returns* the count, rather
than reporting it.

Paul





___
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: Context-sensitive word count in org mode (elisp)

2011-02-16 Thread Paul Sexton
Thanks for all the suggestions. Here is version 2.

Improvements:
- ignores source code blocks
- ignores tags and TODO keywords in headings
- ignores footnotes by default (option to force counting them)
- skips any sections tagged as not for export
- option to count words in latex macro arguments (they are ignored
  by default)

I would still like to count hyperlink descriptions but am not sure
how -- is there a function that fetches the description of the hyperlink
at point?

Paul

---

(defun org-word-count (beg end
   &optional count-latex-macro-args?
   count-footnotes?)
  "Report the number of words in the Org mode buffer or selected region.
Ignores:
- comments
- tables
- source code blocks (#+BEGIN_SRC ... #+END_SRC, and inline blocks)
- hyperlinks
- tags, priorities, and TODO keywords in headers
- sections tagged as 'not for export'.

The text of footnote definitions is ignored, unless the optional argument
COUNT-FOOTNOTES? is non-nil.

If the optional argument COUNT-LATEX-MACRO-ARGS? is non-nil, the word count
includes LaTeX macro arguments (the material between {curly braces}).
Otherwise, and by default, every LaTeX macro counts as 1 word regardless
of its arguments."
  (interactive "r")
  (unless mark-active
(setf beg (point-min)
  end (point-max)))
  (let ((wc 0)
(latex-macro-regexp "[A-Za-z]+\\(\\[[^]]*\\]\\|\\){\\([^}]*\\)}"))
(save-excursion
  (goto-char beg)
  (while (< (point) end)
(re-search-forward "\\w+\\W*")
(cond
 ;; Ignore comments.
 ((or (org-in-commented-line) (org-at-table-p))
  nil)
 ;; Ignore hyperlinks.
 ;; TODO need to count text of the link's description.
 ((looking-at org-any-link-re)
  (goto-char (match-end 0)))
 ;; Ignore source code blocks.
 ((org-in-regexps-block-p "^#\\+BEGIN_SRC\\W" "^#\\+END_SRC\\W")
  nil)
 ;; Ignore inline source blocks, counting them as 1 word.
 ((save-excursion
(backward-char)
(looking-at org-babel-inline-src-block-regexp))
  (goto-char (match-end 0))
  (setf wc (+ 2 wc)))
 ;; Count latex macros as 1 word, ignoring their arguments.
 ((save-excursion
(backward-char)
(looking-at latex-macro-regexp))
  (goto-char (if count-latex-macro-args?
 (match-beginning 2)
   (match-end 0)))
  (setf wc (+ 2 wc)))
 ;; Ignore footnotes.
 ((and (not count-footnotes?)
   (or (org-footnote-at-definition-p)
   (org-footnote-at-reference-p)))
  nil)
 (t
  (let ((contexts (org-context)))
(cond
 ;; Ignore tags and TODO keywords, etc.
 ((or (assoc :todo-keyword contexts)
  (assoc :priority contexts)
  (assoc :keyword contexts)
  (assoc :checkbox contexts))
  nil)
 ;; Ignore sections marked with tags that are
 ;; excluded from export.
 ((assoc :tags contexts)
  (if (intersection (org-get-tags-at) org-export-exclude-tags
:test 'equal)
  (org-forward-same-level 1)
nil))
 (t
  (incf wc
(message (format "%d words in %s." wc
 (if mark-active "region" "buffer")





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


[Orgmode] Re: [PATCH] Markup on same line as text

2011-02-16 Thread Roland Kaufmann

Your patch may work in this particular case, but the idea behind
htmlize is to describe the state of the buffer.  If a property ends
after the newline, it is intended that the generated HTML reflect


The philosophical question is then: Is the newline character part of the 
syntax construct that is being fontified, or rather a "formatting code" 
that should be kept separate?


Being whitespace it (mostly) doesn't matter visually, which makes it an 
easy choice to include in tokens to preserve formatting continuity 
between lines.


However, any further line processing by other modules is complicated 
significantly if the terminator is put inside the markup.



I am not familiar with org-mode, so I will need a description of
exactly how to reproduce this bug.  Specifically I don't know how to
put a reference on the next line.


This Elisp will create/overwrite a buffer called foo.org in the /tmp 
directory containing problematic code and export it to foo.html:


(let ((filename (expand-file-name "foo.org" temporary-file-directory)))
  (switch-to-buffer (find-file-noselect filename))
  (erase-buffer)
  (insert "*
#+BEGIN_SRC emacs-lisp
(let ((x 42)) ; meaning of l.u.e.
  (print x))  ; (ref:2)
#+END_SRC")
  (save-buffer)
  (org-mode)
  (org-export-as-html nil))

--
   Roland.

___
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] Suggestions: GRASS GIS und Lilypond

2011-02-16 Thread Shelagh Manton
On Tue, 15 Feb 2011 10:59:19 +0100, Christian Moe wrote:

> Earlier thread on Lilypond:
> http://comments.gmane.org/gmane.emacs.orgmode/31324
> 

I did end up doing some work on this. I got it to the stage of creating 
the lilypond images but having some difficulties with paths etc. ie the 
file exists but not where org-babel expects to find it. So it does not 
show up in the file in a results block. 

I've been so busy, I have not visited this problem at all recently. 
Perhaps if someone is interested to help we could work on this together. 
I could put it on github. Let me know.

Shelagh

> CM
> 
> On 2/15/11 2:02 AM, Thorsten wrote:
>> Hello Babel developers,
>> just two suggestions for new languages: 1. GRASS GIS
>> As far as I know there is no grass-mode in emacs, but some expert
>> people are successful running grass processes together with R processes
>> in ESS. Since GRASS and R are natural allies, it would be great to use
>> the GRASS engine in an org-file to retrieve spatial data and then
>> analyse the data with R in the same file - would make Org a kind of
>> emacs-grassmode replacement.
>> 2. Lilypond
>> A nice to have for all the music lovers in the org community. Regards
>> Thorsten
>>
>>
>> ___ Emacs-orgmode mailing
>> list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>>
> 
> ___ Emacs-orgmode mailing
> list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode



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


[Orgmode] Feature Request: attach link type

2011-02-16 Thread Darlan Cavalcante Moreira

Hello List,

One org-mode feature that I find extremely useful is org-attach. I use it
frequently as an easy way to store files associated with a task (in fact,
any sub-tree) without worrying too much about where the files are located
(for some specific sub-trees I like to set the attach directory).

However, sometimes I need to put a link to an attached file in the text in
its sub-tree. Up to now I just used the path to the file, but that required
me to locate where the file is located in order to insert the link. This is
not a lot of work, but destroys the beauty of attached files, IMHO, and I
think some "attach link type" would be a better solution.

Using the functions already provided by org-attach I could get
#+LINK: attach elisp:(org-open-file (org-attach-expand "%s"))
However, I always have to confirm the execution of the elisp code. It would
be better if this link type was already provided in org (possible when
org-attach is loaded). Besides, org inline images should work with this
link type.


Other useful things (just random thoughts) could be:
 - Perform some operation when a file is attached, such as replacing
   white-spaces in the file-name by underscores
 - When a file is attached a link to it could be stored in the kill ring,
   in case the user want to insert it in the current text. Alternatively,
   an interactive function to insert a link to an attached file (using the
   same completions we already get for opening attached files) would also
   be very handy.

--
Darlan

___
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: Context-sensitive word count in org mode (elisp)

2011-02-16 Thread Paul Sexton
Christian Moe  christianmoe.com> writes:

> 
> Forgot to add the code.
> 
> #+begin_src emacs-lisp
>;; Adapted from code posted by Paul Sexton <2011-02-16 Wed 4:51am>
>;; - Everything now contained in one function
>;; - Will count correct number of words inside Latex macro
> 
>(defun org-word-count (beg end)
>(interactive "r")
>(unless mark-active
>  (setf beg (point-min)
> end (point-max)))
>(let ((wc 0)
>   (latex-macro-regexp "[A-Za-z]+\\(\\[[^]]*\\]\\| 
> \\){\\([^}]*\\)}"))   ; CHANGED
>  (save-excursion
>(goto-char beg)
>(while (< (point) end)
>  (re-search-forward "\\w+\\W*")
>  (cond
>   ((or (org-in-commented-line) (org-at-table-p)) ; CHANGED
>nil)
>   ((looking-at org-any-link-re)
>(goto-char (match-end 0)))
>   ((save-excursion
>  (backward-char)
>  (looking-at latex-macro-regexp))
>(goto-char (match-beginning 2))  ; CHANGED
>(setf wc (+ 2 wc)))
>   (t
>(incf wc)
>  (message (format "%d words in %s." wc
>   (if mark-active "region" "buffer")
> #+end_src
> 

Thanks, I wasn't aware of those pre-existing functions.

I don't agree with changing '(match-end 0)' to '(match-beginning 2)'
however. For most latex macros, I don't want to count the words inside
the macro's arguments. For example, I don't want the next of footnotes
to be included in the word count. However others differ, and there will
always be cases where one DOES want to count the macro arguments - so maybe
org-word-count should do this optionally.

Paul




___
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: Can I input multiline in a cell?

2011-02-16 Thread Nick Dokos
brian powell  wrote:

> My suggestion then (after all that "brainstorming crap") boils down to this 
> alone:
> 
> Maybe put in 1 key in table mode that puts a dummy line in, maybe something 
> like this:
> 
> |
> 
> --it puts in the same number of cell separators and empty cells on empty line 
> as are on the previous line---or you could just do:
> 

Doesn't M-S- do that? In the context of a table, it ends up
calling the function org-table-insert-row. If you want a single
key (e.g. a function key) to do that, you can bind it directly
to this function. Of course, simulating multi-cell input like this
breaks the table model and might cause difficulties in other places,
but you can always try it and see how far you can push it.

Nick



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


Re: [Orgmode] Re: Can I input multiline in a cell?

2011-02-16 Thread brian powell
Forget all previous emails from me on this thread; I thought there was a
simple way to do this in OrgMode--will this work for you Wang?:

All you have to do is this I believe (not sure about the Org publish/TeX
output though--tell me if it works out for you):

Ca  | 

and then type in your multi-line text--and maybe  a few times--this
took about 15 seconds:

|---+-+-+-+-+-+-+---|
| * | 15B |   0 |   0 |   0 |   0 |   0 | 0 |
|---+-+-+-+-+-+-+---|
| * | 16W |   0 |   0 |   0 |   0 |   0 | 0 |
|   | | | | | | | multi |
|   | | | | | | | line  |
|   | | | | | | | text  |
|---+-+-+-+-+-+-+---|
| * | 17B |   0 |   0 |   0 |   0 |   0 | 0 |
|---+-+-+-+-+-+-+---|
#+TBLFM:
___
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: Can I input multiline in a cell?

2011-02-16 Thread brian powell
Bastien: I agree with you, every time I get emails from other users, they
are "jagged" and "unclear"--and; like you typed they are unreadable/unclear
(the columns aren't "covered down")---maybe its the font that I use?

I'll research the different fonts--I think "Courier" font may keep things
clearer.

Here is a test:

|---+-+-+-+-+-+-+---+-+-+---|
| * | 11B | 21W | 31B | 41W | 51B | 61W |   71B | 81W | 91B
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 12W | /u/0802.jpg |   0 |   0 | [[file:j]]  |   0 | multi |
0 |   * |   |
|   | | | | | | |  line | |
|   |
|   | | | | | | |  text | |
|   |
|   | | | | | | |  text | |
|   |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 13B |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 14W |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 15B |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 16W |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 17B |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 18W |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 19B |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 18W |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 17B |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 16W |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 15B |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 14W |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 13B |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 12W |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 11B |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
#+TBLFM:

---yes, "courier" font is what I used to use--it aligns tables better.

I'll use "courier" font; and, I suggest others use it--when dealing
with/expressing table problems to others--many fonts don't "cover down"
columns.

Thanks again Bastien.




On Wed, Feb 16, 2011 at 1:43 PM, Bastien wrote:

> Hi Brian,
>
> brian powell  writes:
>
> > Howsabout some code to put in a "dummy row" in an OrgMode Table--this
> > would facilitate inputting multi-line-text--i.e. a key in OrgMode/
> > TableMode/CalcMode
> > would insert exactly a line like this in the table below:
>
> Please use plain text emails...  those emails are completely unreadable
> for me.  Especially crucial when talking about tables and formats.
>
> Thanks!
>
> --
>  Bastien
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Can I input multiline in a cell?

2011-02-16 Thread brian powell
They were plain text emails?

(Believe me, I understand what you mean/the problems people cause when they
paste things in the buffer that aren't plain text--that is one reason to use
OrgMode.)

In any case, sorry about that--I just copied-and-pasted my tests--right from
the OrgTable/file?

My suggestion then (after all that "brainstorming crap") boils down to this
alone:

Maybe put in 1 key in table mode that puts a dummy line in, maybe something
like this:

|

--it puts in the same number of cell separators and empty cells on empty
line as are on the previous line---or you could just do:

Cu 8 |  

And then it spreads it out/covers-down the columns--or the user then just
taps 

(OrgMode will then format the table for them)

And then the OrgMode user would type in the multi-line-text column in the
respective column-cells.

Or I suggest a keyboard-macro (to put in the "dummy rows") for this too;
thats what I'll do--I'll put it in my .emacs.


Thanks Bastien and Wang.



On Wed, Feb 16, 2011 at 1:43 PM, Bastien wrote:

> Hi Brian,
>
> brian powell  writes:
>
> > Howsabout some code to put in a "dummy row" in an OrgMode Table--this
> > would facilitate inputting multi-line-text--i.e. a key in OrgMode/
> > TableMode/CalcMode
> > would insert exactly a line like this in the table below:
>
> Please use plain text emails...  those emails are completely unreadable
> for me.  Especially crucial when talking about tables and formats.
>
> Thanks!
>
> --
>  Bastien
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Context-sensitive word count in org mode (elisp)

2011-02-16 Thread Benjamin Beckwith
> Nice.  How hard would it be to make it org-aware (i.e. don't count
> syntactic elements in an org buffer)?

I use the how-many function to get the search.  I'm not sure off the
top of my head, but there would be some rework required to make it
work properly and ignore those items.

I'll gladly accept any ideas or patches into my code to make it org-friendly.

-Ben

___
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: Can I input multiline in a cell?

2011-02-16 Thread Bastien
Hi Brian,

brian powell  writes:

> Howsabout some code to put in a "dummy row" in an OrgMode Table--this
> would facilitate inputting multi-line-text--i.e. a key in OrgMode/
> TableMode/CalcMode 
> would insert exactly a line like this in the table below:

Please use plain text emails...  those emails are completely unreadable
for me.  Especially crucial when talking about tables and formats.

Thanks!

-- 
 Bastien

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


Re: [Orgmode] Context-sensitive word count in org mode (elisp)

2011-02-16 Thread Samuel Wales
I am enjoying this discussion.  Some ideas:

  1) ignore :noexport and anything else that prevents export (ideally
including whether the user has set certain todo kw to prevent export,
although that is not currently a feature in org, so would be too
complicated now)
  2) handle word counts just like c-c c-x c-d -- then you can find out
what sections have the most words

Samuel

-- 
The Kafka Pandemic:
http://thekafkapandemic.blogspot.com/2010/12/welcome-to-kafka-pandemic-two-forces_9182.html
I support the Whittemore-Peterson Institute (WPI)
===
I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV paper.

___
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: A mail client that is org-mode compatible

2011-02-16 Thread Dan Davison
Charles Philip Chan  writes:

> "Eric Schulte"  writes:
>
>> I'm also using the development version of gnus, but haven't noticed
>> the searching features, could you point these out, a key binding or
>> command name?
>
> Put the cursor on the group you want to search in the Group buffer and
> hit:
>
> ,
> | GG
> `

Yes, that's what I meant.

Dan

>
> Charles

___
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: Can I input multiline in a cell?

2011-02-16 Thread brian powell
Howsabout some code to put in a "dummy row" in an OrgMode Table--this would
facilitate inputting multi-line-text--i.e. a key in
OrgMode/TableMode/CalcMode
would insert exactly a line like this in the table below:
|   | | | | | | |   | | |
|
---and thats it--you're done---then you just type in the text in the column
cells you want the multiline text.

On Wed, Feb 16, 2011 at 12:48 PM, brian powell wrote:

> This worked too:
> ...
>
> |---+-+-+-+-+-+-+---+-+-+---|
> | * | 11B | 21W | 31B | 41W | 51B | 61W |   71B | 81W | 91B
> | * |
>
> |---+-+-+-+-+-+-+---+-+-+---|
> | * | 12W | /u/0802.jpg |   0 |   0 | [[file:/u/d.j]] |   0 | multi |   0 |
>   * |   |
> |   | | | | | | |  line | |
> |   |
> |   | | | | | | |  text | |
> |   |
>
> |---+-+-+-+-+-+-+---+-+-+---|
> | * | 13B |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
> | * |
>
> |---+-+-+-+-+-+-+---+-+-+---|
> ...
>
> ---to do this: I put "dummy rows" around the "12W" row--"dummy rows" have
> all the cells empty--and then just deleted the "separator rows"---took less
> than a minute.
>
> A little Ck Cy magic---and good old  key.
>
> As far as the TeX ideas; making it display as a multiline cell in
> export--thats a great idea too, I've made o-ton-o LaTeX tables--once you do
> this process Bastien suggests, you could probably write a simple program to
> munge the .tex file and then reuse the same method over and over.  TeX is
> great at displaying multiline text---its the best for that---regardless of
> the font.
>
>
> On Wed, Feb 16, 2011 at 4:42 AM, Bastien wrote:
>
>> Hi Wang,
>>
>> Wang Coeus  writes:
>>
>> > Will org consider to support this in future?
>>
>> There is no plan for this right now.
>>
>> But what about cheating a bit and play with the _display_ of the table?
>>
>> | Header  | Header |
>> |-+|
>> | I want to   ||
>> | write stuff ||
>> | on several  ||
>> | lines   ||
>>
>> You should be able to export this table to HTML or LaTeX and simulate a
>> multiline cell on the first column.  Just a workaround, but could do in
>> some situations.
>>
>> Also, note that you can shrink the cell length by adding :
>>
>> |---+--|   |---+|
>> |   |  |   |   | <6>|
>> | 1 | one  |   | 1 | one|
>> | 2 | two  | \ | 2 | two|
>> | 3 | This is a long chunk of text | / | 3 | This=> |
>> | 4 | four |   | 4 | four   |
>> |---+--|   |---+|
>>
>> which helps having long text in a single-line cell.
>>
>> HTH,
>>
>> --
>>  Bastien
>>
>> ___
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>
>
___
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: Can I input multiline in a cell?

2011-02-16 Thread brian powell
This worked too:
...
|---+-+-+-+-+-+-+---+-+-+---|
| * | 11B | 21W | 31B | 41W | 51B | 61W |   71B | 81W | 91B
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 12W | /u/0802.jpg |   0 |   0 | [[file:/u/d.j]] |   0 | multi |   0 |
  * |   |
|   | | | | | | |  line | |
|   |
|   | | | | | | |  text | |
|   |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 13B |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
...

---to do this: I put "dummy rows" around the "12W" row--"dummy rows" have
all the cells empty--and then just deleted the "separator rows"---took less
than a minute.

A little Ck Cy magic---and good old  key.

As far as the TeX ideas; making it display as a multiline cell in
export--thats a great idea too, I've made o-ton-o LaTeX tables--once you do
this process Bastien suggests, you could probably write a simple program to
munge the .tex file and then reuse the same method over and over.  TeX is
great at displaying multiline text---its the best for that---regardless of
the font.


On Wed, Feb 16, 2011 at 4:42 AM, Bastien wrote:

> Hi Wang,
>
> Wang Coeus  writes:
>
> > Will org consider to support this in future?
>
> There is no plan for this right now.
>
> But what about cheating a bit and play with the _display_ of the table?
>
> | Header  | Header |
> |-+|
> | I want to   ||
> | write stuff ||
> | on several  ||
> | lines   ||
>
> You should be able to export this table to HTML or LaTeX and simulate a
> multiline cell on the first column.  Just a workaround, but could do in
> some situations.
>
> Also, note that you can shrink the cell length by adding :
>
> |---+--|   |---+|
> |   |  |   |   | <6>|
> | 1 | one  |   | 1 | one|
> | 2 | two  | \ | 2 | two|
> | 3 | This is a long chunk of text | / | 3 | This=> |
> | 4 | four |   | 4 | four   |
> |---+--|   |---+|
>
> which helps having long text in a single-line cell.
>
> HTH,
>
> --
>  Bastien
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
___
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: A mail client that is org-mode compatible

2011-02-16 Thread Charles Philip Chan
"Eric Schulte"  writes:

> I'm also using the development version of gnus, but haven't noticed
> the searching features, could you point these out, a key binding or
> command name?

Put the cursor on the group you want to search in the Group buffer and
hit:

,
| GG
`

Charles

-- 
Microsoft is not the answer.
Microsoft is the question.
NO (or Linux) is the answer.
(Taken from a .signature from someone from the UK, source unknown)


pgp9zlScv4NK1.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] Publishing - Sitemap problem

2011-02-16 Thread Bastien
Hi Jonathan,

Jonathan BISSON  writes:

> The sitemap generation when publishing a project does not take into
> account a title change in a page.
>
> I need to remove the org cache files (~/.org-timestamps/org-*) to get it
> updated.
>
> Is there a way to correct this behaviour (bug) ?

Fixed, thanks.

-- 
 Bastien

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


Re: [Orgmode] Problems with buffer-local variables

2011-02-16 Thread Bastien
Hi Dan,

Dan Davison  writes:

> Here's a patch. It clones into the pre-export buffer all buffer-local
> variables that match a regexp (currently "^\\(org-\\|orgtbl-\\)"). We
> might want to watch out for unanticipated side effects.

I've just tested and applied this - uesful, thanks!

-- 
 Bastien

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


Re: [Orgmode] problem with org-export-latex-todo-keyword-markup [7.4]

2011-02-16 Thread Bastien
Hi Phaebz,

phaebz  writes:

> I defined it as an associative list, as described in the manual:
> org-export-latex-todo-keyword-markup evaluates to (("new"
> . "\\new{%s}") ("done" . "\\done{%s}") ("todo" . "\\todo{%s}"))

Use "NEW" "TODO" "DONE" instead of "new" "todo" "done", the search 
for this is case-sensitive.

HTH,

-- 
 Bastien

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


Re: [Orgmode] [BUG] htmlp and latexp

2011-02-16 Thread Bastien
Hi Dan,

Dan Davison  writes:

> Commit ed6d6760268 removed variables htmlp and latexp from
> `org-export-preprocess-string'. Nothing wrong with that, but I think it
> has broken export for those using org-special-blocks, which contains
>
> #+begin_src emacs-lisp
> (defvar htmlp)
> (defvar latexp)
> (defun org-special-blocks-make-special-cookies ()
>   "Adds special cookies when #+begin_foo and #+end_foo tokens are
> seen.  This is run after a few special cases are taken care of."
>   (when (or htmlp latexp)
> (goto-char (point-min))
> ...
> #+end_src

Fixed thanks.  

> IIuc htmlp and latexp occur occasionally in org code as somewhat
> unofficial ways to test "am I in the middle of export?".

Now there is a uniform and official (!) way of getting the backend the
user is currently exporting to: 

  (eq backend 'html)

...

> They also occur in org-exp-blocks, but in deprecated code, so not a
> priority to fix.

I fixed them there too.

Thanks for reporting this!

-- 
 Bastien

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


Re: [Orgmode] Re: Can I input multiline in a cell?

2011-02-16 Thread Bastien
Hi Wang,

Wang Coeus  writes:

> Will org consider to support this in future? 

There is no plan for this right now.

But what about cheating a bit and play with the _display_ of the table?

| Header  | Header |
|-+|
| I want to   ||
| write stuff ||
| on several  ||
| lines   ||

You should be able to export this table to HTML or LaTeX and simulate a
multiline cell on the first column.  Just a workaround, but could do in
some situations.

Also, note that you can shrink the cell length by adding :

 |---+--|   |---+|
 |   |  |   |   | <6>|
 | 1 | one  |   | 1 | one|
 | 2 | two  | \ | 2 | two|
 | 3 | This is a long chunk of text | / | 3 | This=> |
 | 4 | four |   | 4 | four   |
 |---+--|   |---+|

which helps having long text in a single-line cell.

HTH,

-- 
 Bastien

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


Re: [Orgmode] Can I input multiline in a cell?

2011-02-16 Thread brian powell
These intersting work-around-hacks worked for me:

[[file:/blahfilewithyourmultilinetextinit.txt]] ---put this in a "org-table
cell"

and/or

put a string like:

/blahjpegabsolutepath/blah.jpeg  ---where the jpeg contains a jpeg of your
text then do Mx iimage-mode

--just wild ideas--that I want @you@ to try!

--I like it: when I click  it quickly evens up the columns
--could have extremely short filenames--with the multiline strings in
them--these worked fine for me--YMMV:

|---+-+-+-+-+-+-+-+-+-+---|
|   | | | | | | | | | |
  |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 11B | 21W | 31B | 41W | 51B | 61W | 71B | 81W | 91B |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 12W | /u/0802.jpg |   0 |   0 | [[file:/u/d.j]] |   0 |   0 |   0 |
* |   |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 13B |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 14W |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 15B |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 16W |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 17B |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 18W |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 19B |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 18W |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 17B |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 16W |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 15B |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 14W |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 13B |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 12W |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 11B |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
#+TBLFM:


---I was playing around with making an OrgModeChess game BTW.

--so the file /u/d.j has the multiline text in it; and, /u/0802.jpg has the
multiline text in it--the jpeg is then toggle-viewed with "Mx iimage-mode"
---inline-image-mode

On Tue, Feb 15, 2011 at 4:10 PM, Wang Coeus  wrote:

> Hi all,
> I am using org-mode for some note, there is a table and I need to input
> a lot text in one cell, is there possible that I input multiline and
> output also show as multiline?
> --
> Coeus
> In the middle of every difficulty lies opportunity.
>-- Albert Einstein
>
>
> ___
> 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] Org-capture and ECB

2011-02-16 Thread Alain Clément
Thank you Konrad for your feedback on this. I'll then try to isolate my
configuration issue and I'll keep you informed.
- Alain

2011/2/16 Konrad Hinsen 

> On 16 Feb, 2011, at 17:25 , Alain Clément wrote:
>
> > I see no way to reproduce this error without (installing and) activating
> ECB. Actually, as soon as I desactivate ECB, org-capture works seamlessly
> with my configuration.
>
> I use both org-mode and ECB, but I didn't notice any problem with
> org-capture until now. I'd be interested in reproducing your problem in
> order to help with a solution.
>
> Konrad.
>
>
>


-- 



Alain Clément
Dr ès sc. mathématiques

Université de Lausanne
Quartier UNIL-Centre
Bâtiment Unicentre
Bureau 339
CH-1015 Lausanne

T. +41 21 692 20 36 (direct)
T. +41 21 692 20 60 (secrétariat)

alain.clem...@unil.ch
___
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: A mail client that is org-mode compatible

2011-02-16 Thread Eric Schulte
Dan Davison  writes:

> Mohamed HIBTI  writes:
>
>> Hi every one,
>> I would like to move to an emacs mail client that may be org-mode and MIME  
>> compatible. Have you any idea ? 
>

I would like to second gnus, I've been using it for a couple of years
now and have been *very* happy with it.

>
> gnus is an obvious candidate. It can be a bit of a steep learning curve
> initially. I use it to interact with two different gmail accounts via
> imap, as well as a few nntp groups, like this one. I'm finding the
> development version of gnus a pleasure to use for this: it is fast, and
> there's a very nice search facility both for imap and for nntp
> groups. (E.g. I used to find it hard to reply in an old thread, but not
> any longer)
>

I'm also using the development version of gnus, but haven't noticed the
searching features, could you point these out, a key binding or command
name?

>
> As for MIME, do you know the org-mime-* functions, contributed by Eric
> Schulte? They work very nicely; I'm looking forward to finding some
> spare time to work out how best to fit them into my day-to-day emailing.
>

Org-mime can be used separate from any particular email client (as long
as Emacs know your email address).  Try loading contrib/org-mime.el and
then calling `org-mime-subtree' from within a subtree of an Org-mode
buffer (you can set email headers with MAIL_TO, MAIL_CC, etc...).  Also,
from within an email composition buffer you can select a region of text
in Org-mode markup and then call org-mime-htmlize, to convert the region
to an HTML mail part.

Cheers -- Eric

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


Re: [Orgmode] Re: A mail client that is org-mode compatible

2011-02-16 Thread Eric Schulte
Carl Bolduc  writes:

>> gnus is an obvious candidate. It can be a bit of a steep learning curve
>> initially. I use it to interact with two different gmail accounts via
>> imap, as well as a few nntp groups, like this one. I'm finding the
>> development version of gnus a pleasure to use for this: it is fast, and
>> there's a very nice search facility both for imap and for nntp
>> groups. (E.g. I used to find it hard to reply in an old thread, but not
>> any longer)
>
> Hi Dan,
>
> Could you share some details of your gnus implementation with GMail? I
> have been trying to setup this based on various sites and I never
> succeded.
>
> I would love to use gnus with gmail and Org-Mode.
>

A while ago I put together a set of instruction on configuring gnus with
gmail, once you know what to do it is fairly straightforward.  Please
let me know if this causes you any problems.

For using imap (probably the recommended option)
http://eschulte.github.com/emacs-starter-kit/starter-kit-gnus-imap.html

for using pop
http://eschulte.github.com/emacs-starter-kit/starter-kit-gnus-pop.html


___
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: Can I input multiline in a cell?

2011-02-16 Thread Eric Schulte
suvayu ali  writes:

> On Tue, Feb 15, 2011 at 10:06 PM, Wang Coeus  wrote:
>> Will org consider to support this in future? I just think org table is
>> more convenient than table.el. Thanks a lot for the help.
>
> As far as I know, its not likely. To my understanding, things like
> table formulae and some of the export functions have trouble dealing
> with it.

In many cases it is possible to "fake" multiline columns e.g.,

| first  | second  |
|+-|
| some text here which   | |
| is so long I'd like| |
| it wrapped | |
|+-|
| some shorter text here | |
|+-|
|| for simple display this works   |
|| although I agree the contents won't be  |
|| treated as a single cell by spreadsheet |
|| formula |

FWIW the lack of multiline cells used to bother me about org-mode
tables, but now I hardly notice their absence, and don't know how I
would use them if they were (with some syntax) supported.

Best -- Eric

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


Re: [Orgmode] Org-capture and ECB

2011-02-16 Thread Konrad Hinsen
On 16 Feb, 2011, at 17:25 , Alain Clément wrote:

> I see no way to reproduce this error without (installing and) activating ECB. 
> Actually, as soon as I desactivate ECB, org-capture works seamlessly with my 
> configuration.

I use both org-mode and ECB, but I didn't notice any problem with org-capture 
until now. I'd be interested in reproducing your problem in order to help with 
a solution.

Konrad.



___
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] htmlp and latexp

2011-02-16 Thread Dan Davison
Bastien  writes:

> Hi Dan,
>
> Dan Davison  writes:
>
>> I was about to make a temporary fix but I see Bastien's just fixed
>> it. Bastien -- should we give that `backend' variable a name within the
>> org-* namespace (and maybe defvar it in org.el?) so that it is a more
>> respectable way to test for "am I doing export now?"? (This issue just
>> came up in a separate babel thread).
>
> backend is dynamically scoped, so I think there is no need to defvar it
> in org.el -- only in org-*-blocks.el, to avoid compilation warnings.
>
> Let me know if you think otherwise.

Hi Bastien,

I was thinking that if it were defvard in org.el, say as

(defvar org-export-current-backend nil)

then any code could use (null org-export-current-backend) to test
whether org is currently exporting or not. Otherwise, the code has to be
certain that it has been called during export if it is going to access
the variable.

For example, babel code can get called both during interactive
evaluation with C-c C-c, and also during export. It might be helpful for
that code to be able to inspect the value of org-export-current-backend
to see what the current context is.

Dan

>
> But it's a good idea to rename it to org-export-backend.  Can you do it?

___
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: A mail client that is org-mode compatible

2011-02-16 Thread Mohamed HIBTI
Carl Bolduc  gmail.com> writes:

> 
> > gnus is an obvious candidate. It can be a bit of a steep learning curve
> > initially. I use it to interact with two different gmail accounts via
> > imap, as well as a few nntp groups, like this one. I'm finding the
> > development version of gnus a pleasure to use for this: it is fast, and
> > there's a very nice search facility both for imap and for nntp
> > groups. (E.g. I used to find it hard to reply in an old thread, but not
> > any longer)
> 
> Hi Dan,
> 
> Could you share some details of your gnus implementation with GMail? I
> have been trying to setup this based on various sites and I never
> succeded.
> 
> I would love to use gnus with gmail and Org-Mode.
> 
> Carl
> 
> ___
> 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
> 
> 

Thank you all for this information.

I will try all these alternatives
By the way I tried VM but I had an error message with POP over SSL.
I have to try to fix that.
  
with Rmail I couldn't read correctly MIME  and the org-store-link produced an 
error with "org-remove-angle-brackets(nil)"

Mohamed



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


Re: [Orgmode] Problem with org-capture

2011-02-16 Thread Bastien
Hi Chris,

Chris Lowis  writes:

> I'm having a problem with org-capture. When I M-x org-capture and then
> choose a template I get:
>
>condition-case: Capture abort: (wrong-type-argument
>number-or-marker-p nil)

Can you provide a minimal org file where is happens, and tell which
template you used?

-- 
 Bastien

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


Re: [Orgmode] Re: Context-sensitive word count in org mode (elisp)

2011-02-16 Thread Bastien
Hi Benjamin,

Benjamin Beckwith  writes:

> You can find it at:
> https://github.com/bnbeckwith/wc-mode

Nice.  How hard would it be to make it org-aware (i.e. don't count
syntactic elements in an org buffer)?

-- 
 Bastien

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


[Orgmode] Re: A mail client that is org-mode compatible

2011-02-16 Thread Mohamed HIBTI


Thanks Dan,
I don't know the functions developed by Eric Schulte.
But if you could share any configuration template it would be helpful.
Regards,
Mohamed





___
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] A mail client that is org-mode compatible

2011-02-16 Thread Bastien
Hi Mohamed,

Mohamed HIBTI  writes:

> I would like to move to an emacs mail client that may be org-mode and MIME  
> compatible. Have you any idea ? 

Org natively supports these Emacs mail clients:

- Gnus
- VM
- Mew 
- Wanderlust
- MH-E

If you need help choosing your Emacs MUA, you should better ask to this
mailing list: help-gnu-em...@gnu.org

HTH,

-- 
 Bastien

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


[Orgmode] Re: A mail client that is org-mode compatible

2011-02-16 Thread Tassilo Horn
Carl Bolduc  writes:

Hi Carl,

> Could you share some details of your gnus implementation with GMail? I
> have been trying to setup this based on various sites and I never
> succeded.

With the git version of gnus (or the one included in emacs' bzr trunk),
you only need this.

(add-to-list 'gnus-secondary-select-methods
 '(nnimap "Gmail"
  (nnimap-address "imap.gmail.com")))

Put your credentials in your ~/.authinfo (on preferrable in your GnuPG
encrypted ~/.authinfo.gpg), and everything should work smoothly.

Bye,
Tassilo


___
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] Worg publishing broken?

2011-02-16 Thread Bastien
Hi Jason,

Jason Dunsmore  writes:

>> I have today pushed two updates onto Worg which have not yet been published.
>> Maybe Worg publishing is currently broken?
>
> A recently-added section on the FAQ was using "shell" as the mode of a
> source block instead of "sh".  I fixed it and re-pulled/published
> Worg.

My bad, I added this.

Thanks for the fix!

-- 
 Bastien

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


Re: [Orgmode] Worg publishing broken?

2011-02-16 Thread Jason Dunsmore
Carsten Dominik  writes:

> Hi,
>
> I have today pushed two updates onto Worg which have not yet been published.
> Maybe Worg publishing is currently broken?

A recently-added section on the FAQ was using "shell" as the mode of a
source block instead of "sh".  I fixed it and re-pulled/published Worg.

http://repo.or.cz/w/Worg.git/blobdiff/45de0bd521aab3af38ec20804a270f306aa2416e..e4ed8284faddd0cd29c9cd3b98d19c9730f66e6e:/org-faq.org

___
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-capture and ECB

2011-02-16 Thread Bastien
Hi Alain,

Alain Clément  writes:

> I see no way to reproduce this error without (installing and)
> activating ECB. Actually, as soon as I desactivate ECB, org-capture
> works seamlessly with my configuration.

Still, it shouldn't happen, and it would be good to know why it does.

Up to you, if you have some time.

Thanks,

-- 
 Bastien

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


Re: [Orgmode] Org-capture and ECB

2011-02-16 Thread Alain Clément
Hi Bastien,
I see no way to reproduce this error without (installing and) activating
ECB. Actually, as soon as I desactivate ECB, org-capture works seamlessly
with my configuration.
Thanks for helping and best regards,
- Alain

2011/2/16 Bastien 

> Hi Alain,
>
> Alain Clément  writes:
>
> > Have you ever encountered an issue related to "tree-node->parent
> > accessing a non-tree-node" with org-capture in conjunction with ECB?
>
> I don't use ECB.  But can you provide a step-by-step way of reproducing
> this error?
>
> --
>  Bastien
>



-- 



Alain Clément
Dr ès sc. mathématiques

Université de Lausanne
Quartier UNIL-Centre
Bâtiment Unicentre
Bureau 339
CH-1015 Lausanne

T. +41 21 692 20 36 (direct)
T. +41 21 692 20 60 (secrétariat)

alain.clem...@unil.ch
___
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] Worg publishing broken?

2011-02-16 Thread Bastien
Hi Carsten,

Carsten Dominik  writes:

> I have today pushed two updates onto Worg which have not yet been published.
> Maybe Worg publishing is currently broken?

Looks so.  I just sent an email to Jason about this.

-- 
 Bastien

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


Re: [Orgmode] Re: [CRASH] org-pretty-entities causes emacs to take 100% CPU

2011-02-16 Thread Bastien
Hi Vladimir,

Vladimir Alexiev  writes:

> I've isolated it by running clean emacs (emacs -q) with this setup:
>
> (setq org-entities-user   ; name latex math-p html ascii latin1 utf8
>   '(("ok" nil nil "✔" "OK" "OK" "✔")
> ("nok" nil nil "✘" "NOK" "NOK" "✘"))
>   org-pretty-entities t)
>
> And this small org file:
>
> #+STARTUP:   showall indent
> * Deployment Options
> - \ok Deploy on
>
> Observations:
> - The crash DOES NOT happen with "noident"
> - Moving up from the mark, I get this in *Messages*
>   line-move-visual: Args out of range: 3, 3 
>   (the number varies according to where the line is)
> - it doesn't matter whether visual-line-mode is on or off

Thanks for the detailed report -- but I'm not able to reproduce this
with GNU Emacs 24.0.50.2 of 2011-02-15.

-- 
 Bastien

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


Re: [Orgmode] Status google calendar sync

2011-02-16 Thread Bastien
Hi Marcelo,

Marcelo de Moraes Serpa  writes:

> Anyway, I'd like to see the development of org go towards decoupling
> it from the emacs GUI and allowing the core logic to be used from
> other languages

The "core logic" of Org is the .org format, with its own syntax.

You're free to use org files anywhere, it's not bound to Emacs.

But using Emacs is certainly the best way so far to make the best 
of this format: after all, Emacs is a text editor and org files are 
just plain text!

-- 
 Bastien

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


[Orgmode] Re: A mail client that is org-mode compatible

2011-02-16 Thread Mohamed HIBTI
Manuel Hermenegildo  fi.upm.es> writes:

> 
> 
> VM has pretty reasonable integration with org (make sure you use a
> recent version, i.e., 8.1.xx or later). --Manuel
> 


I tried VM version 8.1.0. But I didn't succeed to set it correctly.

Mohamed


___
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-capture and ECB

2011-02-16 Thread Bastien
Hi Alain,

Alain Clément  writes:

> Have you ever encountered an issue related to "tree-node->parent
> accessing a non-tree-node" with org-capture in conjunction with ECB?

I don't use ECB.  But can you provide a step-by-step way of reproducing
this error?

-- 
 Bastien

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


[Accepted] [Orgmode] Problems with buffer-local variables

2011-02-16 Thread Bastien Guerry
Patch 567 (http://patchwork.newartisans.com/patch/567/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3Cm1r5bsx2qb.fsf%4094.196.190.115.threembb.co.uk%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] Problems with buffer-local variables
> Date: Tue, 01 Feb 2011 01:00:44 -
> From: Dan Davison 
> X-Patchwork-Id: 567
> Message-Id: 
> To: Carsten Dominik 
> Cc: emacs-orgmode@gnu.org
> 
> Carsten Dominik  writes:
> 
> > On Dec 22, 2010, at 3:51 PM, Dan Davison wrote:
> >
> >> There's recently been some advocacy of using buffer-local variables
> >> for
> >> Org-mode configuration. It seems like a good idea to me. However, I
> >> think that it raises a problem: there are at least two situations in
> >> which Org internally spawns a buffer that is supposed to be a sort of
> >> "copy" of another Org buffer: these situations are export and org-src
> >> edit buffer. The problem is that the "copy" buffer doesn't inherit
> >> local
> >> variables from the parent buffer.
> >>
> >> It seems that either we should propagate all local variables in these
> >> cases (but I suspect that is inappropriate for some variables), or we
> >> have to have a rule for identifying the subset of local variables
> >> which
> >> need to be propagated.
> >>
> >> Below is one example which I think demonstrates a problem. If you
> >> evaluate the elisp block and then export to HTML, the noweb does not
> >> get
> >> expanded, because the configuration variable is buffer-local (behind
> >> the
> >> scenes, Org creates a buffer copy just before exporting a buffer).
> >>
> >> --8<---cut here---start->8---
> >> #+title: Local variables issues?
> >>
> >> Evaluate this block, then do C-c C-e h
> >> #+begin_src emacs-lisp :results silent :exports none
> >>  (set-default 'org-babel-default-header-args:sh
> >>  nil)
> >>  (set (make-local-variable 'org-babel-default-header-args:sh)
> >>   '((:noweb . "yes")))
> >> #+end_src
> >>
> >> #+begin_src sh :exports both
> >> <>
> >> #+end_src
> >>
> >> #+source: foo
> >> #+begin_src sh :exports none
> >> echo hello
> >> #+end_src
> >> --8<---cut here---end--->8---
> >>
> >> It's also a problem when spawning the org-src edit buffer. There is a
> >> patch in the pipeline that tries to identify all the necessary local
> >> variables and transmit them to the edit buffer:
> >>
> >> http://patchwork.newartisans.com/patch/438/
> >>
> >> That's a bit messy, but in the export case it seems even harder to
> >> identify all variables that might need to be transmitted.
> >>
> >> What is a good solution?
> >
> >
> > Hi Dan,
> >
> > I see only two possibilities.  Either use a list of variables that
> > should be transported, or copy all local variables, or all local
> > variables that match a pattern.  An example for doing something like
> > this can be found in org-get-local-variables which is, for example,
> > used by `org-run-like-in-org-mode'.
> 
> Here's a patch. It clones into the pre-export buffer all buffer-local
> variables that match a regexp (currently "^\\(org-\\|orgtbl-\\)"). We
> might want to watch out for unanticipated side effects.
> 
> This should mean that we can use buffer-local variables to set export
> related variables on a per-buffer basis[1].
> 
> On reflection I think that the src edit buffer case should be dealt with
> as it is currently (by ad-hoc transporting of variables in the org-src
> code). I still stand by my pending patch 438, which tidies up the
> local-variables stuff in org-edit-src-code.
> 
> http://patchwork.newartisans.com/patch/438/
> 
> Dan
> 
> Footnotes:
> [1] Also, we can use the 'local argument to add-hook to set the various
> export hooks.
> 
> 
> Ensure that buffer-local variables have their effects during export.
> 
> * lisp/org.el (org-clone-local-variables): New function to copy local
> variables from another buffer.
> * lisp/org-exp.el (org-export-preprocess-string): Clone local
> variables from source org buffer into temporary export preprocessing
> buffer.
> 
> #+begin_src diff
> #+end_src
> 
> >
> > - Carsten
> 
> 
> diff --git a/lisp/org-exp.el b/lisp/org-exp.el
> index 97f17e5..6b333a7 100644
> --- a/lisp/org-exp.el
> +++ b/lisp/org-exp.el
> @@ -1028,6 +1028,7 @@ on this string to produce the exported version."
>(inhibit-read-only t)
>(drawers org-drawers)
>(outline-regexp "\\*+ ")
> +  (source-buffer (current-buffer))
>target-alist rtn)
>  
>  (setq org-export-target-aliases nil
> @@ -1051,6 +1052,7 @@ on this string to produce the exported version."
>  
>(let ((org-inhibit-startup t)) (org-mode))
>(setq case-fold-search t)
> +  (org-clone-local-variables source-buffer "^\\(org-\\|orgtbl-\\)")
>(or

Re: [Orgmode] Help with translating the new variable `org-clock-clocktable-language-setup'

2011-02-16 Thread Bastien
Hi Juan,

Juan Pechiar  writes:

> ("es" "Archivo" "N" "Fecha y hora" "Tarea" "Tiempo" "TODO" "Tiempo total" 
> "Tiempo archivo")

Added, thanks!

> I hope the "TODO" coincidence doesn't send org-mode into orbit.

It won't, as this "TODO" string will be inserted in a table.

Best,

-- 
 Bastien

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


Re: [Orgmode] [PATCH] Properly export title tag in org-html

2011-02-16 Thread Bastien
Hi Pierre,

Pierre Téchoueyres  writes:

> I think I've found a little bug in org-export-as-html function in
> org-html.el file.
>
> If you're setting an title with some escape character then the title
> tag in html header is set "as is".
>
> for example if your title is foo\_bar then the title tag will be
> foo\_bar instead of foo_bar

Thanks for reporting this!

> I tried to do the job in the attached patch.

I applied a slightly modified version of your patch, html-expanding 
the title earlier in the function.

Thanks for submitting it,

-- 
 Bastien

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


[Orgmode] Re: Context-sensitive word count in org mode (elisp)

2011-02-16 Thread Benjamin Beckwith
Hi Paul,

I have a small emacs project that creates a word-count mode and function
for use.  It currently does not ignore sections like your proposal, but I think
that would be interesting functionality.

Mine does keep a running tally of adds/delete in the mode line.  It also
lets you set a goal and provides a visual indication when that goal is
met -- I believe that this feature may be of interest to you.

You can find it at:
https://github.com/bnbeckwith/wc-mode

Regards,
Ben

___
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: New options for latex src code export

2011-02-16 Thread Bastien
Hi Dan,

Dan Davison  writes:

> My questions are
>
> 1. It would be nice if users didn't have to worry about step 4. Can
>anyone suggest a sensible way to have the "-shell-escape" option
>passed to pdflatex under the appropriate circumstances? These
>conditions include:
>1. minted is being used for export
>2. pdflatex is being used, a.o.t. e.g. rubber or some other latex
>   make tool.

A bit hackish, but maybe the attached patch would do?

diff --git a/lisp/org-latex.el b/lisp/org-latex.el
index c558043..f9b2c1c 100644
--- a/lisp/org-latex.el
+++ b/lisp/org-latex.el
@@ -984,7 +984,13 @@ when PUB-DIR is set, use this as the publishing directory."
 	 (file (buffer-file-name lbuf))
 	 (base (file-name-sans-extension (buffer-file-name lbuf)))
 	 (pdffile (concat base ".pdf"))
-	 (cmds org-latex-to-pdf-process)
+	 (cmds (if (eq org-export-latex-listings 'minted)
+		   ;; automatically add -shell-escape when needed
+		   (mapcar (lambda (cmd)
+			 (replace-regexp-in-string
+			  "pdflatex " "pdflatex -shell-escape" cmd))
+			   org-latex-to-pdf-process)
+		 org-latex-to-pdf-process))
 	 (outbuf (get-buffer-create "*Org PDF LaTeX Output*"))
 	 (bibtex-p (with-current-buffer lbuf
 		 (save-excursion

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


Re: [Orgmode] Re: [BUG] htmlp and latexp

2011-02-16 Thread Bastien
Hi Dan,

Dan Davison  writes:

> I was about to make a temporary fix but I see Bastien's just fixed
> it. Bastien -- should we give that `backend' variable a name within the
> org-* namespace (and maybe defvar it in org.el?) so that it is a more
> respectable way to test for "am I doing export now?"? (This issue just
> came up in a separate babel thread).

backend is dynamically scoped, so I think there is no need to defvar it
in org.el -- only in org-*-blocks.el, to avoid compilation warnings.

Let me know if you think otherwise.

But it's a good idea to rename it to org-export-backend.  Can you do it?

-- 
 Bastien

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


Re: [Orgmode] Help with translating the new variable `org-clock-clocktable-language-setup'

2011-02-16 Thread Bastien
Hi Peter,

peter.fri...@agfa.com writes:

> ("nl" "Bestand" "N" "Tijdstip" "Taak" "Duur" "ALLES" "Totale duur" "Duur 
> bestand")
>
> Note: the translation for Heading is similar to the french translation: it
> means "task". A literal translation would be "Kop" or "Hoofding".

You're right.. fixed -- and I also fixed the french translation.

Thanks!

> Also note that a two-character code may not be enough to express the
> differences between similar languages such as dutch and flemish, UK english
> and US british, French and Canadian frenchs, ... Not that it matters that
> much...

You should be able to us "en-UK" or whatever.

-- 
 Bastien

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


Re: [Orgmode] [BUG] htmlp and latexp

2011-02-16 Thread Bastien
Hi Christian,

Christian Moe  writes:

> (Incidentally -- org-special-blocks.el still says it's "not currently 
> part of GNU Emacs", but as of Org-mode 7.4 it is, isn't it?)

It's not yet part of GNU Emacs but it will be soon.

See commit 57144fea1ea6277b6ba39facae05715eee5751d6.

-- 
 Bastien

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


Re: [Orgmode] Context-sensitive word count in org mode (elisp)

2011-02-16 Thread Bastien
Hi Paul,

Paul Sexton  writes:

> I am trying to reduce the word count in a document I am writing. The
> existing word count functionality for emacs is surprisingly lacking.
> I wanted a word count function for org mode which excluded tables and 
> comments, and ended up writing one myself. 
>
> If this function is called with a region highlighted, it counts the words in
> the region. Otherwise it counts words in the whole buffer.

Looks useful, thanks!  

I'll let this discussion grow a bit until we have something we can
perhaps include in Org.

Also, counting words from Emacs is a frequent request from users.  If
your solution for Org could be integrated into a more general solution
for Emacs (working on various modes), that would be a win.  See:

  http://stray-notes.blogspot.com/2009/12/emacs-word-count.html
  http://www.sultanik.com/Word_count_in_Emacs

.. and other pointers.

-- 
 Bastien

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


Re: [Orgmode] [BUG] htmlp and latexp

2011-02-16 Thread Bastien
Hi Christian,

Christian Moe  writes:

> (Incidentally -- org-special-blocks.el still says it's "not currently 
> part of GNU Emacs", but as of Org-mode 7.4 it is, isn't it?)

It's not yet part of GNU Emacs but it will be soon.

See commit 57144fea1ea6277b6ba39facae05715eee5751d6.

-- 
 Bastien

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


[Orgmode] Worg publishing broken?

2011-02-16 Thread Carsten Dominik
Hi,

I have today pushed two updates onto Worg which have not yet been published.
Maybe Worg publishing is currently broken?

- Carsten




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


Re: [Orgmode] Re: A mail client that is org-mode compatible

2011-02-16 Thread Carl Bolduc
> gnus is an obvious candidate. It can be a bit of a steep learning curve
> initially. I use it to interact with two different gmail accounts via
> imap, as well as a few nntp groups, like this one. I'm finding the
> development version of gnus a pleasure to use for this: it is fast, and
> there's a very nice search facility both for imap and for nntp
> groups. (E.g. I used to find it hard to reply in an old thread, but not
> any longer)

Hi Dan,

Could you share some details of your gnus implementation with GMail? I
have been trying to setup this based on various sites and I never
succeded.

I would love to use gnus with gmail and Org-Mode.

Carl

___
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: A mail client that is org-mode compatible

2011-02-16 Thread Manuel Hermenegildo

VM has pretty reasonable integration with org (make sure you use a
recent version, i.e., 8.1.xx or later). --Manuel

-- 


___
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: A mail client that is org-mode compatible

2011-02-16 Thread Dan Davison
Mohamed HIBTI  writes:

> Hi every one,
> I would like to move to an emacs mail client that may be org-mode and MIME  
> compatible. Have you any idea ? 

gnus is an obvious candidate. It can be a bit of a steep learning curve
initially. I use it to interact with two different gmail accounts via
imap, as well as a few nntp groups, like this one. I'm finding the
development version of gnus a pleasure to use for this: it is fast, and
there's a very nice search facility both for imap and for nntp
groups. (E.g. I used to find it hard to reply in an old thread, but not
any longer)

As for org compatibility, isolated begin_src fragments are fontified as
if they were in org-mode which is very nice (so the languages are
fontified correctly if you turn on org-src-fontify-natively). This is
thanks to Seb Vauban, and Julien Danjou. Also attached text files are
fontified in the correct major mode. I don't really know how it works,
but the end result is that often when reading this list in gnus, I see
fragments of org-mode markup, and emacs-lisp and other languages, fully
fontified in my email.

As for MIME, do you know the org-mime-* functions, contributed by Eric
Schulte? They work very nicely; I'm looking forward to finding some
spare time to work out how best to fit them into my day-to-day emailing.

Dan

>
>
>
>
> Regards,
> Mohamed
> P.S. any configuration stuff is welcome
>
>
>
>
>
> ___
> 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: problem with org-export-latex-todo-keyword-markup [7.4]

2011-02-16 Thread Michael Bach
On 02/16/2011 11:36 AM, phaebz wrote:
> I defined it as an associative list, as described in the manual:
> org-export-latex-todo-keyword-markup evaluates to (("new" . "\\new{%s}") 
> ("done" . "\\done{%s}") ("todo" . "\\todo{%s}"))
>
> In my LaTeX header are the options:
> #+LATEX_HEADER: \def\todo#1{{\color{red}#1}}
> #+LATEX_HEADER: \def\done#1{{\color{green}#1}}
> #+LATEX_HEADER: \def\new#1{{\color{blue}#1}}
>
> Now I noticed that, in the exported pdf, all todo keywords are typeset in the 
> same color, which is always the value of the first element in the a-list. In 
> the above example, all keywords get set to blue, i.e. the LaTeX file contains 
> odd things like \new{TODO}.
>
> According to the manual, I expect this behaviour - using the value of the 
> first element - only for todo keywords for which there is no key in the 
> a-list defined.
>
> Am I doing something wrong?

Actually, I am thinking of setting up a virtual mailing-list just for me, so 
that I can send my email there, since there seems to be a correlation between 
me sending my problems to this list and finding the solution on my own.

For completeness, obviously the keys have all to be upper case, i.e. (("NEW" . 
"\\new{%s}") ("DONE" . "\\done{%s}") ("TODO" . "\\todo{%s}")).

I will try to avoid these mails in the future.

Michael Bach

___
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: Alinea filling (hanlding of explicit line-breaks)

2011-02-16 Thread Stefan Monnier
>> An important question here is: is it important for M-} to ignore those \\?
> I guess so, this is the current default Org behaviour anyhow.

Good.

> as far as I understand, it would be anyhow possible to move point on
> an alinea-by-alinea basis just by configuring the tailing \\ as
> anohter paragraph separator.

Actually, no, because paragraph-separate would cause the whole line that
ends with \\ to be treated as not being part of a paragraph, and
paragraph-start wouldn't be appropriate either.
Hence the "good" above :-(

>> Of course fill-paragraph-function sucks because it only applies to
>> fill-paragraph and not to fill-region.

> Do you mean that `fill-paragraph-function' is some kind of obsolete
> feature and that people should use another kind of hook, and if so
> which one?

Yes and no: there is no replacement for it.  There is
fill-forward-paragraph-function, which can handle some of the cases for
which fill-paragraph-function has been used, but there would need to be
something like a fill-region-as-paragraph-function and we don't have
that yet :-(


Stefan

___
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: A mail client that is org-mode compatible

2011-02-16 Thread Stephen Eglen
> Hi every one,
> I would like to move to an emacs mail client that may be org-mode and MIME  
> compatible. Have you any idea ? 

I switched to using MH-E (from VM) a couple of years ago.  I did try
GNUS but found it a bit too overwhelming.  Overall, I'm happy with
MH-E -- I like that it comes wiht Emacs, and so the code tends to be
actively maintained, which was not the case for VM.  (However, VM is now
under new developers, so you may find it works better.)  The search
engine mairix works well too with MH-E.

Org knows about MH-E in that for example, org-store-link works when you
are reading a message in MH-E.

The notmuch mailing list in the last few days has had some discussion
about org support, so you might want to read those comments.  I am
tempted to look at notmuch, so would be curious about what other people
think.

Stephen


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


[Orgmode] A mail client that is org-mode compatible

2011-02-16 Thread Mohamed HIBTI
Hi every one,
I would like to move to an emacs mail client that may be org-mode and MIME  
compatible. Have you any idea ? 




Regards,
Mohamed
P.S. any configuration stuff is welcome





___
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] Context-sensitive word count in org mode (elisp)

2011-02-16 Thread Joost Kremers
On Wed, Feb 16, 2011 at 03:51:23AM +, Paul Sexton wrote:
> Improvements welcome.

one remark about your naming convertions: 

(info "(elisp) Coding Conventions")

especially the second point. in short, you shouldn't use names such as
"in-comment-p" or "latex-macro-regexp" for global variables and/or functions.
use a prefix to distinguish them from other programs/packages.


-- 
Joost Kremers
Life has its moments

___
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: Can I input multiline in a cell?

2011-02-16 Thread suvayu ali
On Tue, Feb 15, 2011 at 10:06 PM, Wang Coeus  wrote:
> Will org consider to support this in future? I just think org table is
> more convenient than table.el. Thanks a lot for the help.

As far as I know, its not likely. To my understanding, things like
table formulae and some of the export functions have trouble dealing
with it.

-- 
Suvayu

Open source is the future. It sets us free.

___
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-capture and ECB

2011-02-16 Thread Alain Clément
Hi everyone,
Have you ever encountered an issue related to "tree-node->parent accessing a
non-tree-node" with org-capture in conjunction with ECB?
I'm running GNU Emacs 23.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.29),
org-mode release_7.4.388.ged6d and ECB version 2.40.
Thanks in advance!
- Alain
___
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] htmlp and latexp

2011-02-16 Thread Dan Davison
Christian Moe  writes:

> On 2/15/11 11:23 PM, Dan Davison wrote:
>> Commit ed6d6760268 removed variables htmlp and latexp from
>> `org-export-preprocess-string'. Nothing wrong with that, but I think it
>> has broken export for those using org-special-blocks
>
> Confirmed. Exporting the following example stops with a void-variable 
> error in org-special-blocks-make-special-cookies.

I was about to make a temporary fix but I see Bastien's just fixed
it. Bastien -- should we give that `backend' variable a name within the
org-* namespace (and maybe defvar it in org.el?) so that it is a more
respectable way to test for "am I doing export now?"? (This issue just
came up in a separate babel thread).

Dan

>
> 
>
> Some text.
>
> #+begin_sidebar
>Some details left out of the main text.
> #+end_sidebar
>
> 
>
> (Incidentally -- org-special-blocks.el still says it's "not currently 
> part of GNU Emacs", but as of Org-mode 7.4 it is, isn't it?)
>
> CM
>
>
> ___
> 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: Context-sensitive word count in org mode (elisp)

2011-02-16 Thread Dan Davison
Hi Paul,

Sounds useful to me. Is it appropriate to use the existing org function
`org-in-regexps-block-p'? Or `org-context'? (Not speaking from any
experience of using these functions I just noticed them.)

Dan

Christian Moe  writes:

> Hi,
>
> This would be really neat to have as a part of org-mode
> eventually. Another itch scratched.
>
> You can probably replace your custom predicate functions with the
> existing org-at-table-p and org-in-commented-line (works for
> me). Maybe there's something to replace the latex-macro-regexp too.
>
> Yours,
> Christian
>
> ___
> 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] Context-sensitive word count in org mode (elisp)

2011-02-16 Thread Christian Moe

Forgot to add the code.

#+begin_src emacs-lisp
  ;; Adapted from code posted by Paul Sexton <2011-02-16 Wed 4:51am>
  ;; - Everything now contained in one function
  ;; - Will count correct number of words inside Latex macro

  (defun org-word-count (beg end)
  (interactive "r")
  (unless mark-active
(setf beg (point-min)
  end (point-max)))
  (let ((wc 0)
	(latex-macro-regexp "[A-Za-z]+\\(\\[[^]]*\\]\\| 
\\){\\([^}]*\\)}"))   ; CHANGED

(save-excursion
  (goto-char beg)
  (while (< (point) end)
(re-search-forward "\\w+\\W*")
(cond
 ((or (org-in-commented-line) (org-at-table-p)) ; CHANGED
  nil)
 ((looking-at org-any-link-re)
  (goto-char (match-end 0)))
 ((save-excursion
(backward-char)
(looking-at latex-macro-regexp))
  (goto-char (match-beginning 2))  ; CHANGED
  (setf wc (+ 2 wc)))
 (t
  (incf wc)
(message (format "%d words in %s." wc
 (if mark-active "region" "buffer")
#+end_src

Yours,
Christian

On 2/16/11 4:51 AM, Paul Sexton wrote:

I am trying to reduce the word count in a document I am writing. The
existing word count functionality for emacs is surprisingly lacking.
I wanted a word count function for org mode which excluded tables and
comments, and ended up writing one myself.

If this function is called with a region highlighted, it counts the words in
the region. Otherwise it counts words in the whole buffer.

It ignores commented lines and tables. LaTeX-style macros such as
\foo{bar,baz} are counted as 1 word, as a compromise (more often than not
they should count as 0, but they do sometimes expand to 1 or more words
in the final document).

Limitations:
- Does not ignore BEGIN_SRC/END_SRC or inline src_* blocks (babel).
   Should be easy enough to add however.
- There is probably a better way of identifying latex macros
   than my 'latex-macro-regexp' below.
- Ignores all org links. I couldn't figure out how to extract "description"
   text from links, but I didn't look very hard.

Improvements welcome.

Paul



(defun in-comment-p ()
   "Return non-nil if point is in a comment."
   (if (or (null comment-start-skip)
  (eq (preceding-char) ?\r))
   nil
 (save-excursion
   (let ((pos (point)))
(re-search-backward "^\\|\r" nil t)
(or (looking-at comment-start-skip)
(re-search-forward comment-start-skip pos t))

(defun in-org-table-p ()
   "Return non-nil if point is in an org-mode table."
   (if (or (not (boundp 'org-table-any-line-regexp))
   (null org-table-any-line-regexp)
  (eq (preceding-char) ?\r))
   nil
 (save-excursion
   (let ((pos (point)))
(re-search-backward "^\\|\r" nil t)
(looking-at org-table-any-line-regexp)


(defvar latex-macro-regexp "[A-Za-z]+\\(\\[[^]]*\\]\\|\\){\\([^}]*\\)}")


(defun org-word-count (beg end)
   (interactive "r")
   (unless mark-active
 (setf beg (point-min)
   end (point-max)))
   (let ((wc 0))
 (save-excursion
   (goto-char beg)
   (while (<  (point) end)
 (re-search-forward "\\w+\\W*")
 (cond
  ((or (in-comment-p) (in-org-table-p))
   nil)
  ((looking-at org-any-link-re)
   (goto-char (match-end 0)))
  ((save-excursion
 (backward-char)
 (looking-at latex-macro-regexp))
   (goto-char (match-end 0))
   (setf wc (+ 2 wc)))
  (t
   (incf wc)
 (message (format "%d words in %s." wc
  (if mark-active "region" "buffer")



___
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] Adapt included relative links during export ?

2011-02-16 Thread Maxime Tournier
Hi, 

I'd like to know if it's possible to adapt relative links when
including an org file from another, during export. 

Let's say for example I have the following files:

./master.org
./sub/foo.org
./sub/bar.jpg

where master.org contains this include line:

#+INCLUDE: "sub/foo.org"

and sub links the image: 

[[file:bar.jpg]]

If I export mater.org to master.html, the image won't show up since
its url will be copied from foo.org. Is it possible to adapt such
relative links during export? 

This would make quick aggregation of notes in a single document quite
easier.

Anyway, many thanks for this great piece of software !


Maxime 


___
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] Properly export title tag in org-html

2011-02-16 Thread Pierre Téchoueyres
Hi List,

I think I've found a little bug in org-export-as-html function in org-
html.el file.
If you're setting an title with some escape character then the title 
tag 
in html header is set "as is".

for example if your title is foo\_bar then the title tag will be 
foo\_bar instead of foo_bar

I tried to do the job in the attached patch.
Hope this could help.

Pierre
diff --git a/lisp/org-html.el b/lisp/org-html.el
index 9135c73..016a181 100644
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -1257,7 +1257,7 @@ lang=\"%s\" xml:lang=\"%s\">
 		  "")
 		  (or charset "iso-8859-1"))
 		 language language
-		 title
+		 (org-html-expand title)
 		 (or charset "iso-8859-1")
 		 date author description keywords
 		 style
___
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] problem with org-export-latex-todo-keyword-markup [7.4]

2011-02-16 Thread phaebz
I defined it as an associative list, as described in the manual:
org-export-latex-todo-keyword-markup evaluates to (("new" . "\\new{%s}") 
("done" . "\\done{%s}") ("todo" . "\\todo{%s}"))

In my LaTeX header are the options:
#+LATEX_HEADER: \def\todo#1{{\color{red}#1}}
#+LATEX_HEADER: \def\done#1{{\color{green}#1}}
#+LATEX_HEADER: \def\new#1{{\color{blue}#1}}

Now I noticed that, in the exported pdf, all todo keywords are typeset in the 
same color, which is always the value of the first element in the a-list. In 
the above example, all keywords get set to blue, i.e. the LaTeX file contains 
odd things like \new{TODO}.

According to the manual, I expect this behaviour - using the value of the first 
element - only for todo keywords for which there is no key in the a-list 
defined.

Am I doing something wrong?

___
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] Problem with org-capture

2011-02-16 Thread Chris Lowis
Hi,

I'm having a problem with org-capture. When I M-x org-capture and then
choose a template I get:

   condition-case: Capture abort: (wrong-type-argument number-or-marker-p nil)

This is with a recent checkout of org-mode, further details below.

Any thoughts?

Chris



Emacs  : GNU Emacs 23.2.1 (x86_64-apple-darwin10.5.0, NS apple-appkit-1038.35)
 of 2011-01-31 on rd00051.local
Package: Org-mode version 7.4 (release_7.4.396.g4db5)

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-speed-command-hook '(org-speed-command-default-hook
  org-babel-speed-command-hook)
 org-agenda-custom-commands '(("d" "Deferred tasks" todo "DEFERRED" nil)
  ("u" "Unscheduled TODO items" alltodo ""
   ((org-agenda-skip-function
 (quote
  (org-agenda-skip-entry-if (quote deadline)
   (quote scheduled))
  )
 )
(org-agenda-overriding-header
 "Unscheduled TODO items:")
)
   )
  )
 org-agenda-files '("~/org/journal.org" "~/Projects/music_report/report.org")
 org-agenda-show-inherited-tags nil
 org-drill-add-random-noise-to-intervals-p t
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-capture-templates '(("d" "Done" entry
  (file+headline "~/org/todo.org" "Tasks")
  "* DONE %?\nSCHEDULED: %t CLOSED: %U")
 ("t" "Todo" entry (file+datetree "~/org/journal.org")
  "* TODO %?\n  %i\n%u")
 ("j" "Journal" entry
  (file+datetree "~/org/journal.org")
  "* %U %?\n\n  %i\n")
 ("v" "Vocab" entry
  (file+headline "~/org/spanish.org" "")
  "* Noun
:drill:\n\n:PROPERTIES:\n:DRILL_CARD_TYPE: twosided\n:END:\n\n
Translate this word\n\n** Spanish\n %^{Spanish}\n** English\n
%^{English} ")
 )
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-babel-tangle-lang-exts '(("ruby" . "rb") ("emacs-lisp" . "el"))
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-drill-maximum-items-per-session 20
 org-tab-first-hook '(org-hide-block-toggle-maybe
  org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
 org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-learn-always-reschedule t
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-todo-keywords '((type "TODO" "WAITING" "" "DONE" "CANCELED"))
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-default-notes-file "~/org//journal.org"
 org-directory "~/org/"
 org-capture-mode-hook '(delete-other-windows)
 org-babel-pre-tangle-hook '(save-buffer)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-publish-project-alist '(("org-crl" :base-directory "~/blog/org/"
  :base-extension "org" :publishing-directory
  "~/blog/jekyll/" :recursive t :publishing-function
  org-publish-org-to-html :headline-levels 4
  :html-extension "html" :body-only t)
 )
 org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 org-drill-maximum-duration 10
 org-replace-disputed-keys t
 org-mode-hook '((lambda nil
  (if org-drill-use-visible-cloze-face-p
   (font-lock-add-keywords (quote org-mode)
org-drill-cloze-keywords t)
   )
  )
 (lambda nil
  (org-add-hook (quote change-major-mode-hook)
   (quote org-show-block-all) (quote append) (quote local))
  )
 (lambda nil
  (org-add-hook (quote change-major-mode-hook)
   (quote org-babel-show-result-all) (quote append)
   (quote local))
  )
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-refile-targets '((org-agenda-files :tag . "project")
  (org-agenda-files :level . 1))
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-ex

Re: [Orgmode] [babel] Suggestions: GRASS GIS und Lilypond

2011-02-16 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/15/2011 07:46 PM, Eric Schulte wrote:
> I am happy to answer questions and provide suggestions for anyone who is
> interested in developing support for these (or any other) additional
> languages.  I would recommend looking at existing languages which are
> similar to the new language for guidance/examples.
> 
> In the case of GRASS, it sounds as though GRASS is a sub[super]-set of
> R?  

No - GRASS can be described as a collection of commands which are
executed in the shell after some environmental variables are set. So
GRASS is rather a super set of a bash shell.
So an implementation of GRASS could easily build on how sh code blocks
are hab=ndled in org.

Interactive GRASS sessions are effectively sh sessions with adapted
$PATH variable and a few environmental variables, to make the GRASS
commands accessible. So really the easiest would be to use the existing
sh support, set the environmental variables, set the $PATH and execute
the commands.
The environmental variables could be defined in :var - so actually that
should not be a problem.

Syntax highlighting could be based on sh with added commands in the
added $PATH - should not be to difficult (theoretically...).

> Would it be possible to simply use the existing R support in babel
> only specify a non-R command to be run to start interactive sessions?

Well - R, like python which is becoming the "official" scripting
language for GRASS, has a set of commands to interface with GRASS - so
using R (or python) would not be a useful approach.

There is an R package (spGRASS6) which is doing exactly what I mentioned
above (setting the $PATH and the environmental variables) to be able to
execute grass commands from within R - (with the syntax

execGRASS( "COMMAND", ... )

So one could look at that command (initGRASS() I think it is called) to
see what is necessary - or just execute grass:

grass -text GISBASE/LOCATION_NAME/MAPSET

##
rkrug@ecolmod:~/deb$ grass --help
Usage:
  grass64 [-h | -help | --help] [-v | --version] [-c]
  [-text | -gui | -tcltk | -oldtcltk | -wxpython | -wx]
  [[[/]/]]

Flags:
  -h or -help or --help  print this help message
  -v or --versionshow version information and exit
  -c create given mapset if it doesn't exist
  -text  use text based interface
   and set as default
  -gui   use graphical user interface (wxpython
by default)
   and set as default
  -tcltk use Tcl/Tk based graphical user interface
   and set as default
  -oldtcltk  use old Tcl/Tk based graphical user
interface
   and set as default
  -wxpython or -wx   use wxPython based graphical user interface
   and set as default

Parameters:
  GISDBASE   initial database (path to GIS data)
  LOCATION_NAME  initial location
  MAPSET initial mapset

  GISDBASE/LOCATION_NAME/MAPSET  fully qualified initial mapset directory

Environment variables relevant for startup:
  GRASS_GUI  select GUI (text, gui, tcltk, oldtcltk,
wxpython)
  GRASS_TCLSHset tclsh shell name to override 'tclsh'
  GRASS_WISH set wish shell name to override 'wish'
  GRASS_HTML_BROWSER set html web browser for help pages
  GRASS_ADDON_PATH   set additional path(s) to local GRASS
modules
  GRASS_BATCH_JOBshell script to be processed as batch job
  GRASS_PYTHON   set python shell name to override 'python'
rkrug@ecolmod:~/deb$
##


So it should be doable relatively easily I guess.

So the environmental variables needed would be:

 GISDBASEinitial database (path to GIS data)
 LOCATION_NAME   initial location
 MAPSET  initial mapset

So that GRASS can build

 GISDBASE/LOCATION_NAME/MAPSET  fully qualified initial mapset directory

Thinking of it, a GRASS code block

#+begin_src grass
 ...
#+end_src

would be a sh code block, in which as the first command "grass -text" is
executed, i.e.

#+begin_src grass
  grass -text
  ...
#+end_src

For tangling: GRASS scripts are executed usually from within GRASS, so
they are normal sh scripts (same shebang and all)

So implementation should be rather straight forward, I think?

Just a side note: as GRASS installs in addition to the command grass
also a command "grass64" for version 6.4 etc, it would be nice to have
the command "grass" modifiable.


Cheers,

Rainer

> 
> Best -- Eric
> 
> Thorsten   writes:
> 
>> Hello Babel developers, 
>> just two suggestions for new languages: 
>> 1. GRASS GIS

Re: [Orgmode] Context-sensitive word count in org mode (elisp)

2011-02-16 Thread Christian Moe

Hi,

This would be really neat to have as a part of org-mode eventually. 
Another itch scratched.


You can probably replace your custom predicate functions with the 
existing org-at-table-p and org-in-commented-line (works for me). 
Maybe there's something to replace the latex-macro-regexp too.


Yours,
Christian

___
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] htmlp and latexp

2011-02-16 Thread Christian Moe

On 2/15/11 11:23 PM, Dan Davison wrote:

Commit ed6d6760268 removed variables htmlp and latexp from
`org-export-preprocess-string'. Nothing wrong with that, but I think it
has broken export for those using org-special-blocks


Confirmed. Exporting the following example stops with a void-variable 
error in org-special-blocks-make-special-cookies.




Some text.

#+begin_sidebar
  Some details left out of the main text.
#+end_sidebar



(Incidentally -- org-special-blocks.el still says it's "not currently 
part of GNU Emacs", but as of Org-mode 7.4 it is, isn't it?)


CM


___
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