Re: [O] 8.2: Error with tests SOLVED

2013-09-21 Thread Mehul Sanghvi
On Fri, Sep 20, 2013 at 11:51 AM, Rainer M Krug  wrote:

> Mehul Sanghvi  writes:
>
> > emacs-version:  GNU Emacs 23.4.1 (powerpc-unknown-linux-gnu, GTK+ Version
> > 2.24.19) of 2013-06-30 on porpora, modified by Debian
> >
> > org-version:  Org-mode version 8.2 (release_8.2.dirty @
>
> Your org-version is "dirty", i.e. you have a mix of different versions.
>
> Look at the manual on ho=w to solve this, or ask here with further
> details on how you installed org and emacs.
>
> Cheers,
>
> Rainer



There is no bug here, just missing files.  I should have read
testing/README to figure out what I needed for dependencies.  ert is one of
the packages that you need if you're not running on Emacs24, which I'm not.
  This was definitely a user problem with "in between the ears" :)



cheers,

mehul



-- 
Mehul N. Sanghvi
email: mehul.sang...@gmail.com


Re: [O] [PATCH] Added language support for et

2013-09-21 Thread Carsten Dominik
Hi Mihkel,

I have made these changes, but I had trouble with the patch (probably Mail 
messing with some characters).  Please check if everything went OK.

- Carsten

On 17.9.2013, at 14:45, mihkel  wrote:

> Hi Carsten and thanks for replying. I made suggested modifications and
> here is v2:
> 
> From 3081cd92a2f5868d5c52e70d2eff4ecff95566d7 Mon Sep 17 00:00:00 2001
> From: mihkel 
> Date: Tue, 17 Sep 2013 15:33:54 +0300
> Subject: [PATCH] Added proper language support for et (Estonian)
> 
> ---
> lisp/ox.el | 14 ++
> 1 file changed, 14 insertions(+)
> 
> diff --git a/lisp/ox.el b/lisp/ox.el
> index 07239a0..10354b2 100644
> --- a/lisp/ox.el
> +++ b/lisp/ox.el
> @@ -5218,6 +5218,7 @@ them."
>  ("de" :default "Autor")
>  ("eo" :html "Aŭtoro")
>  ("es" :default "Autor")
> + ("et" :default "Autor")
>  ("fi" :html "Tekijä")
>  ("fr" :default "Auteur")
>  ("hu" :default "Szerzõ")
> @@ -5241,6 +5242,7 @@ them."
>  ("de" :default "Datum")
>  ("eo" :default "Dato")
>  ("es" :default "Fecha")
> + ("et" :html "Kuupäev" :utf-8 "Kuupäev")
>  ("fi" :html "Päivämäärä")
>  ("hu" :html "Dátum")
>  ("is" :default "Dagsetning")
> @@ -5260,6 +5262,7 @@ them."
>  ("da" :default "Ligning")
>  ("de" :default "Gleichung")
>  ("es" :html "Ecuación" :default "Ecuación")
> + ("et" :html "Võrrand" :utf-8 "Võrrand")
>  ("fr" :ascii "Equation" :default "Équation")
>  ("no" :default "Ligning")
>  ("nb" :default "Ligning")
> @@ -5270,6 +5273,7 @@ them."
>  ("da" :default "Figur")
>  ("de" :default "Abbildung")
>  ("es" :default "Figura")
> + ("et" :default "Joonis")
>  ("ja" :html "図" :utf-8 "図")
>  ("no" :default "Illustrasjon")
>  ("nb" :default "Illustrasjon")
> @@ -5280,6 +5284,7 @@ them."
>  ("da" :default "Figur %d")
>  ("de" :default "Abbildung %d:")
>  ("es" :default "Figura %d:")
> + ("et" :default "Joonis %d:")
>  ("fr" :default "Figure %d :" :html "Figure %d :")
>  ("ja" :html "図%d: " :utf-8 "図%d: ")
>  ("no" :default "Illustrasjon %d")
> @@ -5294,6 +5299,7 @@ them."
>  ("de" :html "Fußnoten" :default "Fußnoten")
>  ("eo" :default "Piednotoj")
>  ("es" :html "Nota al pie de página" :default "Nota al pie de 
> página")
> + ("et" :html "Allmärkused" :utf-8 "Allmärkused")
>  ("fi" :default "Alaviitteet")
>  ("fr" :default "Notes de bas de page")
>  ("hu" :html "Lábjegyzet")
> @@ -5315,6 +5321,7 @@ them."
>  ("da" :default "Programmer")
>  ("de" :default "Programmauflistungsverzeichnis")
>  ("es" :default "Indice de Listados de programas")
> + ("et" :default "Loendite nimekiri")
>  ("fr" :default "Liste des programmes")
>  ("no" :default "Dataprogrammer")
>  ("nb" :default "Dataprogrammer")
> @@ -5323,6 +5330,7 @@ them."
>  ("da" :default "Tabeller")
>  ("de" :default "Tabellenverzeichnis")
>  ("es" :default "Indice de tablas")
> + ("et" :default "Tabelite nimekiri")
>  ("fr" :default "Liste des tableaux")
>  ("no" :default "Tabeller")
>  ("nb" :default "Tabeller")
> @@ -5333,6 +5341,7 @@ them."
>  ("da" :default "Program %d")
>  ("de" :default "Programmlisting %d")
>  ("es" :default "Listado de programa %d")
> + ("et" :default "Loend %d")
>  ("fr" :default "Programme %d :" :html "Programme %d :")
>  ("no" :default "Dataprogram")
>  ("nb" :default "Dataprogram")
> @@ -5341,11 +5350,13 @@ them."
>  ("da" :default "jævnfør afsnit %s")
>  ("de" :default "siehe Abschnitt %s")
>  ("es" :default "vea seccion %s")
> + ("et" :html "Vaata peatükki %s" :utf-8 "Vaata peatükki %s")
>  ("fr" :default "cf. section %s")
>  ("zh-CN" :html "参见第%d节" :utf-8 "参见第%s节"))
> ("Table"
>  ("de" :default "Tabelle")
>  ("es" :default "Tabla")
> + ("et" :default "Tabel")
>  ("fr" :default "Tableau")
>  ("ja" :html "表" :utf-8 "表")
>  ("zh-CN" :html "表" :utf-8 "表"))
> @@ -5353,6 +5364,7 @@ them."
>  ("da" :default "Tabel %d")
>  ("de" :default "Tabelle %d")
>  ("es" :default "Tabla %d")
> + ("et" :default "Tabel %d")
>  ("fr" :default "Tableau %d :")
>  ("ja" :html "表%d:" :utf-8 "表%d:")
>  ("no" :default "Tabell %d")
> @@ -5367,6 +5379,7 @@ them."
>  ("de" :default "Inhaltsverzeichnis")
>  ("eo" :default "Enhavo")
>  ("es" :html "Índice")
> + ("et" :default "Sisukord")
>  ("fi" :html "Sisällysluettelo")
>  ("fr" :ascii "Sommaire" :default "Table des matières")
>  ("hu" :html "Tartalomjegyzék")
> @@ -5388,6 +5401,7 @@ them."
>  ("da" :default "ukendt reference")
>  ("de" :default "Unbekannter Verweis")
>  ("es" :default "referencia desconocida")
> + ("et" :default "Tundmatu viide")
>  ("fr" :ascii "Destination inconnue" :default "Référence inconnue")
>  ("zh-CN" :html "未知引用" :utf-8 "未知引用")))
>   "Dictionary for export engine.
> -- 
> 1.8.3.1
> 
> 
> 
> Mihkel Vain
> 
> C

Re: [O] [PATCH] Columnview: Fix the case of #+ content present

2013-09-21 Thread Carsten Dominik
Applied, thank you Benjamin.

- Carsten

On 17.9.2013, at 21:13, Benjamin Beckwith  wrote:

> * lisp/org-colview.el (org-dblock-write:columnview): Change the
>  capture of pos to after inserting the original content
> 
> The problem is with a block that has content preceding the table.
> Upon recreating the content, the `pos' gets set to the beginning of
> this content instead of the table.  Later calls to
> `org-table-recalculate' or `org-table-align' will fail because the
> point is not at a table.
> 
> This patch moves the capture of `pos' to right before the insertion of
> the table.
> 
> TINYCHANGE
> ---
> lisp/org-colview.el | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lisp/org-colview.el b/lisp/org-colview.el
> index f3b8e42..8790ad4 100644
> --- a/lisp/org-colview.el
> +++ b/lisp/org-colview.el
> @@ -1306,10 +1306,10 @@ PARAMS is a property list of parameters:
>(if (eq 'hline x) x (cons "" x)))
>  tbl))
>(setq tbl (append tbl (list (cons "/" (make-list nfields "<>"))
> -  (setq pos (point))
>   (when content-lines
>(while (string-match "^#" (car content-lines))
>  (insert (pop content-lines) "\n")))
> +  (setq pos (point))
>   (insert (org-listtable-to-string tbl))
>   (when (plist-get params :width)
>(insert "\n|" (mapconcat (lambda (x) (format "<%d>" (max 3 x)))
> --
> 1.8.1.2
> 



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [O] Tiny patch: documentation of the org-footnote face

2013-09-21 Thread Carsten Dominik
Applied, thank you Alan.

- Carsten

On 19.9.2013, at 14:27, Alan Schmitt  wrote:

> Hello,
> 
> While tracking down my proportional fonts woes, I found this small
> typo. Patch attached.
> 
> Alan
> 
> From 355d8408e79a1337e4c57ba7531eec337ec40225 Mon Sep 17 00:00:00 2001
> From: Alan Schmitt 
> Date: Thu, 19 Sep 2013 14:23:50 +0200
> Subject: [PATCH] Org-faces: Correct the documentation for footnotes
> 
> * org-faces.el (org-footnote): Fix the documentation for this face.
> ---
> lisp/org-faces.el | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lisp/org-faces.el b/lisp/org-faces.el
> index e968657..d64fd0e 100644
> --- a/lisp/org-faces.el
> +++ b/lisp/org-faces.el
> @@ -258,7 +258,7 @@ column view defines special faces for each outline level. 
>  See the file
>   'class color) (background light)) (:foreground "Purple" :underline t))
> (((class color) (background dark)) (:foreground "Cyan" :underline t))
> (t (:underline t)))
> -  "Face for links."
> +  "Face for footnotes."
>   :group 'org-faces)
> 
> (defface org-ellipsis
> -- 
> 1.8.4
> 



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [O] C-u C-u C-c ! inserts an active timestamp.

2013-09-21 Thread Carsten Dominik
Applied, thanks you Nicolas.

- Carsten

On 16.9.2013, at 15:42, Nicolas Richard  wrote:

> I suggest the following change so that C-u C-u C-c ! inserts an inactive
> timestamp. I also document the INACTIVE argument of org-time-stamp.
> 
> -- 
> Nicolas.
> 
> From 5cdb18297d92f2d99334d98aa2f3b8a40e44702f Mon Sep 17 00:00:00 2001
> From: Nicolas Richard 
> Date: Mon, 29 Apr 2013 09:02:21 +0200
> Subject: [PATCH] Enforce the convention that C-c ! inserts inactive
> timestamps.
> 
> * lisp/org.el (org-time-stamp): When INACTIVE is non-nil, insert an
>  inactive timestamp also with double universal argument.
> ---
> lisp/org.el | 7 +--
> 1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/lisp/org.el b/lisp/org.el
> index 59a22a2..044d06f 100644
> --- a/lisp/org.el
> +++ b/lisp/org.el
> @@ -16036,7 +16036,10 @@ If there is already a timestamp at the cursor, it 
> will be
> modified.
> 
> With two universal prefix arguments, insert an active timestamp
> -with the current time without prompting the user."
> +with the current time without prompting the user.
> +
> +When called from lisp, the timestamp is inactive if INACTIVE is
> +non-nil."
>   (interactive "P")
>   (let* ((ts nil)
>(default-time
> @@ -16083,7 +16086,7 @@ with the current time without prompting the user."
>   " " repeater ">"
>   (message "Timestamp updated"))
>  ((equal arg '(16))
> -  (org-insert-time-stamp (current-time) t))
> +  (org-insert-time-stamp (current-time) t inactive))
>  (t
>   (setq time (let ((this-command this-command))
>  (org-read-date arg 'totime nil nil default-time 
> default-input inactive)))
> -- 
> 1.8.1.5
> 
> 



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [O] [Babel] HTML Export has garbage characters ...

2013-09-21 Thread Eric Schulte
This sounds like a conflict between htmlize and fillcolumnindicator.
I'd report it to the author of htmlize (see the comments at the top of
htmlize.el).

Thanks for hunting this down.

Cheers,

aditya siram  writes:

> The problem is fill-column indicator [1]. When I loaded Emacs without it
> there were no garbage characters. I'm not sure who I should be reporting
> this issue to.
>
> -deech
>
> [1] http://www.emacswiki.org/emacs/FillColumnIndicator
>
>
> On Sat, Sep 21, 2013 at 3:53 PM, aditya siram wrote:
>
>> You're right, it's something in my env. I just loaded up a vanilla emacs
>> with the latest org-mode and I don't see it either. Sorry for the noise.
>> Any clue what it might be? I don't know a whole lot about the new org
>> exporter. I guess I'll start removing things in my config until I figure it
>> out.
>>
>> Thanks for your time!
>> -deech
>>
>>
>>
>> On Sat, Sep 21, 2013 at 3:38 PM, Eric Schulte wrote:
>>
>>> With the latest Org-mode I don't see the behavior you mention, I suspect
>>> it may be due to something else in your config or environment.
>>>
>>> Here's some easily reproducible commands which run export without
>>> loading the local config.  Notice that I don't get any garbage in the
>>> output.
>>>
>>> 14:35 bagel:/tmp cat garbage.org
>>> * Headline
>>>   #+BEGIN_SRC sh
>>>   test source
>>>   #+END_SRC
>>>
>>> 14:35 bagel:/tmp emacs --batch --eval "(progn (add-to-list 'load-path
>>> \"~/src/org-mode/lisp\") (require 'org))" garbage.org -f
>>> org-html-export-to-html
>>> OVERVIEW
>>> Cannot fontify src block (htmlize.el >= 1.34 required)
>>> Saving file /tmp/garbage.html...
>>> Wrote /tmp/garbage.html
>>>
>>> 14:35 bagel:/tmp grep -C 2 "test source" garbage.html
>>> 
>>>
>>> test source
>>> 
>>> 
>>>
>>> 14:35 bagel:/tmp emacs --batch --eval "(progn (add-to-list 'load-path
>>> \"~/src/org-mode/lisp\") (require 'org) (message (org-version)))"
>>> 8.2
>>>
>>> 14:35 bagel:/tmp emacs --version
>>> GNU Emacs 24.3.1
>>> Copyright (C) 2013 Free Software Foundation, Inc.
>>> GNU Emacs comes with ABSOLUTELY NO WARRANTY.
>>> You may redistribute copies of Emacs
>>> under the terms of the GNU General Public License.
>>> For more information about these matters, see the file named COPYING.
>>>
>>> aditya siram  writes:
>>>
>>> > Using the org-mode that ships with Emacs 24.3.50.1 [1] I processed the
>>> file
>>> > using `org-export-to-html` and could not reproduce the issue.
>>> >
>>> > The org-mode from HEAD doesn't have `org-export-to-html` since the
>>> backends
>>> > were re-written and I have to use `org-html-export-to-html` and am
>>> seeing
>>> > this issue.
>>> >
>>> > Thanks for taking the time ...
>>> > -deech
>>> >
>>> > [1] Org-mode version 7.9.3f
>>> >
>>> >
>>> > On Sat, Sep 21, 2013 at 2:41 PM, Eric Schulte >> >wrote:
>>> >
>>> >> I can't reproduce this problem.  Do you still see the problem with a
>>> >> minimal Emacs config starting with "emacs -Q"?
>>> >>
>>> >> Do you see this on export to other backends?
>>> >>
>>> >> aditya siram  writes:
>>> >>
>>> >> > Hi all,
>>> >> > I'm on org-mode version:
>>> >> > Org-mode version 8.2 (release_8.2-8-g16a57e @
>>> >> > /home/deech/EmacsConfig/org-mode/lisp/)
>>> >> >
>>> >> > Unfortunately the html exporter has some garbage characters at the
>>> end of
>>> >> > every line.
>>> >> >
>>> >> > Here's a small org file:
>>> >> > * Headline
>>> >> >   #+BEGIN_SRC sh
>>> >> >   test source
>>> >> >   #+END_SRC
>>> >> >
>>> >> > The resulting HTML is attached.
>>> >> >
>>> >> > Thanks!
>>> >> > -deech
>>> >> >
>>> >> > test-html-export
>>> >> >
>>> >> > Table of Contents
>>> >> >
>>> >> >  * 1. Headline
>>> >> >
>>> >> > 1 Headline
>>> >> >
>>> >> > test source
>>> >> >
>>> >> >Author: deech
>>> >> >
>>> >> >Created: 2013-09-20 Fri 16:49
>>> >> >
>>> >> >Emacs 24.3.50.1 (Org mode 8.2)
>>> >> >
>>> >> >Validate
>>> >>
>>> >> --
>>> >> Eric Schulte
>>> >> https://cs.unm.edu/~eschulte
>>> >> PGP: 0x614CA05D
>>> >>
>>>
>>> --
>>> Eric Schulte
>>> https://cs.unm.edu/~eschulte
>>> PGP: 0x614CA05D
>>>
>>
>>

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D



Re: [O] [Babel] HTML Export has garbage characters ...

2013-09-21 Thread aditya siram
The problem is fill-column indicator [1]. When I loaded Emacs without it
there were no garbage characters. I'm not sure who I should be reporting
this issue to.

-deech

[1] http://www.emacswiki.org/emacs/FillColumnIndicator


On Sat, Sep 21, 2013 at 3:53 PM, aditya siram wrote:

> You're right, it's something in my env. I just loaded up a vanilla emacs
> with the latest org-mode and I don't see it either. Sorry for the noise.
> Any clue what it might be? I don't know a whole lot about the new org
> exporter. I guess I'll start removing things in my config until I figure it
> out.
>
> Thanks for your time!
> -deech
>
>
>
> On Sat, Sep 21, 2013 at 3:38 PM, Eric Schulte wrote:
>
>> With the latest Org-mode I don't see the behavior you mention, I suspect
>> it may be due to something else in your config or environment.
>>
>> Here's some easily reproducible commands which run export without
>> loading the local config.  Notice that I don't get any garbage in the
>> output.
>>
>> 14:35 bagel:/tmp cat garbage.org
>> * Headline
>>   #+BEGIN_SRC sh
>>   test source
>>   #+END_SRC
>>
>> 14:35 bagel:/tmp emacs --batch --eval "(progn (add-to-list 'load-path
>> \"~/src/org-mode/lisp\") (require 'org))" garbage.org -f
>> org-html-export-to-html
>> OVERVIEW
>> Cannot fontify src block (htmlize.el >= 1.34 required)
>> Saving file /tmp/garbage.html...
>> Wrote /tmp/garbage.html
>>
>> 14:35 bagel:/tmp grep -C 2 "test source" garbage.html
>> 
>>
>> test source
>> 
>> 
>>
>> 14:35 bagel:/tmp emacs --batch --eval "(progn (add-to-list 'load-path
>> \"~/src/org-mode/lisp\") (require 'org) (message (org-version)))"
>> 8.2
>>
>> 14:35 bagel:/tmp emacs --version
>> GNU Emacs 24.3.1
>> Copyright (C) 2013 Free Software Foundation, Inc.
>> GNU Emacs comes with ABSOLUTELY NO WARRANTY.
>> You may redistribute copies of Emacs
>> under the terms of the GNU General Public License.
>> For more information about these matters, see the file named COPYING.
>>
>> aditya siram  writes:
>>
>> > Using the org-mode that ships with Emacs 24.3.50.1 [1] I processed the
>> file
>> > using `org-export-to-html` and could not reproduce the issue.
>> >
>> > The org-mode from HEAD doesn't have `org-export-to-html` since the
>> backends
>> > were re-written and I have to use `org-html-export-to-html` and am
>> seeing
>> > this issue.
>> >
>> > Thanks for taking the time ...
>> > -deech
>> >
>> > [1] Org-mode version 7.9.3f
>> >
>> >
>> > On Sat, Sep 21, 2013 at 2:41 PM, Eric Schulte > >wrote:
>> >
>> >> I can't reproduce this problem.  Do you still see the problem with a
>> >> minimal Emacs config starting with "emacs -Q"?
>> >>
>> >> Do you see this on export to other backends?
>> >>
>> >> aditya siram  writes:
>> >>
>> >> > Hi all,
>> >> > I'm on org-mode version:
>> >> > Org-mode version 8.2 (release_8.2-8-g16a57e @
>> >> > /home/deech/EmacsConfig/org-mode/lisp/)
>> >> >
>> >> > Unfortunately the html exporter has some garbage characters at the
>> end of
>> >> > every line.
>> >> >
>> >> > Here's a small org file:
>> >> > * Headline
>> >> >   #+BEGIN_SRC sh
>> >> >   test source
>> >> >   #+END_SRC
>> >> >
>> >> > The resulting HTML is attached.
>> >> >
>> >> > Thanks!
>> >> > -deech
>> >> >
>> >> > test-html-export
>> >> >
>> >> > Table of Contents
>> >> >
>> >> >  * 1. Headline
>> >> >
>> >> > 1 Headline
>> >> >
>> >> > test source
>> >> >
>> >> >Author: deech
>> >> >
>> >> >Created: 2013-09-20 Fri 16:49
>> >> >
>> >> >Emacs 24.3.50.1 (Org mode 8.2)
>> >> >
>> >> >Validate
>> >>
>> >> --
>> >> Eric Schulte
>> >> https://cs.unm.edu/~eschulte
>> >> PGP: 0x614CA05D
>> >>
>>
>> --
>> Eric Schulte
>> https://cs.unm.edu/~eschulte
>> PGP: 0x614CA05D
>>
>
>


[O] Summary: File-local export filters

2013-09-21 Thread Carsten Dominik

On 21.9.2013, at 14:44, Nicolas Goaziou  wrote:

> Carsten Dominik  writes:
> 
>> OK, I'll try this. However, if the code is a bit more extensive, an
>> SRC block would make it more comfortable to maintain this code inside
>> a file. If I want to write a somewhat complex filter function, it is
>> not convenient to do so in #+BIND line.
> 
> I can't see why it would be inconvenient, since you needn't define the
> filter within the BIND keyword.
> 
> Anyway, you can write a source block that sets locally the filters. That
> should work too.

Indeed, this can be done.  Here is an example (thanks also to Eric for
quick help with the export arguments):

* Special export setup :noexport:

#+begin_src emacs-lisp :exports results :results none
  (defun my-org-export-filter-timestamp-function (timestamp backend info)
"removes relevant brackets from a timestamp"
(when (org-export-derived-backend-p backend 'html)
  (replace-regexp-in-string "&[gl]t;\\|[][]" "" timestamp)))
  (make-local-variable 'org-export-filter-timestamp-functions)
  (add-to-list 'org-export-filter-timestamp-functions
   'my-org-export-filter-timestamp-function)
#+end_src

- Carsten


signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [O] managing a work log

2013-09-21 Thread Adam Spiers
Hi Bastien,

Sorry for the incredibly delayed response to this ...

On Sun, Jun 30, 2013 at 11:22:41PM +0200, Bastien wrote:
> Adam Spiers  writes:
> > With `org-archive-mark-done' set to `t', entries will be marked as
> > done when `org-archive-subtree' is invoked.  However, this does not
> > honour the expected behaviour when `org-log-done' is set to `'time',
> > i.e. that a `CLOSED: [timestamp]' line will be inserted just after the
> > headline.  Is that a bug/feature, or am I missing something?
> 
> I get the same behavior but there is a ARCHIVE_TIME property,
> which tells you what time the entry was archived-and-marked-done.
> Why would you want redundant information with a CLOSED timestamp
> here?  Are you handling the CLOSED cookie in a specific way?

ARCHIVE_TIME is not honoured by log-mode.  I have a custom agenda
command which sets org-agenda-start-with-log-mode to '(closed clock)
and org-agenda-entry-types to '(:timestamp :sexp), so that I can
easily create a weekly work report to mail out to my team.  The CLOSED
cookie is required in order for DONE items to appear in this report.



Re: [O] [dev] New version of org-index.el --- A personal index for org and beyond

2013-09-21 Thread Marc-Oliver Ihm

Hi Alan

Alan Schmitt  writes:

>
> I'm trying org-index, and I let the assistant build the table for me. At
> the end of the set, this error occurred:
>
> ,
> | Saved org-index-id '50E94CE9-06B3-452E-96B6-FA47AA08B9D6' to 
> /Users/schmitta/.emacs.d/custom.el
> | let: No catch for tag: created-new-index, nil
> `
>
> Is this problematic?
>

No, not really ... The assistant has finished its work properly and this
tag is just thrown to bail out without signaling an error. However, you
still get an error, which is an annoyance to address. Thanx for reporting !

> Here are a few notes I'm taking as I'm playing with it.
>
> First, the table seems to be different from the one on worg. Here are
> the columns I have:
>
>   | |  |  | |   | comment   |
>   | ref | link | created  | count;s | last-accessed | ;c|
>   | | <4>  |  | |   |   |
>
> I guess "comment" includes Type, description, and Keywords? Or can I
> extend this table as I see fit?
>

Yes, just add any further columns you need. As long as the do not have a
semicolon, they are ignored. You can also reorder columns according to
your needs.

> Second, I don't see how to update a link in a table so that it points
> somewhere else. Should I just copy the "Property" drawer to the new place?

Yes, this is possible; or you could copy the id-property from the new
place into the index-table.

> Also, I noticed it's impossible to create a link to a file. If a file
> does not have any org entry, then org-index link will fail with "Before
> first headline at position 35591 in buffer ...". I can go around this by
> creating an headline, but then I cannot use saveplace or something like
> that to put me in the same place in the file (typically at the very end
> of a long data table, to input more data).

Currently org-index uses the function org-id-get-create to create the
link. This function needs an org-mode nodes and whence org-index has the
same limitation. However, it might be possible to create more general
links here, that would be able to point to non-org files. I will check
this for the next version.

> Finally, what is the workflow to create a new reference? The way I do it
> is "link" from the place to link, then call "+fill" in the table. Is
> there a simpler way (that would do both in one stroke)?

Definitely: With the initial prompt just choose "ref"; this will only
create a new reference, but not a link. If you want both, then you
currently have to use the workflow you described. However, having a
feature, that allows both, would be easy to implement, if needed.


best regards,
Marc




[O] autocompleting from interactive

2013-09-21 Thread davidam9
Hi,

I'm interested about how can I autocomplete arguments from
interactive. Someone has a tip?

Thanks!






Re: [O] [Babel] HTML Export has garbage characters ...

2013-09-21 Thread aditya siram
You're right, it's something in my env. I just loaded up a vanilla emacs
with the latest org-mode and I don't see it either. Sorry for the noise.
Any clue what it might be? I don't know a whole lot about the new org
exporter. I guess I'll start removing things in my config until I figure it
out.

Thanks for your time!
-deech


On Sat, Sep 21, 2013 at 3:38 PM, Eric Schulte wrote:

> With the latest Org-mode I don't see the behavior you mention, I suspect
> it may be due to something else in your config or environment.
>
> Here's some easily reproducible commands which run export without
> loading the local config.  Notice that I don't get any garbage in the
> output.
>
> 14:35 bagel:/tmp cat garbage.org
> * Headline
>   #+BEGIN_SRC sh
>   test source
>   #+END_SRC
>
> 14:35 bagel:/tmp emacs --batch --eval "(progn (add-to-list 'load-path
> \"~/src/org-mode/lisp\") (require 'org))" garbage.org -f
> org-html-export-to-html
> OVERVIEW
> Cannot fontify src block (htmlize.el >= 1.34 required)
> Saving file /tmp/garbage.html...
> Wrote /tmp/garbage.html
>
> 14:35 bagel:/tmp grep -C 2 "test source" garbage.html
> 
>
> test source
> 
> 
>
> 14:35 bagel:/tmp emacs --batch --eval "(progn (add-to-list 'load-path
> \"~/src/org-mode/lisp\") (require 'org) (message (org-version)))"
> 8.2
>
> 14:35 bagel:/tmp emacs --version
> GNU Emacs 24.3.1
> Copyright (C) 2013 Free Software Foundation, Inc.
> GNU Emacs comes with ABSOLUTELY NO WARRANTY.
> You may redistribute copies of Emacs
> under the terms of the GNU General Public License.
> For more information about these matters, see the file named COPYING.
>
> aditya siram  writes:
>
> > Using the org-mode that ships with Emacs 24.3.50.1 [1] I processed the
> file
> > using `org-export-to-html` and could not reproduce the issue.
> >
> > The org-mode from HEAD doesn't have `org-export-to-html` since the
> backends
> > were re-written and I have to use `org-html-export-to-html` and am seeing
> > this issue.
> >
> > Thanks for taking the time ...
> > -deech
> >
> > [1] Org-mode version 7.9.3f
> >
> >
> > On Sat, Sep 21, 2013 at 2:41 PM, Eric Schulte  >wrote:
> >
> >> I can't reproduce this problem.  Do you still see the problem with a
> >> minimal Emacs config starting with "emacs -Q"?
> >>
> >> Do you see this on export to other backends?
> >>
> >> aditya siram  writes:
> >>
> >> > Hi all,
> >> > I'm on org-mode version:
> >> > Org-mode version 8.2 (release_8.2-8-g16a57e @
> >> > /home/deech/EmacsConfig/org-mode/lisp/)
> >> >
> >> > Unfortunately the html exporter has some garbage characters at the
> end of
> >> > every line.
> >> >
> >> > Here's a small org file:
> >> > * Headline
> >> >   #+BEGIN_SRC sh
> >> >   test source
> >> >   #+END_SRC
> >> >
> >> > The resulting HTML is attached.
> >> >
> >> > Thanks!
> >> > -deech
> >> >
> >> > test-html-export
> >> >
> >> > Table of Contents
> >> >
> >> >  * 1. Headline
> >> >
> >> > 1 Headline
> >> >
> >> > test source
> >> >
> >> >Author: deech
> >> >
> >> >Created: 2013-09-20 Fri 16:49
> >> >
> >> >Emacs 24.3.50.1 (Org mode 8.2)
> >> >
> >> >Validate
> >>
> >> --
> >> Eric Schulte
> >> https://cs.unm.edu/~eschulte
> >> PGP: 0x614CA05D
> >>
>
> --
> Eric Schulte
> https://cs.unm.edu/~eschulte
> PGP: 0x614CA05D
>


Re: [O] [Babel] HTML Export has garbage characters ...

2013-09-21 Thread Eric Schulte
With the latest Org-mode I don't see the behavior you mention, I suspect
it may be due to something else in your config or environment.

Here's some easily reproducible commands which run export without
loading the local config.  Notice that I don't get any garbage in the
output.

14:35 bagel:/tmp cat garbage.org 
* Headline   
  #+BEGIN_SRC sh
  test source
  #+END_SRC

14:35 bagel:/tmp emacs --batch --eval "(progn (add-to-list 'load-path 
\"~/src/org-mode/lisp\") (require 'org))" garbage.org -f 
org-html-export-to-html
OVERVIEW 
Cannot fontify src block (htmlize.el >= 1.34 required)
Saving file /tmp/garbage.html...
Wrote /tmp/garbage.html

14:35 bagel:/tmp grep -C 2 "test source" garbage.html
  

test source



14:35 bagel:/tmp emacs --batch --eval "(progn (add-to-list 'load-path 
\"~/src/org-mode/lisp\") (require 'org) (message (org-version)))"
8.2

14:35 bagel:/tmp emacs --version
   
GNU Emacs 24.3.1
Copyright (C) 2013 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

aditya siram  writes:

> Using the org-mode that ships with Emacs 24.3.50.1 [1] I processed the file
> using `org-export-to-html` and could not reproduce the issue.
>
> The org-mode from HEAD doesn't have `org-export-to-html` since the backends
> were re-written and I have to use `org-html-export-to-html` and am seeing
> this issue.
>
> Thanks for taking the time ...
> -deech
>
> [1] Org-mode version 7.9.3f
>
>
> On Sat, Sep 21, 2013 at 2:41 PM, Eric Schulte wrote:
>
>> I can't reproduce this problem.  Do you still see the problem with a
>> minimal Emacs config starting with "emacs -Q"?
>>
>> Do you see this on export to other backends?
>>
>> aditya siram  writes:
>>
>> > Hi all,
>> > I'm on org-mode version:
>> > Org-mode version 8.2 (release_8.2-8-g16a57e @
>> > /home/deech/EmacsConfig/org-mode/lisp/)
>> >
>> > Unfortunately the html exporter has some garbage characters at the end of
>> > every line.
>> >
>> > Here's a small org file:
>> > * Headline
>> >   #+BEGIN_SRC sh
>> >   test source
>> >   #+END_SRC
>> >
>> > The resulting HTML is attached.
>> >
>> > Thanks!
>> > -deech
>> >
>> > test-html-export
>> >
>> > Table of Contents
>> >
>> >  * 1. Headline
>> >
>> > 1 Headline
>> >
>> > test source
>> >
>> >Author: deech
>> >
>> >Created: 2013-09-20 Fri 16:49
>> >
>> >Emacs 24.3.50.1 (Org mode 8.2)
>> >
>> >Validate
>>
>> --
>> Eric Schulte
>> https://cs.unm.edu/~eschulte
>> PGP: 0x614CA05D
>>

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D



Re: [O] [Babel] HTML Export has garbage characters ...

2013-09-21 Thread aditya siram
Using the org-mode that ships with Emacs 24.3.50.1 [1] I processed the file
using `org-export-to-html` and could not reproduce the issue.

The org-mode from HEAD doesn't have `org-export-to-html` since the backends
were re-written and I have to use `org-html-export-to-html` and am seeing
this issue.

Thanks for taking the time ...
-deech

[1] Org-mode version 7.9.3f


On Sat, Sep 21, 2013 at 2:41 PM, Eric Schulte wrote:

> I can't reproduce this problem.  Do you still see the problem with a
> minimal Emacs config starting with "emacs -Q"?
>
> Do you see this on export to other backends?
>
> aditya siram  writes:
>
> > Hi all,
> > I'm on org-mode version:
> > Org-mode version 8.2 (release_8.2-8-g16a57e @
> > /home/deech/EmacsConfig/org-mode/lisp/)
> >
> > Unfortunately the html exporter has some garbage characters at the end of
> > every line.
> >
> > Here's a small org file:
> > * Headline
> >   #+BEGIN_SRC sh
> >   test source
> >   #+END_SRC
> >
> > The resulting HTML is attached.
> >
> > Thanks!
> > -deech
> >
> > test-html-export
> >
> > Table of Contents
> >
> >  * 1. Headline
> >
> > 1 Headline
> >
> > test source
> >
> >Author: deech
> >
> >Created: 2013-09-20 Fri 16:49
> >
> >Emacs 24.3.50.1 (Org mode 8.2)
> >
> >Validate
>
> --
> Eric Schulte
> https://cs.unm.edu/~eschulte
> PGP: 0x614CA05D
>


Re: [O] [Babel] HTML Export has garbage characters ...

2013-09-21 Thread Eric Schulte
I can't reproduce this problem.  Do you still see the problem with a
minimal Emacs config starting with "emacs -Q"?

Do you see this on export to other backends?

aditya siram  writes:

> Hi all,
> I'm on org-mode version:
> Org-mode version 8.2 (release_8.2-8-g16a57e @
> /home/deech/EmacsConfig/org-mode/lisp/)
>
> Unfortunately the html exporter has some garbage characters at the end of
> every line.
>
> Here's a small org file:
> * Headline
>   #+BEGIN_SRC sh
>   test source
>   #+END_SRC
>
> The resulting HTML is attached.
>
> Thanks!
> -deech
>
> test-html-export
>
> Table of Contents
>
>  * 1. Headline
>
> 1 Headline
>
> test source
>
>Author: deech
>
>Created: 2013-09-20 Fri 16:49
>
>Emacs 24.3.50.1 (Org mode 8.2)
>
>Validate

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D



[O] [Babel] HTML Export has garbage characters ...

2013-09-21 Thread aditya siram
Hi all,
I'm on org-mode version:
Org-mode version 8.2 (release_8.2-8-g16a57e @
/home/deech/EmacsConfig/org-mode/lisp/)

Unfortunately the html exporter has some garbage characters at the end of
every line.

Here's a small org file:
* Headline
  #+BEGIN_SRC sh
  test source
  #+END_SRC

The resulting HTML is attached.

Thanks!
-deech
Title: test-html-export






test-html-export

Table of Contents


1. Headline




1 Headline



test source






Author: deech
Created: 2013-09-20 Fri 16:49
Emacs 24.3.50.1 (Org mode 8.2)
Validate





[O] User Defined Functions in Agenda Views

2013-09-21 Thread Mike McLean
Hello

I looked at the doc string for ~org-agenda-custom-commands~ and noticed that 
the you can use a user-defined function as a valid command type. I did not find 
anything in the documentation that describes how that user-defined function 
should work, what it should do, or how to write one. I looked at the code for 
other agenda types, such as ~tags-todo~ and ~occur-tree~ and have guessed at 
how to form one of these.

I can write documentation and samples if anyone want it (either to add to Org 
documentation or as a page on Worg), but want to ensure that I understand 
completely and correctly, first.

With that said, can those with far more knowledegble about Org code comment on 
my thoughts below.

The user defined function for an agenda view:
The Org agenda dispatch function will call a user-defined function with one 
parameter representing the ``match'' component from the agenda definition. In 
other words, ~(udf-test "Hello")~ in ~org-agenda-custom-commands~ will result 
in a function call of ~udf-test~ with an argument of "Hello".
The ~org-agenda-custom-commands~ varible does not requred a parameter and 
therefore the dispatcher does not require one. Define an user-defined wiht an 
optional argument: ~(defun udf-test (&optional org-match) "documentation…" 
<>)~
The user defined function should prepared a buffer to write the agenda 
information to using ~org-agenda-prepare~
The user defined function should handle setting a unique buffer name for the 
cases where ~org-agenda-sticky~ has a value of ~t~
Honor the setting of ~org-agenda-overriding-header~ and insert that text into 
the agenda buffer
Insert into the buffer the desired contents, accounting for also setting text 
properties (translation: “Magic happens here”)
Call ~org-agenda-finalize~ and ~(setq buffer-read-only t)~

Does this cover the basics?

Mike



Re: [O] Strange Behaviour while rescheduling date

2013-09-21 Thread G. Martin Butz

Hi,

once more me - in case anyone is interested. I finally went through my 
config file step by step. The responsible lines in my .emacs were:


---8<
(defadvice split-window (after move-point-to-new-window activate)
  "Moves the point to the newly created window after splitting."
  (other-window 1))
---8<

Martin

Am 20.09.2013 21:12, schrieb G. Martin Butz:

Hi,

I tried to describe this error a while ago, but did not get any response
- probably due to the fact, that I can not find out, how to securely
reproduce this very annoying behaviour; I will try to describe:

1. I try to reschedule an entry (C-c C-s)
2. The buffer with the org file seems to be replaced by a calendar
3. Futhermore 2 additional buffers appear with the calendar in it
4. If can not assign a date meaning cursor movement (Shift Left/Right)
seems to be random e.g. skipping a few day and also going in the wrong
direction (e.g. left means right)
5. If I try quitting emacs, I am asked if I want to save the original
org-mode buffer (in which I tried to reschedule a date)
6. If I dare to do this, emacs will write the calender into this buffer
thereby erasing the original org mode file.

I tried to deliver a backtrace (load org-mode and activate the debugger
according to [1]) but: There is no error message at all (!sic)!

The only thing I could do is to make a screenshot showing state no. 3 [2].

This makes keeping track of dates in org-mode almost unusable for me.
Does anyone have an idea, what I could do to pinpoint this behaviour?

I am running org-mode 8.2 (updated today, but have had this error since
a while) on emacs 24.3.1 on Linux Crunchbang Waldorf.

Thanks for any hints and thanks alot for wonderful org-mode in general
Martin

[1] 
[2] 



--

| G. Martin Butz, m...@mkblog.org, 0421 98749324, www.mkblog.org |




Re: [O] Strange Behaviour while rescheduling date

2013-09-21 Thread G. Martin Butz
In case I try to reschedule a date from the weekly agenda view I get the 
following backtrace; I am under the impression, that this seems not to 
be the bug, which I have tried to describe in the last message, but at 
least it shows, that something is wrong (with my setup/emacs/org?)


8<-
Debugger entered--Lisp error: (error "Before first headline at position 
1 in buffer date.org")

  signal(error ("Before first headline at position 1 in buffer date.org"))
  error("Before first headline at position %d in buffer %s" 1 #date.org>)
  (condition-case nil (outline-back-to-heading invisible-ok) (error 
(error "Before first headline at position %d in buffer %s" (point) 
(current-buffer

  org-back-to-heading(t)
(...)
8<-

(I post the full backtrace message as txt-attachment).

Thanks
Martin


Am 20.09.2013 21:12, schrieb G. Martin Butz:

Hi,

I tried to describe this error a while ago, but did not get any response
- probably due to the fact, that I can not find out, how to securely
reproduce this very annoying behaviour; I will try to describe:

1. I try to reschedule an entry (C-c C-s)
2. The buffer with the org file seems to be replaced by a calendar
3. Futhermore 2 additional buffers appear with the calendar in it
4. If can not assign a date meaning cursor movement (Shift Left/Right)
seems to be random e.g. skipping a few day and also going in the wrong
direction (e.g. left means right)
5. If I try quitting emacs, I am asked if I want to save the original
org-mode buffer (in which I tried to reschedule a date)
6. If I dare to do this, emacs will write the calender into this buffer
thereby erasing the original org mode file.

I tried to deliver a backtrace (load org-mode and activate the debugger
according to [1]) but: There is no error message at all (!sic)!

The only thing I could do is to make a screenshot showing state no. 3 [2].

This makes keeping track of dates in org-mode almost unusable for me.
Does anyone have an idea, what I could do to pinpoint this behaviour?

I am running org-mode 8.2 (updated today, but have had this error since
a while) on emacs 24.3.1 on Linux Crunchbang Waldorf.

Thanks for any hints and thanks alot for wonderful org-mode in general
Martin

[1] 
[2] 



--

| G. Martin Butz, m...@mkblog.org, 0421 98749324, www.mkblog.org |

Debugger entered--Lisp error: (error "Before first headline at position 1 in 
buffer date.org")
  signal(error ("Before first headline at position 1 in buffer date.org"))
  error("Before first headline at position %d in buffer %s" 1 #)
  (condition-case nil (outline-back-to-heading invisible-ok) (error (error 
"Before first headline at position %d in buffer %s" (point) (current-buffer
  org-back-to-heading(t)
  (let (col list elt ts buffer-invisibility-spec) (org-back-to-heading t) 
(looking-at (concat org-outline-regexp "\\( *\\)[^
\n]*")) (goto-char (match-end 1)) (setq col (current-column)) (goto-char 
(match-end 0)) (if (eobp) (insert "\n") (forward-char 1)) (if (and (not what) 
(not (looking-at (concat "[  ]*" org-keyword-time-not-clock-regexp 
(progn (throw (quote exit) nil))) (if (and (not (looking-at 
org-outline-regexp)) (looking-at (concat "[^
\n]*?" org-keyword-time-regexp "[^
\n]*")) (not (equal (match-string 1) org-clock-string))) (narrow-to-region 
(match-beginning 0) (match-end 0)) (insert-before-markers "\n") (backward-char 
1) (narrow-to-region (point) (point)) (and org-adapt-indentation 
(org-indent-to-column col))) (setq list (cons what remove)) (while list (setq 
elt (car (prog1 list (setq list (cdr list) (if (or (and (eq elt (quote 
scheduled)) (re-search-forward org-scheduled-time-regexp nil t)) (and (eq elt 
(quote deadline)) (re-search-forward org-deadline-time-regexp nil t)) (and (eq 
elt (quote closed)) (re-search-forward org-closed-time-regexp nil t))) (progn 
(replace-match "") (if (looking-at "--+<[^>]+>") (replace-match "") (and 
(looking-at "[  ]+") (replace-match "")) (and org-adapt-indentation (bolp) 
(org-indent-to-column col)) (if what (progn (insert (if (not (or (bolp) (eq ... 
32))) " " "") (cond ((eq what (quote scheduled)) org-scheduled-string) ((eq 
what (quote deadline)) org-deadline-string) ((eq what (quote closed)) 
org-closed-string)) " ") (setq ts (org-insert-time-stamp time (or 
org-time-was-given (and (eq what ...) org-log-done-with-time)) (eq what (quote 
closed)) nil nil (list org-end-time-was-given))) (insert (if (not (or (bolp) 
(eq ... 32) (memq ... ...) (eobp))) " " "")) (end-of-line 1))) (goto-char 
(point-min)) (widen) (if (and (looking-at "[   ]*\n") (equal (char-before) 
10)) (delete-region (1- (point)) (point

Re: [O] BUG?: BABEL - Release 8.2

2013-09-21 Thread Ista Zahn
I observe the same behavior with org installed from
elpa/org-plus-contrib-20130916.

Best,
Ista

On Sat, Sep 21, 2013 at 9:54 AM, Rainer M Krug  wrote:
> Just to reiterate - is this only me or others as well? I consider this
> as a serious problem, as it can result in loss of data.
>
> If it is only me, I have to dig deeper into my config.
>
> Cheers,
>
> Rainer
>
> Rainer M Krug  writes:
>
>> Carsten Dominik  writes:
>>
>>>
>>> Hi everyone,
>>>
>>> I have just released version 8.2 of Org mode.  This is rather a minor 
>>> release,
>>> mainly designed to do some stabilization and cleanup before the merge
>>> into Emacs.  Bastien will do this next week (?).
>>
>> Just upgraded, to 8.2 and I found a bug:
>>
>> When starting to edit a code block via C-c ' everything works as expected
>> and the code block is highlighted and an indirect buffer is opened.
>>
>> When I click into the highlighted block, I an "send" to the indirect
>> buffer. This behavior changes, after saving with C-s, even when nothing
>> has been edited: the area in the original org file looses its magic, and
>> looks normal again and can also be edited!
>>
>> he indirect buffer stays functional and, upon close vie C-c ' saves the
>> changes into the original buffer and overwrites changes done in this block.
>>
>> Can somebody please confirm?
>>
>> Rainer
> <#secure method=pgpmime mode=sign>
>
> --
> Rainer M. Krug
>
> email: RMKruggmailcom
>
>



Re: [O] BUG?: Org-src - Release 8.2

2013-09-21 Thread Eric Schulte
One possible reason for a lack of reply is the miss-tagging with "babel"
in the subject line.  This doesn't have anything to do with code block
execution, so I've re-tagged the subject and hopefully someone with
knowledge of this portion of the code will reply.

Cheers,

Rainer M Krug  writes:

> Just to reiterate - is this only me or others as well? I consider this
> as a serious problem, as it can result in loss of data.
>
> If it is only me, I have to dig deeper into my config.
>
> Cheers,
>
> Rainer 
>
> Rainer M Krug  writes:
>
>> Carsten Dominik  writes:
>>
>>> 
>>> Hi everyone,
>>>
>>> I have just released version 8.2 of Org mode.  This is rather a minor 
>>> release,
>>> mainly designed to do some stabilization and cleanup before the merge
>>> into Emacs.  Bastien will do this next week (?).
>>
>> Just upgraded, to 8.2 and I found a bug:
>>
>> When starting to edit a code block via C-c ' everything works as expected
>> and the code block is highlighted and an indirect buffer is opened.
>>
>> When I click into the highlighted block, I an "send" to the indirect
>> buffer. This behavior changes, after saving with C-s, even when nothing
>> has been edited: the area in the original org file looses its magic, and
>> looks normal again and can also be edited! 
>>
>> he indirect buffer stays functional and, upon close vie C-c ' saves the
>> changes into the original buffer and overwrites changes done in this block.
>>
>> Can somebody please confirm?
>>
>> Rainer
> <#secure method=pgpmime mode=sign>
>

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D



[O] link inside square bracket

2013-09-21 Thread pw

Hi,

I would like to insert a link inside square brackets. For example, I 
want to have : [link].


If I write in org-mode this : [[[http://...][description]]] org-mode 
formats automatically the link into this : {description}.


Org-mode replaces my square brackets by curly ones. How do I avoid this ?

pw



Re: [O] BUG?: BABEL - Release 8.2

2013-09-21 Thread Rainer M Krug
Just to reiterate - is this only me or others as well? I consider this
as a serious problem, as it can result in loss of data.

If it is only me, I have to dig deeper into my config.

Cheers,

Rainer 

Rainer M Krug  writes:

> Carsten Dominik  writes:
>
>>  
>> Hi everyone,
>>
>> I have just released version 8.2 of Org mode.  This is rather a minor 
>> release,
>> mainly designed to do some stabilization and cleanup before the merge
>> into Emacs.  Bastien will do this next week (?).
>
> Just upgraded, to 8.2 and I found a bug:
>
> When starting to edit a code block via C-c ' everything works as expected
> and the code block is highlighted and an indirect buffer is opened.
>
> When I click into the highlighted block, I an "send" to the indirect
> buffer. This behavior changes, after saving with C-s, even when nothing
> has been edited: the area in the original org file looses its magic, and
> looks normal again and can also be edited! 
>
> he indirect buffer stays functional and, upon close vie C-c ' saves the
> changes into the original buffer and overwrites changes done in this block.
>
> Can somebody please confirm?
>
> Rainer
<#secure method=pgpmime mode=sign>

-- 
Rainer M. Krug

email: RMKruggmailcom




Re: [O] [dev] New version of org-index.el --- A personal index for org and beyond

2013-09-21 Thread Alan Schmitt
Hello Marc,

m...@ihm.name writes:

> Hello,
>
> please find attached version 2.3 of org-index.el.
> See also http://orgmode.org/worg/code/elisp/org-index.el
> and the contrib-directory of org.
>
> The most notable feature of this version is an assistant
> which provides easy setup.

I'm trying org-index, and I let the assistant build the table for me. At
the end of the set, this error occurred:

,
| Saved org-index-id '50E94CE9-06B3-452E-96B6-FA47AA08B9D6' to 
/Users/schmitta/.emacs.d/custom.el
| let: No catch for tag: created-new-index, nil
`

Is this problematic?

Here are a few notes I'm taking as I'm playing with it.

First, the table seems to be different from the one on worg. Here are
the columns I have:

  | |  |  | |   | comment   |
  | ref | link | created  | count;s | last-accessed | ;c|
  | | <4>  |  | |   |   |

I guess "comment" includes Type, description, and Keywords? Or can I
extend this table as I see fit?

Second, I don't see how to update a link in a table so that it points
somewhere else. Should I just copy the "Property" drawer to the new place?

Also, I noticed it's impossible to create a link to a file. If a file
does not have any org entry, then org-index link will fail with "Before
first headline at position 35591 in buffer ...". I can go around this by
creating an headline, but then I cannot use saveplace or something like
that to put me in the same place in the file (typically at the very end
of a long data table, to input more data).

Finally, what is the workflow to create a new reference? The way I do it
is "link" from the place to link, then call "+fill" in the table. Is
there a simpler way (that would do both in one stroke)?

Thanks,

Alan



Re: [O] File-local export filters

2013-09-21 Thread Carsten Dominik

On 21.9.2013, at 14:44, Nicolas Goaziou  wrote:

> Carsten Dominik  writes:
> 
>> OK, I'll try this. However, if the code is a bit more extensive, an
>> SRC block would make it more comfortable to maintain this code inside
>> a file. If I want to write a somewhat complex filter function, it is
>> not convenient to do so in #+BIND line.
> 
> I can't see why it would be inconvenient, since you needn't define the
> filter within the BIND keyword.
> 
> Anyway, you can write a source block that sets locally the filters. That
> should work too.

OK, I'll give that a try.

Thanks

- Carsten

> 
> 
> Regards,
> 
> -- 
> Nicolas Goaziou



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [O] File-local export filters

2013-09-21 Thread Nicolas Goaziou
Carsten Dominik  writes:

> OK, I'll try this. However, if the code is a bit more extensive, an
> SRC block would make it more comfortable to maintain this code inside
> a file. If I want to write a somewhat complex filter function, it is
> not convenient to do so in #+BIND line.

I can't see why it would be inconvenient, since you needn't define the
filter within the BIND keyword.

Anyway, you can write a source block that sets locally the filters. That
should work too.


Regards,

-- 
Nicolas Goaziou



Re: [O] export latex in a table

2013-09-21 Thread zwz
Nicolas Goaziou  gmail.com> writes:

> 
> Hello,
> 
> You can also use an export snippet:
> 
>   | latex:\textcolor{blue}{0\sim2^{8}-1} |
> 
> Regards,
> 
Yes, it works.
Thanks.






Re: [O] File-local export filters

2013-09-21 Thread Carsten Dominik

On 21.9.2013, at 13:45, Nicolas Goaziou  wrote:

> Hello,
> 
> Carsten Dominik  writes:
> 
>> I guess this is mostly a request for Nicolas, but maybe others would
>> like to chime in.
>> 
>> Quite often I am in a situation where I want to use filters
>> to customize the export for a specific file.  I was wondering
>> if it would be useful to support a special source code block
>> that can contain code that should be executed before export in
>> a way that a temporary list of export filters is installed
>> for this specific backend and then removed again.
>> 
>> For example, I would like to have special formatting of
>> time stamps in a specific file - I could then use this
>> to install a filter in org-export-filter-timestamp-functions
>> that would do this special formatting, without influencing
>> what happens to other exports.
>> 
>> Have I overlooked an easy way to do this, or would this be
>> something others would like to use as well.
> 
> I didn't check, but I think it is possible to set filter through #+BIND
> keyword? Otherwise, you can try file local variables.

OK, I'll try this.  However, if the code is a bit more extensive, an SRC block 
would make it more comfortable to maintain this code inside a file.  If I want 
to write a somewhat complex filter function, it is not convenient to do so in 
#+BIND line.

- Carsten

> 
> 
> Regards,
> 
> -- 
> Nicolas Goaziou



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [O] export latex in a table

2013-09-21 Thread Nicolas Goaziou
Hello,

zwz  writes:

> Rasmus  gmx.us> writes:
>> 
>> How about this? 
>> 
>> #+MACRO: color  \textcolor{$1}{$2}
>> | {{{color(red, range)}}} | {{{color(blue, 0\sim2^8-1)}}} |
>> 
>> Unless you're doing something that's not systematic, or which has a
>> very particular logic it's probably not the right way.
>
> The macro-way does not work.

The macro-way does work here.

> The generated tex still contains the extra \ before {.
> My org version is 8.0.7.
>
> Thanks for your tips.
> But I just want to color some column/row.
> And I really enjoy the convenience of org table.

You can also use an export snippet:

  | @@latex:\textcolor{blue}{0\sim2^{8}-1}@@ |


Regards,

-- 
Nicolas Goaziou



Re: [O] File-local export filters

2013-09-21 Thread Nicolas Goaziou
Hello,

Carsten Dominik  writes:

> I guess this is mostly a request for Nicolas, but maybe others would
> like to chime in.
>
> Quite often I am in a situation where I want to use filters
> to customize the export for a specific file.  I was wondering
> if it would be useful to support a special source code block
> that can contain code that should be executed before export in
> a way that a temporary list of export filters is installed
> for this specific backend and then removed again.
>
> For example, I would like to have special formatting of
> time stamps in a specific file - I could then use this
> to install a filter in org-export-filter-timestamp-functions
> that would do this special formatting, without influencing
> what happens to other exports.
>
> Have I overlooked an easy way to do this, or would this be
> something others would like to use as well.

I didn't check, but I think it is possible to set filter through #+BIND
keyword? Otherwise, you can try file local variables.


Regards,

-- 
Nicolas Goaziou



Re: [O] export latex in a table

2013-09-21 Thread zwz
Rasmus  gmx.us> writes:

> 
> zwz  gmail.com> writes:
> 
> I'm assuming you're only interested in LaTeX output here.
> 
> > Hi, I want to export a table to pdf as follows:
> >
> > * test
> > | \textcolor{red}{range} | \textcolor{blue}{0\sim2^{8}-1} |
> 
> How about this? 
> 
> #+MACRO: color  \textcolor{$1}{$2}
> | {{{color(red, range)}}} | {{{color(blue, 0\sim2^8-1)}}} |
> 
> Unless you're doing something that's not systematic, or which has a
> very particular logic it's probably not the right way.
> 
> If all entries in a column/row need to be colored you should specify
> that rather than doing it manually.  You could use tabu, but be warned
> that the interface will change at some point, or you could use
> colortbl.  See here:
> 
> http://texblog.org/2011/04/19/highlight-table-rowscolumns-with-color/
> 
> –Rasmus
> 

The macro-way does not work.
The generated tex still contains the extra \ before {.
My org version is 8.0.7.

Thanks for your tips.
But I just want to color some column/row.
And I really enjoy the convenience of org table.







[O] File-local export filters

2013-09-21 Thread Carsten Dominik
Hi everyone

I guess this is mostly a request for Nicolas, but maybe others would
like to chime in.

Quite often I am in a situation where I want to use filters
to customize the export for a specific file.  I was wondering
if it would be useful to support a special source code block
that can contain code that should be executed before export in
a way that a temporary list of export filters is installed
for this specific backend and then removed again.

For example, I would like to have special formatting of
time stamps in a specific file - I could then use this
to install a filter in org-export-filter-timestamp-functions
that would do this special formatting, without influencing
what happens to other exports.

Have I overlooked an easy way to do this, or would this be
something others would like to use as well.

- Carsten


signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [O] export latex in a table

2013-09-21 Thread Rasmus
zwz  writes:

I'm assuming you're only interested in LaTeX output here.

> Hi, I want to export a table to pdf as follows:
>
> * test
> | \textcolor{red}{range} | \textcolor{blue}{0\sim2^{8}-1} |

How about this? 

#+MACRO: color  \textcolor{$1}{$2}
| {{{color(red, range)}}} | {{{color(blue, 0\sim2^8-1)}}} |

Unless you're doing something that's not systematic, or which has a
very particular logic it's probably not the right way.

If all entries in a column/row need to be colored you should specify
that rather than doing it manually.  You could use tabu, but be warned
that the interface will change at some point, or you could use
colortbl.  See here:

http://texblog.org/2011/04/19/highlight-table-rowscolumns-with-color/

–Rasmus

-- 
This space is left intentionally blank





Re: [O] modify postamble in html export

2013-09-21 Thread Eric Abrahamsen

On 09/21/13 17:00 PM, pw wrote:
> Le 21/09/2013 06:23, Eric Abrahamsen a écrit :
>> Whoops, that's what I get for posting untested code... As Nicholas
>> points out the function should take an argument, but in your simplest
>> case you can ignore it:
>>
>> (defun my-org-html-postamble (plist)
>>(format "Last update : %s" (format-time-string "%d %b %Y")))
>
> Thanks.
>
> I tried this new code (by pasting it into .emacs). But I have the
> default postamble in the result.
>
> I tried then to achieve the same but by using org-customization which
> put into .emacs this :
>
> '(org-html-postamble t)
> '(org-html-postamble-format (quote (("en" "Last update : %d"
>
> If it was working I would try to modify %d to have a %d %b %Y format.
> But  for now I have only "Last update : " without time...

I finally actually tried this myself... I'm guessing that your problems
are coming from pasting things without actually eval'ing them. I put
this in scratch:

(defun my-org-html-postamble (plist)
  (format "Last update : %s" (format-time-string "%d %b %Y")))
(setq org-html-postamble 'my-org-html-postamble)

And hit "C-x C-e" after both statements, and a test document exported
with the proper postamble:


Last update : 21 Sep 2013


Can you make sure you've evaluated the forms?

I would have thought your org-customizations above would work, but
there are multiple ways to solve this problem, and perhaps you've got
competing solutions. Try reloading org, or worst case restarting emacs?

Eric



[O] export latex in a table

2013-09-21 Thread zwz
Hi, I want to export a table to pdf as follows:

* test
| \textcolor{red}{range} | \textcolor{blue}{0\sim2^{8}-1} |

I checked the generated tex.
The first column is OK. While in the second column, the result is something
like:
\textcolor{blue}\{...\}

I don't know what is the right way doing this, but it worked for org-mode <
8.0. 

May somebody help me out?




Re: [O] modify postamble in html export

2013-09-21 Thread pw

Le 21/09/2013 06:23, Eric Abrahamsen a écrit :

Whoops, that's what I get for posting untested code... As Nicholas
points out the function should take an argument, but in your simplest
case you can ignore it:

(defun my-org-html-postamble (plist)
   (format "Last update : %s" (format-time-string "%d %b %Y")))


Thanks.

I tried this new code (by pasting it into .emacs). But I have the 
default postamble in the result.


I tried then to achieve the same but by using org-customization which 
put into .emacs this :


'(org-html-postamble t)
'(org-html-postamble-format (quote (("en" "Last update : %d"

If it was working I would try to modify %d to have a %d %b %Y format. 
But  for now I have only "Last update : " without time...