Re: [O] org-plus-contrib: Invalid function: org-no-popups

2013-01-25 Thread Bastien
Achim Gratz strom...@nexgo.de writes:

 Bastien writes:
 I already suggested to *not* use ELPA at all for now.

 I happen to think that this suggestion goes too far (if you think nobody
 should use OIrg from ELPA, then you'd need to stop making it available
 there and hopefully we already agreed that this isn't an option).  

No, we did not agreed this isn't an option.

I think this is an option.

 There
 is actually no problem with ELPA when you install Org from it before
 you've used Org (it wasn't designed to cope with any other situation).
 In most cases that means simply using a fresh Emacs instance to install
 Org from ELPA is good enough.  In those cases where Org is loaded during
 initialization (and systems doing that really shouldn't do this before
 package-initialize or else unload any features they have needed), one
 can resort to 'emacs -Q' if the package directory has not been changed
 from the defaults or '(unload-feature 'org t)' when that would be a
 concern.

How can you make sure that Org-mode has not been used before people 
want to install an updated version through GNU/Org ELPA?

I can't think of any good way.

Until someone have an idea about this, I'm very serious about removing
the possibility of installing Org through ELPA.  But as I said I won't
do this before getting a sense of what the users use and expect.

-- 
 Bastien



Re: [O] no pdf-output in lilypond code blocks

2013-01-25 Thread Florian Beck
Hi Bastien,

 Line 155 in ob-lilypond.el use --png.

 Is it okay to use --pdf --html and --svg here too?

The only choices are --pdf, --png, and --ps.

See:
http://www.lilypond.org/doc/v2.16/Documentation/usage/command_002dline-usage#invoking-lilypond


 If so, I'll fix ly-process-basic so that it depends on
 ly-gen-png/pdf/html/svg.

 Thanks for confirming,

Thanks for fixing.
-- 
Florian Beck



[O] Bug: manual for table column width and alignment [7.9.3a (7.9.3a-elpa @ /home/joost/.emacs.d/elpa/org-20130108/)]

2013-01-25 Thread Joost Helberg
hi,

The manual states that the width and alignment values can be
combined. The example uses a combination of l and 10. The `l' is
not the best way to demonstrate this, as it looks like a `1'. The
scanning reader may see 110 instead of l10. If the manual reads
r10, the example is a lot more valuable. Also, in order to not rely
on an example only, the text `may also combine alignment and field
width' will be better if it reads `may also combine alignment and
field width as a single multi letter specification within pointy
brackets' 

It's all in doc/org.texi line 2247.

Emacs  : GNU Emacs 24.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2)
 of 2012-07-29 on charichuelo, modified by Debian
Package: Org-mode version 7.9.3a (7.9.3a-elpa @ 
/home/joost/.emacs.d/elpa/org-20130108/)

regards,

Joost

-- 
Snow B.V.http://snow.nl



Re: [O] org-plus-contrib: Invalid function: org-no-popups

2013-01-25 Thread Bastien
Bastien b...@altern.org writes:

 How can you make sure that Org-mode has not been used before people 
 want to install an updated version through GNU/Org ELPA?

Note that some people use Org early in the initialization process,
e.g. for their Emacs configuration file.  My guess is that the people
who use this are also the ones who are likely to install Org thru ELPA
so we need to take that into account.

-- 
 Bastien



Re: [O] Compare a timestamp with existing agenda entries.

2013-01-25 Thread Nicolas Richard
Bastien b...@altern.org writes:
 That way, each time I open the calendar, days with
 scheduled/deadlined/timestamped entries in rdv.org
 are highlighted.

Thanks for the hint.

 This is not perfect because it does not tell the time
 of these appointments -- so I just added a new binding 
 in the Org read date prompt: you can now use `?' to view
 the diary entries on the  date the cursor here.

That looks nice too, I'll try it out. Just a note : the commit message
mention the `!' key instead of `?'.

-- 
Nico.




Re: [O] TeX-master: TeX-master is let-bound

2013-01-25 Thread Bastien
Hi Christopher,

Christopher Schmidt christop...@ch.ristopher.com writes:

 Christopher Schmidt christop...@ch.ristopher.com writes:
 The default value it t anyway.  The docstring suggests that this
 variable should be set via file variables.  I do not think org-mode
 should worry about AUCTeX.

 Ping?

 The default value of TeX-master is t.  Binding a symbol which might be
 defvar'ed within the let-body does not work.  In fact, this might break
 the Emacs instance, rendering any latex-mode buffer unusable.

Can you provide a reproducible recipe?

 To make a long story short, there is no excuse for the form in question.
 Please remove it.  Everyone who messes with TeX-master should use
 org-export-latex-final-hook to set TeX-master and/or add a local
 variables list to the buffer.

I skimmed the previous discussions, and my understanding is that the
patch will break things for some users, even those who don't mess with
TeX-master.

Is it so?  If yes, can we make a better patch?

Thanks,

-- 
 Bastien



Re: [O] Compare a timestamp with existing agenda entries.

2013-01-25 Thread Bastien
Hi Nicolas,

Nicolas Richard theonewiththeevill...@yahoo.fr writes:

 That looks nice too, I'll try it out. Just a note : the commit message
 mention the `!' key instead of `?'.

Yes, my mistake, sorry for this.

-- 
 Bastien



Re: [O] Still Wishing for Snooze

2013-01-25 Thread Michael Brand
Hi Andrew

