[O] Mobile-Org Issues

2014-08-18 Thread Shiyuan
Hi,
I am on iOS 7.06 and using the Orgmode from git repos(commit 381ad4b on Aug
3).  I installed the MobileOrg from AppStore and noticed the following
issues. The problems don't seriously hurt the functionality but are a bit
annoying. Any advice on fixing them is appreciated.

1. `org-mobile-push` tries to write ~/.emacs.d/.org-id-locations and
produces an error which seems to due to the permission. I guess a change of
permission would fix the problem. But my question is why org-mobile want to
generate this file? What's this file for? Can I customize the location?

2. When sync on iOS after adding a capture note, the screen is frozen.

Thanks.
Shiyuan.


Re: [O] Some thoughts on MobileOrg and its development ....

2014-08-18 Thread Samuel Loury
Xebar Saram zelt...@gmail.com writes:

 would LOVE to try it as well

So would I !

 Henning Weiss hdwe...@gmail.com writes:

 I have been working over the last couple of months on a private
 prototype. I'm currently using it in my daily life and it works for me. It
 uses Git (and only Git) for synchronization and doesn't use org-mobile at
 all. The idea is that you keep all org files under git version control.
 Synchronization of all clients (apps or Emacs) is done against that
 repository. It is also possible to configure whether to use ours or
 theirs merge strategy when conflicts occur. I have focused on designing
 an app I can trust.
 It already has an outline view like MobileOrg, an agenda view, you can
 add and edit nodes, synchronize changes with a remote repository and
 synchronize scheduled entries to the calendar. I ported some of my code
 from MobileOrg, but a lot of it is written from scratch.

I only used the android version, but I was not satisfied with its design
either.

I find the org double synchronization scheme (org - org mobile inbox
- internal phone database) really annoying.

Actually, I have been thinking about how to use my org file with my
phone and the way I found the more practical was to synchronize the
files with my phone using git (git annex actually) and using emacs in a
debian chrooted environment.

With the constantly evolving org-mode code in emacs-lisp, I don't think
a re-implementation would survive.

Besides, emacs-lisp allows to customize pretty everything, so much that
two org-mode setup may easily be made barely compatible with each
other. See the setup of Bernt Hansen for instance that is the most
advanced I have seen so far⁴.

An other point of the evolving characteristic of org is the lack of
definition of what the org-mode grammar is. Without this, it is most
likely that someday, both emacs org-mode and mobile org will diverge at
some point. There has been a very good draft of org mode syntax¹ made by
Nicolas Goaziou. May be this could be the basis of a new
implementation, but it should be worked on to be considered stable and
used as a reference for future implementations.

Those are the reasons why I am not convinced that a new implementation
would work and one of the main reasons each time I wanted to contribute
to mobileorg-android, I was stopped by the feeling that it would be a
useless effort (and the lack of time of course :-)).

Therefore, I wonder if we could let emacs implementation do all the
heavy stuff and customization, and only provide a mobile UI on top of
it.

Emacs could be accessed remotely or be run into the phone. In my Galaxy
S3 with chrooted debian, emacs runs fast enough for my user experience
not to be disturbed.

I have tried the excellent org-ehtml² from Eric Schulte. It already
allows to make basic edition of TODO entries and view the agenda views
(only the basic org-agenda export to html for new). The main problem I
see with this html/js view is that we often encounter strange issues due
to bad browser implementations.

I have been using the XML-RPC trac plugin³ for a while now and I made we
wonder if we could reproduce this in the scope of mobile org. With an
RPC interface, one would be free to create their own interface easily
(at least python xml-rpc library is really easy to manipulate) and an
official interface could emerge from that.

The interface could provide functions like:
--8---cut here---start-8---
getAgendaFiles() - list of files names
getTODOsFromFile(file) - list of todos
getAllTODOs() - list of todos
getAgendaViews() - list of names
getAgendaView(name) - list of todos ?
clockIn(id)
clockOut(id)
refile(id, parent_id)
getKeywords() - list of keywords
setKeyword(id, keyword)
...
--8---cut here---end---8---
I don't know if those functions would be good, but they give an idea.

¹ http://orgmode.org/worg/dev/org-syntax.html
² https://github.com/eschulte/org-ehtml
³ http://trac-hacks.org/wiki/XmlRpcPlugin
⁴ http://doc.norang.ca/org-mode.html
--
Konubinix
GPG Key: 7439106A
Fingerprint: 5993 BE7A DA65 E2D9 06CE  5C36 75D2 3CED 7439 106A


pgp8ITS7zhZVp.pgp
Description: PGP signature


Re: [O] TODO's and cookies

2014-08-18 Thread Eric S Fraga
On Saturday,  2 Aug 2014 at 15:50, Sharon Kimble wrote:
 I've been looking for some time how to extend cookies in an org-mode file
 with loads of TODO's. In my specific case I am writing a book, and this
 file has the plan of the book, with each section its own TODO, and ditto
 for the chapters. Some of the sections are IN-PROGRESS or DONE, others
 still TODO. So its looking like this -

[...]

 By the first TODO which is the title its showing -  [1/8] [12%] - which
 is showing that there are 8 chapters, and its 12% completed. But, is it
 possible to also get an overall count of all the sections/TODO's completed 
 please?

You would have to use lists instead of headlines and then use checkboxes
on the list entries.  Each of your headlines in your example would be a
list item.

 (setq org-checkbox-hierarchical-statistics t)

Checkboxes are only for lists.

HTH,
eric
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.1, Org release_8.3beta-237-gcc6aa4



Re: [O] MobileOrg documentation?

2014-08-18 Thread Eric S Fraga
On Wednesday, 13 Aug 2014 at 08:26, Jason F. McBrayer wrote:

[...]

 Or, as is increasingly feasible in the last couple of years, running
 Emacs on your mobile device. On Android, GnuRoot is a quick and easy

Thanks for the pointer to GnuRoot.  Could be useful to have on my Nexus
7.  The keyboard you describe on your blog post is also very
interesting.

My solution to the problem of a truly mobile org (and gnus) was to buy
myself a little OpenPandora palmtop computer and install Debian on it!

eric
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.1, Org release_8.3beta-237-gcc6aa4



Re: [O] new to exporting: how to export to a specific location (aromatically?)

2014-08-18 Thread Florian Beck
Hi,

 1.how does one specify a location where exported files go? can one set this 
 per file or perhaps per export type etc?

