Re: [O] why was makefile changed to produce this?

2011-10-18 Thread Michael Brand
Hi Jude

Have you checked if the binary makeinfo can be found somewhere and if
it is reachable by your PATH? What is the output of these commands?
find /usr /bin /sbin -name makeinfo
echo $PATH
cd ~/org-mode  make info

Michael

On Tue, Oct 18, 2011 at 07:02, Jude DaShiell jdash...@shellworld.net wrote:
 Script started on Tue 18 Oct 2011 12:55:27 AM EDT
 jude@stmarys:~/org-mode$ make   [K  [K  [K  [K  [Ksudo make install-info
 (cd doc  makeinfo --no-split org.texi -o org)
 /bin/sh: 1: makeinfo: not found
 make: *** [doc/org] Error 127
 jude@stmarys:~/org-mode$ exit
 exit

 Script done on Tue 18 Oct 2011 12:56:00 AM EDT



Re: [O] why was makefile changed to produce this?

2011-10-18 Thread Jude DaShiell
For the record, this is a new installation of debian wheezy and 
the makeinfo utility doesn't appear to be in the distribution let alone 
on my system.

Script started on Tue 18 Oct 2011 03:50:42 AM EDT
jude@stmarys:~$ ./findmakeinfo.sh
find: `/usr/lost+found': Permission denied
/usr/bin/mh:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
(cd doc  makeinfo --no-split org.texi -o org)
/bin/sh: 1: makeinfo: not found
make: *** [doc/org] Error 127
jude@stmarys:~$ exit
exit

Script done on Tue 18 Oct 2011 03:51:22 AM EDT

On Tue, 18 Oct 2011, Michael Brand wrote:

 Hi Jude
 
 Have you checked if the binary makeinfo can be found somewhere and if
 it is reachable by your PATH? What is the output of these commands?
 find /usr /bin /sbin -name makeinfo
 echo $PATH
 cd ~/org-mode  make info
 
 Michael
 
 On Tue, Oct 18, 2011 at 07:02, Jude DaShiell jdash...@shellworld.net wrote:
  Script started on Tue 18 Oct 2011 12:55:27 AM EDT
  jude@stmarys:~/org-mode$ make   [K  [K  [K  [K  [Ksudo make install-info
  (cd doc  makeinfo --no-split org.texi -o org)
  /bin/sh: 1: makeinfo: not found
  make: *** [doc/org] Error 127
  jude@stmarys:~/org-mode$ exit
  exit
 
  Script done on Tue 18 Oct 2011 12:56:00 AM EDT
 
 

Jude jdash...@shellworld.net
If I got a nickel for every message I've already sent supporting Microsoft
Windows and its applications I'd have enough to retire on comfortably no
matter what the stock market did.




Re: [O] why was makefile changed to produce this?

2011-10-18 Thread Jude DaShiell
My bad, I was missing texinfo package and thought that had already been 
installed.  Once that got installed, everything works as well as it did 
earlier this year.  If I knew what path that error took, I'd write what 
might be a better error message for it asking for the texinfo package to 
be installed.



Jude jdash...@shellworld.net If I got a nickel for every message I've 
already sent supporting Microsoft Windows and its applications I'd have 
enough to retire on comfortably no matter what the stock market did.




Re: [O] why was makefile changed to produce this?

2011-10-18 Thread Olaf Meeuwissen
Jude DaShiell jdash...@shellworld.net writes:

 For the record, this is a new installation of debian wheezy and 
 the makeinfo utility doesn't appear to be in the distribution let alone 
 on my system.

  sudo apt-get install texinfo

I usually keep a (somewhat stale) copy of Contents-$arch.gz around and
find necessary packages with

  zegrep bin/makeinfo Contents-$arch.gz

There is (was?) a package that would make package suggestions if a
command isn't found but I can't recall its name.
# Somewhat annoying when you make a typo but ...

Hope this helps,
-- 
Olaf Meeuwissen, LPIC-2   FLOSS Engineer -- AVASYS CORPORATION
FSF Associate Member #1962   Help support software freedom
 http://www.fsf.org/jf?referrer=1962



Re: [O] eps inline

2011-10-18 Thread Eric S Fraga
Henri-Paul Indiogine hindiog...@gmail.com writes:

 Greegins!

 2011/10/17 Nick Dokos nicholas.do...@hp.com:
    http://thread.gmane.org/gmane.emacs.orgmode/46172

From reading this thread I suspect that the problem is the older
 version of TeXLive, which is still 2009 even in the latest Ubuntu.
 For the time being I will convert to png using imagemagick.   Maybe I
 can figure out how to get a newer version of TeXLive.

Until you get a chance to upgrade, I recommend converting the eps to pdf
(using epstopdf, say) instead of png as you will then retain the
scalable vector nature of the graphics.

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.90.1
: using Org-mode version 7.7 (release_7.7.393.g8caa)



[O] org-list-indent-offset only works partially

2011-10-18 Thread Sébastien Delafond
Hello,

from Debian bug #645214 (http://bugs.debian.org/645214):

  org-mode doesn't seems to honour correctly the org-list-indent-offset
  variable (a recent addition). See the following steps:

  1- Run emacs -q
  2- M-x org-mode 
  3- M-x set-variable org-list-indent-offset 8
  4- open /tmp/t.org
  5- Write the following
  - item 1
  [TAB]- item 2

  When you press [TAB], - item 2 is indented only two spaces right,
  not 8 as org-list-indent-offset describes, thats seems to be a
  bug. But now, if over the item 2 line you do

  6- M-left 
  7- M-right

  The - item 2 will be correctly indented 8 spaces to the right. So
  org-list-indent-offset is correctly working in this case.

There wasn't any patch provided by the submitter.

Cheers,

--Seb




Re: [O] Wish: babel for python3

2011-10-18 Thread Torsten Wagner

Hi,
(sorry Arne for the eventual double post, I forogot to attt the mailing 
list)



Is there a way to get python3 support for Babel into org-mode
cleanly?




Something like:
-*- org-babel-python-command: python3



alternatively (a trick Eric is never tired to mention to me ) you could 
add a little lisp block which change all kind of language related 
aspects for you. This could include many more options and modify your 
emacs environment just to your personal needs for a certain language.


Make one for python2 and one for python3 and execute them dependent on 
which system you are going to use.


Without testing and without guarantee it should be something like the 
below code. To demonstrate some more functionality lets change the 
modebar background colour to make it more visible which python mode you 
are currently using.



#+srcname: python2_env
#+begin_src emacs-lisp
 (setq org-babel-python-command python)
 (set-face-background 'modeline #4477aa)
#+end_src

#+srcname: python3_env
#+begin_src emacs-lisp
 (setq org-babel-python-command python3)
 (set-face-background 'modeline #771944)
#+end_src

Sure both could be done with file bounded variables too. But know you 
can switch between both environments within the same buffer, e.g., to 
check if the code runs on both python versions


Regards

Totti



[O] outline-demote incorrectly demotes leaf nodes

2011-10-18 Thread Sébastien Delafond
Hello,

from Debian bug #645360 (http://bugs.debian.org/645360):

  Here's my test file, call it c.org:

  * a
  ** aa
  *** aaa

  I put the cursor at the beginning of the file (at the * in the first
  line).  Then I type C-c C- (i.e. outline-demote).  The result is

  ** a
  *** aa
  ***  aaa

  I expected that the last line (the leaf node aaa) would become a
  fourth-level heading, i.e.  aaa.  Instead, the fourth * that I
  was hoping for looks like it became a space.

There wasn't any patch provided by the submitter.

Cheers,

--Seb 




Re: [O] org-list-indent-offset only works partially

2011-10-18 Thread Michael Brand
Hi all

I would like to suggest to treat this together with a similar issue:

1- Run emacs -q
2- M-x org-mode
3- open /tmp/t.org
4- Write the following
- 1 :: item 1
[TAB]- item 2

When you press [TAB], - item 2 is indented 7 spaces right. But I
would expect it to be indented the same 2 spaces as if over the item 2
line you do

5- M-left
6- M-right

Michael

On Tue, Oct 18, 2011 at 10:53, Sébastien Delafond sdelaf...@gmail.com wrote:
 Hello,

 from Debian bug #645214 (http://bugs.debian.org/645214):

  org-mode doesn't seems to honour correctly the org-list-indent-offset
  variable (a recent addition). See the following steps:

  1- Run emacs -q
  2- M-x org-mode
  3- M-x set-variable org-list-indent-offset 8
  4- open /tmp/t.org
  5- Write the following
  - item 1
  [TAB]- item 2

  When you press [TAB], - item 2 is indented only two spaces right,
  not 8 as org-list-indent-offset describes, thats seems to be a
  bug. But now, if over the item 2 line you do

  6- M-left
  7- M-right

  The - item 2 will be correctly indented 8 spaces to the right. So
  org-list-indent-offset is correctly working in this case.

 There wasn't any patch provided by the submitter.



Re: [O] outline-demote incorrectly demotes leaf nodes

2011-10-18 Thread Christian Moe

Hi,

The Org manual (2.5 Structure editing) says to use M-S-right 
(org-demote-subtree) for what the submitter wants to do.


Yours,
Christian

On 10/18/11 10:55 AM, Sébastien Delafond wrote:

Hello,

from Debian bug #645360 (http://bugs.debian.org/645360):

   Here's my test file, call it c.org:

   * a
   ** aa
   *** aaa

   I put the cursor at the beginning of the file (at the * in the first
   line).  Then I type C-c C-  (i.e. outline-demote).  The result is

   ** a
   *** aa
   ***  aaa

   I expected that the last line (the leaf node aaa) would become a
   fourth-level heading, i.e.  aaa.  Instead, the fourth * that I
   was hoping for looks like it became a space.

There wasn't any patch provided by the submitter.

Cheers,

--Seb








Re: [O] outline-demote incorrectly demotes leaf nodes

2011-10-18 Thread Bernt Hansen
I agree that's not a valid bug and should be closed.

-Bernt

Christian Moe m...@christianmoe.com writes:

 Hi,

 The Org manual (2.5 Structure editing) says to use M-S-right
 (org-demote-subtree) for what the submitter wants to do.

 Yours,
 Christian

 On 10/18/11 10:55 AM, Sébastien Delafond wrote:
 Hello,

 from Debian bug #645360 (http://bugs.debian.org/645360):

Here's my test file, call it c.org:

* a
** aa
*** aaa

I put the cursor at the beginning of the file (at the * in the first
line).  Then I type C-c C-  (i.e. outline-demote).  The result is

** a
*** aa
***  aaa

I expected that the last line (the leaf node aaa) would become a
fourth-level heading, i.e.  aaa.  Instead, the fourth * that I
was hoping for looks like it became a space.

 There wasn't any patch provided by the submitter.

 Cheers,

 --Seb






[O] Can't use char in TODO state

2011-10-18 Thread Sebastien Vauban
#+SEQ_TODO: NEW TEST DONE CANX

Hello,

Instead of using the TODO state NEW, I tried using NEW so that it
occupies 4 letters, as all my other states (better display in the agenda).

Though...

* TEST Do this

Simply use S-right arrow to cycle through the different states, and you'll see
NEW added many times:

- DONE Do this
- CANX Do this
- Do this
- NEW Do this

  which prooves that NEW is well somehow considered as a TODO state,
  being added automagically, but the next cycle steps don't succeed...

- NEW NEW Do this
- NEW NEW NEW Do this
- ...

I find this behavior not entirely satisfying, even if I can fully accept that
 is a forbidden character in the TODO states. For example, we could think
of a warning being generated, or of the state being fully ignored, or ...

BTW, do you have an alternative for this NEW state, in 4 positions? ;-)

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] outline-demote incorrectly demotes leaf nodes

2011-10-18 Thread Sébastien Delafond
On 2011-10-18, Bernt Hansen be...@norang.ca wrote:
 I agree that's not a valid bug and should be closed.

gotcha, will do. Christian  Bernt, thanks a lot for your input !

Cheers,

--Seb




Re: [O] Can't use char in TODO state

2011-10-18 Thread Michael Brand
Hi Sebastien

On Tue, Oct 18, 2011 at 12:32, Sebastien Vauban
 Instead of using the TODO state NEW, I tried using NEW so that it
 occupies 4 letters, as all my other states (better display in the agenda).

 Though...

 * TEST Do this

 Simply use S-right arrow to cycle through the different states, and you'll see
 NEW added many times:

 - DONE Do this
 - CANX Do this
 - Do this
 - NEW Do this

  which prooves that NEW is well somehow considered as a TODO state,
  being added automagically, but the next cycle steps don't succeed...

 - NEW NEW Do this
 - NEW NEW NEW Do this
 - ...

 I find this behavior not entirely satisfying, even if I can fully accept that
  is a forbidden character in the TODO states. For example, we could think
 of a warning being generated, or of the state being fully ignored, or ...

It works with this patch
http://patchwork.newartisans.com/patch/964
from Nicolas which I am still using to test it.

 BTW, do you have an alternative for this NEW state, in 4 positions? ;-)

What about NEVV ?  (ok, it was a joke)

Michael



Re: [O] outline-demote incorrectly demotes leaf nodes

2011-10-18 Thread Bernt Hansen
Sébastien Delafond sdelaf...@gmail.com writes:

 On 2011-10-18, Bernt Hansen be...@norang.ca wrote:
 I agree that's not a valid bug and should be closed.

 gotcha, will do. Christian  Bernt, thanks a lot for your input !

 Cheers,

 --Seb

There's M-right and M-S-right for demoting headings - the shift version
also demotes the child tasks as the poster wanted. (Similarly M-left and
M-S-left promotes tasks)

Regards,
Bernt



Re: [O] org-odt: turning off section numbering does not work

2011-10-18 Thread Jambunathan K

Hello Christian

Christian Moe m...@christianmoe.com writes:

 That probably explains it, then.

 But, uh, can I borrow this thread for a moment?

 I find custom styles in ODT export aren't working as per the manual,
 section 12.8.2. Here's what I've done (test files attached; Emacs
 23.3.1; Org 7.7, freshly pulled):

 1. Exported test-odt.org to ODT with default settings.
 2. In OpenOffice: Changed the Heading 1 style in the exported ODT
 document to red, then saved it as styles.odt.

When you are generating such a custom styles file for templating
purposes, it is highly desirable that H:10 num:t be option used. This is
because the Org's odt exporter expects that the default styles file has
outline numbering turned on for all levels (Number 10 above being the
max outline levels in styles.xml)

If this assumption is violated - ie if the template file is generated
with num:nil (which is the case with the styles file circulated by you)
- then subsequently changing the

#+OPTIONS: num:t

will continue to produce the unnumbered headings contrary to the
expectations.

I believe the above restriction is not overly restrictive.

 3. Pointed org-export-odt-styles-file to styles.odt.
 4. Exported test-odt.org to test-odt.odt. Result: no headings at all
 -- everything's in the Default style.

 This is how I understand the manual, and the thread I referenced
 before, and I remember having tested it before at some point when it
 worked perfectly, so I'm rubbing my eyes and wondering if it's just
 me. Could I ask someone to please check?

I have pushed a fix for this moment ago. Hope things are OK with your
setup.

Jambunathan K.

 Yours,
 Christian


 On 10/17/11 8:31 PM, Mehul Sanghvi wrote:
 On Mon, Oct 17, 2011 at 14:00, Nick Dokosnicholas.do...@hp.com  wrote:

 My (factually-baseless but best-that-I-can-do given the paucity
 of information you provide) guess is that you are not running the
 version you think you are running.

 Nick



 What I have is Org-mode version 7.5 (baseline.533.ga5129.dirty), so it seems
 your factually-baseless guess is correct.


 % git remote -v
 origin   http://repo.or.cz/r/org-mode/org-jambu.git (fetch)
 origin   http://repo.or.cz/r/org-mode/org-jambu.git (push)


 I have been pulling from the wrong repository.


 cheers,

mehul







-- 



Re: [O] Wish: babel for python3

2011-10-18 Thread Rasmus
Torsten Wagner torsten.wag...@gmail.com writes:
 alternatively (a trick Eric is never tired to mention to me ) you
 could
 add a little lisp block which change all kind of language related
 aspects for you. This could include many more options and modify your
 emacs environment just to your personal needs for a certain language.

 Make one for python2 and one for python3 and execute them dependent on
 which system you are going to use.

 Without testing and without guarantee it should be something like the
 below code. To demonstrate some more functionality lets change the
 modebar background colour to make it more visible which python mode
 you
 are currently using.
 #+srcname: python2_env
 #+begin_src emacs-lisp
   (setq org-babel-python-command python)
   (set-face-background 'modeline #4477aa)
 #+end_src
 #+srcname: python3_env
 #+begin_src emacs-lisp
   (setq org-babel-python-command python3)
   (set-face-background 'modeline #771944)
 #+end_src


That is pure awesomeness!  

Thanks,
Rasmus

-- 
Sent from my Emacs




Re: [O] org-odt: turning off section numbering does not work

2011-10-18 Thread Jambunathan K

Mehul

 % git remote -v
 originhttp://repo.or.cz/r/org-mode/org-jambu.git (fetch)
 originhttp://repo.or.cz/r/org-mode/org-jambu.git (push)


 I have been pulling from the wrong repository.

This git repo shouldn't be used at all.

For the sake of convenience, the ELPA tarball under 
http://repo.or.cz/w/org-mode/org-jambu.git/blob_plain/HEAD:/packages/

is still current.

So the above URL can continue to be used for getting the latest org-odt
through the package manager (as of today)

Jambunathan K.

-- 



Re: [O] why was makefile changed to produce this?

2011-10-18 Thread Nick Dokos
Jude DaShiell jdash...@shellworld.net wrote:

 My bad, I was missing texinfo package and thought that had already been 
 installed.  Once that got installed, everything works as well as it did 
 earlier this year.  If I knew what path that error took, I'd write what 
 might be a better error message for it asking for the texinfo package to 
 be installed.
 
 

Here is a useful command that you can use on Debian and Ubuntu systems
in situations like this:

--8---cut here---start-8---
$ dpkg -S makeinfo
texinfo: /usr/bin/makeinfo
octave3.2-common: /usr/share/octave/3.2.4/m/help/__makeinfo__.m
emacs23-common: /usr/share/emacs/23.1/lisp/textmodes/makeinfo.elc
texinfo: /usr/share/man/man1/makeinfo.1.gz
--8---cut here---end---8---

It tells you the packages containing files that match the argument
to the command.

Also, on modern Ubuntu, it is often the case that when you try to
execute a command by hand and it is not found, the system will suggest
the installation of a package:

--8---cut here---start-8---
$ foo
No command 'foo' found, did you mean:
 Command 'fio' from package 'fio' (universe)
 Command 'goo' from package 'goo' (universe)
 Command 'fop' from package 'fop' (universe)
 Command 'fox' from package 'objcryst-fox' (universe)
 Command 'xoo' from package 'xoo' (universe)
 Command 'zoo' from package 'zoo' (universe)
foo: command not found

$ goo
The program 'goo' is currently not installed.  To run 'goo' please ask your 
administrator to install the package 'goo'
--8---cut here---end---8---

HTH,
Nick

PS I have no idea what the package/command ``goo'' does.



[O] [OT] Re: why was makefile changed to produce this?

2011-10-18 Thread Nick Dokos
Olaf Meeuwissen olaf.meeuwis...@avasys.jp wrote:

 Jude DaShiell jdash...@shellworld.net writes:
 
  For the record, this is a new installation of debian wheezy and 
  the makeinfo utility doesn't appear to be in the distribution let alone 
  on my system.
 
   sudo apt-get install texinfo
 
 I usually keep a (somewhat stale) copy of Contents-$arch.gz around and
 find necessary packages with
 
   zegrep bin/makeinfo Contents-$arch.gz
 
 There is (was?) a package that would make package suggestions if a
 command isn't found but I can't recall its name.
 # Somewhat annoying when you make a typo but ...
 

Yup - I went looking for it after your comment above, something I've been
meaning to do for a while and always deferred: thanks for the push!

--8---cut here---start-8---
$ apt-cache show command-not-found
Package: command-not-found
Priority: standard
Section: admin
Installed-Size: 128
Maintainer: Michael Vogt michael.v...@ubuntu.com
Original-Maintainer: Zygmunt Krynicki zkryni...@gmail.com
Architecture: all
Version: 0.2.40ubuntu15
Depends: python ( 2.7), python (= 2.6), python-central (= 0.6.11), 
python-apt, command-not-found-data, python-gdbm, lsb-release
Filename: pool/main/c/command-not-found/command-not-found_0.2.40ubuntu15_all.deb
Size: 12782
MD5sum: 2f4a931fc086e483e717f8270c551a0a
SHA1: d6806bdbfe0de3360c83562610be06eb721b276c
SHA256: 8b12da167c9a9c45470ccffa4a7e2c88bed7c59b475109838d3a12994edd6871
Description: Suggest installation of packages in interactive bash sessions
 This package will install a handler for command_not_found that looks up
 programs not currently installed but available from the repositories.
Python-Version: 2.6
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 18m
Task: standard
--8---cut here---end---8---

Nick




Re: [O] org-odt: turning off section numbering does not work

2011-10-18 Thread Christian Moe

Hi, Jambunathan,

On 10/18/11 2:05 PM, Jambunathan K wrote:

When you are generating such a custom styles file for templating
purposes, it is highly desirable that H:10 num:t be option used.

(...)

I believe the above restriction is not overly restrictive.


No, that makes good sense, and thanks for pointing it out. I can well 
understand that you don't want to handle num:t isn't working 
complaints caused by other people's stylesheets.



3. Pointed org-export-odt-styles-file to styles.odt.
4. Exported test-odt.org to test-odt.odt. Result: no headings at all
-- everything's in the Default style.

(...)

I have pushed a fix for this moment ago. Hope things are OK with your
setup.


Yes, whatever the problem was, it's gone now. Thanks!

Yours,
Christian



[O] [babel] Verbatim output from SQL command

2011-10-18 Thread Sebastien Vauban
#+BABEL:   :engine msosql :cmdline -S SERVER -U USER -P PASS -d 
DATABASE -n -w 700

* Show code of stored procedure

Despite telling Babel that I'd like to see the output as it is, it displays it
in a 4-column table.

See http://i.imgur.com/neDO3.png for the original layout in SQL Query Analyser
(1 column, 34 lines).

Babel seems to interpret every *leading space* as *one empty column*. Normal,
feature, bug?

Is there some workaround to this?  I thought stating scalar would really
completely override any interpretation...

** Code

This is an example of code run against a Microsoft SQL server.

#+begin_src sql :eval yes :results output scalar
EXEC sp_helptext 'dt_setpropertybyid'
#+end_src

#+results:
| Text| 
|   
  | 
   |
|-+-+-+|
| /*  | 
|   
  | 
   |
| | 
|   
  | 
   |
| **  | If the property already exists, 
reset the value; otherwise add property |   
  | 
   |
| | 
|   
  | 
   |
| **  | 
| id -- the id in sysobjects of the object  
  | 
   |
| | 
|   
  | 
   |
| **  | 
| property -- the name of the property  
  | 
   |
| | 
|   
  | 
   |
| **  | 
| value -- the text value of the property   
  | 
   |
| | 
|   
  | 
   |
| **  | 
| lvalue -- the binary value of the 
property (image)  | 
   |
| | 
|   
  | 
   |
| */  | 
|   
  | 
   |
| | 
|   
  | 
   |
| create procedure dbo.dt_setpropertybyid | 
|

Re: [O] Org, Diffs, and Version Control

2011-10-18 Thread Karl Voit
* Dave Abrahams d...@boostpro.com wrote:

 I was wondering what other people do.

I am using http://www.mayrhofer.eu.org/dvcs-autosync for
automatically committing of changes but without activated XMPP sync
feature (so far).

The already mentioned «git diff --color-words» helps me a lot when
examining my git history.

-- 
Karl Voit




Re: [O] Turn off sparse tree highlighting?

2011-10-18 Thread suvayu ali
On Tue, Oct 18, 2011 at 6:04 PM, John Hendy jw.he...@gmail.com wrote:
 Just discovered sparse trees. Fantastic.

 Once I'm done... how do I stop headlines from being illuminated in
 yellow? I don't see it on the sparse tree page here:


Have you tried C-c C-c (the all mighty do it all key combination in org)? ;)

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] [babel] Verbatim output from SQL command

2011-10-18 Thread Eric Schulte
Hi Seb,

I've just pushed up a fix which should resolve this issue.

Best -- Eric

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

 #+BABEL:   :engine msosql :cmdline -S SERVER -U USER -P PASS -d 
 DATABASE -n -w 700

 * Show code of stored procedure

 Despite telling Babel that I'd like to see the output as it is, it displays it
 in a 4-column table.

 See http://i.imgur.com/neDO3.png for the original layout in SQL Query Analyser
 (1 column, 34 lines).

 Babel seems to interpret every *leading space* as *one empty column*. Normal,
 feature, bug?

 Is there some workaround to this?  I thought stating scalar would really
 completely override any interpretation...

 ** Code

 This is an example of code run against a Microsoft SQL server.

 #+begin_src sql :eval yes :results output scalar
 EXEC sp_helptext 'dt_setpropertybyid'
 #+end_src

 #+results:
 | Text|   
   |   
   |   
  |
 |-+-+-+|
 | /*  |   
   |   
   |   
  |
 | |   
   |   
   |   
  |
 | **  | If the property already exists, 
 reset the value; otherwise add property | 
 | 
|
 | |   
   |   
   |   
  |
 | **  |   
   | id -- the id in sysobjects of the 
 object|   
  |
 | |   
   |   
   |   
  |
 | **  |   
   | property -- the name of the property  
   |   
  |
 | |   
   |   
   |   
  |
 | **  |   
   | value -- the text value of the 
 property |
 |
 | |   
   |   
   |   
  |
 | **  |   
   | lvalue -- the binary value of the 
 property (image)  |   
  |
 | |   
   |   
   |   
  |
 | */  |   
   |   
   |   
  |
 | |   
   |   

[O] [Accepted] Add source subtree which will be refiled

2011-10-18 Thread Carsten Dominik
Patch 989 (http://patchwork.newartisans.com/patch/989/) is now Accepted.

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C80lisogetx.fsf%40somewhere.org%3E

Here is the original message containing the patch:

 Content-Type: text/plain; charset=utf-8
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
 Subject: [O] Add source subtree which will be refiled
 Date: Fri, 14 Oct 2011 13:25:14 -
 From: =?utf-8?q?S=C3=83=C2=A9bastien_Vauban_=3Cwxhgmqzgwmuf=40spammotel=2Ec?=
   =?utf-8?b?b20+?=
 X-Patchwork-Id: 989
 Message-Id: 80lisogetx@somewhere.org
 To: emacs-orgmode@gnu.org
 
 Hi Carsten,
 
  Sebastien Vauban wrote:
  Carsten Dominik wrote:
  I found it difficult, sometimes, to remember which subtree we're gonna
  refile. When TAB'ing for multiple targets, you loose your source buffer,
  and can easily forget which exact subtree you had selected.
 
  Here a patch to add the name of the subtree we're operating on.
 
  can you please resubmit a modified patch using either (org-get-heading t 
  t)
  or (nth 4 (org-heading-components))
 
  Thanks for looking at it.
 
  I'll do!
 
  Here it is: a modified version which only uses the text of the entry when
  asking where to refile some headline.
 
 Please disregard http://patchwork.newartisans.com/patch/987/ as it contained 2
 typos.
 
 This one is correct and can be applied straight away.
 
 Best regards,
   Seb
 
 
 From e86292614425dd385af7857384853e8e6245462f Mon Sep 17 00:00:00 2001
 From: Sebastien Vauban s...@mygooglest.com
 Date: Fri, 14 Oct 2011 09:18:55 +0200
 Subject: [PATCH] Use the text of the heading when refiling.
 
 ---
  lisp/org.el |   22 ++
  1 files changed, 14 insertions(+), 8 deletions(-)
 
 diff --git a/lisp/org.el b/lisp/org.el
 index b26e1a3..66c2507 100644
 --- a/lisp/org.el
 +++ b/lisp/org.el
 @@ -10481,14 +10481,20 @@ prefix argument (`C-u C-u C-u C-c C-w').
  (marker-position org-clock-hd-marker)))
 (setq goto nil)))
  (setq it (or rfloc
 - (save-excursion
 -   (unless goto (org-back-to-heading t))
 -   (org-refile-get-location
 -(cond (goto Goto)
 -  (regionp Refile region to)
 -  (t Refile subtree to)) default-buffer
 -org-refile-allow-creating-parent-nodes
 -goto)
 + (let (heading-text)
 +   (save-excursion
 + (unless goto
 +   (org-back-to-heading t)
 +   (setq heading-text
 + (nth 4 (org-heading-components
 + (org-refile-get-location
 +  (cond (goto Goto)
 +(regionp Refile region to)
 +(t (concat Refile subtree \
 +   heading-text \ to)))
 +  default-buffer
 +  org-refile-allow-creating-parent-nodes
 +  goto))
 (setq file (nth 1 it)
   re (nth 2 it)
   pos (nth 3 it))
 -- 
 1.7.5.1
 
 



Re: [O] Bug passing tables to R code blocks?

2011-10-18 Thread Eric Schulte
Nick Dokos nicholas.do...@hp.com writes:

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

 Aloha all,
 
 I'm seeing some unexpected behavior when passing two tables into an R
 source code block.  Things seem to work as expected when only one table is
 passed. 
 
 In the following example, the header for the second table ends up on the
 first table when I evaluate the source code block.
 
 * R tables
 
 #+TBLNAME: tbl-1
 | column1 | column2 |
 |-+-|
 |  45 |  34 |
 |  77 |  56 |
 
 #+tblname: tbl-2
 | col1 | col2 |
 |--+--|
 | a| b|
 | c| d|
 
 #+BEGIN_SRC R :var x=tbl-1 :var y=tbl-2 :colnames yes
 x
 #+END_SRC
 
 #+results:
 | col1 | col2 |
 |--+--|
 |   45 |   34 |
 |   77 |   56 |
 
 release_7.7-396-g3538
 Org-mode version 7.7 (release_7.7.396.g3538)
 
 Bug?  Or my setup?
 

 Bug, I think: org-babel-disassemble-tables goes over tables from left to
 right (top to bottom) but conses colnames (and rownames) to the front,
 so they come out backwards. Reversing those two lists just before
 org-babel-disassemble-tables returns should fix it.


Nick, thanks for diagnosing this problem your fix worked exactly as
expected and I have just pushed it up to the Org-mode repository.

Best -- Eric


 Nick




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



[O] Turn off sparse tree highlighting?

2011-10-18 Thread John Hendy
Just discovered sparse trees. Fantastic.

Once I'm done... how do I stop headlines from being illuminated in
yellow? I don't see it on the sparse tree page here:
--- http://orgmode.org/manual/Sparse-trees.html

Thanks,
John



Re: [O] Missing newline in R code causes Org-Mode eval to hang

2011-10-18 Thread Michael Hannon
Thanks, Eric (and Seb and Nick).  FYI, I've passed this issue to the ESS help 
list.

-- Mike


- Original Message -
 From: Eric Schulte schulte.e...@gmail.com
 To: Michael Hannon jm_han...@yahoo.com
 Cc: Org-Mode List emacs-orgmode@gnu.org
 Sent: Monday, October 17, 2011 1:30 PM
 Subject: Re: [O] Missing newline in R code causes Org-Mode eval to hang
 
 Hi Michael,
 
 I can confirm this problem occurs on my machine locally.  I believe the
 issue has something to do with how ESS sends inputs to R and waits for
 command prompts from R.  When the lines are pasted into an ESS buffer
 one at a time the problem does not occur, however when the lines are
 pasted into ESS all at once (without pressing enter between lines) the
 ESS comint buffer hangs.
 
 One option could be to explicitly call `inferior-ess-send-input' between
 every line of R code, but I'm loath to touch the comint interface as
 small changes like this can sometimes have unpredictable effects.
 
 Perhaps this could be fixed on the ESS side?
 
 Best -- Eric
 
 Michael Hannon jm_han...@yahoo.com writes:
 
  Greetings.  The appended R code fragment executes without problem in
  an ESS buffer, but it hangs indefinitely when I try to execute it
  directly from the Org buffer via C-c C-c.
 
  The solution is to add the trailing newline in the noteToSelf
  variable:
 
      noteToSelf - Buy low.\nSell high.\n
 
  Obviously this isn't a big deal from my perspective, but it did
  surprise me, and it does seem inconsistent.
 
  BTW, I've appended also the details of my own (linux) configuration,
  but I tried the same thing on a different OS (Mac OS 10.6.8) and got
  the same results.
 
  -- Mike
 
  ## Org code that exhibits error
 
  #+BABEL: :session *R* :cache yes :results output verbatim :exports both 
 :tangle yes
 
  * This is a test
 
  #+begin_src R
 
   x - 42
   noteToSelf - Buy low.\nSell high.
   cat(noteToSelf)
   print(All done now)
 
  #+end_src
 
 
  ## My set-up
 
  Emacs  : GNU Emacs 23.2.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.24.4)
   of 2011-05-23 on x86-12.phx2.fedoraproject.org
  Package: Org-mode version 7.7 (release_7.7.328.g1a97)
 
  current state:
  ==
  (setq
   org-export-latex-after-initial-vars-hook 
 '(org-beamer-after-initial-vars)
   org-structure-template-alist '((r #+begin_src 
 R\n\n#+end_src src 
 lang=\R\\n\n/src)
  (S #+BEGIN_SRC ?\n\n#+END_SRC src 
 lang=\?\\n\n/src)
  (s #+begin_src ?\n\n#+end_src src 
 lang=\?\\n\n/src)
  (e #+begin_example\n?\n#+end_example 
 example\n?\n/example)
  (q #+begin_quote\n?\n#+end_quote 
 quote\n?\n/quote)
  (v #+begin_verse\n?\n#+end_verse 
 verse\n?\n/verse)
  (c #+begin_center\n?\n#+end_center 
 center\n?\n/center)
  (l #+begin_latex\n?\n#+end_latex 
 literal 
 style=\latex\\n?\n/literal)
  (L #+latex:  literal 
 style=\latex\?/literal)
  (h #+begin_html\n?\n#+end_html 
 literal 
 style=\html\\n?\n/literal)
  (H #+html:  literal 
 style=\html\?/literal) (a 
 #+begin_ascii\n?\n#+end_ascii)
  (A #+ascii: ) (i #+index: ? 
 #+index: ?)
  (I #+include %file ? include file=%file 
 markup=\?\))
   org-speed-command-hook '(org-speed-command-default-hook 
 org-babel-speed-command-hook)
   org-agenda-files '(~/Documents/scratch.org)
   org-babel-load-languages '((emacs-lisp . t) (R . t) (python . t) (sh . 
 t) (latex . t) (C . t) (octave \.t))
   org-metaup-hook '(org-babel-load-in-session-maybe)
   org-after-todo-state-change-hook '(org-clock-out-if-current)
   org-babel-tangle-lang-exts '((C++ . cpp) 
 (latex . tex) (python . py) 
 (emacs-lisp . el))
   org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
   org-export-latex-format-toc-function 
 'org-export-latex-format-toc-default
   org-tab-first-hook '(org-hide-block-toggle-maybe 
 org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe)
   org-src-mode-hook '(org-src-babel-configure-edit-buffer 
 org-src-mode-configure-edit-buffer)
   org-confirm-shell-link-function 'yes-or-no-p
   org-export-first-hook '(org-beamer-initialize-open-trackers)
   org-agenda-before-write-hook '(org-agenda-add-entry-text)
   org-blank-before-new-entry nil
   org-babel-pre-tangle-hook '(save-buffer)
   org-cycle-hook '(org-cycle-hide-archived-subtrees 
 org-cycle-hide-drawers org-cycle-show-empty-lines
   org-optimize-window-after-visibility-change)
   org-export-preprocess-before-normalizing-links-hook 
 '(org-remove-file-link-modifiers)
   org-mode-hook '(#[nil 
 \300\301\302\303\304$\207 [org-add-hook 
 change-major-mode-hook org-show-block-all append local] 5]
  #[nil \300\301\302\303\304$\207 
 [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 
 5]
  org-babel-result-hide-spec org-babel-hide-all-hashes)
   org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point 
 org-babel-execute-safely-maybe)
   org-confirm-elisp-link-function 'yes-or-no-p
   org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src 
 org-babel-exp-inline-src-blocks))
   org-clock-out-hook 

Re: [O] [test] Mark tests with missing dependencies as expected to fail

2011-10-18 Thread Eric Schulte
David Maus dm...@ictsoc.de writes:

 Hi all,

 Currently tests with missing dependency are silently skipped -- it
 might be worth changing this behavior to not skip them, but mark them
 as expected to fail. You can do this in ERT by placing the
 keyword :expected-result followed by either :passed or :failed before
 the test's body.

 Benefit of this is that the tests w/ missing dependencies will show up
 in the ERT result page (with a small letter f) but (obviously) don't
 count as failures.

 The following macro is a first shot at a convenient way to define
 tests with dependencies:

 #+begin_src emacs-lisp
   (defmacro org-test-deftest-with-dependency (dependency rest body)
 (let* ((docstring (if (stringp (third body)) (list (third body
(deftest (nthcdr (if docstring 3 2) body))
(dependency-p (eval dependency)))
   `(ert-deftest ,@(append (list (first body) (second body)) docstring)
,@(if dependency-p
  '(:expected-result :passed)
'(:expected-result :failed (error Missing dependency)))
  ,@deftest)))
 #+end_src

 Here DEPENDENCY is a simple form that evaluates to non-nil if the
 dependency is met. If marking the tests this way is the agreed way to
 go we can extend the syntax of a dependency to an alist with a
 human-readable description of the dependency as key and a list of
 forms that all must eval to non-nil as value. E.g.

 #+begin_src emacs-lisp
   (defvar test-ob-R-dependencies
 '((R executable (org-test-for-executable R))
   (Package ESS (featurep 'ess
 #+end_src

 And change the expander code to map through this alist and as soon one
 dependency evals to nil sets a variable `dependency-missing' to the
 respective dependency.

 Any comments on this?


Hi David,

I agree it would be preferable to note that not all tests are run when
dependencies are missing, although I don't think it is extremely
important.  I think some version of the above would be worthwhile if it
could be done in a file-wide manner (as are the current dependency
checks) and wouldn't require duplicating the dependency check or
changing every test form individually.  Perhaps a file-local-variable
could be used to expect failures for every form defined in the file?

Cheers -- Eric

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



[O] org-odt: specifying fonts

2011-10-18 Thread Mehul Sanghvi
This may not be specific to org-odt, but maybe applies to Org itself.

I have a LaTeX file which I use for my resume at the moment.  The
fonts that are being used with it are great for what I want.
How do I specify fonts that I want to use, rather then the defaults?
Do I have to do that through styles.odt ?
If so, is there a specific OPTION for specifying the style file to use
?   That would be a nice enhancement if it is not already there.

I may want to use different styles/fonts, etc. and probably do not
want to play around with the styles.odt file each time I make
changes to the styles.odt file.




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



[O] Recurring events with exceptions

2011-10-18 Thread Karl Voit
Hi!

I am into a process to write a convert tool from my old calendar
software[1] to Org-mode.

Now I do have to define something like »this event is recurring each
week on Wednesday except 2011-10-26 and 2011-11-30«.

I already know that complex things have to be done using sexp
entries[2] but this does not seem to be possible with sexp either.

Before I do have to develop a method that generates multiple
distinct events for each recurring definition: is there another way
to achieve this?

Thanks!

  1. jPilot/DateBK6/PalmOS
  2. 
http://www.gnu.org/software/emacs/manual/html_node/emacs/Sexp-Diary-Entries.html
-- 
Karl Voit




[O] Fwd: [test] Mark tests with missing dependencies as expected to fail

2011-10-18 Thread Brian Wightman
Neglected forwarding to the list - sorry Eric for the double post.

Brian


-- Forwarded message --
From: Brian Wightman midlife...@wightmanfam.org
Date: Tue, Oct 18, 2011 at 12:02 PM
Subject: Re: [O] [test] Mark tests with missing dependencies as
expected to fail
To: Eric Schulte schulte.e...@gmail.com


On Tue, Oct 18, 2011 at 11:22 AM, Eric Schulte schulte.e...@gmail.com wrote:
 I agree it would be preferable to note that not all tests are run when
 dependencies are missing, although I don't think it is extremely
 important.  I think some version of the above would be worthwhile if it
 could be done in a file-wide manner (as are the current dependency
 checks) and wouldn't require duplicating the dependency check or
 changing every test form individually.  Perhaps a file-local-variable
 could be used to expect failures for every form defined in the file?

Perl's TAP* (http://testanything.org/) uses SKIP results for tests
that should not be run because some prerequisite is not available, and
TODO tests for those that are expected to fail (due to not being
implemented, known breakage, etc).  They can be reported separately if
the harness wishes.

It sounds like this is what is being proposed.  Perhaps some prior art
could be used.

* I reference TAP because it is what I am familiar with, not because
it is better or worse than alternatives.

Brian



Re: [O] Recurring events with exceptions

2011-10-18 Thread Brian Wightman
(and (your-sexp-here) (not (except-dates-here)))

On Tue, Oct 18, 2011 at 11:52 AM, Karl Voit devn...@karl-voit.at wrote:
 Hi!

 I am into a process to write a convert tool from my old calendar
 software[1] to Org-mode.

 Now I do have to define something like »this event is recurring each
 week on Wednesday except 2011-10-26 and 2011-11-30«.

 I already know that complex things have to be done using sexp
 entries[2] but this does not seem to be possible with sexp either.

 Before I do have to develop a method that generates multiple
 distinct events for each recurring definition: is there another way
 to achieve this?

 Thanks!

  1. jPilot/DateBK6/PalmOS
  2. 
 http://www.gnu.org/software/emacs/manual/html_node/emacs/Sexp-Diary-Entries.html
 --
 Karl Voit






[O] Problem with org-startup-indented

2011-10-18 Thread Andrei Jirnyi
Hi all,

There is a major issue with org-indent-mode under org-mode 7.7 
(downloaded today with Emacs PPM, dated 2011-10-18) and Emacs 23.2. 

When org-startup-indented is set to t, on opening any .org file the 
cursor immediately jumps to the end of file, and it is impossible to move 
it from there. Same happens if it is set to nil and I turn org-indent-
mode on manually. It does seem to work under Emacs 23.3 though. 

A sample .emacs file (in its entirety) is below:
(setq load-path (cons ~/elisp load-path))
(require 'package)
(package-initialize)  ; causes major trouble... Investigate!
(setq org-startup-indented t)

--aj




Re: [O] Recurring events with exceptions

2011-10-18 Thread Karl Voit
* Brian Wightman br...@wightmanfam.org wrote:
 (and (your-sexp-here) (not (except-dates-here)))

Cool, thanks!

Now I still have to think about which method is easier to implement
:-)

-- 
Karl Voit




Re: [O] Problem with org-startup-indented

2011-10-18 Thread Andrei Jirnyi
On Tue, 18 Oct 2011 17:30:17 +, Andrei Jirnyi wrote:
 There is a major issue with org-indent-mode under org-mode 7.7
 (downloaded today with Emacs PPM, dated 2011-10-18) and Emacs 23.2.

As noted, it works under 7.7 and 23.3; it also works fine with 7.01trans 
and 23.2.

--aj




Re: [O] Turn off sparse tree highlighting?

2011-10-18 Thread John Hendy
On Tue, Oct 18, 2011 at 11:06 AM, suvayu ali
fatkasuvayu+li...@gmail.com wrote:
 On Tue, Oct 18, 2011 at 6:04 PM, John Hendy jw.he...@gmail.com wrote:
 Just discovered sparse trees. Fantastic.

 Once I'm done... how do I stop headlines from being illuminated in
 yellow? I don't see it on the sparse tree page here:


 Have you tried C-c C-c (the all mighty do it all key combination in org)? ;)

Sigh... of all things. Yes, that's the ticket :)

Is this noted anywhere? If not, can it be?


Thanks for the help!
John


 --
 Suvayu

 Open source is the future. It sets us free.




Re: [O] Recurring events with exceptions

2011-10-18 Thread Nick Dokos
Karl Voit devn...@karl-voit.at wrote:

 Hi!
 
 I am into a process to write a convert tool from my old calendar
 software[1] to Org-mode.
 
 Now I do have to define something like »this event is recurring each
 week on Wednesday except 2011-10-26 and 2011-11-30«.
 
 I already know that complex things have to be done using sexp
 entries[2] but this does not seem to be possible with sexp either.
 

Why not? All you have to do is explicitly exclude the two
dates. Something like this (lightly tested) should work.  (NB: Wednesday
= 3 and calendar/diary wants dates as 3-element lists in the form (month
day year)):


%%(let ((dayname (calendar-day-of-week date)))
(and (= dayname 3)
 (not (calendar-date-equal date '(10 26 2011)))
 (not (calendar-date-equal date '(11 30 2011)

I added this to .diary, did M-x calendar RET and marked the entries
with m: seems to work fine.

Nick

 Before I do have to develop a method that generates multiple
 distinct events for each recurring definition: is there another way
 to achieve this?
 
 Thanks!
 
   1. jPilot/DateBK6/PalmOS
   2. 
 http://www.gnu.org/software/emacs/manual/html_node/emacs/Sexp-Diary-Entries.html
 -- 
 Karl Voit
 
 



Re: [O] Turn off sparse tree highlighting?

2011-10-18 Thread Michael Brand
Hi

You must have overseen it where you already looked:

http://orgmode.org/manual/Sparse-trees.html
Each match is also highlighted; the highlights disappear when the
buffer is changed by an editing command2, or by pressing C-c C-c.
[2] This depends on the option org-remove-highlights-with-change

Michael

On Tue, Oct 18, 2011 at 20:05, John Hendy jw.he...@gmail.com wrote:
 On Tue, Oct 18, 2011 at 11:06 AM, suvayu ali
 fatkasuvayu+li...@gmail.com wrote:
 On Tue, Oct 18, 2011 at 6:04 PM, John Hendy jw.he...@gmail.com wrote:
 Just discovered sparse trees. Fantastic.

 Once I'm done... how do I stop headlines from being illuminated in
 yellow? I don't see it on the sparse tree page here:


 Have you tried C-c C-c (the all mighty do it all key combination in org)? ;)

 Sigh... of all things. Yes, that's the ticket :)

 Is this noted anywhere? If not, can it be?


 Thanks for the help!
 John



Re: [O] Recurring events with exceptions

2011-10-18 Thread Skip Collins
 (and (your-sexp-here) (not (except-dates-here)))

Pardon a slightly off-topic rant. I have yet to find calendar software
(org included) that handles repeating appointments with the kind of
flexibility that would make them really useful. First, typical
real-world repeating appointments do not follow a rigid pattern such
as visit the gym every monday from 7pm to 9pm. I know that I will
not be following that pattern 50 years from now. But the default
repeat pattern in most software does not include an end date.
Infinitely repeating appointments are just stupid. Second, the whole
concept of an exception to a repeating appointment is broken. It
presumes that the pattern is the norm and the exception is, well,
exceptional. None of my weekly meetings actually meets every week in a
given year. The code above illustrates the problem. What if I just
want to move one instance by a half-hour? The difference between
deleting an instance and changing or adding an instance is hard to
capture when basing everything off of a rigid pattern.

In my opinion, a better framework for dealing with repeating
appointments would be to view them as a list of individual instances
that can be managed as a collection. When creating a repeating
appointment, the user should be able to generate a list that follows
some pattern (e.g. every monday at 7pm), with a mandatory end date.
The user should also be able to easily add or subtract arbitrary
instances to or from the list. Actions can be performed on all
instances in a collection or on individual instances. The collection
of instances could be defined by a shared UID or tag. But each
instance should be flexible enough to have its own title, date, time,
duration, invitee list, location, etc. It should also be possible to
separate (or copy) individual instances from the repeat collection.
Using arbitrarily complex sexp functions to achieve reasonably
flexible repeating appointments seems like overkill when a properly
structured and managed list can accomplish the desired effect.

Of course the devil is in the implementation details.



Re: [O] outline-demote incorrectly demotes leaf nodes

2011-10-18 Thread Sanjoy Mahajan
Christian Moe mail at christianmoe.com writes:

 The Org manual (2.5 Structure editing) says to use M-S-≤right 
 (org-demote-subtree) for what the submitter wants to do.

(I am the original reporter of the issue on the Debian BTS.)  That is useful
information for me, and I will use those keys.

I do worry about one point, namely that C-c C- (outline-demote) should still
work.  And it does work in regular outline mode.  For example, if I rename my
test file to c.otl and then use C-c C- on the main heading, all the subtrees
are demoted as I expected.  Whereas in org mode the leaf subtree gets a space
instead of a * when it is being demoted.

So, I wonder whether org mode is somehow messing up outline-demote without
meaning to?  I am far from an expert on the org.el lisp code, and maybe the
current org-mode behavior is the intended result.  But I worry that it is not
intended and instead is an accidental side effect of something else.

-Sanjoy




[O] LaTeX export log

2011-10-18 Thread Andrei Jirnyi
Is there any way to see (in a temporary buffer) the log generated by 
pdflatex when compiling the exported document with C-e p ?

--aj




Re: [O] Bug passing tables to R code blocks?

2011-10-18 Thread Thomas S. Dye
Eric Schulte schulte.e...@gmail.com writes:

 Nick Dokos nicholas.do...@hp.com writes:

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

 Aloha all,
 
 I'm seeing some unexpected behavior when passing two tables into an R
 source code block.  Things seem to work as expected when only one table is
 passed. 
 
 In the following example, the header for the second table ends up on the
 first table when I evaluate the source code block.
 
 * R tables
 
 #+TBLNAME: tbl-1
 | column1 | column2 |
 |-+-|
 |  45 |  34 |
 |  77 |  56 |
 
 #+tblname: tbl-2
 | col1 | col2 |
 |--+--|
 | a| b|
 | c| d|
 
 #+BEGIN_SRC R :var x=tbl-1 :var y=tbl-2 :colnames yes
 x
 #+END_SRC
 
 #+results:
 | col1 | col2 |
 |--+--|
 |   45 |   34 |
 |   77 |   56 |
 
 release_7.7-396-g3538
 Org-mode version 7.7 (release_7.7.396.g3538)
 
 Bug?  Or my setup?
 

 Bug, I think: org-babel-disassemble-tables goes over tables from left to
 right (top to bottom) but conses colnames (and rownames) to the front,
 so they come out backwards. Reversing those two lists just before
 org-babel-disassemble-tables returns should fix it.


 Nick, thanks for diagnosing this problem your fix worked exactly as
 expected and I have just pushed it up to the Org-mode repository.

 Best -- Eric


 Nick



Thanks Eric and Nick,

This fixes the problem I was seeing.

All the best,
Tom
-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] Recurring events with exceptions

2011-10-18 Thread Tassilo Horn
Skip Collins skip.coll...@gmail.com writes:

Hi Skip,

 [a slightly off-topic rant]

You might find some luck with applications that follow the iCalendar
standard.  There, a re-occuring event may have an end date.  And when
you move (this week's meeting is 30 minutes later) or delete some
occurence (no meeting on christmas), it will add that as an exception
to the re-occuring event definition and clone that as a new once-only
event in case of a move (probably keeping some connection with it).

[But I think there's no concept of re-occuring exceptions, like there
will never be any meetings at Christmas...]

That said, this is pretty complex and the apps I've used before org-mode
(KOrganizer, Evolution) managed to mess things up in certain cases
without even being visible to me at first.  I just noticed some time
later that some appointments were simply wrong or totally missing.

I've learned my lessons: now I accept infinitely repeating entries or
switch to sexp entries if really needed.  But at least I know that
nothing I do will somehow corrupt my calendar, because *I* am the master
of timestamps, not some GUI that DTRT only in 90% of the cases.

Bye,
Tassilo




Re: [O] outline-demote incorrectly demotes leaf nodes

2011-10-18 Thread Nick Dokos
Sanjoy Mahajan san...@olin.edu wrote:

 Christian Moe mail at christianmoe.com writes:
 
  The Org manual (2.5 Structure editing) says to use M-S-≤right 
  (org-demote-subtree) for what the submitter wants to do.
 
 (I am the original reporter of the issue on the Debian BTS.)  That is useful
 information for me, and I will use those keys.
 
 I do worry about one point, namely that C-c C- (outline-demote) should still
 work.

That seems like an unreasonable expectation to me. Despite the similarities,
it's a completely different function, with different pre- and post- conditions
and different assumptions about what the data looks like.

[Warning: stupid analogy ahead] When you need to turn a screw, you look
at the head and choose the right screwdriver for it. If you use a
Philips screwdriver to turn a square-drive screw, you'll damage the
screw even if you do manage to turn it a bit.

  And it does work in regular outline mode.  For example, if I rename my
 test file to c.otl and then use C-c C- on the main heading, all the subtrees
 are demoted as I expected.  Whereas in org mode the leaf subtree gets a space
 instead of a * when it is being demoted.
 

To continue the analogy: sure, if you replace the square drive screw
with a Philips screw, you can turn it with the Philips screwdriver.

 So, I wonder whether org mode is somehow messing up outline-demote without
 meaning to?  I am far from an expert on the org.el lisp code, and maybe the
 current org-mode behavior is the intended result.  But I worry that it is not
 intended and instead is an accidental side effect of something else.
 

No: orgmode uses a small subset of outline-* functions, mostly to navigate 
between
headings, but it does not use outline-demote at all.

Nick









Re: [O] Recurring events with exceptions

2011-10-18 Thread Eric S Fraga
Skip Collins skip.coll...@gmail.com writes:

 (and (your-sexp-here) (not (except-dates-here)))

 Pardon a slightly off-topic rant. I have yet to find calendar software
 (org included) that handles repeating appointments with the kind of
 flexibility that would make them really useful. First, typical

[...]

Have you looked at the following?

,[ C-h f org-clone-subtree-with-time-shift RET ]
| org-clone-subtree-with-time-shift is an interactive compiled Lisp
| function in `org.el'.
| 
| (org-clone-subtree-with-time-shift N optional SHIFT)
| 
| Clone the task (subtree) at point N times.
| The clones will be inserted as siblings.
| 
| In interactive use, the user will be prompted for the number of
| clones to be produced, and for a time SHIFT, which may be a
| repeater as used in time stamps, for example `+3d'.
| 
| When a valid repeater is given and the entry contains any time
| stamps, the clones will become a sequence in time, with time
| stamps in the subtree shifted for each clone produced.  If SHIFT
| is nil or the empty string, time stamps will be left alone.  The
| ID property of the original subtree is removed.
| 
| If the original subtree did contain time stamps with a repeater,
| the following will happen:
| - the repeater will be removed in each clone
| - an additional clone will be produced, with the current, unshifted
|   date(s) in the entry.
| - the original entry will be placed *after* all the clones, with
|   repeater intact.
| - the start days in the repeater in the original entry will be shifted
|   to past the last clone.
| I this way you can spell out a number of instances of a repeating task,
| and still retain the repeater to cover future instances of the task.
| 
| [back]
`

I find that this exactly what you are describing: I define an entry,
clone it (with weekly shift, for instance) and then delete the
exceptions and maybe add a few extras.  If any weekly instance has to
change, I simply change it!  Works pretty well and handles all the cases
you mentioned.


-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.90.1
: using Org-mode version 7.7 (release_7.7.381.g05ea.dirty)



Re: [O] org-odt: specifying fonts

2011-10-18 Thread Christian Moe

Hi, Mehul, cc: Jambunathan,

I agree with Mehul it would be great to have an option to specify a 
styles file on a per-file basis. Something like:


  #+ODT_STYLE: ~/org/odt-templates/cv.odt

Jambunathan, please consider this a feature request (if you haven't 
implemented it already, and I've missed it as usual...)


Many users will want to use different styles files for different kinds 
of document (e.g. report.odt, cv.odt). Customizing 
org-export-odt-styles-file every time they've got a different kind of 
document to export does not seem the best way. There should be a way 
for each Org file to remember what ODT style it wants, parallel to the 
options that exist for html (#+STYLE) and latex (#+LATEX_HEADER).


As for specifying fonts, etc., in ODT export, that's definitely 
something that should be done through the choice of an external style 
template. The org-odt exporter has done its job if everything you 
could reasonably want to style is exported in a named paragraph or 
character style that you can apply a template to.


Yours,
Christian

PS. Mehul, I do have a stopgap solution for specifying the style 
template on a per-file basis. Place this somewhere in your Org 
document (e.g. before the first heading), and replace 
/path/to/template.odt with the path to your styles file.


#+begin_src emacs-lisp :results silent :exports results
(setq org-export-odt-styles-file /path/to/template.odt)
#+end_src


On 10/18/11 6:32 PM, Mehul Sanghvi wrote:

This may not be specific to org-odt, but maybe applies to Org itself.

I have a LaTeX file which I use for my resume at the moment.  The
fonts that are being used with it are great for what I want.
How do I specify fonts that I want to use, rather then the defaults?
Do I have to do that through styles.odt ?
If so, is there a specific OPTION for specifying the style file to use
?   That would be a nice enhancement if it is not already there.

I may want to use different styles/fonts, etc. and probably do not
want to play around with the styles.odt file each time I make
changes to the styles.odt file.









[O] A more universal markup for exporters with italics/quotes?

2011-10-18 Thread John Hendy
In reading the recent request to specify fonts for ODT, I was reminded
of a recent problem I had. I'm writing a longer-ish document (ended up
at about 15 pages) and am primarily typesetting with LaTeX to PDF. In
sending it to others for feedback, however, they wanted something
editable for comments, so I used the ODT exporter for the first time.
Two things didn't work so well:

- italics: org doesn't handle multiple line italics in between / and
/. Thus, I use \emph{}. These didn't work with the odt exporter (nor
would they with other exporters).

- quotes: I like to indent and do interesting things with quotes. My
current preference is something like so:
#+begin_org
\begin{tabular}{p{0.5cm}p{0.85\textwidth}}
   \emph{here is my long quote...} \\
\end{tabular}
#+end_org

That also doesn't work with export to other formats.

Could there be something like #+begin_quote or some other more
universal indicator of italics (or other text modifiers like bold or
underline) that would work more universally? I'm thinking:
-- LaTeX: be able to specify style for quote or just use
\begin{quote}, org italic markup - \emph{}
-- html: quote - blockquote/blockquote, italics - i/i
-- odt: quote - indented block?, italics - italics
-- others?

Just some thoughts.


John



Re: [O] Recurring events with exceptions

2011-10-18 Thread Karl Voit
* Nick Dokos nicholas.do...@hp.com wrote:

 All you have to do is explicitly exclude the two
 dates. Something like this (lightly tested) should work.  (NB: Wednesday
 = 3 and calendar/diary wants dates as 3-element lists in the form (month
 day year)):

 %%(let ((dayname (calendar-day-of-week date)))
   (and (= dayname 3)
(not (calendar-date-equal date '(10 26 2011)))
(not (calendar-date-equal date '(11 30 2011)

 I added this to .diary, did M-x calendar RET and marked the entries
 with m: seems to work fine.

Oh, cool. Thanks for the example!

-- 
Karl Voit




Re: [O] org-list-indent-offset only works partially

2011-10-18 Thread Nicolas Goaziou
Hello,

Sébastien Delafond sdelaf...@gmail.com writes:

 from Debian bug #645214 (http://bugs.debian.org/645214):

   org-mode doesn't seems to honour correctly the org-list-indent-offset
   variable (a recent addition). See the following steps:

   1- Run emacs -q
   2- M-x org-mode 
   3- M-x set-variable org-list-indent-offset 8
   4- open /tmp/t.org
   5- Write the following
   - item 1
   [TAB]- item 2

   When you press [TAB], - item 2 is indented only two spaces right,
   not 8 as org-list-indent-offset describes, thats seems to be a
   bug. But now, if over the item 2 line you do

   6- M-left 
   7- M-right

   The - item 2 will be correctly indented 8 spaces to the right. So
   org-list-indent-offset is correctly working in this case.

There is no bug here. 

The important thing to notice is that you are using TAB before inserting
the second bullet. Org understands that you want to indent the current
empty line into the current item (how could it tell you're going to add
an item?).

If you want to trigger `org-list-indent-offset' correctly, first insert
the bullet, then tabulate.

Regards,

-- 
Nicolas Goaziou



Re: [O] org-odt: specifying fonts

2011-10-18 Thread Mehul Sanghvi
Christian,

  Thanks for the stopgap measure.  As for fonts, like styles, it
would be easier, simpler and more elegant
to be able to do that without having to edit styles.odt every time.
This is not specific to org-odt.  It should be,
at least I think so for now, to do this with any exporting backend.

If you send me a styles.odt, and I do not like the fonts you are
using, it becomes cumbersome to be editing the styles.odt
for each font and making sure to change it in all possible places
until I settle on a proper font I want to use.

If I could instead specify the font in org file itself, it would be a
matter of changing the header and re-generating the file.

The ODT_STYLE is certainly a good enhancement.




On Tue, Oct 18, 2011 at 16:04, Christian Moe m...@christianmoe.com wrote:
 Hi, Mehul, cc: Jambunathan,

 I agree with Mehul it would be great to have an option to specify a styles
 file on a per-file basis. Something like:

  #+ODT_STYLE: ~/org/odt-templates/cv.odt

 Jambunathan, please consider this a feature request (if you haven't
 implemented it already, and I've missed it as usual...)

 Many users will want to use different styles files for different kinds of
 document (e.g. report.odt, cv.odt). Customizing org-export-odt-styles-file
 every time they've got a different kind of document to export does not seem
 the best way. There should be a way for each Org file to remember what ODT
 style it wants, parallel to the options that exist for html (#+STYLE) and
 latex (#+LATEX_HEADER).

 As for specifying fonts, etc., in ODT export, that's definitely something
 that should be done through the choice of an external style template. The
 org-odt exporter has done its job if everything you could reasonably want to
 style is exported in a named paragraph or character style that you can apply
 a template to.

 Yours,
 Christian

 PS. Mehul, I do have a stopgap solution for specifying the style template on
 a per-file basis. Place this somewhere in your Org document (e.g. before the
 first heading), and replace /path/to/template.odt with the path to your
 styles file.

 #+begin_src emacs-lisp :results silent :exports results
 (setq org-export-odt-styles-file /path/to/template.odt)
 #+end_src


 On 10/18/11 6:32 PM, Mehul Sanghvi wrote:

 This may not be specific to org-odt, but maybe applies to Org itself.

 I have a LaTeX file which I use for my resume at the moment.  The
 fonts that are being used with it are great for what I want.
 How do I specify fonts that I want to use, rather then the defaults?
 Do I have to do that through styles.odt ?
 If so, is there a specific OPTION for specifying the style file to use
 ?   That would be a nice enhancement if it is not already there.

 I may want to use different styles/fonts, etc. and probably do not
 want to play around with the styles.odt file each time I make
 changes to the styles.odt file.









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



Re: [O] Problem with org-startup-indented

2011-10-18 Thread Nicolas Goaziou
Hello,

Andrei Jirnyi a-jir...@northwestern.edu writes:

 There is a major issue with org-indent-mode under org-mode 7.7 
 (downloaded today with Emacs PPM, dated 2011-10-18) and Emacs 23.2. 

 When org-startup-indented is set to t, on opening any .org file the 
 cursor immediately jumps to the end of file, and it is impossible to move 
 it from there. Same happens if it is set to nil and I turn org-indent-
 mode on manually. It does seem to work under Emacs 23.3 though. 

Unfortunately, I'm not running 23.2. A backtrace produced with
toggle-debug-on-quit and C-g may be helpful though. Could you provide
one?

Regards,

-- 
Nicolas Goaziou



Re: [O] why was makefile changed to produce this?

2011-10-18 Thread Olaf Meeuwissen
Nick Dokos nicholas.do...@hp.com writes:

 Jude DaShiell jdash...@shellworld.net wrote:

 My bad, I was missing texinfo package and thought that had already been 
 installed.  Once that got installed, everything works as well as it did 
 earlier this year.  If I knew what path that error took, I'd write what 
 might be a better error message for it asking for the texinfo package to 
 be installed.

 Here is a useful command that you can use on Debian and Ubuntu systems
 in situations like this:

 $ dpkg -S makeinfo
 texinfo: /usr/bin/makeinfo
 octave3.2-common: /usr/share/octave/3.2.4/m/help/__makeinfo__.m
 emacs23-common: /usr/share/emacs/23.1/lisp/textmodes/makeinfo.elc
 texinfo: /usr/share/man/man1/makeinfo.1.gz

This only works for installed packages, though, as it searches the files
below /var/lib/dpkg/info, IIRC.
BTW, dpkg forwards that request to dpkg-query.

 [...]

 $ goo
 The program 'goo' is currently not installed.  To run 'goo' please ask your 
 administrator to install the package 'goo'

In which case `apt-cache show goo` may be of help.

Hope this helps,
-- 
Olaf Meeuwissen, LPIC-2   FLOSS Engineer -- AVASYS CORPORATION
FSF Associate Member #1962   Help support software freedom
 http://www.fsf.org/jf?referrer=1962



[O] BUG: org-todo-yesterday logs wrong date

2011-10-18 Thread Viktor Rosenfeld
Hi,

org-todo-yesterday and org-agenda-todo-yesterday log a note using the
current timestamp and not a timestamp of 23:59 of yesterday's date.

I'm using Org-Mode 7.7 pulled today from the git repository.

Cheers,
Viktor



Re: [O] why was makefile changed to produce this?

2011-10-18 Thread Nick Dokos
Olaf Meeuwissen olaf.meeuwis...@avasys.jp wrote:

  Here is a useful command that you can use on Debian and Ubuntu systems
  in situations like this:
 
  $ dpkg -S makeinfo
  texinfo: /usr/bin/makeinfo
  octave3.2-common: /usr/share/octave/3.2.4/m/help/__makeinfo__.m
  emacs23-common: /usr/share/emacs/23.1/lisp/textmodes/makeinfo.elc
  texinfo: /usr/share/man/man1/makeinfo.1.gz
 
 This only works for installed packages, though, as it searches the files
 below /var/lib/dpkg/info, IIRC.
 BTW, dpkg forwards that request to dpkg-query.
 

Ah, you are right: it's only useful after the fact.

Nick

  [...]
 
  $ goo
  The program 'goo' is currently not installed.  To run 'goo' please ask your 
  administrator to install the package 'goo'
 
 In which case `apt-cache show goo` may be of help.
 
 Hope this helps,
 -- 
 Olaf Meeuwissen, LPIC-2   FLOSS Engineer -- AVASYS CORPORATION
 FSF Associate Member #1962   Help support software freedom
  http://www.fsf.org/jf?referrer=1962
 



Re: [O] Recurring events with exceptions

2011-10-18 Thread Skip Collins
 ,[ C-h f org-clone-subtree-with-time-shift RET ]

 I find that this exactly what you are describing: I define an entry,
 clone it (with weekly shift, for instance) and then delete the
 exceptions and maybe add a few extras.  If any weekly instance has to
 change, I simply change it!  Works pretty well and handles all the cases
 you mentioned.

There is one important feature lacking in the use of time-shifted
clones as a way to generate repeating events: there is nothing to bind
individual instances into a collection. A common EVENTID property
would allow for the development of tools for handling a whole series
as a group to do things like deleting, shifting, and making other
changes en masse. It seems like a simple thing to add.

Flexibility like this is why I like working in org. I would move my
calendar to org if I were not stuck with outlook/exchange at work. I'm
still waiting for someone to create the ultimate org/exchange sync
solution.



Re: [O] command-not-found package

2011-10-18 Thread Jude DaShiell
It's available on debian and installed on this system now.  That'll likely 
be useful for newer debian installations and systems similar that do 
minimal installs.



Jude jdash...@shellworld.net If I got a nickel for every message I've 
already sent supporting Microsoft Windows and its applications I'd have 
enough to retire on comfortably no matter what the stock market did.