On Thu, Jan 24, 2013 at 11:54 PM, Andrew M. Nuxoll nux...@up.edu wrote:
 Here an example scenario that illustrates my problem:  Say, at the end of
 each week I need to sit down and generate a report on my progress to send to
 the boss.  So I have recurring, weekly TODO entry on Friday morning.  Well,
 one week the report is delayed because a coworker was ill and couldn't send
 me the data I needed on time.  So, I have to delay that TODO entry until
 Monday *just this one time.*  I need to get it off my agenda for the day but
 I don't want to mark is as completed because it's not.

 Right now the only way to do that is to mark it as completed anyway but make
 a one-time copy of the TODO item with the new scheduled date.  The problem
 is that I have roughly thirty TODO items per day and, on any given day, I
 need to delay about 10-20% of them for various reasons.  (It's the nature of
 my job though I don't think it's that unusual.)  So making a copy of a TODO
 item each time is inconvenient because I end up with dozens of copies
 floating about.

 Furthermore, a delayed TODO item should have more urgency since it's been
 delayed.  But creating a copy means i can't do that. When Monday rolls
 around and it's time to prepare that report it shows up in green text like
 this in my agenda:
  Scheduled:  TODO [#B] Prepare TPS Report

 but I want it to be in red text like this:
   Sched. 4x:  TODO [#B] Prepare TPS Report

 This is why I'm looking for a distinct snooze or delay functionality.  I
 want a TODO item to disappear from the agenda until a specified date and
 then reappear again waiting to be done with all the urgency associated with
 that delay.

Let me only suggest an idea to deal with this, item-based: When the
DEADLINE “warning period” would be generalized to allow positive
numbers then it would extend to a “warning and delay period”. Starting
with:

* TODO [#B] Verify login to the virtual machines
  DEADLINE: 2013-01-22 Tue +1w -0d

It could be delayed to 2013-01-24 Thu which means two days later by
changing the “warning and delay period” to 2d:

* TODO [#B] Verify login to the virtual machines
  DEADLINE: 2013-01-22 Tue +1w 2d

This would not show up in the agenda until 2013-01-24 Thu. At that
date it would be shown with the desirable “In -2 d.:” for overdue to
get the higher priority. When set to done it would become:

* TODO [#B] Verify login to the virtual machines
  DEADLINE: 2013-01-29 Tue +1w -0d

Note the change from 2d to -0d: It is important that when the date
repeats and has a positive warning period aka delay period then it
must be reset to -0d. Otherwise undesirable suprises are guaranteed.

The same “warning and delay period” could also be allowed for
SCHEDULED, mainly usable with a positive range for a delay. Probably
what you would prefer over DEADLINE for your use case. I would even
allow negative numbers for a warning for SCHEDULED, with a default
warning period of -0d to reflect current behavior.

Michael



Re: [O] TeX-master: TeX-master is let-bound

2013-01-25 Thread Christopher Schmidt
Bastien b...@altern.org writes:

Hi Bastien,

thanks for your reply.

 Christopher Schmidt christop...@ch.ristopher.com writes:
 Christopher Schmidt christop...@ch.ristopher.com writes:
 The default value it t anyway.  The docstring suggests that this
 variable should be set via file variables.  I do not think org-mode
 should worry about AUCTeX.

 Ping?

 The default value of TeX-master is t.  Binding a symbol which might
 be defvar'ed within the let-body does not work.  In fact, this might
 break the Emacs instance, rendering any latex-mode buffer unusable.

 Can you provide a reproducible recipe?

I already did, check 87390w5...@ch.ristopher.com.  The issue I
described will only occur if one uses AUCTeX and AUCTeX has not been
loaded already.  Nick did not follow the recipe so he was not able to
reproduce.

 To make a long story short, there is no excuse for the form in
 question.  Please remove it.  Everyone who messes with TeX-master
 should use org-export-latex-final-hook to set TeX-master and/or add a
 local variables list to the buffer.

 I skimmed the previous discussions, and my understanding is that the
 patch will break things for some users, even those who don't mess with
 TeX-master.

It does not break anything for those who do not customise TeX-master.

Those poor souls who do customise TeX-master can easily get back to The
Right Thing using org-export-latex-final-hook.

TeX-master is not meant to be customised by default anyway!

TeX-master is a variable defined in `tex.el'.
Its value is t

  Automatically becomes buffer-local when set.
  This variable is safe as a file local variable if its value
  satisfies the predicate `(lambda (x) (or (stringp x) (member x (quote (t 
nil shared dwim)'.

Documentation:
*The master file associated with the current buffer.
If the file being edited is actually included from another file, you
can tell AUCTeX the name of the master file by setting this variable.
If there are multiple levels of nesting, specify the top level file.
[...]
It is suggested that you use the File Variables (see the info node in
^^^
the Emacs manual) to set this variable permanently for each file.
  ^^^
 Is it so?  If yes, can we make a better patch?

I do not think so.

I do not see what's breaking here.  The users gets what he wanna get.

We could come up with some magic that preloads latex-mode (I proposed
that in 87r4ods...@ch.ristopher.com) and sets TeX-master buffer
locally iff latex-mode actually defines this var.  Yet, this is not how
things should be.  Org cannot, and should not, mess with other
packages.  Customising TeX-master is the bug, and it is on the users
side.

Bastien, thank you so much for looking into this issue.  It has been
bothering for quite some time.

Greetings,

Christopher



Re: [O] Still Wishing for Snooze

2013-01-25 Thread Bastien
Hi Andrew,

thanks for explaining it so clearly, I understand the need,
and I also understand my suggestion (and Eric's one, FWIW) 
cannot completely satisfy it.

I will provide a patch for this next week, we can discuss it
afterwards.

All best,

-- 
 Bastien



Re: [O] Contrib missing from (Cygwin) Emacs

2013-01-25 Thread Sebastien Vauban
Hi Bastien, Achim and Charles,

Bastien wrote:
 yes, the default `org-ditaa-jar-path' value points to the contrib/
 directory, but a wrong value for this variable does prevent publishing a web
 page -- unless you want to publish ditaa shunk without setting the
 `org-ditaa-jar-path' correctly.

 Is it what you did?

Nope. I don't use DITAA in my Web pages at all.

When looking more carefully at the backtrace:

--8---cut here---start-8---
Debugger entered--Lisp error: (error Can't find library org)
  signal(error (Can't find library org))
  error(Can't find library %s org)
  find-library-name(org)
  (file-name-directory (find-library-name org))
  (expand-file-name ../contrib (file-name-directory (find-library-name 
org)))
  (file-name-as-directory (expand-file-name ../contrib (file-name-directory 
(find-library-name org
  (expand-file-name scripts (file-name-as-directory (expand-file-name 
../contrib (file-name-directory (find-library-name org)
  (file-name-as-directory (expand-file-name scripts (file-name-as-directory 
(expand-file-name ../contrib (file-name-directory (find-library-name 
org))
  (expand-file-name ditaa.jar (file-name-as-directory (expand-file-name 
scripts (file-name-as-directory (expand-file-name ../contrib 
(file-name-directory (find-library-name org)))
  eval((expand-file-name ditaa.jar (file-name-as-directory (expand-file-name 
scripts (file-name-as-directory (expand-file-name ../contrib 
(file-name-directory (find-library-name org
  custom-initialize-reset(org-ditaa-jar-path (expand-file-name ditaa.jar 
(file-name-as-directory (expand-file-name scripts (file-name-as-directory 
(expand-file-name ../contrib (file-name-directory (find-library-name 
org
  custom-declare-variable(org-ditaa-jar-path (expand-file-name ditaa.jar 
(file-name-as-directory (expand-file-name scripts (file-name-as-directory 
(expand-file-name ../contrib (file-name-directory (find-library-name 
org))) (/usr/share/emacs/24.2/lisp/org/org-exp-blocks.elc . 6117) 
:group org-babel :type string)
  require(org-exp-blocks)
  
byte-code(\300\301!\210\300\302!\210\300\303!\210\300\304!\210\300\305!\210\300\306!\207
 [require org org-macs org-agenda org-exp-blocks ob-exp org-src] 2)
  require(org-exp)
  
byte-code(\300\301!\210\300\302!\210\300\303!\210\304\305!\204\306\305\307\\210\300\207
 [require org org-exp format-spec fboundp declare-function defalias (macro . 
#[(fn file optional arglist fileonly) \300\207 [nil] 1])] 3)
  require(org-publish)
--8---cut here---end---8---

it seems that (in the latest Cygwin Emacs, that is Emacs bundled with Org-mode
version 7.8.11):

1. `org-publish' calls `org-exp' (still true as of today)
2. `org-exp' calls `org-exp-blocks' (not true anymore)
3. `org-exp-blocks' needs, somehow, a right value for DITAA.

Wait, wait, wait...

When reading the backtrace even more carefully, this 3rd observation is not
what's said by the error message: ../contrib is not (I guess Achim is right)
the problem here, but the fact that `find-library-name' fails to find org.

So, the problem comes down to the fact that the following...

#+begin_src emacs-lisp
  (require 'find-func)
  (find-library-name org)
#+end_src

... does fail with the latest Cygwin [1]:

--8---cut here---start-8---
Debugger entered--Lisp error: (error Can't find library org)
  signal(error (Can't find library org))
  error(Can't find library %s org)
  find-library-name(org)
--8---cut here---end---8---

OTOH, the following does work:

#+begin_src emacs-lisp
  (message %s (locate-library org))
#+end_src

and returns:

--8---cut here---start-8---
/usr/share/emacs/24.2/lisp/org/org.elc
--8---cut here---end---8---

I'm not sure to understand the (subtle?) difference between
`find-library-name' and `locate-library'...

IOW, using `locate-library' (if equivalent) in `org-exp-blocks' would (seem
to) be a workaround to this problem. But...?

Best regards,
  Seb

--
Sebastien Vauban

[1] No local Org installation -- or at least no (add-to-list 'load-path).




Re: [O] Using non-org files as agenda files?

2013-01-25 Thread Sven Bretfeld
Hello Samuel and Eric

Thank you for your suggestions. I have tried In-Place Annotations in the
meantime. However, that doesn't work because every line of annotation
begins with a hard-coded :, which breaks the orgmode markup. [Hm, now,
I'm just thinking about the possibility to simply replace that by * 
in the el.] Switching to babel might be a solution. I will try it. At
the moment I'm using org-annotate-file with similar results as Samuel's
suggestion would yield. Org-annotate-file didn't work for me in the
past, because it didn't recognize the exact line in the associated
document (org-annotate-file-add-search) for any reason. But now it
works. Anyway, this package is not able to display an annotation within
the original file (what In-Place Annotations can do).

Thanks,

Sven

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

 On 1/22/13, Sven Bretfeld sven.bretf...@gmx.ch wrote:
 Is it anyhow possible to use a .tex file as an org-agenda-file?

 It might be possible to put an ID marker in the document.  A command
 then would take you to a headline in a .org file.  That headline can
 then have all Org features.

 1:1 mapping.

 Another command would take you back to that position in the document.

 Samuel



-- 
Prof. Dr. Sven Bretfeld
  \ CEntrum für
CERES  \ REligionswissenschaftliche
\_Studien__
Ruhr-Universität Bochum
Universitätsstraße 150
D-44780 Bochum
http://www.ceres.ruhr-uni-bochum.de/en/participants/details/sven-bretfeld/



Re: [O] new exporter, conditional options according to backend

2013-01-25 Thread Nicolas Goaziou
Hello,

Andreas Leha andreas.l...@med.uni-goettingen.de writes:

 Sorry for hijacking this thread.  But I am also interested in backend
 specific options.  Could you give an example of how to achieve something
 like this with the new exporter:

 #+begin_src R :results graphics :file (if (and (boundp 
 'org-export-current-backend) (eq org-export-current-backend 'e-latex)) 
 foo.pdf foo.png)
   plot(1:10)
 #+end_src

You need to process the buffer being exported before Babel blocks are
expanded. You could use `org-export-before-processing-hook' for that.

For example, you could define a specific extension for :file values,
like foo.xxx, process the buffer and and replace xxx with an
appropriate extension according to the current back-end (the argument of
the function).


Regards,

-- 
Nicolas Goaziou



[O] LaTeX source block problems

2013-01-25 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I want ti include a gantt chart into my org document by using pgfgantt.

I use the following:

#+LATEX_HEADER: \usepackage{pgfgantt}

* The gantt chart I
#+BEGIN_src LaTeX
  \begin {ganttchart} [hgrid=true, vgrid=true]{36}
\gantttitlelist {1,...,3}{12} \\
\gantttitlelist {1,...,12}{1} \\

\ganttgroup {Modelling (France)}{1}{36} \\
  \end {ganttchart}
#+END_src

* The gantt chart II
#+BEGIN_LaTeX
  \begin {ganttchart} [hgrid=true, vgrid=true]{36}
\gantttitlelist {1,...,3}{12} \\
\gantttitlelist {1,...,12}{1} \\

\ganttgroup {Modelling (France)}{1}{36} \\
  \end {ganttchart}
#+END_LaTeX

Gantt I  produces
 - syntax highlighting
 - not exported to pdf as gantchart
 - editing in indirect buffer (C-')
 - no preview of the LaTeX fragment via C-c C-x C-l have dvipng installed).
 - C-c c results in org-babel-execute-src-block: No org-babel-execute function 
for LaTeX!

Gantt II produces
 - no syntax highlighting
 - exported as chart to pdf
 - no editing in indirect buffer
 - no preview of the LaTeX fragment
 - C-c c results in user-error: C-c C-c can do nothing useful at this location

Can I have a block in which I have the following:

 - syntax highlighting
 - editing in indirect buffer
 - preview of the result
 - export to pdf as gannt chart?

Thanks,

Rainer

- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

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

iQEcBAEBAgAGBQJRAovbAAoJENvXNx4PUvmC46sIAIWYl/qSBDU9QICrUUcoaETo
SbX2i3TPjGsgHujYkyCj8/ZgPFFCriwGMqx2EpaWYEi1ZUN+zw1GeHLDbpDHl1MS
JisIxxfrrjTh6wxfCgyydt08KB2FwKkpfDjs6HDU+xW4iyU+TIbORMXCC6+8WEH2
P2UasHDaQlHFA/W+dGVsHcbOp4zSufOLXVCQxlkXeuC/rosAfbRpf6SSr0ZmkyBQ
6bUdqa6nIWsATGuQWXKk9iMZX+ehdbShwmOvNt1AAd9NYlHLIgLV7ZAGuzKwplGw
IUQlCXCbpca1LcFesLM9lr3RGslzqGtEnj7NF3csyOrId8Sg3a6tncvuHY/vyMY=
=sbWV
-END PGP SIGNATURE-



Re: [O] Prefix arguments, checklists, and lists

2013-01-25 Thread Nicolas Goaziou
Hello,

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

 I've got no problem waiting, but it would be a good idea to figure out a
 consistent non-contradictory key-binding in advance, so you can switch
 to that when you make the other changes.

I made the change to the internals. Actually, there is no contradictory
key-bindings.

As a rule of thumb, C-c C-c on a list will operate on every top level
items and C-c C-c on a item will operate on the item. You are considered
to be on a list when calling C-c C-c from affiliated keywords or from
the very beginning of the first line in the first item. Note that
element-wise navigation (like M-{ and M-}) behaves the same.

As a convenient exception, since calling C-c C-c without argument on
a whole list does nothing, it will operate on the first item instead.

What do you find inconsistent?


Regards,

-- 
Nicolas Goaziou



[O] Latest versions

2013-01-25 Thread J. David Boyd

How do I get the latest version of org-mode, with git?  

I got the version I have initially with 
'git clone git://orgmode.org/org-mode.git', and I
'git refresh' every day, but that keeps me in 7.9.3c.

I had to 'wget http://orgmode.org/org-latest.tar.gz' to get to 7.9.3d.

What might I be doing incorrectly?  I presumed that git fetch would keep
me up to the latest version, but it seems not to.

Thanks,

Dave in St. Petersburg, FL





Re: [O] Exporting to LaTeX to use it with \input

2013-01-25 Thread Myles English

Hi Seweryn,

Seweryn Kokot writes:

 I would like to have a main text of the document in LaTeX and only some parts 
 as
 org files (using tables and babel functionality). Then these files I want to
 export to .tex files and include to the main tex file with \input{myorgfile1}.
 My question: is it possible to export to LaTeX without preamble and postable? 
 Or
 how to automatically get rid of this redundant text to use it in
 \input?

Have a look at the standalone package, it ignores everything before
\begin{document} in the \input file.

You might be able to see the documentation by typing:

$ texdoc standalone


Myles



Re: [O] How to track down No heading for this item in buffer or region.?

2013-01-25 Thread J. David Boyd
Nick Dokos nicholas.do...@hp.com writes:

 Bastien b...@altern.org wrote:

 Nick Dokos nicholas.do...@hp.com writes:
 
  to try to reproduce Rainer's problem, when I first construct the agenda,
  I get *both* the TODO and the no-heading message: text properties are not
  active. If I then visit the file (e.g. RET on the TODO item) and construct
  the agenda again, neither the TODO nor the no-heading message
  appears.
 
 I see -- it was not obvious to me you were trying without opening the
 file in a buffer.  With my patch, I can reproduce the error, but only
 the TODO (which appears instead of being skipped, not with the
 timestamp line.  Yes, seems related to properties.  I'll digg further.
 

 Not quite: the file *is* opened in a buffer (the agenda code opens all the
 files, I presume with find-file-noselect), but the text properties are
 not up to date. It's only when I explicitly visit the buffer
 that they get updated.

 E.g. if you evaluate

 (setq buf (find-file-noselect /path/to/test.org))
 (with-current-buffer buf
   (setq s (buffer-substring 1 2)))

 the echo area shows

 ,
 | #(# 0 1 (fontified nil))
 `

 But if you visit the buffer with C-x b test.org RET and then
 evaluate the second form again, you get 

 ,
 | #(# 0 1 (fontified t font-lock-fontified t face font-lock-comment-face))
 `

 There is a section on lazy properties in the elisp manual but I don't
 know how to use the mechanism described there: there are no examples in
 current emacs code, some half-hearted experiments failed for unknown
 reasons, and googling a bit found only one relevant thread in the emacs
 group from 2004 - quoting Stefan Monnier from that thread:

 #+BEGIN_QUOTE
   I think the lazy text properties that you refer to (i.e. variable
   buffer-access-fontify-functions) are a sadly perfect example of C code
   implemented before we knew what we needed.  It's implemented,
   documented, and 100% unused.
 #+END_QUOTE

 AFAICT, nothing has been done in this area since then.

 Nick

 PS. Here's the trivial test.org again for completeness:

 # timestamp: 2013-01-24 Thu

 * TODO foo
 #  SCHEDULED: 2013-01-24 Thu



There was a message in here a while back about something like this.   I
can't find it at the moment, but the author talked about org mode hooks
that aren't being run when a file is loaded or moved to from the agenda,
only when explicitly loaded.   He had a work around for that, but I
don't recall that either   Sorry for no more help than this




[O] Activation - loading .emacs or .emacs.d emacsportable

2013-01-25 Thread Siegel, Aaron J.
Hello
Does anyone know if there is a mailing list for EmacsPortableApp?

I am running EmacsPortableapp 24.2.1 (i386-mingw-nt6.1.7601), download from the 
following link, on Windows 7.
   https://github.com/mlf176f2/EmacsPortable.App/
I am unable to get the shortcut setup .emacs or .emacs.d to work.  I have tried 
two different .emacs.  When I try to invoke a shortcut I receive the error is 
undefined.
C-c a is undefined

Org-Mode Activation http://orgmode.org/org.pdf =
(global-set-key \C-cl 'org-store-link)
(global-set-key \C-cc 'org-capture)
(global-set-key \C-ca 'org-agenda)
(global-set-key \C-cb 'org-iswitchb)

;; ===Org-Mode Activation 
http://orgmode.org/worg/org-tutorials/orgtutorial_dto.html
(require 'org-install)
(add-to-list 'auto-mode-alist '(\\.org$ . org-mode))
(define-key global-map \C-cl 'org-stor-link)
(define-key global-map \C-cc 'org-capture)
(define-key global-map \C-ca 'org-agenda)
(define-key global-map \C-cb 'org-iswitchb)
(setq org-agenda-files (quote (~/org)))

The documentation is for EmacsPortableApp is confusing provides two different  
instruction for  .emacs file. One section places the .emacs file in  
/Data/startup and then in another section it states that .emacs goes in the 
Home director.  I have placed these files in my home directory (defined in the 
EmacsPortableApp.ini parameter Home) I have also tried placing the .emacs in 
/Data/startup.

I have not been abel to startup Emacs 24 Starter Kit  I have moved it into 
the .emacs.d under the Home and Startup directory it still does not work.  I 
used the M-x regen-autoloads command and received receive an error:

   M-x regen-autoloads [no match]

Aaron Siegel
Electrical Engineer
Climax Molybdenum
Henderson Operation
Mine Office: (303) 569-3221 x1543
Mill Office:   (303) 569-3221 x2543
Cell Phone:  (720) 427-5240




[O] OT: .emacs for Emacs portable (was: Activation - loading .emacs or .emacs.d emacsportable)

2013-01-25 Thread Karl Voit
* Siegel, Aaron J. aaron_sie...@fmi.com wrote:

 I am running EmacsPortableapp 24.2.1 (i386-mingw-nt6.1.7601)
 I am unable to get the shortcut setup .emacs or .emacs.d to work.  I have t=
 ried two different .emacs.

I am not sure if this is your issue but [1] mentions that .emacs for
Windows might be called «_emacs» instead.

[2] includes some information about how to set HOME.

HTH

  1. 
https://www.gnu.org/software/emacs/windows/Installing-Emacs.html#Installing-Emacs
  2. https://code.google.com/p/clt-dotemacs/wiki/EmacsPortable
-- 
Karl Voit




Re: [O] LaTeX source block problems

2013-01-25 Thread Thomas S. Dye
Hi Rainer,

Rainer M Krug r.m.k...@gmail.com writes:

  - C-c c results in org-babel-execute-src-block: No org-babel-execute 
 function for LaTeX!

Do you have something like this in .emacs?

(org-babel-do-load-languages
  'org-babel-load-languages
  '((latex . t)))

hth,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] new exporter, conditional options according to backend

2013-01-25 Thread cberry
Nicolas Goaziou n.goaz...@gmail.com writes:

 Hello,

 Ezequiel Birman stormwa...@espiga4.com.ar writes:

 Is it possible to write something like this with the new exporter?

 #+OPTIONS: (if (and (boundp 'org-export-current-backend) (eq 
 org-export-current-backend 'e-beamer)) H:1 H:3)

 There is no `org-export-current-backend' in the new exporter. Besides,
 what you want is the default behaviour (see `org-e-beamer-frame-level'
 variable).

'backend' is in the scope of transcoding functions like
inline-src-block.

I am currently taking advantage of this, but it is a shortcut rather
than a necessity. 

Is your advice Don't do that ?

Chuck

 From what I read in org-export.el the backend is stored in a plist, not
 sure how to get it's value when exporting.

 Or, maybe I need to write a filter function to be run from
 org-export-before-process-hook?

 Filters are different from hook. A function in a hook operates on an Org
 buffer. A filter function operates either on a string in output syntax
 or on the parse tree.

 If, for some reason, you want to modify export options on the fly, you
 could create a filter function for parse tree, and modify options plist
 from it:

 #+begin_src emacs-lisp
 (defun my-options-change-fun (tree backend info)
   (when (org-export-derived-backend-p backend 'e-beamer)
 (plist-put info :with-author nil))
   ;; Don't forget to return tree.
   tree)

 (add-to-list 'org-export-filter-parse-tree-functions
  'my-options-change-fun)
 #+end_src


 Regards,




Re: [O] new exporter, conditional options according to backend

2013-01-25 Thread Nicolas Goaziou
Hello,

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

 'backend' is in the scope of transcoding functions like
 inline-src-block.

 I am currently taking advantage of this, but it is a shortcut rather
 than a necessity. 

 Is your advice Don't do that ?

I would rather say Don't do that in public code. There's no guarantee
this hack will always work.

As you probably know, the clean way to retrieve the back-end symbol from
a transcoding function is:

  (plist-get info :back-end)

INFO being the third argument passed to the function.


Regards,

-- 
Nicolas Goaziou



Re: [O] full outline functionality in .el files: how?

2013-01-25 Thread Memnon Anon
Gregor Zattler telegr...@gmx.net writes:

 Hi Thorsten,
 - after figuring out that I can have full outline functionality in .el
   files too, the (in my eyes) main advantage of an org-based config was
   gone. 

 could you please elaborate how to achieve this?

Icicle uses linkd.el:
http://www.emacswiki.org/cgi-bin/wiki/linkd.el

Memnon




Re: [O] Latest versions

2013-01-25 Thread Nick Dokos
J. David Boyd da...@adboyd.com wrote:

 
 How do I get the latest version of org-mode, with git?  
 
 I got the version I have initially with 
 'git clone git://orgmode.org/org-mode.git', and I
 'git refresh' every day, but that keeps me in 7.9.3c.
 

You mean ``git pull''? I get

$ git refresh
git: 'refresh' is not a git command. See 'git --help'.

 I had to 'wget http://orgmode.org/org-latest.tar.gz' to get to 7.9.3d.
 
 What might I be doing incorrectly?  I presumed that git fetch would keep
 me up to the latest version, but it seems not to.
 

Depending on how you run (uncompiled from the git repo? compiled and
installed in /usr/local/share/emacs/site-lisp? etc, etc.), you need to
do

make autoloads

at the very least. If you are doing the right thing, compiling and
installing in /usr/local/share/emacs/site-lisp/org or thereabouts, you need to 
do

make install

(probably as root).

If you are on Windows, this won't work.

Nick




Re: [O] Latest versions

2013-01-25 Thread Jambunathan K
Nick Dokos nicholas.do...@hp.com writes:

 
 How do I get the latest version of org-mode, with git?  
 
 I got the version I have initially with 
 'git clone git://orgmode.org/org-mode.git', and I
 'git refresh' every day, but that keeps me in 7.9.3c.
 

 You mean ``git pull''? I get

 $ git refresh
 git: 'refresh' is not a git command. See 'git --help'.

make update
-- 



Re: [O] Latest versions

2013-01-25 Thread Nick Dokos
Jambunathan K kjambunat...@gmail.com wrote:

 Nick Dokos nicholas.do...@hp.com writes:
 
  
  How do I get the latest version of org-mode, with git?  
  
  I got the version I have initially with 
  'git clone git://orgmode.org/org-mode.git', and I
  'git refresh' every day, but that keeps me in 7.9.3c.
  
 
  You mean ``git pull''? I get
 
  $ git refresh
  git: 'refresh' is not a git command. See 'git --help'.
 
 make update


Agreed: the best thing to do is ``make help'' and ``make helpall'', and
figure out what the proper make target is for one's purposes.

Nick




[O] BUG? table output despite #+begin_src sh :results verbatim

2013-01-25 Thread Cook, Malcolm
Hi,

In org 7.9.3d, under Gnu emacs 24.2.1 / linux:

I find that org-mode is tablizing shell output despite require 'verbatim' 
results.

#+begin_src sh :results  verbatim
  echo 1
  echo 2
  echo 3
#+end_src

#+results:
| 1 |
| 2 |
| 3 |


The same happens if I used 'scalar' in place of verbatim.

I see that :results processing is somewhat happening, as evidenced by using 
:results org , as below.

#+begin_src sh :results   org
  echo 1
  echo 2
  echo 3
#+end_src

#+results:
#+BEGIN_SRC org
| 1 |
| 2 |
| 3 |
#+END_SRC

Any tips/workarounds/upgrades needed?

Malcolm Cook
Computational Biology - Stowers Institute for Medical Research





Re: [O] Latest versions

2013-01-25 Thread J. David Boyd
Nick Dokos nicholas.do...@hp.com writes:

 Jambunathan K kjambunat...@gmail.com wrote:

 Nick Dokos nicholas.do...@hp.com writes:
 
  
  How do I get the latest version of org-mode, with git?  
  
  I got the version I have initially with 
  'git clone git://orgmode.org/org-mode.git', and I
  'git refresh' every day, but that keeps me in 7.9.3c.
  
 
  You mean ``git pull''? I get
 
  $ git refresh
  git: 'refresh' is not a git command. See 'git --help'.
 
 make update


 Agreed: the best thing to do is ``make help'' and ``make helpall'', and
 figure out what the proper make target is for one's purposes.

 Nick

Sorry, I meant 'git fetch' from inside the org-mode directory.

Dave




Re: [O] Still Wishing for Snooze

2013-01-25 Thread Andrew M. Nuxoll
That looks like a delay period on a SCHEDULED item would work very well 
for me.  I can see the positive delay period being useful to me as well.


This does look like it would be more difficult to implement because it's 
a subtle change to existing code rather than something more modular.


:AMN:

On 01/25/2013 03:10 AM, Michael Brand wrote:

Hi Andrew

On Thu, Jan 24, 2013 at 11:54 PM, Andrew M. Nuxoll nux...@up.edu wrote:

Here an example scenario that illustrates my problem:  Say, at the end of
each week I need to sit down and generate a report on my progress to send to
the boss.  So I have recurring, weekly TODO entry on Friday morning.  Well,
one week the report is delayed because a coworker was ill and couldn't send
me the data I needed on time.  So, I have to delay that TODO entry until
Monday *just this one time.*  I need to get it off my agenda for the day but
I don't want to mark is as completed because it's not.

Right now the only way to do that is to mark it as completed anyway but make
a one-time copy of the TODO item with the new scheduled date.  The problem
is that I have roughly thirty TODO items per day and, on any given day, I
need to delay about 10-20% of them for various reasons.  (It's the nature of
my job though I don't think it's that unusual.)  So making a copy of a TODO
item each time is inconvenient because I end up with dozens of copies
floating about.

Furthermore, a delayed TODO item should have more urgency since it's been
delayed.  But creating a copy means i can't do that. When Monday rolls
around and it's time to prepare that report it shows up in green text like
this in my agenda:
  Scheduled:  TODO [#B] Prepare TPS Report

but I want it to be in red text like this:
   Sched. 4x:  TODO [#B] Prepare TPS Report

This is why I'm looking for a distinct snooze or delay functionality.  I
want a TODO item to disappear from the agenda until a specified date and
then reappear again waiting to be done with all the urgency associated with
that delay.

Let me only suggest an idea to deal with this, item-based: When the
DEADLINE “warning period” would be generalized to allow positive
numbers then it would extend to a “warning and delay period”. Starting
with:

* TODO [#B] Verify login to the virtual machines
   DEADLINE: 2013-01-22 Tue +1w -0d

It could be delayed to 2013-01-24 Thu which means two days later by
changing the “warning and delay period” to 2d:

* TODO [#B] Verify login to the virtual machines
   DEADLINE: 2013-01-22 Tue +1w 2d

This would not show up in the agenda until 2013-01-24 Thu. At that
date it would be shown with the desirable “In -2 d.:” for overdue to
get the higher priority. When set to done it would become:

* TODO [#B] Verify login to the virtual machines
   DEADLINE: 2013-01-29 Tue +1w -0d

Note the change from 2d to -0d: It is important that when the date
repeats and has a positive warning period aka delay period then it
must be reset to -0d. Otherwise undesirable suprises are guaranteed.

The same “warning and delay period” could also be allowed for
SCHEDULED, mainly usable with a positive range for a delay. Probably
what you would prefer over DEADLINE for your use case. I would even
allow negative numbers for a warning for SCHEDULED, with a default
warning period of -0d to reflect current behavior.

Michael



--
Andrew M. Nuxoll Phone: 503-943-7688
Asst Professor of Computer Science   Fax:   503-943-7316
University of Portland - MSC #145Email: nux...@up.edu
5000 N. Willamette Blvd  Web:   http://faculty.up.edu/nuxoll
Portland, OR  97203-5798 Office: Shiley Hall Rm 217




Re: [O] BUG? table output despite #+begin_src sh :results verbatim

2013-01-25 Thread Thomas S. Dye
Aloha Malcolm,

Cook, Malcolm m...@stowers.org writes:

 Hi,

 In org 7.9.3d, under Gnu emacs 24.2.1 / linux:

 I find that org-mode is tablizing shell output despite require
 verbatim' results.

 #+begin_src sh :results  verbatim
   echo 1
   echo 2
   echo 3
 #+end_src

 #+results:
 | 1 |
 | 2 |
 | 3 |

Hmm, I get this:

#+begin_src sh :results  verbatim
  echo 1
  echo 2
  echo 3
#+end_src

#+results:
: 1
: 2
: 3

#+begin_src sh :results  scalar
  echo 1
  echo 2
  echo 3
#+end_src

#+results:
: 1
: 2
: 3

#+begin_src sh :results  table
  echo 1
  echo 2
  echo 3
#+end_src

#+results:
| 1 |
| 2 |
| 3 | 

#+begin_src sh :results  list
  echo 1
  echo 2
  echo 3
#+end_src

#+results:
- (1)
- (2)
- (3)

#+begin_src sh :results org
  echo 1
  echo 2
  echo 3
#+end_src

#+results:
#+BEGIN_SRC org
| 1 |
| 2 |
| 3 |
#+END_SRC

Not sure why our results differ, though.

Tom

-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] BUG? table output despite #+begin_src sh :results verbatim

2013-01-25 Thread Cook, Malcolm
Thomas,

Thanks for checking.

What does 

meta-x org-version

tell you

??

~Malcolm


 .-Original Message-
 .From: Thomas S. Dye [mailto:t...@tsdye.com]
 .Sent: Friday, January 25, 2013 1:44 PM
 .To: Cook, Malcolm
 .Cc: 'emacs-orgmode@gnu.org'
 .Subject: Re: BUG? table output despite #+begin_src sh :results verbatim
 .
 .Aloha Malcolm,
 .
 .Cook, Malcolm m...@stowers.org writes:
 .
 . Hi,
 .
 . In org 7.9.3d, under Gnu emacs 24.2.1 / linux:
 .
 . I find that org-mode is tablizing shell output despite require
 . verbatim' results.
 .
 . #+begin_src sh :results  verbatim
 .   echo 1
 .   echo 2
 .   echo 3
 . #+end_src
 .
 . #+results:
 . | 1 |
 . | 2 |
 . | 3 |
 .
 .Hmm, I get this:
 .
 .#+begin_src sh :results  verbatim
 .  echo 1
 .  echo 2
 .  echo 3
 .#+end_src
 .
 .#+results:
 .: 1
 .: 2
 .: 3
 .
 .#+begin_src sh :results  scalar
 .  echo 1
 .  echo 2
 .  echo 3
 .#+end_src
 .
 .#+results:
 .: 1
 .: 2
 .: 3
 .
 .#+begin_src sh :results  table
 .  echo 1
 .  echo 2
 .  echo 3
 .#+end_src
 .
 .#+results:
 .| 1 |
 .| 2 |
 .| 3 |
 .
 .#+begin_src sh :results  list
 .  echo 1
 .  echo 2
 .  echo 3
 .#+end_src
 .
 .#+results:
 .- (1)
 .- (2)
 .- (3)
 .
 .#+begin_src sh :results org
 .  echo 1
 .  echo 2
 .  echo 3
 .#+end_src
 .
 .#+results:
 .#+BEGIN_SRC org
 .| 1 |
 .| 2 |
 .| 3 |
 .#+END_SRC
 .
 .Not sure why our results differ, though.
 .
 .Tom
 .
 .--
 .Thomas S. Dye
 .http://www.tsdye.com



Re: [O] Still Wishing for Snooze

2013-01-25 Thread Andrew M. Nuxoll

If you do that, I may have to send you a cheesecake.

Thank you!
:AMN:

On 01/25/2013 02:45 AM, Bastien wrote:

Hi Andrew,

thanks for explaining it so clearly, I understand the need,
and I also understand my suggestion (and Eric's one, FWIW)
cannot completely satisfy it.

I will provide a patch for this next week, we can discuss it
afterwards.

All best,




--
Andrew M. Nuxoll Phone: 503-943-7688
Asst Professor of Computer Science   Fax:   503-943-7316
University of Portland - MSC #145Email: nux...@up.edu
5000 N. Willamette Blvd  Web:   http://faculty.up.edu/nuxoll
Portland, OR  97203-5798 Office: Shiley Hall Rm 217




Re: [O] org-plus-contrib: Invalid function: org-no-popups

2013-01-25 Thread Achim Gratz
Bastien writes:
 Achim Gratz strom...@nexgo.de writes:
 I happen to think that this suggestion goes too far (if you think nobody
 should use OIrg from ELPA, then you'd need to stop making it available
 there and hopefully we already agreed that this isn't an option).  

 No, we did not agreed this isn't an option.

My reading comprehension may be at an all-time low, but this is what you
wrote in another thread:

 This [removing Org from ELPA -ed] is using Org users as hostages, I
 don't want to do this.

 I think this is an option.

Hm… I'm obviously missing some piece.

 How can you make sure that Org-mode has not been used before people 
 want to install an updated version through GNU/Org ELPA?

That's what the patch does that you didn't like.

 I can't think of any good way.

 Until someone have an idea about this, I'm very serious about removing
 the possibility of installing Org through ELPA.  But as I said I won't
 do this before getting a sense of what the users use and expect.

There are exactly two possibilities to get into this situation:

The first is using Org anything before opening the package manager.  I
think it should be possible to educate users that it's better t use a
fresh Emacs instance for updating or installing packages until this has
been fixed in package manager.

The second are things like starter-kit.  I'm thinking that it should be
the responsibility of such software to load and unload Org if they
really need to use it before activating packages and ask for support
from Emacs devs in how to do this properly.  Package manager is a first
class citizen of Emacs by now which means any add-on has to cope with
its existence.  It's interesting to see that the bugs seem to get
chalked up to the packages that are in ELPA rather than the mechanisms
that install them (or prevent proper initialization of Emacs) and it
kind of seems to fly under the radar for this reason even though it
seems to affect many users and has had for quite some time already.


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] Latest versions

2013-01-25 Thread Achim Gratz
J. David Boyd writes:
 Sorry, I meant 'git fetch' from inside the org-mode directory.

That doesn't even try to touch your work-tree.  You want git pull, but
using the appropriate target from the build system is even better since
it will ensure that everything else is up-to-date, too.


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

SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] Latest versions

2013-01-25 Thread J. David Boyd
Achim Gratz strom...@nexgo.de writes:

 J. David Boyd writes:
 Sorry, I meant 'git fetch' from inside the org-mode directory.

 That doesn't even try to touch your work-tree.  You want git pull, but
 using the appropriate target from the build system is even better since
 it will ensure that everything else is up-to-date, too.


 Regards,
 Achim.

I didn't realize 'make update' existed.  That worked great!

Dave




Re: [O] BUG? table output despite #+begin_src sh :results verbatim

2013-01-25 Thread Thomas S. Dye
Cook, Malcolm m...@stowers.org writes:

 Thomas,

 Thanks for checking.

 What does 

 meta-x org-version

 tell you

 ??

Org-mode version 7.9.3d (release_7.9.3d-830-g780b45 @ 
/Users/dk/.emacs.d/src/org-mode/lisp/)

-- 
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] BUG? table output despite #+begin_src sh :results verbatim

2013-01-25 Thread Cook, Malcolm
THanks Thomas, I see we are running same version of org

Has anyone else reading this got an idea what would cause org to table-ize 
shell output despite a `:results verbatim` in the source block header?

Thanks!

~Malcolm


 .-Original Message-
 .From: Thomas S. Dye [mailto:t...@tsdye.com]
 .Sent: Friday, January 25, 2013 2:31 PM
 .To: Cook, Malcolm
 .Cc: 'emacs-orgmode@gnu.org'
 .Subject: Re: BUG? table output despite #+begin_src sh :results verbatim
 .
 .Cook, Malcolm m...@stowers.org writes:
 .
 . Thomas,
 .
 . Thanks for checking.
 .
 . What does
 .
 . meta-x org-version
 .
 . tell you
 .
 . ??
 .
 .Org-mode version 7.9.3d (release_7.9.3d-830-g780b45 @ 
/Users/dk/.emacs.d/src/org-mode/lisp/)
 .
 .--
 .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] BUG? table output despite #+begin_src sh :results verbatim

2013-01-25 Thread Sebastien Vauban
Hi Thomas and Malcolm,

Thomas S. Dye wrote:
 Aloha Malcolm,

 Cook, Malcolm m...@stowers.org writes:

 Hi,

 In org 7.9.3d, under Gnu emacs 24.2.1 / linux:

 I find that org-mode is tablizing shell output despite require
 verbatim' results.

 #+begin_src sh :results  verbatim
   echo 1
   echo 2
   echo 3
 #+end_src

 #+results:
 | 1 |
 | 2 |
 | 3 |

 Hmm, I get this:

 #+begin_src sh :results  verbatim
   echo 1
   echo 2
   echo 3
 #+end_src

 #+results:
 : 1
 : 2
 : 3

 #+begin_src sh :results  scalar
   echo 1
   echo 2
   echo 3
 #+end_src

 #+results:
 : 1
 : 2
 : 3

In both cases (verbatim or scalar, which are synonyms), I do have:

#+begin_src sh :results  verbatim
  echo 1
  echo 2
  echo 3
#+end_src

#+results:
#+begin_example
1
2
3
#+end_example

(I configured Babel so that to get lines prefixed by : only if there
is *one* line of results)

For the rest, I got the same as you:

 #+begin_src sh :results  table
   echo 1
   echo 2
   echo 3
 #+end_src

 #+results:
 | 1 |
 | 2 |
 | 3 | 

 #+begin_src sh :results  list
   echo 1
   echo 2
   echo 3
 #+end_src

 #+results:
 - (1)
 - (2)
 - (3)

... and wonder why the figures here are enclosed between parentheses...

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] OT: .emacs for Emacs portable (was: Activation - loading .emacs or .emacs.d emacsportable)

2013-01-25 Thread Siegel, Aaron J.
Hello

I created a new environmental variable with the name ~ pointing to my home 
directory

Thank you



-Original Message-
From: emacs-orgmode-bounces+aaron_siegel=fmi@gnu.org 
[mailto:emacs-orgmode-bounces+aaron_siegel=fmi@gnu.org] On Behalf Of Karl 
Voit
Sent: Friday, January 25, 2013 9:37 AM
To: emacs-orgmode@gnu.org
Subject: [O] OT: .emacs for Emacs portable (was: Activation - loading .emacs or 
.emacs.d emacsportable)

* Siegel, Aaron J. aaron_sie...@fmi.com wrote:

 I am running EmacsPortableapp 24.2.1 (i386-mingw-nt6.1.7601) I am 
 unable to get the shortcut setup .emacs or .emacs.d to work.  I have 
 t= ried two different .emacs.

I am not sure if this is your issue but [1] mentions that .emacs for Windows 
might be called «_emacs» instead.

[2] includes some information about how to set HOME.

HTH

  1. 
https://www.gnu.org/software/emacs/windows/Installing-Emacs.html#Installing-Emacs
  2. https://code.google.com/p/clt-dotemacs/wiki/EmacsPortable
--
Karl Voit





[O] [bug] latex fragment preview with dvipng ignores :foreground specification

2013-01-25 Thread Eric S Fraga
Hello,

I am trying to use org-tree-slide for an interactive session I have to
facilitate soon.  This works quite well, in a geeky kind of way ;-)

However, I do want to display a couple of equations and using latex
fragments is the most appealing mechanism.  When I try to use
org-preview-latex-fragment, the latex image is
generated.  Unfortunately, as I use a black background on my display, I
cannot see the fragment as it is being generated with black text on a
transparent background by default.  Note, I am using dvipng for the
image conversion.

I can customise org-format-latex-options to fix this, or so I
thought.  No matter what I do, the resulting latex fragment has black
text.  The problem appears to be that the -fg option to dvipng does not
work so it doesn't matter how I customise org-format-latex-options.

Can anybody suggest a workaround (without changing the actual latex
itself)?  I can customise the above variable to set the background for
latex images to white, which at least allows the equations to be seen,
but this is a mildly ugly solution.  :( And ruins any geek street cred I
might have had ;-)

Thanks,
eric

-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_7.9.3d-874-gf11acc




Re: [O] Export of subtree does not include header

2013-01-25 Thread John Hendy
On Thu, Jan 24, 2013 at 7:55 AM, Søren Mikkelsen so...@aamikkelsen.dk wrote:
 John Hendy jw.he...@gmail.com writes:

 On Fri, Jan 18, 2013 at 4:35 AM, Søren Aagaard Mikkelsen
 so...@aamikkelsen.dk wrote:
 I have used orgmode for a while, but hasn't used any of its advanced
 features that much. I'm currently writing a minutes report and what to
 export a specific subtree, e.g.

 * Minutes from 2013-01-11

 * Minutes from 2013-01-18--- Want to export this only

 Then I press C-c @, which marks the subtree, and then I press C-c C-e
 and export it as a pdf-document.

 The problem is that I want the top section to remain the same, i.e. 
 Minutes from
 2013-01-18 is the top section and the others to be subsection of
 that.

 Currently, it surely exports the right subtree but the top-section is
 not Minutes from 2013-01-18, but the bullet after that.

 I get the same behavior. Does it need to export it in a tree like
 format, or would you be okay with your top level headline (the one you
 want exported, but which is currently not) being the actual title of
 the document? Or is that what you're currently getting.


 This is what I'm currently getting. I want to have a document with all my
 minutes and my idea is, that I should be able to export one heading for
 each meeting, so I can prepare an agenda and afterwards fill in the
 outcome of the discussions.

 With default settings (org-export-latex-title-command \\maketitle),
 I get the top-most headline of the marked subtree as my document title
 and the next level headline as the first section. Is this what you're
 getting, or the top headline text isn't showing up in the document at
 all?

 Yes, I get the same result. I don't want subsections to be promoted to
 sections when I export the org-markup. Is that possible?


So you're kind of getting what you want, it's just that you want the
current title to be left aligned/bold like a section?

Can you explain what you mean by don't want subsections to be
promoted to sections?  As in with =#+options: num:t=, with:

#+begin_src org
* first
** second (export this and below)
*** third
#+end_src

You would get:

#+begin_src export
1.1 second
1.1.1 third
#+end_src

As in, does absolute position matter, or are you okay with:

#+begin_src export
1 second
1.1 third
#+end_src

Not sure how to do what you want, but just thinking that more details
might help others chime in about how to get what you want...



John


 If having it as the title would work, you would get:
 --
 [centered]Minutes from 2013-01-18[centered]

 A bit of white space

 Any text directly under Minutes from 2013-01-18...

 [section] The first headline under Minutes from 2013-01-18 [section]
 text under that headline

 [section 2] The second headline under Minutes from 2013-01-18 [section]
 text under that headline
 --

 If it's just the centered text/bit white space gap you don't like, I'm
 sure there's LaTeX header arguments you could put in your Org document
 or setupfile to left-align the title and remove the space. What do you
 think of that option?

 Also... just to save you *one* keystroke,  you can put your cursor on
 the headline of interest and do =C-e 1 p=, which I think does the same
 as marking the whole subtree with =C-c @ C-e p=.


 John


 Thanks for the keystroke advice. Love a bit of emacs-hints :)





[O] Minor footnote suggestion

2013-01-25 Thread Alan L Tyree

G'day,

A minor suggestion on org-footnote-action:

When positioned in footnote text, the function jumps back *to the 
beginning* of the footnote reference. It would be more convenient to 
jump to the end of the reference since that is where the author is 
likely to pick up typing the text.


Not exactly earth shaking :-).

Cheers,
Alan


--
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206  sip:172...@iptel.org




Re: [O] [bug] latex fragment preview with dvipng ignores :foreground specification

2013-01-25 Thread Nick Dokos
Eric S Fraga e.fr...@ucl.ac.uk wrote:

 Hello,
 
 I am trying to use org-tree-slide for an interactive session I have to
 facilitate soon.  This works quite well, in a geeky kind of way ;-)
 
 However, I do want to display a couple of equations and using latex
 fragments is the most appealing mechanism.  When I try to use
 org-preview-latex-fragment, the latex image is
 generated.  Unfortunately, as I use a black background on my display, I
 cannot see the fragment as it is being generated with black text on a
 transparent background by default.  Note, I am using dvipng for the
 image conversion.
 
 I can customise org-format-latex-options to fix this, or so I
 thought.  No matter what I do, the resulting latex fragment has black
 text.  The problem appears to be that the -fg option to dvipng does not
 work so it doesn't matter how I customise org-format-latex-options.
 

I think that's true. Using dvipng from the command line, I can change
the background but not the foreground.

 Can anybody suggest a workaround (without changing the actual latex
 itself)?  I can customise the above variable to set the background for
 latex images to white, which at least allows the equations to be seen,
 but this is a mildly ugly solution.  :( And ruins any geek street cred I
 might have had ;-)
 

Use a light background emacs for the presentation. And don't tell
anybody that you switched. Street creds intact, you can switch back to
the cool dark background afterwards. If you get caught, you can argue
that you switched for projection purposes (assuming that you are going
to use a projector): studies show that dark letters on a light
background are easier to see from a distance (citation: J.WhlClthFab,
Vol. 3.14159, p. 2.7182818, Apr. 1, 1999)

Nick



Re: [O] [bug] latex fragment preview with dvipng ignores :foreground specification

2013-01-25 Thread Nick Dokos
Eric S Fraga e.fr...@ucl.ac.uk wrote:

 Hello,
 
 I am trying to use org-tree-slide for an interactive session I have to
 facilitate soon.  This works quite well, in a geeky kind of way ;-)
 
 However, I do want to display a couple of equations and using latex
 fragments is the most appealing mechanism.  When I try to use
 org-preview-latex-fragment, the latex image is
 generated.  Unfortunately, as I use a black background on my display, I
 cannot see the fragment as it is being generated with black text on a
 transparent background by default.  Note, I am using dvipng for the
 image conversion.
 

I tried the imagemagick setting, set the options variable to black background
and red foreground - lo and behold, that's what I get in the preview.

Nick

 I can customise org-format-latex-options to fix this, or so I
 thought.  No matter what I do, the resulting latex fragment has black
 text.  The problem appears to be that the -fg option to dvipng does not
 work so it doesn't matter how I customise org-format-latex-options.
 
 Can anybody suggest a workaround (without changing the actual latex
 itself)?  I can customise the above variable to set the background for
 latex images to white, which at least allows the equations to be seen,
 but this is a mildly ugly solution.  :( And ruins any geek street cred I
 might have had ;-)
 
 Thanks,
 eric
 
 -- 
 : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
 : in Emacs 24.3.50.1 and Org release_7.9.3d-874-gf11acc