This can be done with defining an export backend and a little bit of
hacking (hint: `org-export-output-file-name' accepts a directory
argument) or by using projects.

 2. can one auto export files when saved/changed etc?

Try `after-save-hook' and export asynchronously, e.g.
(org-html-export-to-html t).


 3. i cant understand the difference so much between export and publishing, 
 apart that publishing is only for html (and not txt etc..)?

Projects can include several files and allow you to set project specific
variables. See `org-publish-project-alist'.


 Thanks alot

 Z 


-- 
Florian Beck



Re: [O] ob-lilypond code cleanup

2014-08-18 Thread Nicolas Goaziou
Hello,

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

 Triggered by the discussion about it, I've looked at ob-lilypond and
 found that it should be cleaned up a bit.  The defvars holding the
 various commands should really be defcustoms, but I've ran out of time
 for now.  If anybody thinks this should go to maint please say so,
 otherwise I will commit on master.

FWIW, I think prefix conformance should go to maint.

Also, you shouldn't use `pcase' as Org preserves compatibility with
Emacs 23.


Regards,

-- 
Nicolas Goaziou



Re: [O] babel: ob-C with Visual C++ and compilation-mode

2014-08-18 Thread Ernesto Durante
Thierry Banel tbanelweb...@free.fr writes:

 Le 15/08/2014 19:22, Ernesto Durante a écrit :

 True.
 And to achieve that the :includes header tag was added:
 #+BEGIN_SRC C++ :includes stdio.h

 (Because otherwise a #include statement would end up in the main() function)

 For me this is already a questionable distortion of C++.

 The Emacs C++-mode does no attempt at hiding parts of a C++ file.
 It just display the file as it is, and that is good.

Yes, you are right.


 This is far too complex for me.
 I will just write down the main() function rather than learning this
 extension.

 But of course, I am just one user among others.
 You are another user and you feel the need for this extension,
 and this should be taken into account.
 Try the extension for yourself, then share it, and see if others like it.

Yes, you are right.


I think the problem we are trying to integrate C++/C like
Lisp,Python,Haskell or programming languages which can rely on a session
to share their content. In a way, the idea of Babel originated from such
a session oriented languages. 

C++ is very different. We cannot inject codes through a online session.
It's really a non sense. C++ is constructed around the idea of a project
(or a Makefile). A typical C++ project holds header files + source files +
a main file.

As you have pointed out, the current C++ mode, is very specialized for
dealing with a main file. It's right name should be something
like :mainC++ .

So how to deal with a C++ project ? 

I enjoy programming in Qt and I have been trying to integrate into Babel, a 
Qmake
project. I finally end up by creating three specialized C++ mode:
qheader, qsource and qmain. It was frustating because I couldn't reuse the
standard C++ mode and in some way the core API in ob-C.

It's my personal conclusion that orgmode gives a new light on C++/Qmake
project by making it more accessible more easy to grasp.

Does it make sense to you ?


 Thanks for all the ideas you submitted.
 Please stay involved.
 Thierry

Thank you.
Best Ernesto




Re: [O] Custom todo-like thing in agenda?

2014-08-18 Thread Sebastien Vauban
Hello Marcin,

Marcin Borkowski wrote:
 I was wondering whether something like this is possible.  (Well, I'm
 pretty sure it is, what I don't know whether I'm competent enough to
 pull it off...)  I'd like to be able to create a special agenda view
 (or block in a normal agenda, this shouldn't make much difference,
 since I may use block agenda instead of the usual C-c a a), in which
 the lines would behave much like TODOs, with the exception that their
 source would not be an Org file, but something else.  In my case, it
 would be a web todo-like service, with the possibility of extracting
 info (like the deadline and such) using some command-line curl
 invocation.  Then, I could (rather easily, I guess) write some Elisp
 to parse this info, and (here the hard part - at least for me -
 begins) somehow insert it in the agenda buffer.

 Of course, I could also just generate an intermediate, temporary org
 file, using curl - parsing - buffer - save and include it in the
 agenda.  This would most probably speed up the process of generating
 the agenda (which is a plus).  However, I'd like another
 functionality: I'd like to have the `t' command to send some
 information to the web service I'm using.

 Where should I start?  Is there anything even remotely similar to what
 I'm trying to achieve so that I could analyze its source, for
 instance?

This seems interesting for sure.

I don't have more knowledge than you on such a topic; however, if I had
to really look into that, I'd start by taking a look at the following:

- `org-debbugs.el' package from Michael Albinus

- Bugzilla integration from John Wiegley
  (see https://gist.github.com/jwiegley/472120)

HTH -- and please publish any step you make!

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Proposal to replace the prefix repetition with whitespace during expansion of noweb references

2014-08-18 Thread Sebastien Vauban
Pierre-Henry FRÖHRING wrote:
 I would like to back this proposition with our use case :

 #+BEGIN_SRC js
   REACTIVE_STATE = TYPE_BUILDER(
   REACTIVE_STATE.constructor
   , reactive_state
   , REACTIVE_STATE.functions
   )
 #+END_SRC

 Where `REACTIVE_STATE.constructor` is expanded as expected,
 and `, REACTIVE_STATE.functions` is not, leading to `,  ` prefixing all
 lines.

See https://lists.gnu.org/archive/html/emacs-orgmode/2014-03/msg01606.html
for some context about that.

As I wrote, yes, I think it makes sense to do such a change.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Custom todo-like thing in agenda?

2014-08-18 Thread Michael Albinus


Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org
writes:

 Hello Marcin,

Hi,

 - `org-debbugs.el' package from Michael Albinus

... which is meanwhile debbugs-org.el, part of the debbugs package on
GNU ELPA.

 Best regards,
   Seb

Best regards, Michael.




Re: [O] MobileOrg documentation?

2014-08-18 Thread root
Xebar Saram zelt...@gmail.com writes:

 just tried gnuroot. its very nice but i think would be useful for rare
 cases where you really need the full power of emacs/org since its a
 bit cumbersome to fire the whole debianemacsopen a org note just to
 enter a quick capture :). do you have any tips on speeding things up
 etc?

With Lil'Debi, I had an Irssi-Connectbot shortcut that would connect to
the running Debian, attach an already running screen session, and switch
to the emacs screen. I don't yet have an equivalent shortcut for
Gnuroot. My first thought is just to leave a screen session with Emacss
running in it all the time, and use the notification to swich to
it. Then use org-capture.

 P.S could you share your color scheme from the screenshot :)

It is leuven-theme, available on Marmalade.

--
Jason



[O] Option to override date on org-add-note?

2014-08-18 Thread Edward DeMeulle
Frequently I find myself logging a note for something that occurred in
the past either because I wasn't at my computer or just not paying
attention at the time. C-u C-c C-z doesn't change anything. I tried
looking at the source code for the logging functions but nothing jumped
out. Does this option already exist somewhere I've missed?

_ED_




[O] clock-in clock-out problems

2014-08-18 Thread hymie!
Greetings.

I've discovered a problem with clocking-in and clocking-out.  I think
this used to work in the past (when I ran 8.2.7a and/or 8.2.7b), but
I've had the same problem twice (both with 8.2.7c) .

I have a TODO scheduled for today:
* TODO run clamav on machine
  SCHEDULED: 2014-08-18 Mon 09:00

I get to work and start it with C-c C-x C-i
* TODO run clamav on machine
  SCHEDULED: 2014-08-18 Mon 09:00
  CLOCK: [2014-08-18 Mon 08:55]

I save the file, exit emacs, and go off to do other things that may or
may not include playing larn.  This seems to be the important part
(saving and exiting the file, not playing larn).

I get back to my desk, run emacs, and try to clock out of the task
with C-c C-x C-o.  I get an error No active clock.  I get this same
error whether my cursor is on the TODO line or the CLOCK line.

Now it gets weird.  I try to clock in again with C-c C-x C-i.
I get a warning of a Dangling clock started 60 minutes ago and
I'm asked to Select a Clock Resolution Command.  So clearly it
sees that there is an open clock that needs to be resolved somehow,
except C-c C-x C-o still maintains No active clock.

I don't have the self-confidence to ask How do I file a bug report?
Instead I will ask What did I do wrong?

--hymie!http://lactose.homelinux.net/~hymiehy...@lactose.homelinux.net




Re: [O] Display only after inactive timestamp

2014-08-18 Thread Zach Sheffler
I did attempt to set that to true previously; while it caused the desired
behavior it also included the inactive timestamps in the agenda grid which
is what I was trying to avoid originally.


