Re: [O] [OT] Xiki - could something like that be done with emacs+orgmode?

2012-09-19 Thread Sean O'Halpin
On Wed, Sep 19, 2012 at 4:37 AM, Andrew Hyatt ahy...@gmail.com wrote:

 The xiki video is interesting, and I immediately thought of babel.
 However, babel sh-mode doesn't have support for execution yet.

Not sure what you mean by that. Place cursor in source block and hit C-c, e.g.

#+BEGIN_ORG
* Shell example

#+begin_src sh
date
#+end_src

#+RESULTS:
: Wed Sep 19 07:24:17 BST 2012

#+END_ORG

Regards,
Sean



Re: [O] Macro and babel

2012-09-19 Thread Sean O'Halpin
On Wed, Sep 19, 2012 at 1:54 AM, tony day zygom...@gmail.com wrote:

 I had written this:

 ,
 | #+MACRO: testdir ~/working
 | #+begin_src sh
 |   cd  {{{testdir}}}
 | #+end_src
 `

 Thinking it would do this:

 ,
 | #+begin_src sh
 |   cd ~/working
 | #+end_src
 `
 Alas, #+Macro acts on export only.

 Is there a quick way to effect general text substitution on C-c C-c?  That 
 would be an awesome feature, basically adding macro capabilities to every 
 babelable language.  Or am I missing something?


 Tony

Here's a somewhat roundabout way of achieving something similar:

#+BEGIN_ORG

#+NAME: test-dir2
#+BEGIN_SRC sh :var dir=. :results output org :exports none
echo 
,#+begin_src sh
cd $dir
,#+end_src

#+END_SRC

#+CALL: test-dir2(dir=~/org) :results value raw :exports both

#+CALL: test-dir2(dir=/var/www/) :results value raw :exports both

#+END_ORG

HTH,
Sean



Re: [O] freemind.el does not convert org links to links in Freemind

2012-09-19 Thread Bill Day
This is how Freedmind natively outputs the same link:

map version=0.9.0
!-- To view this file, download free mind mapping software FreeMind from
http://freemind.sourceforge.net --
node CREATED=1348041631372 ID=ID_319286743 MODIFIED=1348042704516
TEXT=Mind Map
node CREATED=1348041642465 ID=ID_207824320 LINK=http://orgmode.org;
MODIFIED=1348041668536 POSITION=right TEXT=test/
/node
/map

I am not much at reading elisp, but it seems that the following code in
org-freemind.el might be intended to achieve the above result.

(defun org-freemind-convert-links-helper (matched)
  Helper for `org-freemind-convert-links-from-org'.
MATCHED is the link just matched.
  (let* ((link (match-string 1 matched))
 (text (match-string 2 matched))
 (ext (file-name-extension link))
 (col-pos (org-string-match-p : link))
 (is-img (and (image-type-from-file-name link)
  (let ((url-type (substring link 0 col-pos)))
(member url-type '(file http https)
 )
(if is-img
;; Fix-me: I can't find a way to get the border to shrink
;; wrap around the image using div.
;;
;; (concat div style=\border: solid 1px #ddd; width:auto;\
;; img src=\ link \ alt=\ text \ /
;; br /
;; i text /i
;; /div)
(concat table border=\0\ style=\border: solid 1px
#ddd;\trtd
img src=\ link \ alt=\ text \ /
br /
i text /i
/td/tr/table)
  (concat a href=\ link \ text /a

(defun org-freemind-convert-links-from-org (org-str)
  Convert org links in ORG-STR to freemind links and return the result.
  (let ((fm-str (replace-regexp-in-string
 ;;(rx (not (any [\))
 ;;(submatch
 ;; http
 ;; (opt ?\s)
 ;; ://
 ;; (1+
 ;;  (any -%.?@a-zA-Z0-9()_/:~=#
 [^\[]\\(http ?://[--:#%()=?-Z_a-z~]+\\)
 [[\\1][\\1]]
 org-str
 nil ;; fixedcase
 nil ;; literal
 1   ;; subexp
 )))
(replace-regexp-in-string
 ;;(rx [[
 ;; (submatch (*? nonl))
 ;; ][
 ;; (submatch (*? nonl))
 ;; ]])
 \\[\\[\\(.*?\\)]\\[\\(.*?\\)]]
 ;;a href=\\\1\\\2/a
 'org-freemind-convert-links-helper
 fm-str t t)))


I am not trying to muddy the waters here, it is just that when I type a
link into org-mode, I do not seem to get a usable freemind link as a result.


On Tue, Sep 18, 2012 at 10:12 PM, Bill Day williamson@gmail.com wrote:

 Sorry, yes, I mistyped -- it is org-freemind.el.

 When I type:

 * Mind Map
 ** test [[http://orgmode.org][Org Mode]]

 I get this:

 map version=0.9.0
 !-- To view this file, download free mind mapping software FreeMind from
 http://freemind.sourceforge.net --
 node text=Mind Map
 node text=test [[http://orgmode.org][Org Mode]]
 /node
 /node
 /map

 Is this the expected behavior?



 On Tue, Sep 18, 2012 at 3:30 AM, Bastien b...@altern.org wrote:

 Hi Bill,

 Bill Day williamson@gmail.com writes:

  I am using org-mode 7.9.1 and Freemind 0.9.0.  Freemind.el seems to
  convert nodes from org to Freemind with no problem, but it simply
  copies the code for links from org to Freemind without converting
  it.

 I'm not sure i understand -- are you talking about org-freemind.el?


 http://orgmode.org/w/?p=org-mode.git;a=blob_plain;f=lisp/org-freemind.el;hb=HEAD

  Has anyone else had this problem?

 AFAIU I don't.

 This link in .org:

   A [[http://orgmode.org][link]].

 gets exported as

   A a href=http://orgmode.org;link/a.

 in .mm

 HTH,

 --
  Bastien




 --
 Bill Day
 williamson@gmail.com




-- 
Bill Day
williamson@gmail.com


Re: [O] html publish - typo in contrib/lisp/org-e-publish.el

2012-09-19 Thread Bastien
Robert Klein klein...@mpip-mainz.mpg.de writes:

 Hi, there is a typo in org-e-publish.el.  Publishing xxx.org results in a
 file xxxhtml instead of xxx.html.

Applied, thanks.

-- 
 Bastien



Re: [O] Same look and feel for clocktable and columnview

2012-09-19 Thread Bastien
Hi Buddy (!),

Buddy Butterfly buddy.butter...@web.de writes:

 I therefore ask, if it would be possible to have columnview and
 clocktable be merged to have same functionality, look and feel?

This is not possible.  

The clock table is actual text in your .org file, whereas the column
view is just a special display of the your headlines, with some handy
editing features.

To get the column view display to be more like a clock table, you can
use the CLOCKSUM (and CLOCKSUM_T) properties.

But if i understand your request correctly, what you really want is
to change the clock table itself.

The column view editing features cannot be used in a clock table.  
But we surely can have more properties for the clocktable, so that
it looks like exactly the way you want.

The best way to move forward from here is to isolate small enhancements
to the clock table and to describe them as separate feature requests.

Hope you'll have time to do this!

Thanks,

-- 
 Bastien



Re: [O] ELPA org-mode daily build(s)?

2012-09-19 Thread Bastien
Hi Jason,

Jason Dunsmore ja...@dunsmor.com writes:

 I linked /usr/bin/emacs to /usr/local/bin/emacs.  Hopefully that will
 fix it.

Apparently it did, as the ELPA package has been correctly created.

Thanks!

-- 
 Bastien



Re: [O] state of the art for html5 presentations?

2012-09-19 Thread Bastien
John Hendy jw.he...@gmail.com writes:

 You'll need to clone impress.js repo and copy over the js and css
 directories, to the directory of your html file.  The README gives
 instructions for the same [
 https://github.com/kinjo/org-impress-js.el#quick-start ]

Great!  I added this to Worg.

-- 
 Bastien



Re: [O] freemind.el does not convert org links to links in Freemind

2012-09-19 Thread Bastien
Hi Bill,

Bill Day williamson@gmail.com writes:

 Sorry, yes, I mistyped -- it is org-freemind.el.

 When I type:

 * Mind Map
 ** test [[http://orgmode.org][Org Mode]]

 I get this:

 map version=0.9.0
 !-- To view this file, download free mind mapping software FreeMind
 from http://freemind.sourceforge.net --
 node text=Mind Map
 node text=test [[http://orgmode.org][Org Mode]]
 /node
 /node
 /map

 Is this the expected behavior?

Nope.  I fixed this by inserting the label of the link instead.

So you should get 

node text=test Org Mode (link)

HTH,

-- 
 Bastien



Re: [O] Habit setup help needed

2012-09-19 Thread Bastien
Hi robert,

Robert Horn rjh...@alum.mit.edu writes:

 It's blue until the
 exclaimation point (18 September), then it has a red background, and the
 future is red.  This is captured on Tuesday, 18 september.

  Habit:  HABIT [#A] Weekly GTD revi   *   !  
 :home:

(Providing a small screenshot will make it easier to get this idea?)

 I thought that it should be blue from the asterisk until monday, because
 that is the completed period.  Then I expected green until friday,
 because that's the interval from scheduled start work until the
 deadline.  Then I expected red for the time past the deadline.

 What is the right changes to make to get that effect?  I'm trying to
 capture that something should be done once per week, on a weekday.

I'm not into habits very much, perhaps John and/or others might reply.

-- 
 Bastien



Re: [O] Digest configuration

2012-09-19 Thread Bastien
Hi James,

James Harkins jamshar...@gmail.com writes:

 So I suppose the maximum digest size is already configurable without
 logging an issue with the mailman devs.

Okay, I'll check this with the emacs-orgmode@ admins.

Thanks,

-- 
 Bastien



[O] GTD in org mode - in which project is this action ?

2012-09-19 Thread Clément Mayet
Hi all, I've discovered emacs org-mode a few days ago, and I think I've
finally found the tool I've been looking for for monthes. I'm a PhD student
and I feel the need to organize my thoughts tasks and notes.
I would like to implement a GTD-like workflow in org-mode. I used to use
tiddlywiki ([mGSD]) and would like to find a similar workflow in orgmode.
I have several projects, in different areas (research, administrative,
etc.) for my work and my personal life. In each project, I would like to
have a project's description, some todos, and a history (logbook).
I've read this page [http://orgmode.org/worg/org-gtd-etc.html] and some of
the tutorials related to GTD. However I'm still having (at least) one
question. Given an action in a project, I would like to see the action's
project in the agenda view, and even better, to order actions by project
(or by context, then by project). Does somebody have any hints on how to do
that ?
Below is an export of the .org file I made for myself to determine how to
implement my worflow. This is inspired by different tutorials and posts
from this mailing list. There are still some open questions...  Again, any
hints are welcome !

Thanks !

Clement

[mGSD]: http://mgsd-docs.tiddlyspace.com/


1 Basic workflow :
---
- catch everything in a scratch file
- every week, empty scratch file and organize process information, refile
TODOs, create projects, etc. Go through every active project and choose
next actions (change state from TODO to NEXT).
- DO things ! get a list of NEXT actions (using agenda view ?) in a given
context. Possibly filter actions according to realm (personal/work) and
area (administrative, research, etc.). Actions should also be ordered
according to their projects. It would be something like :
  - Context 1
- project 1
  - list of actions
- project 2
  - list of actions
  - Context 2

*I think the main difficulty is to get the project to which the action
belongs as it is only a heading above the action. My first question is :
should I use properties, tags , something else ?*

2 File organisation

I will probably use different files for the different areas.

- *scratch.org* (for quicknotes,todos, ideas of projects, to be
organized/refiled later on during the weekly review)

- Work
  inbox.org: tasks without project or things to be refiled (maybe redundant
with the SCRATCH file?)
  research.org: some ongoing and or longterm projects
  bibliography: does not really contains projects but scientific notes
about the articles I read, with TODOs/NEXT for things to read, tags.. One
entry for each article. Maybe organised under some main entries. Project
will often have links to bibliogrpahy entries.
  development: code development
  administrative:

- Personal
  inbox.org: problem : same name as the work inbox (maybe use Pinbox and
Winbox)
  perso.org: no need for now to make areas for personal things

*Is there any way ( interest ?) to use subfolders to separate Work from
Personal things ?*

3 Project
--

3.1 Project's contents :
=

3.1.1 project description
~~
*Should I put it under another headline (description, outcome) or directly
under the project's headline ? Any thoughts about this ?*
Must be easily exported in html to a website giving an overview of my
current research work (PUBLIC) .

3.1.2 Action list:
~~~
Actions will not published or in restricted acces (RESTRICTED, this means
at least two levels of publication).
*Use property for that ?*
Each action has
* status :
  - TODO : an action
  - NEXT : a TODO set to NEXT during weekly review, directly actionable.
Record a time stamp to be able to identify next actions which stay too long
in this status
  - WAITING : not actionable right now. Record a time stamp and note to
explain what i am waiting for. I would also like to list actions that
should be done by the person X (my boss, a colleague, etc.) and export it
to html (then to a restricted acces webpage, or sent by email, or
whatever). *Should I use a tag with the name of the person, or a property
WAITING_ON: ?*
  - DONE : record a time stamp to be able to make a list of actions done
during last week / month and export it (RESTRICTED).
  - CANCELED
  this is done either with :
  1. #+TODO: TODO(t) NEXT(n!) WAIT(w@/!) | DONE(d!) CANCELED(c@) in each
file's header
  2. The following code in the .emacs
(setq org-todo-keywords
 '((sequence TODO(t) NEXT(n!) WAIT(w@/!) | DONE(d!)
CANCELED(c@

* contexts (as few as possible)
  Use tags
  - :@office:
  - :@home:
  - :@errands:
  - :@offline:


3.1.3 Project's logbook

Record of every step in the project, with time stamps, after project
description and list of actions. (Possibly published on website ?,
RESTRICTED/PUBLIC).

3.2 Area
=
- is given by the file in which it is contained (i.e category)
- usefull to  easily filter tasks (if I just want 

Re: [O] LaTeX export problem

2012-09-19 Thread Bastien
Hi Gary,

Gary Oberbrunner ga...@oberbrunner.com writes:

 Using a recent git checkout of org-mode (f51c405), the following small
 org-mode file produces invalid LaTeX.  I'm pretty sure it used to
 work.  The \alpha and \beta seem to be what confuses it.

 ---snip
 * Scorecards
 ** Product Releases
 | *Product* | *\alpha* | *\beta* | *Release* | *Status* |
 |---+--+-+---+--|
 | test  | a| b   | c | d|
 ---snip

 Open this with emacs -Q (emacs 24), load org-mode, and C-c C-e C-d to
 export as LaTeX, you get the following error:

The new LaTeX exporter does the right thing here.

You can experiment with it or wait until it is part of core.

Thanks,

-- 
 Bastien



Re: [O] [OT] Xiki - could something like that be done with emacs+orgmode?

2012-09-19 Thread Bastien
Luis Anaya papoan...@hotmail.com writes:

 In terms of its interface, it's pretty nifty, but the real magic happens
 because it's running within an editor. 

Exactly.  

It'd be somehow ironical for Emacs to mimic the features of a software
that uses an editor to mimic the features of a shell, especially given
the fact many consider Emacs an operating system.

:)

-- 
 Bastien



Re: [O] babel for ditaa-eps

2012-09-19 Thread Bastien
Hi Eric,

Eric Schulte eric.schu...@gmx.com writes:

 Oh yes, I used file-name-nondirectory instead of file-name-directory,
 and forgot the customization documentation.  Here's updated version.

Feel free to apply this in master -- thanks to Arne Luis and you!

-- 
 Bastien



Re: [O] freemind.el does not convert org links to links in Freemind

2012-09-19 Thread Bastien
Hi Bill,

Bill Day williamson@gmail.com writes:

 This is how Freedmind natively outputs the same link:

Thanks -- I've now implemented this.

I won't fix org-freemind.el any further though, first because
going through the code is quite adventurous (congrats for your
courage here) and second because I think org-e-freemind.el is
under its way.

Thanks for giving the helpful example,

-- 
 Bastien



Re: [O] Erroneous No such file or directory with babel and remote dir

2012-09-19 Thread Bastien
Hi Loris,

Loris Bennett loris.benn...@fu-berlin.de writes:

 I have updated from 7.8.something to 7.9.1 and evaluating the following
 source block:

 ,--
 | #+header: :cache no :eval query
 | #+name: sacct-output
 | #+begin_src sh  :exports both :dir /root@xx:
 | module load shared slurm
 | sacct -d -S 2011-11-01 | grep JOB_TERMINATED | cut -d ' ' -f 4,23 | grep -v 
 ' 0$'
 | #+end_src
 `--

 used to work, but now produces the error:

Can you try to bisect and find the bad commit (or a set of 
suspicious ones)?

Thanks,

-- 
 Bastien



Re: [O] GTD in org mode - in which project is this action ?

2012-09-19 Thread Bastien
Hi Clément,

Clément Mayet cma...@gmail.com writes:

 Given an action in a project, I would like to
 see the action's project in the agenda view, and even better, to
 order actions by project (or by context, then by project). Does
 somebody have any hints on how to do that ?

My top-level headlines are projects and they get a :CATEGORY: property.  

That way I can easily restrict agenda views to projects (C-c C-x  in
the project's headline) or filter agenda items through projects (i.e.
through category) by hitting `' in the agenda view.

HTH,

-- 
 Bastien



Re: [O] Invalid function: with-parsed-tramp-file-name with Perl

2012-09-19 Thread Bastien
Hi Lorise,

Loris Bennett loris.benn...@fu-berlin.de writes:

 I have just updated to emacs 24.2.50.1 and org 7.9-32-g805a9f-elpa and
 am having this problem again even with an ECM.  Commenting out the
 declaration as suggested above no longer helps.

 Any suggestions?

Can you share the Perl script that is not working, and show the R one
that works?

(The declare-function in ob.el is fine by the way.)

-- 
 Bastien



Re: [O] FR: ASCII remove extra lines

2012-09-19 Thread Bastien
Hi Samuel,

Samuel Wales samolog...@gmail.com writes:

 Here is a paragraph.

 # this is a paragraph, which i decided to comment out, but
 # is separate from the previous and next paragraphs.

 Currently, ASCII export will create extra blank lines.  This
 is undesirable.

Actually the new exporter behaves correctly here and does not 
add extra blank lines.

-- 
 Bastien



Re: [O] org-habit config tinypatch

2012-09-19 Thread Bastien
Hi Robert,

Robert Horn rjh...@alum.mit.edu writes:

 As a naive user of customize I
 would expect that going to the org-habit group would automatically
 trigger applying the org-habit customizations.

It triggers the org-habit customizations as set from org-habit.el
through all the defcustoms, not from your .emacs.el file.

To trigger the customizations of your .emacs.el file you have to load
your .emacs file and your custom file (C-h v custom-file RET).

When loading .emacs, if some org-habit values differ from their default
values in org-habit.el, they will be advertized as changed outside the
customize interface.

I'm not sure I get what's not intuitive here :)

-- 
 Bastien



Re: [O] state of the art for html5 presentations?

2012-09-19 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 18/09/12 18:52, John Hendy wrote:
 On Tue, Sep 18, 2012 at 10:20 AM, Puneeth Chaganti puncha...@gmail.com 
 wrote:
 On Tue, Sep 18, 2012 at 8:24 PM, John Hendy jw.he...@gmail.com wrote: [..]
 
 Has anyone used this? I just cloned it and created the example 
 presentation. For Chromium,
 Google-Chrome, and Firefox on Linux, I get messages that my browser is not 
 supported. Is
 there some specific plugin I'm supposed to have for this to work? What is 
 it, exactly, that
 it's finding missing?
 
 You'll need to clone impress.js repo and copy over the js and css 
 directories, to the
 directory of your html file.  The README gives instructions for the same [ 
 https://github.com/kinjo/org-impress-js.el#quick-start ]
 
 Got ahead of myself and missed that. This. Is. Awesome.

Sounds impressive!

Could you please provide a small example of an org file and how the exported 
html5 presentation
looks?

Thanks,

Rainer

 
 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBZg+MACgkQoYgNqgF2egrngACfYdZp0zfFzfbGhsMNdkuefxPo
E/EAn0GxGcwZMnso6Oe4Hf6s/6L/Xuv7
=rXp9
-END PGP SIGNATURE-



Re: [O] [PATCH] Resolve regexp ambiguity for item headers

2012-09-19 Thread Bastien
Hi,

Nicolas Goaziou n.goaz...@gmail.com writes:

   * The regular expression matches completely empty headlines, so maybe
 the intention is to allow matching items with just a todo keyword?

 Yes, it is.

FWIW I confirm it is.

 Note that I'm not convinced by empty headlines nor do I use them, but as
 an outliner, Org should accept them nonetheless. 

Indeed.  I once removed the support for empty headlines but Carsten
reminded me that we always supported them, so we should continue to
support them.

 The question is: how much of the code base shares this opinion?

Well, hopefully stating the above with clear things up -- and make 
it easier to find out of some parts of the code don't support empty
headlines.

-- 
 Bastien



Re: [O] org-metaup / org-metadown nerfed in 7.9.1

2012-09-19 Thread Bastien
Hi Trevor,

Trevor Vartanoff t...@codepuzzles.org writes:

 I updated to 7.9.1 from 7.8.11 and was quite surprised to receive nasty
 Cannot drag element backward messages when I tried to use org-metaup and
 org-metadown to move text around.

It is hard to understand the problem without an example.

When did you get the message and why was it not appropriate?

 Why was this done? 

The origin of the org-meta{up/down} feature was to be able to move table
lines one by one.

By a small generalization, org-meta{up/down} also moved lines up/down
outside of tables.

The idea behind the current behavior is to think in terms of elements,
not in terms of lines -- which is good IMHO.  (A line is an element of a 
table, so moving line by line here is the right thing to do.)

 How do I get back to one stroke functionality? I'm
 afraid I'm not properly understanding the release notes or mailing list
 archives.

Please explain the problem a bit more.  Thanks!

-- 
 Bastien



Re: [O] Extra space between list items in HTML export

2012-09-19 Thread Bastien
Hi Richard,

Richard Stanton stan...@haas.berkeley.edu writes:

 To work around this, I use h:2 (say) so that I can make my TODO
 items third-level headers and have them printed as an itemized list, as
 desired. With the new behavior, this seems impossible, but I can't believe
 I'm the only person for whom this is a useful capability.

Using the new HTML exporter with this file:

#+OPTIONS: H:2 num:t toc:nil

* one
** two
*** three
*** three (bis)


I get an enumerated list for three and three (bis) -- maybe I lost
track of what the problem was, but this looks like what you are looking
for, doesn't it? 

Thanks,

-- 
 Bastien



Re: [O] GTD in org mode - in which project is this action ?

2012-09-19 Thread Clément Mayet
Thank you Bastien for your quick answer.
My understanding of the C-c C-x  command is that you restrict the agenda
view to one headline (i;e project in our case). How do you use the
:CATEGORY: property then ? Do you copy the project's name in that property
(or something shorter that makes you remember wich project it is) ?

Clément

2012/9/19 Bastien b...@altern.org

 Hi Clément,

 Clément Mayet cma...@gmail.com writes:

  Given an action in a project, I would like to
  see the action's project in the agenda view, and even better, to
  order actions by project (or by context, then by project). Does
  somebody have any hints on how to do that ?

 My top-level headlines are projects and they get a :CATEGORY: property.

 That way I can easily restrict agenda views to projects (C-c C-x  in
 the project's headline) or filter agenda items through projects (i.e.
 through category) by hitting `' in the agenda view.

 HTH,

 --
  Bastien



Re: [O] babel for ditaa-eps

2012-09-19 Thread Bastien
Hi Eric,

Eric Schulte eric.schu...@gmx.com writes:

 Should we distribute the DitaaEps.jar with Org-mode in the same manner
 as we now distribute ditaa.jar?

If we have permission to do this then lets do it.

-- 
 Bastien



Re: [O] [BABEL][BUG] lists and inline src

2012-09-19 Thread Bastien
Hi Chuck,

cbe...@tajo.ucsd.edu writes:

 My apologies if this is already reported (I recall seeing something like
 this, but cannot find it in the archives).

 A list element starting with an inline src block is improperly
 parsed. 

I cannot reproduce this with Org 7.9.1.

-- 
 Bastien



Re: [O] [OT] Org spotted in the wild

2012-09-19 Thread Bastien
Hi Michael,

Michael Strey mst...@strey.biz writes:

 mosh.mit.edu was built with the Twitter Bootstrap CSS framework.
 See http://twitter.github.com/bootstrap/.

Beautiful!  I'll still to the current design (with upcoming minor
improvements) mainly because I want to generate the orgmode.org
website with .org files.  But bootstrap really looks like something 
I can reuse for other projects.  

Thanks for the link!

-- 
 Bastien



Re: [O] [PATCH] Resolve regexp ambiguity for item headers

2012-09-19 Thread Mats Kindahl
Thanks for clearing it up Bastien,

Nicolas, do you have the patch somewhere so that I can take a look at it?

Best wishes,
Mats Kindahl

On 09/19/2012 11:14 AM, Bastien wrote:
 Hi,

 Nicolas Goaziou n.goaz...@gmail.com writes:

   * The regular expression matches completely empty headlines, so maybe
 the intention is to allow matching items with just a todo keyword?
 Yes, it is.
 FWIW I confirm it is.

 Note that I'm not convinced by empty headlines nor do I use them, but as
 an outliner, Org should accept them nonetheless. 
 Indeed.  I once removed the support for empty headlines but Carsten
 reminded me that we always supported them, so we should continue to
 support them.

 The question is: how much of the code base shares this opinion?
 Well, hopefully stating the above with clear things up -- and make 
 it easier to find out of some parts of the code don't support empty
 headlines.


-- 
Senior Principal Software Developer
Oracle, MySQL Department




Re: [O] Problem with paragraph fill / tab in lists

2012-09-19 Thread Bastien
Hi Anthony,

Anthony Lander anth...@landerfamily.ca writes:

 If I start typing a definition list and let emacs wrap the text, I get this:

   - test :: dsfjknv sldfknv lksdjnv lksdjnv lksdjnv lkjsdv lkjsdnv lkjsdnv
 lkjnsdv lkjdsnv lkjnsdv lkjsndlv kjnsdv lkjsdnv lkjnsd lvkjsndv
 lkjsdn klvjsnd fvlkjsdnfv lksjdn vlksdjnv lkjsdnv lkjsdnv lkjsdnv
 lkjsnd

Yep, correct.

 If I turn autofill off (so all the text goes on one line, and then I M-x 
 fill-paragraph RET, I get this:

   - test :: dsfjknv sldfknv lksdjnv lksdjnv lksdjnv lkjsdv lkjsdnv lkjsdnv
 lkjnsdv lkjdsnv lkjnsdv lkjsndlv kjnsdv lkjsdnv lkjnsd lvkjsndv lkjsdn
 klvjsnd fvlkjsdnfv lksjdn vlksdjnv lkjsdnv lkjsdnv lkjsdnv lkjsnd

Mhh.. I don't get this, I get the description item as in your previous
example.

 And if I take the above with the text lined up under the word test, and I 
 hit tab on the 2nd line, I get this:

   - test :: dsfjknv sldfknv lksdjnv lksdjnv lksdjnv lkjsdv lkjsdnv lkjsdnv
 lkjnsdv lkjdsnv lkjnsdv lkjsndlv kjnsdv lkjsdnv lkjnsd lvkjsndv 
 lkjsdn
 klvjsnd fvlkjsdnfv lksjdn vlksdjnv lkjsdnv lkjsdnv lkjsdnv lkjsnd

Which is correct.

 So it looks like autofill and tab indent are not doing the same
 thing. I *think* this started in 7.9. Or at least, I recall it working
 correctly in 7.8 :)

Can you confirm this error happens with no configuration (emacs -Q)?

Thanks,

-- 
 Bastien



Re: [O] org-habit config contd

2012-09-19 Thread Bastien
Hi Robert,

Robert Horn rjh...@alum.mit.edu writes:

 There is more to this bug.  

Please reply in the same thread if this is the same bug.

 I don't think there is a problem with my
 patch, but it doesn't fix it on all systems.  It fixed things on my Mac,
 but not on Linux or Windows.  

Did you check my fix?

 Blessed with a lack of understanding for exactly what is going on I find
 that changing the line in .emacs for custom-set-variables from:

 '(org-habit-show-all-today t) 

 to 

 '(org-habit-show-all-today t t)

 Makes the error go away.  

Not sure what error we are talking about... please let me know.

Thanks,

-- 
 Bastien



Re: [O] Invalid function: with-parsed-tramp-file-name with Perl

2012-09-19 Thread Loris Bennett
Hi Bastien,

Bastien b...@altern.org writes:

 Hi Lorise,

 Loris Bennett loris.benn...@fu-berlin.de writes:

 I have just updated to emacs 24.2.50.1 and org 7.9-32-g805a9f-elpa and
 am having this problem again even with an ECM.  Commenting out the
 declaration as suggested above no longer helps.

 Any suggestions?

 Can you share the Perl script that is not working, and show the R one
 that works?

Nothing works now, not even

#+BEGIN_SRC sh :file tmp.txt :dir /x@xxx:
echo hostname
#+END_SRC

 (The declare-function in ob.el is fine by the way.)

Loris

-- 
no sig is good sig







Re: [O] Is it possible to automatically set the timestamp recorded in a CLOSED: annotation to a different time than now?

2012-09-19 Thread Bastien
Hi Gaizka,

Gaizka Villate gaiz...@gmail.com writes:

 I then adjust it manually to set it to the last clocked-out timestamp
 (which, for me, is the last time I spent working on it).

I introduced `org-use-last-clock-out-time-as-effective-time' which lets
you do this automatically.  You can test it from the git master branch
for now, it will be in the next major release.

Thanks for this idea!

-- 
 Bastien



Re: [O] GTD in org mode - in which project is this action ?

2012-09-19 Thread Bastien
Hi Clément,

Clément Mayet cma...@gmail.com writes:

 Thank you Bastien for your quick answer.
 My understanding of the C-c C-x  command is that you restrict the
 agenda view to one headline (i;e project in our case). How do you use
 the :CATEGORY: property then ? Do you copy the project's name in that
 property (or something shorter that makes you remember wich project
 it is) ?

I use something short, but the top-level headlines are short too.

For example, this is my Org-mode project:

* Org-mode
  :PROPERTIES:
  :CATEGORY: Org
  :END:

** blabla
** blabla

-- 
 Bastien



Re: [O] GTD in org mode - in which project is this action ?

2012-09-19 Thread Clément Mayet
Thank you ! That could do the trick. However I planned to use categories
(in fact file names) for the different areas (Personnal, Work, Research,
Administrative). If I do as you suggest, I could probably use tags for
these areas instead of category...

Clément

2012/9/19 Bastien b...@altern.org

 Hi Clément,

 Clément Mayet cma...@gmail.com writes:

  Thank you Bastien for your quick answer.
  My understanding of the C-c C-x  command is that you restrict the
  agenda view to one headline (i;e project in our case). How do you use
  the :CATEGORY: property then ? Do you copy the project's name in that
  property (or something shorter that makes you remember wich project
  it is) ?

 I use something short, but the top-level headlines are short too.

 For example, this is my Org-mode project:

 * Org-mode
   :PROPERTIES:
   :CATEGORY: Org
   :END:

 ** blabla
 ** blabla

 --
  Bastien



Re: [O] Invalid function: with-parsed-tramp-file-name with Perl

2012-09-19 Thread Bastien
Hi Loris,

Loris Bennett loris.benn...@fu-berlin.de writes:

 Nothing works now, not even

 #+BEGIN_SRC sh :file tmp.txt :dir /x@xxx:
 echo hostname
 #+END_SRC

Maybe you don't have permission to read the /tmp/ dir
on the remote machine?

Anyway, it's hard to debug with so little information.

-- 
 Bastien



Re: [O] GTD in org mode - in which project is this action ?

2012-09-19 Thread Bastien
Clément Mayet cma...@gmail.com writes:

 Thank you ! That could do the trick. However I planned to use
 categories (in fact file names) for the different areas (Personnal,
 Work, Research, Administrative). If I do as you suggest, I could
 probably use tags for these areas instead of category...

You're welcome.

FWIW, I use files for areas/contexts and tags for type of actions
(reading, writing, coding, buying, giving a phone call, etc.)

-- 
 Bastien



Re: [O] Is it possible to automatically set the timestamp recorded in a CLOSED: annotation to a different time than now?

2012-09-19 Thread Gaizka Villate
Wow!

It works great! Thanks a lot!!

-- Gaizka

El día 19/09/12 11:37 +0200, Bastien escribió: 
 Hi Gaizka,
 
 Gaizka Villate gaiz...@gmail.com writes:
 
  I then adjust it manually to set it to the last clocked-out timestamp
  (which, for me, is the last time I spent working on it).
 
 I introduced `org-use-last-clock-out-time-as-effective-time' which lets
 you do this automatically.  You can test it from the git master branch
 for now, it will be in the next major release.
 
 Thanks for this idea!
 



[O] [bug] External style file for export of agenda view

2012-09-19 Thread Sebastien Vauban
Hello,

When you want to export an agenda view with your own CSS, you must do the
following:

#+begin_src emacs-lisp
  (setq org-agenda-export-html-style
 stylelink rel=\stylesheet\ type=\text/css\ 
href=\agenda.css\//style)
#+end_src

If you don't put the `style' tag, the above is simply ignored.

Though, and that's the bug, that line is copied verbatim in the exported
HTML:

--8---cut here---start-8---
!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01//EN
!-- Created by htmlize-1.36 in css mode. --
html
  head
titleSummary Review - Aviva ETE/title
stylelink rel=stylesheet type=text/css 
href=org-agenda-views.css//style
  /head
  body
  ...
--8---cut here---end---8---

And that's not correctly interpreted by the browsers (tested with Firefox and
Chrome).

Instead, the `style' tags must not be provided. But the effect of the `setq'
is void, currently...

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Invalid function: with-parsed-tramp-file-name with Perl

2012-09-19 Thread Loris Bennett
Bastien b...@altern.org writes:

 Hi Loris,

 Loris Bennett loris.benn...@fu-berlin.de writes:

 Nothing works now, not even

 #+BEGIN_SRC sh :file tmp.txt :dir /x@xxx:
 echo hostname
 #+END_SRC

 Maybe you don't have permission to read the /tmp/ dir
 on the remote machine?

 Anyway, it's hard to debug with so little information.

In the *Org-Babel Error Output* buffer, I get the following:

/bin/bash: /scpc:x@xx:/tmp/sh-script-7472puH: No such file or directory

But the file exists on the remote server:

$ ls -l /tmp/sh-script-7472puH
-rwxr-xr-x 1 xx xx 15 Sep 19 11:20 /tmp/sh-script-7472puH

And if I execute it on the remote server, I get the expected result:

$ /tmp/sh-script-7472puH
xx

So it seems that the call to the temporary file fails.  Is the method
/scpc: new?  I don't recall seeing it before (but, then again, it used
to work before, so I never saw an error message ...).

Loris

-- 
no sig is good sig







[O] insonsistency in source code at http://orgmode.org/worg/org-tutorials/org-beamer/tutorial.html

2012-09-19 Thread Robert P. J. Day

  a bit more pedantry, but i'm currently collecting examples of
org/beamer processing to see how well i can reproduce them, and at
org's own example here:

http://orgmode.org/worg/org-tutorials/org-beamer/tutorial.html

  if you follow the link in footnote 1, you see the alleged .org
source as containing:

... snip ...
#+LINK_UP:
#+LINK_HOME:

#+startup: oddeven

#+startup: beamer
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [bigger]
#+latex_header: \modebeamer{\usetheme{Madrid}}
#+BEAMER_FRAME_LEVEL: 2

#+COLUMNS: %20ITEM %13BEAMER_env(Env) %6BEAMER_envargs(Args)
%4BEAMER_col(Col) %7BEAMER_extra(Extra)

* Introduction
... snip ...

  but if you click on the button Show Org Source at the very
bottom, you see:

... snip ...
#+LINK_UP:
#+LINK_HOME:

#+startup: oddeven

* Introduction
... snip ...

  quite simply, the two sources are not the same, which might confuse
some folks (for me, the first example will be processed, while the
second won't be).

  in any event, it would be useful if the source was displayed
consistently.

rday

-- 


Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday





Re: [O] Visibility cycling with inline tasks

2012-09-19 Thread Bastien
Hi Christopher,

Christopher Witte ch...@witte.net.au writes:

 I have a document with lots of inline tasks scattered throughout it. I
 want to get an overview of the document so I use S-TAB to cycle to
 CONTENTS, when I do that all of the inline tasks are displayed like
 this:

You can add this hook:

(add-hook 'org-cycle-hook
  (lambda (state) (when (eq state 'contents) (hide-sublevels 6

 Should this be the default? Is this also the behaviour that other
 people expect?

I tend to think this should be the default but I'm not using inline
tasks at all, so I'll wait other users' feedback on this.

HTH,

-- 
 Bastien



[O] [PATCH] Don't force the style tag to be present in `org-agenda-export-html-style'

2012-09-19 Thread Sebastien Vauban
From db344fd8a05b11174508e2de864f2fb788ea0f29 Mon Sep 17 00:00:00 2001
From: Fabrice Niessen fnies...@pirilampo.org
Date: Wed, 19 Sep 2012 12:10:20 +0200
Subject: [PATCH] Don't force the style tag to be present in
 `org-agenda-export-html-style'

* org-agenda.el (org-agenda-write-buffer-name): remove the
  test for the presence of style tag.

TINYCHANGE

---
 lisp/org-agenda.el |6 ++
 1 files changed, 2 insertions(+), 4 deletions(-)
 mode change 100644 = 100755 lisp/org-agenda.el

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
old mode 100644
new mode 100755
index 4b8cace..b0f031c
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -224,8 +224,7 @@ or, if you want to keep the style in a file,
link rel=\stylesheet\ type=\text/css\ href=\mystyles.css\

 As the value of this option simply gets inserted into the HTML head header,
-you can \misuse\ it to also add other text to the header.  However,
-style.../style is required, if not present the variable will be ignored.
+you can \misuse\ it to also add other text to the header.
   :group 'org-agenda-export
   :group 'org-export-html
   :type 'string)
@@ -3058,8 +3057,7 @@ If AGENDA-BUFFER-NAME, use this as the buffer name for 
the agenda to write.
  ((string-match \\.html?\\' file)
   (require 'htmlize)
   (set-buffer (htmlize-buffer (current-buffer)))
-  (when (and org-agenda-export-html-style
- (string-match style org-agenda-export-html-style))
+  (when org-agenda-export-html-style
 ;; replace style section with org-agenda-export-html-style
 (goto-char (point-min))
 (kill-region (- (search-forward style) 6)
--
1.7.9

-- 
Sebastien Vauban




Re: [O] Habit setup help needed

2012-09-19 Thread Robert Horn
Bastien b...@altern.org writes:


  Habit:  HABIT [#A] Weekly GTD revi   *   !  
 :home:

attachment: habit-example.png
Is what it looks like (a day later).

R Horn
rjh...@alum.mit.edu


Re: [O] Save-buffer within a code block

2012-09-19 Thread Bastien
Hi Julian,

Julian Burgos jul...@hafro.is writes:

 I noticed that now, when editing code in ESS mode (after switching from
 org-mode using C-') I cannot use save-buffer to save any changes into my
 org mode file.  Instead, when doing save-buffer I get prompted for a new
 file name and the only the code block gets saved.  If I want to save
 everything (changes into the entire org mode file), I need to switch from
 ESS to org mode, and then do save-buffer.

 Is this a bug or a new feature?  

This is not a new feature :)

I assume you don't have this problem when editing code in other modes.

Did you update ess in the meantime?  This looks like something that has
been added to the save-buffer function from ess-mode -- unless Eric can
find the problem in Org.

Best,

-- 
 Bastien



Re: [O] Question about HTML export, drawers, and links

2012-09-19 Thread Bastien
Hi Thomas,

Thomas Moyer tommo...@gmail.com writes:

 I have a set of files that I put notes in that I would like to export
 to HTML. When I do this, I have configured everything to allow
 certain drawers to included in the export, but those drawers are put
 in pre blocks. Is there a way to convince the export mechanism to
 treat links inside drawers as links that need exported. I put a link
 in the drawer to another file and would like the link to work.

This is not currently possible.

The new HTML exporter (contrib/lisp/org-e-html.el) supports using a
custom function to export drawers.  It is not easily usable for now, 
but maybe you can explore from there.

Best,

-- 
 Bastien



Re: [O] Visibility cycling with inline tasks

2012-09-19 Thread Carsten Dominik

On 19 sep. 2012, at 12:34, Bastien b...@altern.org wrote:

 Hi Christopher,
 
 Christopher Witte ch...@witte.net.au writes:
 
 I have a document with lots of inline tasks scattered throughout it. I
 want to get an overview of the document so I use S-TAB to cycle to
 CONTENTS, when I do that all of the inline tasks are displayed like
 this:
 
 You can add this hook:
 
 (add-hook 'org-cycle-hook
  (lambda (state) (when (eq state 'contents) (hide-sublevels 6
 
 Should this be the default? Is this also the behaviour that other
 people expect?
 
 I tend to think this should be the default but I'm not using inline
 tasks at all, so I'll wait other users' feedback on this.

I agree that this would be a good default, but not with a hard-coded 6.

(add-hook 'org-cycle-hook
 (lambda (state) (when (eq state 'contents)
   (and (boundp 'org-inlinetask-min-level)
org-inlinetask-min-level
(hide-sublevels (1- org-inlinetask-min-level))


And it is probably better to wrap this into a function and add that function
to the default value of org-cycle-hook, after org-cucle-hide-drawers

- Carsten






Re: [O] Question about HTML export, drawers, and links

2012-09-19 Thread Nicolas Goaziou
Hello,

Bastien b...@altern.org writes:

 Thomas Moyer tommo...@gmail.com writes:

 I have a set of files that I put notes in that I would like to export
 to HTML. When I do this, I have configured everything to allow
 certain drawers to included in the export, but those drawers are put
 in pre blocks. Is there a way to convince the export mechanism to
 treat links inside drawers as links that need exported. I put a link
 in the drawer to another file and would like the link to work.

 This is not currently possible.

 The new HTML exporter (contrib/lisp/org-e-html.el) supports using a
 custom function to export drawers.  It is not easily usable for now, 
 but maybe you can explore from there.

AFAIU, the new exporter defaults to what the OP is asking for.


Regards,

-- 
Nicolas Goaziou



Re: [O] fill paragraph: math and latex environments

2012-09-19 Thread Nicolas Goaziou
Hello,

a...@fastmail.fm (Albert Z. Wang) writes:

 Thanks for the clarification!  Is there an easy way to have them be
 treated as full-fledged environments?  I usually prefer to use the above
 for unnumbered display equations since it reduces visual clutter and
 looks closer to the intent.

No, there's no easy way.

Making \[...\] an element would mean that \[...\] cannot exist anymore
within a paragraph. I'm not sure it's worth it.

Also, I think it's good, in this case, to have both an inlined and
a non-inlined version for the same thing.


Regards,

-- 
Nicolas Goaziou



Re: [O] Problem with org-entities-user

2012-09-19 Thread Nicolas Goaziou
Hello,

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

 I'm not sure about support for \hfill{}, etc.  The new latex and html
 exporters pass \hfill{} through unchanged, which might be what the latex
 author wants, or what the html author writing about latex commands
 wants.

It would not change anything for the HTML author, since \hfill{} would
be exported as-is in any exporter. Though, it would be a less convenient
for the LaTeX author, who would have to type @@latex:\hfill{}@@.

On the other hand, I see at lest 3 reasons to remove support for such
constructs:

- consistency :: it's not possible to write raw HTML in an Org buffer,
 nor raw Texinfo. LaTeX shouldn't be treated
 differently.

- clarity :: Recently, an user expected the \cite{} command to work in
 a backend different from LaTeX.

- ecumenism :: Removing LaTeXisms will make Org documents easier to
   export to various back-ends.


Regards,

-- 
Nicolas Goaziou



[O] Inline and executing the document

2012-09-19 Thread Erich Neuwirth
The following examples shows some issues 

#+title: Inline formatting

Inline code examples

src_emacs-lisp{(+ 2 3)}

src_emacs-lisp[:results raw]{(2 + 5)} 

#+BEGIN_SRC emacs-lisp
(+ 11 12)
#+END_SRC

#+RESULTS:
: 23

#+BEGIN_SRC emacs-lisp :results raw
(+ 11 13)
#+End_Src

##

In 3 of the 4 examples running the code repeatedly 
with C-c C-c
will produce multiple copies of the output.
Only the default code block (example 3)
knows to delete the old result when a new one is produced.

If one is not careful about this, one can easily produce inconsistent documents.
Changing the code but not the old results will keep different results within 
the document
and these results will also be exported.

A solution would be to have markers like

#+begin_results
#+end_results

Then, org mode could know what exactly to delete.
This would need to me modified for inline src statements bit should be doable.

I think this could help with the general concept of producing consistent 
reproducible research documents.

Anny suggestions regarding this  issue?

Erich










Re: [O] Invalid function: with-parsed-tramp-file-name with Perl

2012-09-19 Thread Nick Dokos
Loris Bennett loris.benn...@fu-berlin.de wrote:

 Bastien b...@altern.org writes:
 
  Hi Loris,
 
  Loris Bennett loris.benn...@fu-berlin.de writes:
 
  Nothing works now, not even
 
  #+BEGIN_SRC sh :file tmp.txt :dir /x@xxx:
  echo hostname
  #+END_SRC
 
  Maybe you don't have permission to read the /tmp/ dir
  on the remote machine?
 
  Anyway, it's hard to debug with so little information.
 
 In the *Org-Babel Error Output* buffer, I get the following:
 
 /bin/bash: /scpc:x@xx:/tmp/sh-script-7472puH: No such file or 
 directory
 
 But the file exists on the remote server:
 
 $ ls -l /tmp/sh-script-7472puH
 -rwxr-xr-x 1 xx xx 15 Sep 19 11:20 /tmp/sh-script-7472puH
 
 And if I execute it on the remote server, I get the expected result:
 
 $ /tmp/sh-script-7472puH
 xx
 
 So it seems that the call to the temporary file fails.  Is the method
 /scpc: new?  I don't recall seeing it before (but, then again, it used
 to work before, so I never saw an error message ...).
 

I don't think so. The tramp doc says:

,
| `scpc' -- `ssh' and `scp'
|  Newer versions of `ssh' (for example OpenSSH 4) offer an option
|  `ControlMaster'.  This allows `scp' to reuse an existing `ssh'
|  channel, which increases performance.
| 
|  Before you use this method, you should check whether your `ssh'
|  implementation supports this option.  Try from the command line
| 
|   ssh localhost -o ControlMaster=yes /bin/true
| 
|  If that command succeeds silently, then you can use `scpc'; but if
|  it fails like
| 
|   command-line: line 0: Bad configuration option: ControlMaster
| 
|  then you cannot use it.  Note, that the option `ControlPersist',
|  if it is supported by your `ssh' version, must be set to `no'.
| 
|  This method supports the `-p' argument.
`

But probably the best thing to do is to leave org out of it and try opening
the file directly: it seems to be a tramp problem.

Nick





Re: [O] [PATCH] Resolve regexp ambiguity for item headers

2012-09-19 Thread Nicolas Goaziou
Hello,

Mats Kindahl mats.kind...@oracle.com writes:

 Nicolas, do you have the patch somewhere so that I can take a look at
 it?

The patch has been applied to master branch a few weeks ago. It's very
simple: headline's text has been made optional.

There's room from improvement, though: I find strange that   is
a valid empty headline while  isn't.


Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH] Fix inconsistency in drawer handling

2012-09-19 Thread Nicolas Goaziou
Hello,

Yann Hodique yann.hodi...@gmail.com writes:

 thanks for the quick review. Of course I don't mind, but I'm just
 curious to understand the purpose, as duplicating constants seems to
 make room for future mistakes (even though in this case I guess we're
 stuck with that regexp forever :)).

As far as Org Element goes, there's no duplication as each regexp would
be used but once.

My point is that such constants do not make much sense. You are not
guaranteed to find a real drawer when you use

  (re-search-forward org-drawer-regexp)

even if the regexp matches: you also need to make sure that

  (eq (org-element-type (org-element-at-point)) 'drawer)

is non-nil. Worse, I think that these constants are misleading as they
sound self-sufficient. Therefore, I'd rather not support them in
Elements. But I may be too cautious on this. What do you think?

In the long run, I think that, structure-wise, org.el should handle any
action directly related to headlines, but org-element.el should be the
core library for everything else.


Regards,

-- 
Nicolas Goaziou



Re: [O] state of the art for html5 presentations?

2012-09-19 Thread John Hendy
On the note of presentations... one thing to spice things up I've used
is impress!ve:
- http://impressive.sourceforge.net/

It's pretty cool! Fades, presenter-only displayed timer, zoom, mouse
spotlight, drag to create highlight boxes, a OSX-like zoom out on all
slides to select one you want. Anyway, not really related to html5,
but for those wanting things like impress.js just because pdf
presentations can be boring, impress!ve might be a middle ground?

John



Re: [O] [OT] Org spotted in the wild

2012-09-19 Thread Alan Schmitt
Toke Høiland-Jørgensen t...@toke.dk writes:

 Alan Schmitt alan.schm...@polytechnique.org writes:

 I've been using mosh for a couple weeks now, and I'm really happy
 about it: connections survive changing ip addresses and the laptop
 going to sleep. I find it quite robust.

 Does mosh work as a drop-in replacement for SSH in emacs (tramp) usage
 as well?

It does not seem to be the case yet, but it looks like tramp developers
asked mosh developers about it:
http://lists.gnu.org/archive/html/tramp-devel/2012-09/msg00019.html

Alan



Re: [O] Compilation problem

2012-09-19 Thread Alan Schmitt
Achim Gratz strom...@nexgo.de writes:

 Alan Schmitt writes:
 There was a revert of a commit that fixed it, and I got back to the
 usual state of getting stuck on some test. (I tried finding which test
 is getting stuck, but I don't know how. I just know the last test to
 pass is test-ob-sh/dont-insert-spaces-on-expanded-bodies. Digging a bit
 more the stuck process is running zsh -i.

 Then it certainly is the sh session test and Emacs doesn't know how to
 interpret the prompt it gets from zsh and waits indefinately for the
 shell to start or zsh tries to do session management, which doesn't work
 in emacs' emulated terminal.  This test is a bit fragile, I've seen it
 do strange things on windows as well.  If you have that on your system,
 use posh as a shell for the invocation of emacs from the makefile, in
 local.mk:

 EMACS = SHELL=posh /path/to/emacs

 Make sure the shell prompt you get ends with $ and maybe some
 whitespace, then emacs should know the shell is active.

I don't have posh, but putting

EMACS = SHELL=sh /path/to/emacs

in my local.mk worked. Thanks for the hint.

Alan



Re: [O] state of the art for html5 presentations?

2012-09-19 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 19/09/12 16:19, John Hendy wrote:
 On the note of presentations... one thing to spice things up I've used is 
 impress!ve: -
 http://impressive.sourceforge.net/
 
 It's pretty cool! Fades, presenter-only displayed timer, zoom, mouse 
 spotlight, drag to create
 highlight boxes, a OSX-like zoom out on all slides to select one you want. 
 Anyway, not really
 related to html5, but for those wanting things like impress.js just because 
 pdf presentations
 can be boring, impress!ve might be a middle ground?

Impressive is really nice - but often at conferences one can not use the own 
computer for the
presentations and a standard format has to be used. pdf to the rescue. But as I 
understand it, an
html5 presentation can be shown from a normal browser - so this should, as pdf, 
work nearly
everywhere.

Otherwise, Impressive is very impressive.

Rainer

 
 John
 
 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBZ1zsACgkQoYgNqgF2egr8lwCfYGxWi4Vw4ME1SX3r0bmJxAZP
ugIAnj3B5XqIPvh7srQIC7GdTQ/rOVOW
=hJV0
-END PGP SIGNATURE-



Re: [O] Problem with paragraph fill / tab in lists

2012-09-19 Thread Anthony Lander
Hi Bastien,

 Can you confirm this error happens with no configuration (emacs -Q)?

After a bit of digging it seems to be a bad interaction between org-mode 
paragraph filling and filladapt-mode. If I disable filladapt, then everything 
works as expected. 

Thanks, and sorry for not -Q'ing before posting.

  -Anthony


Re: [O] org-metaup / org-metadown nerfed in 7.9.1

2012-09-19 Thread Trevor Vartanoff
Your explanation is useful. After some more experimenting, it looks like 
7.8.11 accepts a return as the dividing line between elements, but 
7.9.1 only recognizes them as separate if there's an empty line between 
them.


Example: if I copy the first two lines of your email, I can shift It is 
hard to understand... to be after When did you get the message..., 
but not if I delete the empty line between them.


And so, example 2, I was receiving cannot drag element 
forward/backward when I was in a heading with no line breaks. That is, 
a heading where paragraphs are separated with return + indent rather 
than a full line break of return + return.


(Behavior is identical when I start with an empty .emacs, for the record)

I suppose people who only write and handle text with Internet-style line 
breaks between paragraphs won't notice any change. Those who don't will 
either get cannot messages, or they will be quite surprised when org 
scans down, down, down for the next line break and ends up shifting 20 
paragraphs as one element.




Re: [O] org-metaup / org-metadown nerfed in 7.9.1

2012-09-19 Thread Anthony Lander
Hi Trevor,

On 12-Sep-19, at 10:44 AM, Trevor Vartanoff wrote:

 And so, example 2, I was receiving cannot drag element forward/backward 
 when I was in a heading with no line breaks. That is, a heading where 
 paragraphs are separated with return + indent rather than a full line break 
 of return + return.

I use the M-up/dn behaviour a lot to move property lines up and down. I added 
some hooks to restore that functionality since property lines aren't recognized 
as elements. Here's the code. You might be able to adapt it to do what you want.

Hope it helps,

  -Anthony

; Fix M-up and M-down to move individual lines inside a property drawer
(add-hook 'org-metaup-hook 'my-org-metaup-hook)
(defun my-org-metaup-hook ()
  When on a property line, use M-up to move the line up
  (when (org-region-active-p) (return nil))

  (let ((element (car (org-element-at-point
(if (eq element 'property-drawer)
(let* ((position (- (point) (line-beginning-position)))
   (a (save-excursion (move-beginning-of-line 1) (point)))
   (b (save-excursion (move-end-of-line 1) (point)))
   (c (save-excursion (goto-char a)
  (move-beginning-of-line 0)))
   (d (save-excursion (goto-char a)
  (move-end-of-line 0) (point
  (transpose-regions a b c d)
  (goto-char c)
  (forward-char position)
  t)
nil)))

(add-hook 'org-metadown-hook 'my-org-metadown-hook)
(defun my-org-metadown-hook ()
  When on a property line, use M-down to move the line down
  (when (org-region-active-p) (return nil))

  (let ((element (car (org-element-at-point
(if (eq element 'property-drawer)
(let* ((position (- (point) (line-beginning-position)))
   (at-end-of-line (eq (point) (line-end-position)))
   (a (save-excursion (move-beginning-of-line 1)))
   (b (save-excursion (move-end-of-line 1) (point)))
   (c (save-excursion (next-line)
  (move-beginning-of-line 1)))
   (d (save-excursion (next-line)
  (move-end-of-line 1) (point
  (transpose-regions a b c d)
  (move-beginning-of-line 1)
  (if at-end-of-line; Strange boundary condition at end of 
line
  (progn 
(next-line) ; Goes to wrong place. So instead just
(move-end-of-line 1))   ; go to end of line.
  (forward-char position))
  t)
nil)))




Re: [O] Problem with org-entities-user

2012-09-19 Thread Carsten Dominik

On 19 sep. 2012, at 15:15, Nicolas Goaziou n.goaz...@gmail.com wrote:

 Hello,
 
 t...@tsdye.com (Thomas S. Dye) writes:
 
 I'm not sure about support for \hfill{}, etc.  The new latex and html
 exporters pass \hfill{} through unchanged, which might be what the latex
 author wants, or what the html author writing about latex commands
 wants.
 
 It would not change anything for the HTML author, since \hfill{} would
 be exported as-is in any exporter. Though, it would be a less convenient
 for the LaTeX author, who would have to type @@latex:\hfill{}@@.
 
 On the other hand, I see at lest 3 reasons to remove support for such
 constructs:
 
 - consistency :: it's not possible to write raw HTML in an Org buffer,
 nor raw Texinfo. LaTeX shouldn't be treated
 differently.
 
 - clarity :: Recently, an user expected the \cite{} command to work in
 a backend different from LaTeX.
 
 - ecumenism :: Removing LaTeXisms will make Org documents easier to
   export to various back-ends.

These are all valid arguments.  However, I did design
Org-mode to be LaTeX-near to make sure that it becomes
easy and fast to type as a notes environment.  In my mind, a user
expecting \cite{...} to work in other backends is not necessarily
a wrong expectation, and if we introduce a syntax for doing citations
in HTML, why not using the LaTeX syntax for it?

So actually, it seems I do not fully agree with your *consistency*
argument.  While you are right that it is the logical and clean thing
if you view Org as a markup language created for export, it is not
necessarily the right solution for a convenience point of view.

Just my 5c, of course...


- Carsten



Re: [O] Org HTML-PDF publishing

2012-09-19 Thread Srinivas
You might want to take a look at http://www.princexml.com/

It allows you to specify css and then print to PDF using a command line tool.





Re: [O] [BABEL][BUG] lists and inline src

2012-09-19 Thread cberry
Bastien b...@altern.org writes:

 Hi Chuck,

 cbe...@tajo.ucsd.edu writes:

 My apologies if this is already reported (I recall seeing something like
 this, but cannot find it in the archives).

 A list element starting with an inline src block is improperly
 parsed. 

 I cannot reproduce this with Org 7.9.1.

I just did a git pull, trimmed my .emacs down to 

(setq load-path (cons ~/elisp/org-mode/lisp load-path))
(setq load-path (cons ~/elisp/org-mode/contrib/lisp load-path))

renamed  customizations.el, started Aquamacs, loaded org-e-latex.el and
reran 

(org-export-to-buffer 'e-latex *Test e-LaTeX* nil nil t)

I am still getting the same result.

What else can I do to get to the bottom of this??

Chuck




Re: [O] Extra space between list items in HTML export

2012-09-19 Thread Richard Stanton
 From: Bastien Guerry [mailto:bastiengue...@gmail.com] On Behalf Of
 Bastien
 Sent: Tuesday, September 18, 2012 11:53 PM
 To: Richard Stanton
 Cc: nicholas.do...@hp.com; emacs-orgmode@gnu.org
 Subject: Re: Extra space between list items in HTML export
 
 Hi Richard,
 
 Richard Stanton stan...@haas.berkeley.edu writes:
 
  To work around this, I use h:2 (say) so that I can make my TODO items
  third-level headers and have them printed as an itemized list, as
  desired. With the new behavior, this seems impossible, but I can't
  believe I'm the only person for whom this is a useful capability.
 
 Using the new HTML exporter with this file:
 
 #+OPTIONS: H:2 num:t toc:nil
 
 * one
 ** two
 *** three
 *** three (bis)
 
 
 I get an enumerated list for three and three (bis) -- maybe I lost track 
 of
 what the problem was, but this looks like what you are looking for, doesn't
 it?

Yes - I thought you were advocating changing this behavior, but rereading your 
message, I now don't think you were...



Re: [O] Problem with org-entities-user

2012-09-19 Thread Nicolas Goaziou
Hello,

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

 These are all valid arguments.  However, I did design
 Org-mode to be LaTeX-near to make sure that it becomes
 easy and fast to type as a notes environment.  In my mind, a user
 expecting \cite{...} to work in other backends is not necessarily
 a wrong expectation, and if we introduce a syntax for doing citations
 in HTML, why not using the LaTeX syntax for it?

 So actually, it seems I do not fully agree with your *consistency*
 argument.  While you are right that it is the logical and clean thing
 if you view Org as a markup language created for export, it is not
 necessarily the right solution for a convenience point of view.

My point is not about removing anything related to LaTeX syntax. I'm
fine with a \cite{...} (although I think [[cite:...]] may be cleaner) as
long as it really is accepted by most major export back-ends.

But I think accepting raw commands like \vspace, \hfill and al. is not
necessary (as long as there's still a way to send them to the export
back-end). We shouldn't trick users into thinking these commands will be
obeyed in any situation.

Moreover, I don't think that they belong to an easy and fast to type
notes environment.


Regards,

-- 
Nicolas Goaziou



Re: [O] Extra space between list items in HTML export

2012-09-19 Thread Bastien
Richard Stanton stan...@haas.berkeley.edu writes:

 Yes - I thought you were advocating changing this behavior, but
 rereading your message, I now don't think you were...

Okay, looks good, sorry if I was unclear!

-- 
 Bastien



Re: [O] Org-mode version N/A-fixup

2012-09-19 Thread Markus Heller
Achim Gratz strom...@nexgo.de writes:

 Markus Heller writes:
 BTW, how exactly did you update?  A tarball should not need this and if
 it's a Git directory the version should be found automatically.

 Here are the steps:

 1. git pull in ~/.emacs.d/org-mode
 2. M-x org-reload

 Then Emacs apparently does not know how to call git (it probably can't
 be found in path), otherwise it would know the version from git.  You
 should fix, that it would help to show the correct version number, for
 instance in bug reports.

Achim,

please forgive if this is an RTFM question, but how would I go about
updating the org git archive from within emacs?  This is what you are
referring to, correct?

I couldn't find any info on the org web pages ...

Markus




Re: [O] Problem with paragraph fill / tab in lists

2012-09-19 Thread Bastien
Anthony Lander anth...@landerfamily.ca writes:

 After a bit of digging it seems to be a bad interaction between org-mode
 paragraph filling and filladapt-mode. If I disable filladapt, then
 everything works as expected.

Yes -- we'll never say it enough: don't use filladapt.el with org-mode.

-- 
 Bastien



[O] [PATCH] Lookup functions for tables

2012-09-19 Thread Jarmo Hurri

* lisp/org-table.el: added functions org-lookup-first and
org-lookup-last
* doc/org.texi: documented the use of lookup functions

TINYCHANGE
---
 doc/org.texi  |   88 +++-
 lisp/org-table.el |   10 ++
 2 files changed, 96 insertions(+), 2 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index e183969..fc7d9dd 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -2399,6 +2399,7 @@ formula, moving these references by arrow keys
 * Formula syntax for Lisp:: Writing formulas in Emacs Lisp
 * Durations and time values::   How to compute durations and time values
 * Field and range formulas::Formula for specific (ranges of) fields
+* Lookup functions::Lookup functions for searching tables
 * Column formulas:: Formulas valid for an entire column
 * Editing and debugging formulas::  Fixing formulas
 * Updating the table::  Recomputing all dependent fields
@@ -2729,7 +2730,7 @@ example above).
 Negative duration values can be manipulated as well, and integers will be
 considered as seconds in addition and subtraction.
 
-@node Field and range formulas, Column formulas, Durations and time values, 
The spreadsheet
+@node Field and range formulas, Lookup functions, Durations and time values, 
The spreadsheet
 @subsection Field and range formulas
 @cindex field formula
 @cindex range formula
@@ -2785,7 +2786,90 @@ can also be used to assign a formula to some but not all 
fields in a row.
 Named field, see @ref{Advanced features}.
 @end table
 
-@node Column formulas, Editing and debugging formulas, Field and range 
formulas, The spreadsheet
+@node Lookup functions, Column formulas, Field and range formulas, The 
spreadsheet
+@subsection Lookup functions
+@cindex lookup functions in tables
+@cindex table lookup functions
+
+Org has two predefined Emacs Lisp functions for lookups in tables.
+@table @code
+@item (org-lookup-first val search-list return-list optional predicate)
+@findex org-lookup-first
+Searches for the first element @code{el} in list @code{search-list} for which
+@lisp
+(predicate val el)
+@end lisp
+is @code{t}; returns a value from the corresponding
+position in list @code{return-list}. The default @code{predicate} is
+@code{equal}.
+@item (org-lookup-last val search-list return-list optional predicate)
+@findex org-lookup-last
+Similar as @code{org-lookup-first} above, but searches for the @i{last} 
element for which the predicate is
+@code{t}.
+@end table
+
+The examples below illustrate searches inside a single table. In real-world
+applications, the searched data is often in a different table and is accessed
+by remote references.
+
+The first example contains the searched data in the first and the second
+column. The lookup is performed in column 5, where the year corresponding to
+the percentage in column 4 is searched. Notice that an error is returned if
+the lookup is unsuccessful.
+@example
+@group
+  | year | percentage |   | percentage | year   |
+  |--++---++|
+  | 2009 |   12.2 |   |   14.3 | 2010   |
+  | 2010 |   14.3 |   |   19.4 | 2012   |
+  | 2011 |   14.3 |   |   11.5 | #ERROR |
+  | 2012 |   19.4 |   || #ERROR |
+  #+TBLFM: $5='(org-lookup-first $4 '(@@2$2..@@$2) '(@@2$1..@@$1));N
+@end group
+@end example
+
+The second example illustrates standard use of lookups for teachers. The
+first two columns contain a grading table. The fourth and the fifth column
+contain student names and their marks, and the last column contains the
+results of doing a lookup for the appropriate grade. Notice the use of
+@code{org-lookup-last}, the predicate @code{=} and the use of the @code{L}
+flag for literal interpolation of table values.
+@example
+@group
+  | lower bound | grade |   | student | marks | grade |
+  |-+---+---+-+---+---|
+  |   0 | D |   | X   |33 | A |
+  |  10 | C |   | Y   | 5 | D |
+  |  20 | B |   | Z   |10 | C |
+  |  30 | A |   | W   |22 | B |
+  #+TBLFM: $6='(org-lookup-last $5 '(@@2$1..@@$1) '(@@2$2..@@$2) '=);L
+@end group
+@end example
+
+In the previous examples the searched ranges were one-dimensional (single
+columns). Because two-dimensional ranges are converted to one-dimensional
+vectors in Lisp expressions, it is also possible to search true
+two-dimensional ranges. The example below does a lookup in the two first
+columns for values whose distance from @code{search key} is at most 1.
+@example
+@group
+#+BEGIN_SRC emacs-lisp
+(defun my-p (val1 val2)
+  (= (abs (- val1 val2)) 1))
+#+END_SRC
+
+#+RESULTS:
+: my-p
+
+| group 1 | group 2 |   | search key | result |
+|-+-+---++|
+|  22 |  12 |   | -9 | -8 |
+|  -8 |  11 |   | 23 | 22 |
+#+TBLFM: $5='(org-lookup-first $4 '(@@2$1..@@$2) '(@@2$1..@@$2) 

Re: [O] [PATCH] Resolve regexp ambiguity for item headers

2012-09-19 Thread Bastien
Hi Nicolas,

Nicolas Goaziou n.goaz...@gmail.com writes:

 There's room from improvement, though: I find strange that   is
 a valid empty headline while  isn't.

This I find natural.  

The prefix for headlines includes the whitespace, so the whitespace
is needed for empty headlines too.  Also, people might want to use 
lines matching ^*+$ (to separate paragraphs or whatever.)

2 cts of course,

-- 
 Bastien



Re: [O] [PATCH] Don't force the style tag to be present in `org-agenda-export-html-style'

2012-09-19 Thread Bastien


Hi Sébastien,

thanks for the patch.

matching against style is wrong, but matching against style 
looks still useful to me.  

What do you think?

-- 
 Bastien




[O] Using org-mode for laboratory notes.

2012-09-19 Thread Eric Lubeck
Hello Everybody, 

I had a look around the web for awhile, but couldn't find any information 
pertaining to my particular needs.  I hope somebody here will be able to help 
me out.

Anyway, I've been looking around for quite a while for the proper system to 
set-up an electronic laboratory notebook in.  I will be using org-mode to 
document wet-lab experiments in addition to computational work. 

One of my particular concerns is this:  I'm accustomed to using a chronological 
laboratory notebook for recording all of my data.  The agenda views in org-mode 
seem to provide a means to retrieve chronological information out of my 
outlines, but I would than need to timestamp every single entry in my outline.  
Is there a means for doing this?  Currently I am manually typing C-u C-c ! , 
but it would be helpful to have something automatically configured to timestamp 
and place the time in a drawer for any entry in a particular file.  

My other question pertains to efficiently representing linked or nested data.  
I'd like to record my detailed laboratory protocols in another outline.  As 
most of my day-to-day work is using these protocols with minimal modifications, 
I'd like to record in my primary outline a property or hyperlink that points to 
the primary protocol and suggests that this days experiment inherits from the 
main protocol with given modifications.  It would be really awesome if the 
protocol tree could than pick up on these distant inheriting protocols and 
transclude in the dates I have performed this protocol and subsequent 
modifications from the lab notebook section.  Is such a task possible with 
org-mode, or must I look towards a more traditional database?

Thanks,
Eric Lubeck


[O] Bug: org-insert-drawer doesn't respect indentation for :END:

2012-09-19 Thread Christoph LANGE

Dear org-mode developers,

thanks a lot for providing org-insert-drawer; it satisfies a frequent need.

However, when I invoke this function (with or without having a range of 
text selected), only the start keyword of the drawer respects the 
current indentation level.  The :END: mark is always left-justified – 
for example:


** Foo
   :DRAWER:
   Bla
:END:

I think the :END: should also respect the current indentation.

Cheers, and thanks,

Christoph

--
Christoph Lange, http://www.facebook.com/ch.lange, Skype duke4701



[O] An org-attach link type [7.9.1 (7.9.1-elpa @ /home/youngfrog/.emacs.d/elpa/org-20120903/)]

2012-09-19 Thread Nicolas Richard
Hello there,

Some people already have suggested and produced some code (see [1,2]) in
order to have an attach (or att, as it was called) link type in
org-mode. I never found a org--complete-link function for these links
on the net, so I tried to write it for myself. In order to do that, I had
to modify org-insert-link so that the org-mode buffer is made current
(instead of *Org Links*) when calling org-link-try-special-completion.
This allows the org--complete-link family of functions to access the actual
org buffer from which org-insert-link was called. A patch in this direction
is at the end of my email. (This is the first time that I use
git-format-patch, I hope I got that right).

With that change, here is some code that adds an att link type with 
completion:

(defun org-att-complete-link ()
  File completion for the \att\ filetype in `org-mode'.
  (let* ((attach-dir (org-attach-dir nil))
 files file)
(unless attach-dir
  (error No attachment dir.))
(setq files (find-lisp-find-files attach-dir ^[^.].*[^~]$)
  file (org-icompleting-read Find attachment: 
   (mapcar 
(lambda (x) (file-relative-name x 
attach-dir))
files)
   nil t))
(case org-att-complete-how
  ('full (org-attach-expand-link file))
  ('relative (concat file: attach-dir file))
  ('attach (concat att: file)
(defvar org-att-complete-how 'attach
Determines how org-att-complete-link completes links to attachments.

It can be the symbols :
- `full' :: A \file:\ link with full path is returned,
- `relative' :: a \file:\ link containg a path relative to the directory 
where the org-file resides is returned, or
- `attach' :: an \att:\ link is returned.

`full' is probably best avoided.)

(org-add-link-type att 'org-att-open-link)
(defun org-att-open-link (file)
  (org-open-file (org-attach-expand file)))

I hope that this is useful to anybody, and not too sloppy (I'm not
fluent in elisp)

[1] http://lists.gnu.org/archive/html/emacs-orgmode/2011-04/msg00010.html
[2] http://lists.gnu.org/archive/html/emacs-orgmode/2011-02/msg00952.html


The patch for the above mentionned change in org.el follows :

-- 8 --
Subject: [PATCH] Allow org--complete-read family of functions to access
 current-buffer

This allows for link-completion features based on information around the point.
---
 lisp/org.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/org.el b/lisp/org.el
index 3dfd073..fc5d709 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -9411,6 +9411,7 @@ If the DEFAULT-DESCRIPTION parameter is non-nil, this 
value will
 be used as the default description.
   (interactive P)
   (let* ((wcf (current-window-configuration))
+(buffer (current-buffer))
 (region (if (org-region-active-p)
 (buffer-substring (region-beginning) (region-end
 (remove (and region (list (region-beginning) (region-end
@@ -9486,7 +9487,7 @@ Use TAB to complete link prefixes, then RET for 
type-specific completion support
(and (equal : (substring link -1))
 (member (substring link 0 -1) all-prefixes)
 (setq link (substring link 0 -1
-   (setq link (org-link-try-special-completion link
+   (setq link (with-current-buffer buffer 
(org-link-try-special-completion link)
(set-window-configuration wcf)
(kill-buffer *Org Links*))
   (setq entry (assoc link org-stored-links))
-- 
1.7.12



Re: [O] Problem with org-entities-user

2012-09-19 Thread Bastien
Hi,

Nicolas Goaziou n.goaz...@gmail.com writes:

 My point is not about removing anything related to LaTeX syntax. I'm
 fine with a \cite{...} (although I think [[cite:...]] may be cleaner) as
 long as it really is accepted by most major export back-ends.

 But I think accepting raw commands like \vspace, \hfill and al. is not
 necessary (as long as there's still a way to send them to the export
 back-end). We shouldn't trick users into thinking these commands will be
 obeyed in any situation.

The contrast between \cite{...} and \hfill is interesting: the former
has an intuitive meaning in non-LaTeX backends too, so I agree
[[cite:...]] would be better here, but \hfill is a pure LaTeXism
(as are inline $...$ formulas for example.)

If we had a general syntax like [[cite:...]], then allowing the
\cite{...} latexism would be convenient but redundant, and we could
safely advise against using it.

But pure latexisms like \hfill have no intuitive equivalent in other
backends, and there is no ambiguity on what the user expects when he
uses this -- so accepting them is convenient.  Forcing #+LATEX: before
these constructs would slow down editing the buffer.

So here is the Occam's razor I suggest: let's generalize as much as
possible, and let's handle as much latexisms as possible.

-- 
 Bastien



Re: [O] htmlize doesn't work in --batch mode

2012-09-19 Thread Bastien
Hi Dmitri,

Dmitri Makarov dmak...@gmail.com writes:

 If anyone interested, it's easy to explicitly load the required ELPA
 packages in batch mode.  For example, the following command loads htmlize
 for publishing org files in batch mode

 emacs --batch -l ~/.emacs.d/init.el --eval (progn (add-to-list 'load-path
 \~/.emacs.d/elpa/htmlize-20120616.1716\) (require 'htmlize)) -f
 org-publish-all

 It should be easy to include such a command in a makefile or build.xml and
 automatically locate the latest installation of necessary packages rather
 than explicitly specifying the path.

I let Achim be the final judge on this -- my intuitions in this areas
are just too fragile.  But my gut feeling is that this would be too
complicated, and the solution above is simple enough.

 Still I wonder why ELPA packages are not loaded by default in --batch
 mode even though (package-initialize) is being evaluated.

Please ask this on the emacs-devel mailing list, I'm sure this will help
many other users.  Several users (including me) have been puzzled by the
way ELPA packages are loaded/initialized in Emacs.

Best,

-- 
 Bastien



Re: [O] Using org-mode for laboratory notes.

2012-09-19 Thread Russell Adams
On Wed, Sep 19, 2012 at 09:15:35AM -0700, Eric Lubeck wrote:
 Hello Everybody,

 I had a look around the web for awhile, but couldn't find any
 information pertaining to my particular needs.  I hope somebody here
 will be able to help me out.

 Anyway, I've been looking around for quite a while for the proper
 system to set-up an electronic laboratory notebook in.  I will be
 using org-mode to document wet-lab experiments in addition to
 computational work.

 One of my particular concerns is this: I'm accustomed to using a
 chronological laboratory notebook for recording all of my data.  The
 agenda views in org-mode seem to provide a means to retrieve
 chronological information out of my outlines, but I would than need
 to timestamp every single entry in my outline.  Is there a means for
 doing this?  Currently I am manually typing C-u C-c ! , but it would
 be helpful to have something automatically configured to timestamp
 and place the time in a drawer for any entry in a particular file.

There's an emacs customization I use which binds F9 to insert NOW as
an inactive date  time stamp.

 ;; Insert immediate timestamp
 (define-key global-map (kbd f9)
   '(lambda () (interactive)
  (when (eq major-mode 'org-mode)
(org-insert-time-stamp nil t t)
(insert \n

I use this in my org files. I outline my projects by major task or
product. Every time I change tasks or return to taking notes I just
hit F9 before I start typing.

Then at any time I can use the agenda in log mode and enable inactive
time stamps to show me a hyperlinked timeline.

 My other question pertains to efficiently representing linked or
 nested data.  I'd like to record my detailed laboratory protocols in
 another outline.  As most of my day-to-day work is using these
 protocols with minimal modifications, I'd like to record in my
 primary outline a property or hyperlink that points to the primary
 protocol and suggests that this days experiment inherits from the
 main protocol with given modifications.  It would be really awesome
 if the protocol tree could than pick up on these distant inheriting
 protocols and transclude in the dates I have performed this protocol
 and subsequent modifications from the lab notebook section.  Is
 such a task possible with org-mode, or must I look towards a more
 traditional database?

The only word I got here was database. There is some support for
using property drawers for storing data and summarizing. If you had a
headline which you kept notes under and stored values in a property
drawer you may be able to manipulate it.

Good luck!

--
Russell Adamsrlad...@adamsinfoserv.com

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

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



Re: [O] Org-mode release 7.9

2012-09-19 Thread Bastien
Hi Achim,

Achim Gratz strom...@nexgo.de writes:

 I've just pushed a first implementation of an orgplus ELPA archive.

thanks a lot and sorry to be late on this.

I'll test this after tomorrow (I'm offline tomorrow), I'll try to set
this up on the server then.  If there are any direction you can think
of, please email me in private.

 I'm not sure we are talking about the same thing.  There are now two
 ELPA packages — org and orgplus — that shouldn't be installed at the
 same time.

Thinking again of it, I find orgplus confusing in this case.

If a longer name is not a problem, I suggest org-with-contribs, it
clearly state that this is org with contribs.  There are dired+ and
friends that are just extensions to dired (and friends), so orgplus
would suggest this contains the extensions to Org.

 BTW, rolling more than one EPLA package per day is currently a bad
 idea.

Agreed.

I suggest having daily builds and deleting packages that are older 
than the last stable release.  I'll update Jason on this.

Thanks!

-- 
 Bastien



Re: [O] [PATCH] Lookup functions for tables

2012-09-19 Thread Jarmo Hurri

Greetings.

The patch posted here is the first patch I have ever made with git, so I
hope it is ok.

I tested the new functions locally, as can be seen from the examples. I
also ran make without problems. I am, however, unable to install org
from the git version (for some unknown reason), so I was unable to test
the final, committed version.

Happy to contribute if possible.

--
Jarmo




Re: [O] Org-mode release 7.9

2012-09-19 Thread Bastien
Hi Eric,

Eric Schulte eric.schu...@gmx.com writes:

 Agreed, this would simply mean generating an archive-contents file on
 the Org-mode site which lists the latest org and orgplus archive.  I'm
 not sure which elisp function is used to generate this file, but it
 could be done directly from the server.mk file with something like...

 # -*- Makefile -*-
 archive-contents:
 echo (1 (org . [($(PKG_TAG)) nil \$(PKG_DOC)\])   $; \
 echo(orgplus . [($(PKG_TAG)) nil \$(PKG_DOC)\]))  $;

 Bastien, does this sound like a good idea?

Modulo the fixes provided by Achim, yes, I'll take care of this before
the end of the week.  Thanks!

-- 
 Bastien



Re: [O] [PATCH] Lookup functions for tables

2012-09-19 Thread Bastien
Hi Jarmo,

Jarmo Hurri jarmo.hu...@syk.fi writes:

 The patch posted here is the first patch I have ever made with git, so I
 hope it is ok.

thanks for contributing to Org!  The patch is longer than 20 lines, so
we would need you to sign the FSF papers to be able to accept it.

The form is here:

  
http://orgmode.org/w/?p=org-mode.git;a=blob_plain;f=request-assign-future.txt;hb=HEAD

It takes a while for this to be processed -- so we will have time to
polish your contribution if needed :)

Thanks!

-- 
 Bastien



Re: [O] [PATCH] Lookup functions for tables

2012-09-19 Thread Bastien
Jarmo Hurri jarmo.hu...@syk.fi writes:

 I am, however, unable to install org
 from the git version (for some unknown reason), so I was unable to test
 the final, committed version.

Please let us know what's wrong here, we will try to help.

-- 
 Bastien



Re: [O] Problem with paragraph fill / tab in lists

2012-09-19 Thread Nick Dokos
Bastien b...@altern.org wrote:

 Anthony Lander anth...@landerfamily.ca writes:
 
  After a bit of digging it seems to be a bad interaction between org-mode
  paragraph filling and filladapt-mode. If I disable filladapt, then
  everything works as expected.
 
 Yes -- we'll never say it enough: don't use filladapt.el with org-mode.
 

It's probably worth adding a paragraph about this in the org manual,
section Miscellaneous/Interactions/Conflicts.

I'll try to add a paragraph to the FAQ, but I'll probably need to do
some research first.

Nick




Re: [O] Inline and executing the document

2012-09-19 Thread Eric Schulte
Erich Neuwirth erich.neuwi...@univie.ac.at writes:

 The following examples shows some issues 


All of these examples execute as expected.  It is not always possible to
automatically identify and remove the results of a code block execution.
Remember that Org-mode files are just plain text.


 #+title: Inline formatting

 Inline code examples

 src_emacs-lisp{(+ 2 3)}


Inline code blocks like the above are mainly intended for use during
execution, not to be executed in the buffer during normal use.


 src_emacs-lisp[:results raw]{(2 + 5)}


The above is not valid elisp, but the same statement still applies.


 #+BEGIN_SRC emacs-lisp
 (+ 11 12)
 #+END_SRC

 #+RESULTS:
 : 23

 #+BEGIN_SRC emacs-lisp :results raw
 (+ 11 13)
 #+End_Src


By definition raw results are not marked in any way and thus can not
be removed from the buffer.  Maybe try :results wrap if you want
un-quoted un-exampled results which can still be automatically removed.

Best,


 ##

 In 3 of the 4 examples running the code repeatedly 
 with C-c C-c
 will produce multiple copies of the output.
 Only the default code block (example 3)
 knows to delete the old result when a new one is produced.

 If one is not careful about this, one can easily produce inconsistent 
 documents.
 Changing the code but not the old results will keep different results within 
 the document
 and these results will also be exported.

 A solution would be to have markers like

 #+begin_results
 #+end_results

 Then, org mode could know what exactly to delete.
 This would need to me modified for inline src statements bit should be doable.

 I think this could help with the general concept of producing consistent 
 reproducible research documents.

 Anny suggestions regarding this  issue?

 Erich









-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] Problem with paragraph fill / tab in lists

2012-09-19 Thread Anthony Lander

On 12-Sep-19, at 2:10 PM, Nick Dokos wrote:

 Bastien b...@altern.org wrote:
 
 Yes -- we'll never say it enough: don't use filladapt.el with org-mode.
 
 It's probably worth adding a paragraph about this in the org manual,
 section Miscellaneous/Interactions/Conflicts.

Nick, the way to turn off filladapt for orgmode is to add the following to 
.emacs:

(add-hook 'org-mode-hook 'turn-off-filladapt-mode)

That might save people some digging for how to do it.

  -Anthony


Re: [O] htmlize doesn't work in --batch mode

2012-09-19 Thread Achim Gratz
Bastien writes:
 Dmitri Makarov dmak...@gmail.com writes:
 It should be easy to include such a command in a makefile or build.xml and
 automatically locate the latest installation of necessary packages rather
 than explicitly specifying the path.

That's what BTEST_POST is there for in the build system, you can set it
up to either load a package directly or add to the load-path first and
then require the package.  Just have a look to see how it is done.

 I let Achim be the final judge on this -- my intuitions in this areas
 are just too fragile.  But my gut feeling is that this would be too
 complicated, and the solution above is simple enough.

It is generally a bad idea to guess how the user configured his/her
system and a lot of init files are simply incompatible with batch mode.

However, the OP didn't have a problem with the build system if I read
him correctly.  My advice there is to make a minimal separate init file
just for the batch export process and load that.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] [PATCH] Resolve regexp ambiguity for item headers

2012-09-19 Thread Nick Dokos
Bastien b...@altern.org wrote:

 Hi Nicolas,
 
 Nicolas Goaziou n.goaz...@gmail.com writes:
 
  There's room from improvement, though: I find strange that   is
  a valid empty headline while  isn't.
 
 This I find natural.  
 
 The prefix for headlines includes the whitespace, so the whitespace
 is needed for empty headlines too.  Also, people might want to use 
 lines matching ^*+$ (to separate paragraphs or whatever.)
 
 2 cts of course,
 

The trouble of course is that the space is almost invisible, so it leads
to hair-pulling: why the (^^$%bleep*(^()*^* doesn't this work?

OTOH, if it happens to you once, you tend to remember it for ever after :-)

I see your 2¢ and lower you to 1.5¢,
Nick





Re: [O] Org-mode release 7.9

2012-09-19 Thread Achim Gratz
Bastien writes:
 Thinking again of it, I find orgplus confusing in this case.

 If a longer name is not a problem, I suggest org-with-contribs, it
 clearly state that this is org with contribs.  There are dired+ and
 friends that are just extensions to dired (and friends), so orgplus
 would suggest this contains the extensions to Org.

At least in Emacs 24 the package manager would be able to display that
name without cutting off the end.  However I suggest to lose the plural
and just use `org-plus-contrib´.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada




Re: [O] htmlize doesn't work in --batch mode

2012-09-19 Thread Dmitri Makarov
Hi Bastien

I actually wrote an ant script that controls the off-line publishing.
It's fairly simple, assuming ELPA packages installed in ~/.emacs.d/elpa

Another important thing to note is that font-lock-mode is not enabled by default
in --batch mode.  So I ended up writing an extra .el file that is loaded
specifically for off-line publishing.

I'll paste here the relevant fragments to share in case somebody wants to do
something similar

Here are fragments of org.el loaded by emacs --batch command:

(defun common-hook-actions ()
  Peform actions common for all programming language modes
  (font-lock-mode 1)
  ;; a series of set-face-attribute commands to define the
  ;; fontification for SRC blocks
  (set-face-attribute 'font-lock-builtin-face nil
  :slant 'normal
  :weight 'normal
  :underline nil
  :foreground #FF)
  ;; more of the same
)

(add-hook 'c-mode-hook
  (lambda ()
(common-hook-actions)))

;; more mode-hooks can be added

(setq org-publish-timestamp-directory ../.org-timestamps/)
;; at this point I have (setq org-publish-project-alist
;; for the projects we need to publish

And this is a fragment of my build.xml:

  target name=find-htmlize
  description=Find the latest installation of emacs htmlize package
property environment=env/
exec executable=find
  outputproperty=find-output
  resultproperty=find-result
  arg value=${env.HOME}/.emacs.d/elpa/
  arg value=-type/
  arg value=d/
  arg value=-name/
  arg value=htmlize*/
  redirector
outputfilterchain
  tailfilter lines=1/
/outputfilterchain
  /redirector
/exec
condition property=htmlize
   value=${find-output}
   else=htmlize
  available file=${find-output} type=dir/
/condition
  /target

  target name=publish
  depends=find-htmlize
  description=Generate HTML and save into web directory on the local 
disk
condition property=emacs
   value=/usr/local/bin/emacs
   else=emacs
  available file=/usr/local/bin/emacs/
/condition
exec executable=${emacs} dir=org failonerror=true
  arg value=--batch/
  arg value=-l/
  arg value=org.el/
  arg value=--eval/
  arg value=(progn (add-to-list 'load-path quot;${htmlize}quot;) 
(load-library quot;htmlizequot;))/
  arg value=-f/
  arg value=org-publish-all/
/exec
  /target

All of the above creates completely autonomous publishing project. We actually
use it collaboratively, so other people can checkout the repository, edit org
files, build html (or pdf) from the org project and publish updated content on
the web-server without having to modify their ~/.emacs (or ~/.emacs.d/init.el)
files.  Everything is done with two simple shell commands invoking ant.

I hope somebody will find this useful.

Regards,

Dmitri

On Sep 19, 2012, at 7:03 PM, Bastien b...@altern.org wrote:

 Hi Dmitri,
 
 Dmitri Makarov dmak...@gmail.com writes:
 
 If anyone interested, it's easy to explicitly load the required ELPA
 packages in batch mode.  For example, the following command loads htmlize
 for publishing org files in batch mode
 
 emacs --batch -l ~/.emacs.d/init.el --eval (progn (add-to-list 'load-path
 \~/.emacs.d/elpa/htmlize-20120616.1716\) (require 'htmlize)) -f
 org-publish-all
 
 It should be easy to include such a command in a makefile or build.xml and
 automatically locate the latest installation of necessary packages rather
 than explicitly specifying the path.
 
 I let Achim be the final judge on this -- my intuitions in this areas
 are just too fragile.  But my gut feeling is that this would be too
 complicated, and the solution above is simple enough.
 
 Still I wonder why ELPA packages are not loaded by default in --batch
 mode even though (package-initialize) is being evaluated.
 
 Please ask this on the emacs-devel mailing list, I'm sure this will help
 many other users.  Several users (including me) have been puzzled by the
 way ELPA packages are loaded/initialized in Emacs.
 
 Best,
 
 -- 
 Bastien




Re: [O] Digest configuration

2012-09-19 Thread Achim Gratz
Bastien writes:
 So I suppose the maximum digest size is already configurable without
 logging an issue with the mailman devs.

 Okay, I'll check this with the emacs-orgmode@ admins.

This is the variable digest_size_threshold (also editable from the web
interface), it sets how many kiB a digest may have before it is sent
out.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada




Re: [O] Invalid function: with-parsed-tramp-file-name with Perl

2012-09-19 Thread Achim Gratz
Nick Dokos writes:
 Loris Bennett loris.benn...@fu-berlin.de wrote:
 In the *Org-Babel Error Output* buffer, I get the following:
 
 /bin/bash: /scpc:x@xx:/tmp/sh-script-7472puH: No such file or 
 directory

It would seem that you are trying to use a remote file with a local
bash.  That won't work, especially since bash doesn't understand what
that tramp syntax invoking scpc is about… You need to either invoke that
script on the remote end or copy the file to local and source it there.

 But probably the best thing to do is to leave org out of it and try opening
 the file directly: it seems to be a tramp problem.

Sort of, but it wouldn't exist without Babel if I decode the temporary
filename correctly.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptation for Waldorf Blofeld V1.15B11:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] [PATCH] Don't force the style tag to be present in `org-agenda-export-html-style'

2012-09-19 Thread Sebastien Vauban
Hi Bastien,

Bastien wrote:
 thanks for the patch.

 matching against style is wrong, but matching against style 
 looks still useful to me.  

 What do you think?

I don't think so. Let me re-explain...

I want a correct HTML header, with a link to an external CSS file, such as:

--8---cut here---start-8---
!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01//EN
!-- Created by htmlize-1.36 in css mode. --
html
  head
titleSummary Review - Aviva ETE/title
link rel=stylesheet type=text/css href=org-agenda-views.css/
  /head
--8---cut here---end---8---

If I set the variable `org-agenda-export-html-style' to the string I want:

#+begin_src emacs-lisp
(setq org-agenda-export-html-style
   link rel=\stylesheet\ type=\text/css\ href=\org-agenda-views.css\/)
#+end_src

it will be *ignored*... because there is no word `style' (with or without the
angular brackets)!

I don't understand /why such a test was made/, but clearly (with the above
example), we can't force the user to wrap the link/ inside style tags;
otherwise, the browser does not look for the external CSS file.

The only solution is:
- don't check for `style'
- allow a pure `link' tag to be inserted in the header

what my patch does.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Using org-mode for laboratory notes.

2012-09-19 Thread Eric Schulte
Eric Lubeck eric.lub...@gmail.com writes:

 Hello Everybody, 

 I had a look around the web for awhile, but couldn't find any
 information pertaining to my particular needs.  I hope somebody here
 will be able to help me out.

 Anyway, I've been looking around for quite a while for the proper
 system to set-up an electronic laboratory notebook in.  I will be
 using org-mode to document wet-lab experiments in addition to
 computational work.

 One of my particular concerns is this: I'm accustomed to using a
 chronological laboratory notebook for recording all of my data.  The
 agenda views in org-mode seem to provide a means to retrieve
 chronological information out of my outlines, but I would than need to
 timestamp every single entry in my outline.  Is there a means for
 doing this?  Currently I am manually typing C-u C-c ! , but it would
 be helpful to have something automatically configured to timestamp and
 place the time in a drawer for any entry in a particular file.


I believe such automated functionality may exist (although I don't use
it personally).  Take a look at this portion of the manual [1].


 My other question pertains to efficiently representing linked or
 nested data.  I'd like to record my detailed laboratory protocols in
 another outline.  As most of my day-to-day work is using these
 protocols with minimal modifications, I'd like to record in my primary
 outline a property or hyperlink that points to the primary protocol
 and suggests that this days experiment inherits from the main
 protocol with given modifications.  It would be really awesome if the
 protocol tree could than pick up on these distant inheriting protocols
 and transclude in the dates I have performed this protocol and
 subsequent modifications from the lab notebook section.  Is such a
 task possible with org-mode, or must I look towards a more traditional
 database?


If I read this paragraph correctly, you want to be able to collect the
dates from every entry in which a particular protocol was used.  If you
assign each protocol a short tag name, then you could tag each daily
experiment with the date and the protocol used.  Armed with your tagged
headlines Org-mode should provide everything required to search for and
collect your experiments based on tags, and to do things like collect
the dates on which each tag was used.  Look at the tag and searching
sections of the Org-mode manual [2], and maybe look at the org-collector
in the contrib portion of Worg [3].


 Thanks,
 Eric Lubeck


Footnotes: 
[1]  http://orgmode.org/manual/Clocking-work-time.html

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

[3]  http://orgmode.org/worg/org-contrib/org-collector.html

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] [PATCH] Lookup functions for tables

2012-09-19 Thread Achim Gratz
Jarmo Hurri writes:
 * lisp/org-table.el: added functions org-lookup-first and
 org-lookup-last
 * doc/org.texi: documented the use of lookup functions

 TINYCHANGE

Well, it doesn't become a TINYCHANGE just because you put that stamp on
it.  This patch clearly is over 20 non-trivial lines, so you will need
to assign copyright to the FSF.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

Waldorf MIDI Implementation  additional documentation:
http://Synth.Stromeko.net/Downloads.html#WaldorfDocs




Re: [O] [PATCH] Don't force the style tag to be present in `org-agenda-export-html-style'

2012-09-19 Thread Sebastien Vauban
Bastien,

Sebastien Vauban wrote:
 If I set the variable `org-agenda-export-html-style' to the string I want:

 #+begin_src emacs-lisp
 (setq org-agenda-export-html-style
link rel=\stylesheet\ type=\text/css\ 
 href=\org-agenda-views.css\/)
 #+end_src

 it will be *ignored*... because there is no word `style' (with or without the
 angular brackets)!

 matching against style is wrong, but matching against style 
 looks still useful to me.  

 What do you think?

 I don't think so.

Sorry, just re-reading my post; and, yes, *it does make sense* to try matching
for `style' (without the brackets) -- even if I'm not sure about the reason to
force that, but it can be some guard against mistakes.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Problem with org-entities-user

2012-09-19 Thread Thomas S. Dye
Aloha all,

Bastien b...@altern.org writes:

 Hi,

 Nicolas Goaziou n.goaz...@gmail.com writes:

 My point is not about removing anything related to LaTeX syntax. I'm
 fine with a \cite{...} (although I think [[cite:...]] may be cleaner) as
 long as it really is accepted by most major export back-ends.

 But I think accepting raw commands like \vspace, \hfill and al. is not
 necessary (as long as there's still a way to send them to the export
 back-end). We shouldn't trick users into thinking these commands will be
 obeyed in any situation.

 The contrast between \cite{...} and \hfill is interesting: the former
 has an intuitive meaning in non-LaTeX backends too, so I agree
 [[cite:...]] would be better here, but \hfill is a pure LaTeXism
 (as are inline $...$ formulas for example.)

 If we had a general syntax like [[cite:...]], then allowing the
 \cite{...} latexism would be convenient but redundant, and we could
 safely advise against using it.

 But pure latexisms like \hfill have no intuitive equivalent in other
 backends, and there is no ambiguity on what the user expects when he
 uses this -- so accepting them is convenient.  Forcing #+LATEX: before
 these constructs would slow down editing the buffer.

 So here is the Occam's razor I suggest: let's generalize as much as
 possible, and let's handle as much latexisms as possible.

I wonder if the suggested razor is reasonable? Might it be better to
provide a mechanism for the user to generalize as much as possible and
have Org handle as many latexisms as needed to take fast notes?

I agree with Nicolas that having the regular expression recognize a
syntactically correct LaTeX command does not seem particularly useful if
Org isn't prepared to do the right thing in all cases. And, of course,
Org can't do the right thing in all cases because LaTeX isn't a fixed
target--there are new packages and commands introduced all the time.

Would the change to the regular expression that Nicolas proposes make it
possible to use org-entities-user more flexibly and practically as a way
to extend Org? I love the way org-entities takes care of all the export
backends *and* the display of the Org buffer. The examples that I used
to introduce this thread were unfortunately off the mark, and once I
stopped thinking LaTeX and started thinking Org I was able to
implement them perfectly with the existing Org facilities. Are there
examples of useful entities that would be made possible by Nicolas'
proposed change to the regular expression?

The other route I've found to extend Org (without messing the source
code) is links.  The approach I prefer parses the description (because
Org parses the path and I don't want to mess that up).  This works, but
it looks ugly in the Org buffer.  I'd love to be able to hook in a
function that told Org how to display my custom link :)

All the best,
Tom

-- 
T.S. Dye  Colleagues, Archaeologists
735 Bishop St, Suite 315, Honolulu, HI 96813
Tel: 808-529-0866, Fax: 808-529-0884
http://www.tsdye.com



Re: [O] [PATCH] Lookup functions for tables

2012-09-19 Thread Achim Gratz
Jarmo Hurri writes:
 I tested the new functions locally, as can be seen from the examples. I
 also ran make without problems. I am, however, unable to install org
 from the git version (for some unknown reason), so I was unable to test
 the final, committed version.

I can't decode that last part… you installed Org from git with make,
then made your changes (also in git) and now Org does or doesn't do what
when you try to install?


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

Wavetables for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables




Re: [O] Troubles with custom agenda commands

2012-09-19 Thread Sebastien Vauban
Bastien,

Bastien wrote:
 Sebastien Vauban
 wxhgmqzgw...@spammotel.com writes:

 1. When getting to the agenda dispatcher (`C-c a'), I see:

S   Summary Review: set of 3 commands

   while I only have... 2 commands (`agenda' and `todo'). Why?

 This is a bug, fixed.  Thanks for spotting this!

Tested. Confirmed OK.

 2. When firing it up (`C-c a' followed by `S'), I get the 2 blocks I was
expecting, but also an error:

Buffer is read-only: #buffer *Org Agenda(S)*

 I guess this is a problem with some hooks trying to modify the buffer,
 please let me know if this happens again.

It does not anymore, and I've changed some settings as well in my .emacs. It
could have been some local customization. Cancelled!

Thanks!

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] [PATCH] Don't force the style tag to be present in `org-agenda-export-html-style'

2012-09-19 Thread Achim Gratz
Sebastien Vauban writes:
 The only solution is:
 - don't check for `style'
 - allow a pure `link' tag to be inserted in the header

Well, the /only other/\TM solution then is to check for either style
or link.  Or maybe I'm missing something.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

Factory and User Sound Singles for Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds




  1   2   >