On Fri, Aug 15, 2014 at 5:16 PM, Subhan Michael Tindall 
subh...@familycareinc.org wrote:

 I don't see it set anywhere here, but try checking the value of
 org-agenda-include-inactive-timestamps ?

  -Original Message-
  From: Zach Sheffler [mailto:zsheff...@gmail.com]
  Sent: Friday, August 15, 2014 2:41 PM
  To: Subhan Michael Tindall
  Cc: emacs-orgmode@gnu.org
  Subject: Re: [O] Display only after inactive timestamp
 
  The entire global setup is included at the end. For readability, here's
 the
  relevant command:
 
  (quote ((b Agenda with bitwork ((agenda  nil) (tags bit
  ((org-agenda-overriding-header Bitwork) (org-agenda-skip-function
  (quote (org-agenda-skip-entry-if (quote todo) (quote done)) (tags
 rest
  ((org-agenda-overriding-header Rest) (org-agenda-skip-function (quote
  (org-agenda-skip-entry-if (quote
  todo) (quote done (org-agenda-skip-function (quote (org-agenda-skip-
  entry-if (quote timestamp)
 
  The rest tab is currently set up such that it will hide before the
 timestamp,
  but the timestamp (scheduled, technically) must be active and thus shows
 on
  the agenda. Is there a way to keep it off the time grid while still
 perserving
  taht?
 
  Here's my global setup:
 
   '(org-agenda-clockreport-parameter-plist (quote (:link f :maxlevel
 3)))  '(org-
  agenda-custom-commands (quote ((b Agenda with bitwork
  ((agenda  nil) (tags bit ((org-agenda-overriding-header Bitwork)
 (org-
  agenda-skip-function (quote (org-agenda-skip-entry-if (quote
  todo) (quote done)) (tags rest ((org-agenda-overriding-header
  Rest) (org-agenda-skip-function (quote (org-agenda-skip-entry-if (quote
  todo) (quote done (org-agenda-skip-function (quote (org-agenda-skip-
  entry-if (quote timestamp) (quote future))) nil
  nil) (w Unscheduled TODO items ((todo TODO
  ((org-agenda-skip-function (quote (org-agenda-skip-entry-if (quote
  scheduled (org-agenda-tag-filter-preset (quote (-rest
  -bit)) nil
   '(org-agenda-diary-file C:\\Users\\sheff036\\Dropbox\\todo\\org-
  diary.org)
   '(org-agenda-files (quote
  (c:/Users/sheff036/Dropbox/todo/Teaching.org
  c:/Users/sheff036/Dropbox/todo/Work.org
  c:/Users/sheff036/Dropbox/todo/Research.org
  c:/Users/sheff036/Dropbox/todo/Personal.org)))
   '(org-agenda-include-diary t)
   '(org-agenda-insert-diary-extract-time t)
 '(org-agenda-insert-diary-strategy
  (quote top-level))  '(org-agenda-log-mode-items (quote (closed clock)))
  '(org-agenda-mouse-1-follows-link nil)  '(org-agenda-skip-deadline-
  prewarning-if-scheduled 3)  '(org-agenda-skip-scheduled-if-done t)
 '(org-
  agenda-span (quote day))  '(org-agenda-start-with-clockreport-mode t)
  '(org-agenda-start-with-log-mode nil)
 '(org-agenda-tags-todo-honor-ignore-
  options t)  '(org-agenda-todo-ignore-scheduled (quote future))  '(org-
  agenda-window-setup (quote other-frame))
 
 
 
  On 8/15/14, Subhan Michael Tindall subh...@familycareinc.org wrote:
   Can you provide a copy of your current agenda setup (custom and
   global?)
  
  
   From: emacs-orgmode-bounces+subhant=familycareinc@gnu.org
   [mailto:emacs-orgmode-bounces+subhant=familycareinc@gnu.org]
  On
   Behalf Of Zach Sheffler
   Sent: Friday, August 15, 2014 1:23 PM
   To: emacs-orgmode@gnu.org
   Subject: [O] Display only after inactive timestamp
  
   I am trying to get items with a specific tag to show only after an
   inactive
   (recurring) timestamp such that they show on the search-by-tag but not
   on the Day-Agenda. I can't seem to figure out the proper way to set up
   the agenda command, however. Is there a way to accomplish this?
  
   This message is intended for the sole use of the individual and entity
   to which it is addressed and may contain information that is
   privileged, confidential and exempt from disclosure under applicable
   law. If you are not the intended addressee, nor authorized to receive
   for the intended addressee, you are hereby notified that you may not
   use, copy, disclose or distribute to anyone the message or any
   information contained in the message. If you have received this
   message in error, please immediately advise the sender by reply email
 and
  delete the message.  Thank you.
  

 This message is intended for the sole use of the individual and entity to
 which it is addressed and may contain information that is privileged,
 confidential and exempt from disclosure under applicable law. If you are
 not the intended addressee, nor authorized to receive for the intended
 addressee, you are hereby notified that you may not use, copy, disclose or
 distribute to anyone the message or any information contained in the
 message. If you have received this message in error, please immediately
 advise the sender by reply email and delete the message.  Thank 

Re: [O] Option to override date on org-add-note?

2014-08-18 Thread Nick Dokos
Edward DeMeulle e...@demeulle.org writes:

 Frequently I find myself logging a note for something that occurred in
 the past either because I wasn't at my computer or just not paying
 attention at the time. C-u C-c C-z doesn't change anything. I tried
 looking at the source code for the logging functions but nothing jumped
 out. Does this option already exist somewhere I've missed?


Not that I can see: the timestamp is obtained by calling
org-current-effective-time which doesn't have any facilities
for interactive time entering. There are two variables that
influence it:

o org-use-last-clock-out-time
o org-use-effective-time

If you use clocking, you might want to investigate the first one.  The
second one makes the function obey your org-extend-today-until
preference (good for night-owls, but perhaps not much else). Both of
them are all-or-nothing.

AFAICT, neither of them will do what you want (at least not all the
time).

But you can manually modify time stamps quickly after the fact:

(info (org) Creating timestamps)

In particular, S-up/S-down on any particular field of the date
will modify that entry. I generally find that easy enough to do
in the rare occasions when I need to modify a timestamp, but ymmv.

--
Nick









Re: [O] ob-lilypond code cleanup

2014-08-18 Thread Achim Gratz
Nicolas Goaziou writes:
 FWIW, I think prefix conformance should go to maint.

OK.

 Also, you shouldn't use `pcase' as Org preserves compatibility with
 Emacs 23.

Thanks for the reminder.  In any case, these will need to become
defcustoms as well.


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

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




Re: [O] clock-in clock-out problems

2014-08-18 Thread Joost Helberg
Dear Hymie,

The customizable variable: 
 org-clock-persist

is used for solving this.

regards,

Joost

BTW: why do you leave emacs?

 hymie! == hymie!  hy...@lactose.homelinux.net writes:
  From: hymie! hy...@lactose.homelinux.net
  To: emacs-orgmode@gnu.org
  Subject: [O] clock-in clock-out problems
  Date: 2014-08-18T17:40:19+0200

  Greetings.

  I've discovered a problem with clocking-in and clocking-out.  I think
  this used to work in the past (when I ran 8.2.7a and/or 8.2.7b), but
  I've had the same problem twice (both with 8.2.7c) .

  I have a TODO scheduled for today:
  * TODO run clamav on machine
SCHEDULED: 2014-08-18 Mon 09:00

  I get to work and start it with C-c C-x C-i
  * TODO run clamav on machine
SCHEDULED: 2014-08-18 Mon 09:00
CLOCK: [2014-08-18 Mon 08:55]

  I save the file, exit emacs, and go off to do other things that may or
  may not include playing larn.  This seems to be the important part
  (saving and exiting the file, not playing larn).

  I get back to my desk, run emacs, and try to clock out of the task
  with C-c C-x C-o.  I get an error No active clock.  I get this same
  error whether my cursor is on the TODO line or the CLOCK line.

  Now it gets weird.  I try to clock in again with C-c C-x C-i.
  I get a warning of a Dangling clock started 60 minutes ago and
  I'm asked to Select a Clock Resolution Command.  So clearly it
  sees that there is an open clock that needs to be resolved somehow,
  except C-c C-x C-o still maintains No active clock.

  I don't have the self-confidence to ask How do I file a bug report?
  Instead I will ask What did I do wrong?

  --hymie!http://lactose.homelinux.net/~hymie
  hy...@lactose.homelinux.net



-- 
Snow B.V.



Re: [O] clock-in clock-out problems

2014-08-18 Thread hymie!
In our last episode, the evil Dr. Lacto had captured our hero,
  Joost Helberg jo...@snow.nl, who said:
Dear Hymie,

The customizable variable: 
 org-clock-persist

is used for solving this.

Thanks for the info.  However, when I tried it out, I get asked
Resume clock (test) (y or n)  If I answer n then the problem recurs
(as I would expect).  If I answer y, then I get an error
(lines cut to 75-ish, but I can try to send the full entire error message
if needed)

Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
  goto-char(nil)
  (cond ((and org-clock-in-resume (looking-at (concat ^[   ]* org-cloc
  (save-restriction (widen) (goto-char target-pos) (org-back-to-heading t) (
  (save-excursion (save-restriction (widen) (goto-char target-pos) (org-back
  (save-excursion (if (and selected-task (marker-buffer selected-task)) (pro
  (let ((interrupting (and (not org-clock-resolving-clocks-due-to-idleness) 
  (catch (quote abort) (let ((interrupting (and (not org-clock-resolving-clo
  org-clock-in()
[...]

In either case, No active clock.

I'm honestly not sure in what circumstances I would **not** want the
clock to be persistent, but oh well.

BTW: why do you leave emacs?

There is a certain flame war that I do not wish to invoke.  Let's just
say that I've been using a different editor for xxVIi years and I've
grown accustomed to it.  The only thing I currently use emacs for is
org-mode.

But sometimes I have to log out. Sometimes my work network drops and it
logs me out for me.  Sometimes I move from machine to machine and have
to edit my files from elsewhere.  There are tons of reasons why I can't
just leave emacs running.

--hymie!http://lactose.homelinux.net/~hymiehy...@lactose.homelinux.net


  I've discovered a problem with clocking-in and clocking-out.  I think
  this used to work in the past (when I ran 8.2.7a and/or 8.2.7b), but
  I've had the same problem twice (both with 8.2.7c) .

  I have a TODO scheduled for today:
  * TODO run clamav on machine
SCHEDULED: 2014-08-18 Mon 09:00

  I get to work and start it with C-c C-x C-i
  * TODO run clamav on machine
SCHEDULED: 2014-08-18 Mon 09:00
CLOCK: [2014-08-18 Mon 08:55]

  I save the file, exit emacs, and go off to do other things that may or
  may not include playing larn.  This seems to be the important part
  (saving and exiting the file, not playing larn).

  I get back to my desk, run emacs, and try to clock out of the task
  with C-c C-x C-o.  I get an error No active clock.  I get this same
  error whether my cursor is on the TODO line or the CLOCK line.

  Now it gets weird.  I try to clock in again with C-c C-x C-i.
  I get a warning of a Dangling clock started 60 minutes ago and
  I'm asked to Select a Clock Resolution Command.  So clearly it
  sees that there is an open clock that needs to be resolved somehow,
  except C-c C-x C-o still maintains No active clock.

  I don't have the self-confidence to ask How do I file a bug report?
  Instead I will ask What did I do wrong?

  --hymie!http://lactose.homelinux.net/~hymie   




Re: [O] ANN: org-vcard. Export/import vCards. Backwards-compatible with org-contacts.el.

2014-08-18 Thread Eric S Fraga
On Wednesday,  6 Aug 2014 at 19:54, Alexis wrote:

[...]

 Regarding syncing, the BBDB page on SourceForge suggests that existing
 support for this might be rather limited - i only see mention of

There is a bbdb-vcard project at 

https://github.com/vgeddes/bbdb-vcard

I've used this only once, just to get my bbdb contacts on my phone, and
it seemed to work fine.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.1, Org release_8.3beta-237-gcc6aa4



Re: [O] babel: ob-C with Visual C++ and compilation-mode

2014-08-18 Thread Thierry Banel

  
  
Le 18/08/2014 13:19, Ernesto Durante a
  écrit :


  I think the problem we are trying to integrate C++/C like
Lisp,Python,Haskell or programming languages which can rely on a session
to share their content. In a way, the idea of Babel originated from such
a session oriented languages. 

C++ is very different. We cannot inject codes through a online session.
It's really a non sense. C++ is constructed around the idea of a project
(or a Makefile). A typical C++ project holds header files + source files +
a main file.

As you have pointed out, the current C++ mode, is very specialized for
dealing with a main file. It's right name should be something
like :mainC++ .

So how to deal with a C++ project ? 

I enjoy programming in Qt and I have been trying to integrate into Babel, a Qmake
project. I finally end up by creating three specialized C++ mode:
qheader, qsource and qmain. It was frustating because I couldn't reuse the
standard C++ mode and in some way the core API in ob-C.

It's my personal conclusion that orgmode gives a new light on C++/Qmake
project by making it more accessible more easy to grasp.

Does it make sense to you ?


You are trying to create a C++ project bigger than a few lines, in
Org-mode.
This is very close to the idea of "literate programming" from Donal
Knuth.
You may find inspiration here:
http://orgmode.org/worg/org-contrib/babel/intro.html#literate-programming

There is an example of a "hello world" shell project split over
three source blocks.
Here it is translated from Shell to C++ (try it, it works):


  #+name: hello-world-prefix
  #+begin_src C++ :exports none
    printf
  ("/---\\\n");
  #+end_src
  
  #+name: hello-world-postfix
  #+begin_src C++ :exports none
    printf
  ("\\---/\n");
  #+end_src
  
  #+name: hello-world-main-begin
  #+begin_src C++ :exports none
  #include stdio.h
  int main()
  {
  #+end_src
  
  #+name: hello-world-main-end
  #+begin_src C++ :exports none
    return 0;
  }
  #+end_src
  
  #+name: hello-world
  #+begin_src C++ :tangle hello :exports none :noweb yes :results
  output 
    hello-world-main-begin
    hello-world-prefix
    printf ("|   hello
  world |\n");
    hello-world-postfix
    hello-world-main-end
  #+end_src
  
  #+RESULTS: hello-world
  : /---\
  : |   hello world |
  : \---/
  
  

  




[O] Columns with marking characters are exported to latex (Org 8)

2014-08-18 Thread Thorsten Grothe

Hello List,

I'm running here the maint branch of Org-Mode (8.2.7c). I installed it 
with git.


I tried to export this table to latex:

#+TBLNAME: Test
#+ORGTBL: SEND Test orgtbl-to-latex :skip 1 :splice t
|   |A |B |
|---+--+--|
|   |6 |2 |
|   |4 |9 |
|---+--+--|
| _ | suma | sumb |
|   |   10 |   11 |
#+TBLFM: $suma=vsum(@I..@II)::$sumb=vsum(@I..@II)


and got the following result:

% BEGIN RECEIVE ORGTBL Test
\hline
  6  2 \\
  4  9 \\
\hline
$\backslash$$_$  suma  sumb \\
  10  11 \\
% END RECEIVE ORGTBL Test

as you can see the first column of the table is exported to latex. 
Normally columns with marking characters are *not* exported to latex. Is 
this a bug?


Thanks in advance!


--
Regards

Thorsten



Re: [O] ob-lilypond code cleanup

2014-08-18 Thread Achim Gratz
Achim Gratz writes:
 Thanks for the reminder.  In any case, these will need to become
 defcustoms as well.

Improved patch now with defcustom.  I hope I did get that defcustom
stuff right, please check.

From 35c3be896c159fcd9fb727b39273750fc0264592 Mon Sep 17 00:00:00 2001
From: Achim Gratz strom...@stromeko.de
Date: Sun, 17 Aug 2014 10:29:24 +0200
Subject: [PATCH] ob-lilypond: Code cleanup

* lisp/ob-lilypond.el: Change ly- prefix to org-babel-lilypond
  throughout.
  (ly-OSX-ly-path, ly-OSX-pdf-path, ly-OSX-midi-path, ly-nix-ly-path,
  ly-nix-pdf-path, ly-nix-midi-path, ly-w32-ly-path, ly-w32-pdf-path,
  ly-w32-midi-path, ly-determine-ly-path, ly-determine-pdf-path,
  ly-determine-midi-path): Remove.
  (org-babel-lilypond-ly-command, org-babel-lilypond-midi-command,
  org-babel-lilypond-pdf-command): Replacement for removed variables
  and functions.  Adapt all calls to the removed functions to use
  these variables instead.
  (org-babel-lilypond-commands): New defcustom for setting up
  the *-command variables.  Keep different defaults for different
  systems as the original code did to avoid tripping up unsuspecting
  users.
  (org-babel-lilypond-execute-tangled-ly,
  org-babel-lilypond-check-for-compile-error): Revert conditions to
  avoid superfluous forms.  Remove unused return values.
* testing/lisp/test-ob-lilypond.el: Change ly- prefix to
  org-babel-lilypond throughout.  Do not test for removed variables
  and replace removed function calls with the appropriate variable
  content.
---
 lisp/ob-lilypond.el  | 284 ++---
 testing/lisp/test-ob-lilypond.el | 292 ---
 2 files changed, 256 insertions(+), 320 deletions(-)

diff --git a/lisp/ob-lilypond.el b/lisp/ob-lilypond.el
index fbfac88..43433a3 100644
--- a/lisp/ob-lilypond.el
+++ b/lisp/ob-lilypond.el
@@ -41,62 +41,82 @@ (defalias 'lilypond-mode 'LilyPond-mode)
 (defvar org-babel-default-header-args:lilypond '()
   Default header arguments for lilypond code blocks.
 NOTE: The arguments are determined at lilypond compile time.
-See (ly-set-header-args))
+See (org-babel-lilypond-set-header-args))
 
-(defvar ly-compile-post-tangle t
+(defvar org-babel-lilypond-compile-post-tangle t
   Following the org-babel-tangle (C-c C-v t) command,
-ly-compile-post-tangle determines whether ob-lilypond should
+org-babel-lilypond-compile-post-tangle determines whether ob-lilypond should
 automatically attempt to compile the resultant tangled file.
 If the value is nil, no automated compilation takes place.
 Default value is t)
 
-(defvar ly-display-pdf-post-tangle t
+(defvar org-babel-lilypond-display-pdf-post-tangle t
   Following a successful LilyPond compilation
-ly-display-pdf-post-tangle determines whether to automate the
+org-babel-lilypond-display-pdf-post-tangle determines whether to automate the
 drawing / redrawing of the resultant pdf.  If the value is nil,
 the pdf is not automatically redrawn.  Default value is t)
 
-(defvar ly-play-midi-post-tangle t
+(defvar org-babel-lilypond-play-midi-post-tangle t
   Following a successful LilyPond compilation
-ly-play-midi-post-tangle determines whether to automate the
+org-babel-lilypond-play-midi-post-tangle determines whether to automate the
 playing of the resultant midi file.  If the value is nil,
 the midi file is not automatically played.  Default value is t)
 
-(defvar ly-OSX-ly-path
-  /Applications/lilypond.app/Contents/Resources/bin/lilypond)
-(defvar ly-OSX-pdf-path open)
-(defvar ly-OSX-midi-path open)
-
-(defvar ly-nix-ly-path /usr/bin/lilypond)
-(defvar ly-nix-pdf-path evince)
-(defvar ly-nix-midi-path timidity)
-
-(defvar ly-w32-ly-path lilypond)
-(defvar ly-w32-pdf-path )
-(defvar ly-w32-midi-path )
-
-(defvar ly-gen-png nil
+(defconst org-babel-lilypond-ly-command
+  Command to execute lilypond on your system.)
+(defconst org-babel-lilypond-pdf-command
+  Command to show a PDF file on your system.)
+(defconst org-babel-lilypond-midi-command
+  Command to play a MIDI file on your system.)
+(defcustom org-babel-lilypond-commands
+  (cond
+   ((eq system-type 'darwin)
+'(/Applications/lilypond.app/Contents/Resources/bin/lilypond open open))
+   ((eq system-type 'windows-nt)
+'(lilypond  ))
+   (t
+'(lilypond xdg-open xdg-open)))
+  Commands to run lilypond and view or play the results.
+These should be executables that take a filename as an argument.
+On some system it is possible to specify the filename directly
+and the viewer or player will be determined from the file type;
+you can leave the string empty on this case.
+  :group 'org-babel
+  :type '(list
+	  (string :tag Lilypond   )
+	  (string :tag PDF Viewer )
+	  (string :tag MIDI Player))
+  :version 24.3
+  :package-version '(Org . 8.2.7)
+  :set
+  (lambda (symbol value)
+(setq
+ org-babel-lilypond-ly-command   (nth 0 value)
+ org-babel-lilypond-pdf-command  (nth 1 value)
+ org-babel-lilypond-midi-command (nth 2 value
+

Re: [O] clock-in clock-out problems

2014-08-18 Thread Nick Dokos
hy...@lactose.homelinux.net (hymie!) writes:

 In our last episode, the evil Dr. Lacto had captured our hero,
   Joost Helberg jo...@snow.nl, who said:
Dear Hymie,

The customizable variable: 
 org-clock-persist

is used for solving this.

 Thanks for the info.  However, when I tried it out, I get asked
 Resume clock (test) (y or n)  If I answer n then the problem recurs
 (as I would expect).  If I answer y, then I get an error
 (lines cut to 75-ish, but I can try to send the full entire error message
 if needed)

 Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
   goto-char(nil)
   (cond ((and org-clock-in-resume (looking-at (concat ^[   ]* org-cloc
   (save-restriction (widen) (goto-char target-pos) (org-back-to-heading t) (
   (save-excursion (save-restriction (widen) (goto-char target-pos) (org-back
   (save-excursion (if (and selected-task (marker-buffer selected-task)) (pro
   (let ((interrupting (and (not org-clock-resolving-clocks-due-to-idleness) 
   (catch (quote abort) (let ((interrupting (and (not org-clock-resolving-clo
   org-clock-in()
 [...]

 In either case, No active clock.


I added the following to my .emacs

--8---cut here---start-8---
(require 'org-clock)
(setq org-clock-persist t)
(org-clock-persistence-insinuate)
--8---cut here---end---8---

I then start a clock, exit, restart emacs, get asked the Resume
clock question, say y, work for a while, stop the clock and
everything seems OK.

Org-mode version 8.3beta (release_8.3beta-245-g3a1fff)

If you get an error, then it might be a bug in your version. Post the
version along with the complete backtrace (preferably using
org-submit-bug-report). Also, include the entry that you are clocking -
the error above seems to come from an inability to match the entry:

--8---cut here---start-8---
(cond
 ((and org-clock-in-resume
   (looking-at
(concat ^[ \t]* org-clock-string
 \\[\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\}
 *\\sw+\.? +[012][0-9]:[0-5][0-9]\\)\\][ \t]*$)))
  (message Matched %s (match-string 1))
  (setq ts (concat [ (match-string 1) ]))
  (goto-char (match-end 1)) apparently 
(match-end 1) returned nil
  (setq org-clock-start-time
(apply 'encode-time
   (org-parse-time-string (match-string 1
  (setq org-clock-effort (org-entry-get (point) 
org-effort-property))
  (setq org-clock-total-time (org-clock-sum-current-item
  (org-clock-get-sum-start
--8---cut here---end---8---

--
Nick






Re: [O] clock-in clock-out problems

2014-08-18 Thread Nick Dokos
Nick Dokos ndo...@gmail.com writes:


 (message Matched %s (match-string 1))

Also check your *Messages* buffer to see what matched.

 (setq ts (concat [ (match-string 1) ]))
 (goto-char (match-end 1)) apparently 
 (match-end 1) returned nil





Re: [O] clock-in clock-out problems

2014-08-18 Thread hymie!
In our last episode, the evil Dr. Lacto had captured our hero,
  Nick Dokos ndo...@gmail.com, who said:
hy...@lactose.homelinux.net (hymie!) writes:

 In our last episode, the evil Dr. Lacto had captured our hero,
   Joost Helberg jo...@snow.nl, who said:
Dear Hymie,

The customizable variable: 
 org-clock-persist

is used for solving this.

 Thanks for the info.  However, when I tried it out, I get asked
 Resume clock (test) (y or n)  If I answer n then the problem recurs
 (as I would expect).  If I answer y, then I get an error
 (lines cut to 75-ish, but I can try to send the full entire error message
 if needed)

 Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
   goto-char(nil)
   (cond ((and org-clock-in-resume (looking-at (concat ^[   ]* org-cloc
   (save-restriction (widen) (goto-char target-pos) (org-back-to-heading t) (
   (save-excursion (save-restriction (widen) (goto-char target-pos) (org-back
   (save-excursion (if (and selected-task (marker-buffer selected-task)) (pro
   (let ((interrupting (and (not org-clock-resolving-clocks-due-to-idleness) 
   (catch (quote abort) (let ((interrupting (and (not org-clock-resolving-clo
   org-clock-in()
 [...]

I added the following to my .emacs

--8---cut here---start-8---
(require 'org-clock)
(setq org-clock-persist t)
(org-clock-persistence-insinuate)
--8---cut here---end---8---

I didn't have (require 'org-clock) ; just added it; no help.

If you get an error, then it might be a bug in your version. Post the
version along with the complete backtrace (preferably using
org-submit-bug-report).

The entry that I'm using is just

* TODO clock test
  CLOCK: [2014-08-18 Mon 16:20]

(This is the Messages that you asked for in the other post)

(emacs zz.org)
For information about GNU Emacs and the GNU system, type C-x h C-a.
Restoring clock data
Loading /home/hymie/.emacs.d/org-clock-save.el (source)...done
Resume clock (clock test) (y or n)  y
Matched 2014-08-18 Mon 16:20
Entering debugger...
Quit

(This is the org-submit-bug-report)

Emacs  : GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 2.24.13)
 of 2014-06-17 on herman
Package: Org-mode version 8.2.7c (8.2.7c-dist @ /home/hymie/org-mode/lisp/)

current state:
==
(setq
 org-agenda-log-mode-items '(closed clock state)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
  org-babel-execute-safely-maybe)
 org-clock-in-resume 'auto-restart
 org-agenda-skip-scheduled-if-done t
 org-clock-persist t
 org-tab-first-hook '(org-hide-block-toggle-maybe
  org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe
  org-babel-header-arg-expand)
 org-modules '(org-bbdb org-bibtex org-docview org-gnus org-habit org-info
   org-irc org-mhe org-rmail org-w3m)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-hide-inline-tasks org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-speed-command-hook '(org-speed-command-default-hook
  org-babel-speed-command-hook)
 org-babel-pre-tangle-hook '(save-buffer)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-clock-auto-clock-resolution nil
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-agenda-skip-deadline-if-done t
 org-mode-hook '(org-clock-load
 (lambda nil
  (org-add-hook (quote change-major-mode-hook)
   (quote org-show-block-all) (quote append) (quote local))
  )
 (lambda nil
  (org-add-hook (quote change-major-mode-hook)
   (quote org-babel-show-result-all) (quote append)
   (quote local))
  )
 org-babel-result-hide-spec org-babel-hide-all-hashes
 turn-on-font-lock)
 org-directory ~
 org-from-is-user-regexp \\hymie!\\
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-todo-keywords '((sequence TODO(t) WAIT(w@/!) | DONE(d!)
  CANCELED(c@))
 )
 org-agenda-files '(~/org/)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
 org-src-mode-configure-edit-buffer)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-confirm-shell-link-function 'yes-or-no-p
 )

--hymie!http://lactose.homelinux.net/~hymiehy...@lactose.homelinux.net




Re: [O] clock-in clock-out problems

2014-08-18 Thread Nick Dokos
hy...@lactose.homelinux.net (hymie!) writes:

 (lines cut to 75-ish, but I can try to send the full entire error message
 if needed)

 Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
   goto-char(nil)
   (cond ((and org-clock-in-resume (looking-at (concat ^[   ]* org-cloc
   (save-restriction (widen) (goto-char target-pos) (org-back-to-heading t) (
   (save-excursion (save-restriction (widen) (goto-char target-pos) (org-back
   (save-excursion (if (and selected-task (marker-buffer selected-task)) (pro
   (let ((interrupting (and (not org-clock-resolving-clocks-due-to-idleness) 
   (catch (quote abort) (let ((interrupting (and (not org-clock-resolving-clo
   org-clock-in()
 [...]

I added the following to my .emacs

--8---cut here---start-8---
(require 'org-clock)
(setq org-clock-persist t)
(org-clock-persistence-insinuate)
--8---cut here---end---8---

 I didn't have (require 'org-clock) ; just added it; no help.

If you get an error, then it might be a bug in your version. Post the
version along with the complete backtrace (preferably using
org-submit-bug-report).

 The entry that I'm using is just

 * TODO clock test
   CLOCK: [2014-08-18 Mon 16:20]

 (This is the Messages that you asked for in the other post)

 (emacs zz.org)
 For information about GNU Emacs and the GNU system, type C-x h C-a.
 Restoring clock data
 Loading /home/hymie/.emacs.d/org-clock-save.el (source)...done
 Resume clock (clock test) (y or n)  y
 Matched 2014-08-18 Mon 16:20
 Entering debugger...
 Quit


... and the complete backtrace? Does it look like the partial one
you posted before? In particular, is the argument to goto-char nil?

If that's the case, and assuming I'm in the right place in the source
code, *Messages* shows the correct value for the matched string but the
backtrace shows that match-end returned nil which means that the regexp
*did not match*.  Both of these two cannot be right (unless there is a bug
in the emacs regexp matching code, which for now at least, I'm
discounting).

--
Nick





Re: [O] Columns with marking characters are exported to latex (Org 8)

2014-08-18 Thread Nick Dokos
Thorsten Grothe i...@th-grothe.de writes:

 Hello List,

 I'm running here the maint branch of Org-Mode (8.2.7c). I installed it 
 with git.

 I tried to export this table to latex:

 #+TBLNAME: Test
 #+ORGTBL: SEND Test orgtbl-to-latex :skip 1 :splice t
 |   |A |B |
 |---+--+--|
 |   |6 |2 |
 |   |4 |9 |
 |---+--+--|
 | _ | suma | sumb |
 |   |   10 |   11 |
 #+TBLFM: $suma=vsum(@I..@II)::$sumb=vsum(@I..@II)


 and got the following result:

 % BEGIN RECEIVE ORGTBL Test
 \hline
6  2 \\
4  9 \\
 \hline
 $\backslash$$_$  suma  sumb \\
10  11 \\
 % END RECEIVE ORGTBL Test

 as you can see the first column of the table is exported to latex. 
 Normally columns with marking characters are *not* exported to latex. Is 
 this a bug?

 Thanks in advance!

Can't reproduce it either with 8.2.7c or with latest. I get

,
| \begin{document}
| 
| \maketitle
| \tableofcontents
| 
| I tried to export this table to latex:
| 
| \begin{center}
| \begin{tabular}{rr}
| A  B\\
| \hline
| 6  2\\
| 4  9\\
| \hline
| 10  11\\
| \end{tabular}
| \end{center}
| % Emacs 24.4.50.1 (Org mode 8.2.7c)
`

--
Nick




Re: [O] Columns with marking characters are exported to latex (Org 8)

2014-08-18 Thread Nick Dokos
Nick Dokos ndo...@gmail.com writes:

 Thorsten Grothe i...@th-grothe.de writes:

 Hello List,

 I'm running here the maint branch of Org-Mode (8.2.7c). I installed it 
 with git.

 I tried to export this table to latex:

 #+TBLNAME: Test
 #+ORGTBL: SEND Test orgtbl-to-latex :skip 1 :splice t
 |   |A |B |
 |---+--+--|
 |   |6 |2 |
 |   |4 |9 |
 |---+--+--|
 | _ | suma | sumb |
 |   |   10 |   11 |
 #+TBLFM: $suma=vsum(@I..@II)::$sumb=vsum(@I..@II)


 and got the following result:

 % BEGIN RECEIVE ORGTBL Test
 \hline
6  2 \\
4  9 \\
 \hline
 $\backslash$$_$  suma  sumb \\
10  11 \\
 % END RECEIVE ORGTBL Test

 as you can see the first column of the table is exported to latex. 
 Normally columns with marking characters are *not* exported to latex. Is 
 this a bug?

 Thanks in advance!

 Can't reproduce it either with 8.2.7c or with latest. I get

 ,
 | \begin{document}
 | 
 | \maketitle
 | \tableofcontents
 | 
 | I tried to export this table to latex:
 | 
 | \begin{center}
 | \begin{tabular}{rr}
 | A  B\\
 | \hline
 | 6  2\\
 | 4  9\\
 | \hline
 | 10  11\\
 | \end{tabular}
 | \end{center}
 | % Emacs 24.4.50.1 (Org mode 8.2.7c)
 `


Sorry - disregard that. I didn't test with radio tables, I just did a
straight export. I'll try radio tables later.

Nick





Re: [O] Columns with marking characters are exported to latex (Org 8)

2014-08-18 Thread Thorsten Grothe

Hallo Nick,

* Nick Dokos, 19.08.2014 00:13:53:


Sorry - disregard that. I didn't test with radio tables, I just did a
straight export. I'll try radio tables later.


the attached file is a showing the latex code after the export from 
orgtbl -- see the result, I made some small comments on it...



--
Regards

Thorsten
\documentclass{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{colortbl}

\begin{document}

#+TBLNAME: Test
#+ORGTBL: SEND Test orgtbl-to-latex
|   |A |B |
|---+--+--|
| / |6 |2 |
| / |4 |9 |
|---+--+--|
| _ | suma | sumb |
|   |   10 |   11 |
#+TBLFM: $suma=vsum(@I..@II)::$sumb=vsum(@I..@II)

% BEGIN RECEIVE ORGTBL Test
\begin{tabular}{lrr}
  A  B \\
\hline
/  6  2 \\ % see here
/  4  9 \\ % see here
\hline
$\backslash$$_$  suma  sumb \\ % see here
  10  11 \\
\end{tabular}
% END RECEIVE ORGTBL Test

\end{document} 

Re: [O] R code block produces only partial output

2014-08-18 Thread Aaron Ecay
Hi Achim,

2014ko abuztuak 17an, Achim Gratz-ek idatzi zuen:
 I take it you've never dealt with a corporate IT department.  Go to
 dilbert.com and do a search for Mordac to get an idea what you'd be up
 against.

I’ve read Dilbert, and am familiar with the Mordac character.

R is capable of installing packages to a user-specified directory,
without requiring root or any other special privileges.  So IT cannot
literally prevent R users from installing their own packages; the
requirement must rather come as a statement of policy.  I’d like to
understand more about how such regimes work and how org could work
with them, ideally from people who have direct experience with them.

Otherwise, it would be disappointing if the fear that an unidentifiable
somebody somewhere might not be able to install R packages derailed the
improvement of babel’s R support.

Thanks,

-- 
Aaron Ecay



Re: [O] clock-in clock-out problems

2014-08-18 Thread hymie!
In our last episode, the evil Dr. Lacto had captured our hero,
  Nick Dokos ndo...@gmail.com, who said:
hy...@lactose.homelinux.net (hymie!) writes:

 (This is the Messages that you asked for in the other post)

 (emacs zz.org)
 For information about GNU Emacs and the GNU system, type C-x h C-a.
 Restoring clock data
 Loading /home/hymie/.emacs.d/org-clock-save.el (source)...done
 Resume clock (clock test) (y or n)  y
 Matched 2014-08-18 Mon 16:20
 Entering debugger...
 Quit


Sorry.  I missed the backtrace.  I hope this works, the lines are
longer than the permitted 78 characters.

Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
  goto-char(nil)
  (cond ((and org-clock-in-resume (looking-at (concat ^[   ]* 
org-clock-string  \\[\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\}  *\\sw+.? 
+[012][0-9]:[0-5][0-9]\\)\\][   ]*$))) (message Matched %s (match-string 1)) 
(setq ts (concat [ (match-string 1) ])) (goto-char (match-end 1)) (setq 
org-clock-start-time (apply (quote encode-time) (org-parse-time-string 
(match-string 1 (setq org-clock-effort (org-entry-get (point) 
org-effort-property)) (setq org-clock-total-time (org-clock-sum-current-item 
(org-clock-get-sum-start ((eq org-clock-in-resume (quote auto-restart)) 
(message Cannot restart clock because task does not contain unfinished clock) 
(ding) (sit-for 2) (throw (quote abort) nil)) (t (insert-before-markers \n) 
(backward-char 1) (org-indent-line) (if (and (save-excursion (end-of-line 0) 
(org-in-item-p))) (progn (beginning-of-line 1) (org-indent-line-to (- 
(org-get-indentation) 2 (insert org-clock-string  ) (setq 
org-clock-effort (org-entry-get (point) org-e
 ffort-property)) (setq org-clock-total-time (org-clock-sum-current-item 
(org-clock-get-sum-start))) (setq org-clock-start-time (or (and 
org-clock-continuously org-clock-out-time) (and leftover (y-or-n-p (format You 
stopped another clock %d mins ago; start this one from then?  (/ ... 60))) 
leftover) start-time (org-current-time org-clock-rounding-minutes t))) (setq ts 
(org-insert-time-stamp org-clock-start-time (quote with-hm) (quote inactive)
  (save-restriction (widen) (goto-char target-pos) (org-back-to-heading t) (or 
interrupting (move-marker org-clock-interrupted-task nil)) (run-hooks (quote 
org-clock-in-prepare-hook)) (org-clock-history-push) (setq 
org-clock-current-task (nth 4 (org-heading-components))) (cond ((functionp 
org-clock-in-switch-to-state) (looking-at org-complex-heading-regexp) (let 
((newstate (funcall org-clock-in-switch-to-state (match-string 2 (if 
newstate (org-todo newstate ((and org-clock-in-switch-to-state (not 
(looking-at (concat org-outline-regexp [ ]* 
org-clock-in-switch-to-state \\ (org-todo 
org-clock-in-switch-to-state))) (setq org-clock-heading (cond ((and 
org-clock-heading-function (functionp org-clock-heading-function)) (funcall 
org-clock-heading-function)) ((nth 4 (org-heading-components)) 
(replace-regexp-in-string \\[\\[.*?\\]\\[\\(.*?\\)\\]\\] \\1 
(match-string-no-properties 4))) (t ???))) (org-clock-find-position 
org-clock-in-resume) (cond ((and org-clock-in-resu
 me (looking-at (concat ^[ ]* org-clock-string  
\\[\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\}  *\\sw+.? 
+[012][0-9]:[0-5][0-9]\\)\\][   ]*$))) (message Matched %s (match-string 1)) 
(setq ts (concat [ (match-string 1) ])) (goto-char (match-end 1)) (setq 
org-clock-start-time (apply (quote encode-time) (org-parse-time-string 
(match-string 1 (setq org-clock-effort (org-entry-get (point) 
org-effort-property)) (setq org-clock-total-time (org-clock-sum-current-item 
(org-clock-get-sum-start ((eq org-clock-in-resume (quote auto-restart)) 
(message Cannot restart clock because task does not contain unfinished clock) 
(ding) (sit-for 2) (throw (quote abort) nil)) (t (insert-before-markers \n) 
(backward-char 1) (org-indent-line) (if (and (save-excursion (end-of-line 0) 
(org-in-item-p))) (progn (beginning-of-line 1) (org-indent-line-to (- 
(org-get-indentation) 2 (insert org-clock-string  ) (setq 
org-clock-effort (org-entry-get (point) org-effort-property)) (setq org-clo
 ck-total-time (org-clock-sum-current-item (org-clock-get-sum-start))) (setq 
org-clock-start-time (or (and org-clock-continuously org-clock-out-time) (and 
leftover (y-or-n-p (format You stopped another clock %d mins ago; start this 
one from then?  ...)) leftover) start-time (org-current-time 
org-clock-rounding-minutes t))) (setq ts (org-insert-time-stamp 
org-clock-start-time (quote with-hm) (quote inactive) (move-marker 
org-clock-marker (point) (buffer-base-buffer)) (move-marker org-clock-hd-marker 
(save-excursion (org-back-to-heading t) (point)) (buffer-base-buffer)) (setq 
org-clock-has-been-used t) (if (or (eq org-clock-clocked-in-display (quote 
mode-line)) (eq org-clock-clocked-in-display (quote both))) (progn (or 
global-mode-string (setq global-mode-string (quote ( (or (memq (quote 
org-mode-line-string) 

[O] Orgmode/Koma script letter

2014-08-18 Thread Vikas Rawal
I am trying to create a custom template for my letterhead. The documentation 
suggests that by default title should be used as subject of the letter. 

ox-koma-letter.el has this:
(defcustom org-koma-letter-subject-format t
  Use the title as the subject of the letter.

Byt when I export a file, 

#+TITLE: A simple letter

is exported as 

\setkomavar{title}{A simple letter}

rather than as 

\setkomavar{subject}{A simple letter}

Accordingly, title appears separately as a badly formatted title.

If I have a separate #+Subject: line, that is correctly exported as a subject.

Is there something wrong in what I am doing or is there a problem?

Org version: Org-mode version 8.3beta (release_8.3beta-167-g003edd @ 
/Users/vikas/.emacs.d/src/org/lisp/)

Vikas




Re: [O] Columns with marking characters are exported to latex (Org 8)

2014-08-18 Thread Nick Dokos
Thorsten Grothe i...@th-grothe.de writes:

 Hallo Nick,

 * Nick Dokos, 19.08.2014 00:13:53:

 Sorry - disregard that. I didn't test with radio tables, I just did a
 straight export. I'll try radio tables later.

 the attached file is a showing the latex code after the export from
 orgtbl -- see the result, I made some small comments on it...

Yes, not only can I reproduce it, I bisected it and (surprise!)  the
bisection fingered commit 79873390edd26a44cefc2050c7af470a7ed8fd07: my
fix to your previous complaint:

http://thread.gmane.org/gmane.emacs.orgmode/88634

I'll take another look at org-table-clean-before-export.

-- 
Nick




Re: [O] R code block produces only partial output

2014-08-18 Thread Achim Gratz
Aaron Ecay writes:
 R is capable of installing packages to a user-specified directory,
 without requiring root or any other special privileges.  So IT cannot
 literally prevent R users from installing their own packages;

They can, all they have to do is to take away the ability to connect to
the outside network and that's what is increasingly being done (for
other reasons, mind you).

 the requirement must rather come as a statement of policy.

That is another common thing, if only to shift the responsibility if the
other measures don't actually prevent that.

 I’d like to
 understand more about how such regimes work and how org could work
 with them, ideally from people who have direct experience with them.

Ideally, don't require the use of a non-core package.  The beef with
things like CTAN, CRAN or CPAN is that they require extra maintenance
beyond the pure installation of some software and some specific
knowledge of the software in question and that's just not going to
happen in some places.

 Otherwise, it would be disappointing if the fear that an unidentifiable
 somebody somewhere might not be able to install R packages derailed the
 improvement of babel’s R support.

The request was to keep a fallback to core.  I have no comment at this
time if it would be possible or not.  Since ultimately it's the session
support of Emacs that is clunky (and that affects most other languages
as well), maybe an effort to improve that would be more generally
helpful than working around it in different ways in each language.


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

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada