Re: [O] Feature request: copy cell contents into kill ring

2014-08-13 Thread Aaron Ecay
Hi Andrea,

2014ko abuztuak 11an, Andrea Rossetti-ek idatzi zuen:
 
 Hello everone,
 
   copying a table cell (C-c C-x M-w) uses a private clipboard, as stated
 by the `org-table-copy-region' docstring. Sometimes it's handy to paste
 a cell's text into something that isn't an org-table (my use case was:
 record a macro to perform some silly updates in bbdb, once per table row).
 
   My quick-and-dirty solution was the following:
 
 
   but I believe a copy cell to kill ring would be a nice Org feature
 to add (maybe bound to C-u C-c C-x M-w). Before digging any further,
 may I please ask for opinions and advice: would it make sense for you
 too? not worth it? or is this already possible with some different
 keystroke?

Another option might be to create (or adapt) a keybinding to mark the
contents of the current table cell, which could then be followed with
M-w (kill-ring-save).  This would be more general (since you can also
e.g. delete the contents of the cell after marking it), and also not
require more keystrokes (as long as you can find a binding of 3 keys or
less for the mark-cell command).

-- 
Aaron Ecay



Re: [O] #+begin_src R :results output drawer doesn't work.

2014-08-13 Thread Aaron Ecay
Hi Feng,

2014ko abuztuak 9an, Feng Shu-ek idatzi zuen:
 
 #+begin_src R :results output drawer
 1
 2
 #+end_src
 
 #+RESULTS:
 : 2


Like Eric, I cannot reproduce this behavior.  Can you send us the output
of the following code block, to check the exact version of org that is
giving you this unexpected result?

#+BEGIN_SRC emacs-lisp
  (org-version nil t)
#+END_SRC

Thanks,

-- 
Aaron Ecay



Re: [O] Bug: clock table total time parsed incorrectly [8.2.7c (8.2.7c-elpa at /home/loic/.emacs.d/elpa/org-20140730/)]

2014-08-13 Thread Derek
Hi Loic



Loic Dachary loic at dachary.org writes:

 
 Hi,
 
 In the following clock table:
 
 #+BEGIN: clocktable :maxlevel 3 :emphasize nil :scope file
 :block 2014-08 :formula % :narrow 100
 #+CAPTION: Clock summary at [2014-08-11 lun. 10:17], for août 2014.
 | 100  
 ||  |   |   |
 | Headline   
 |   Time |  |   | % |

|--
++--+---+---|
 | *Total time*   
 | *1d 16:04* |  |   | 100.0 |

|
--++--+---+---|
 | STARTED Read mail  
 |   8:23 |  |   |  52.2 |
 | STARTED GSoC   
 |   0:49 |  |   |   5.1 |
 ...
 #+TBLFM: $5='(org-clock-time%  at 3$2 $2..$4);%.1f
 #+END: clocktable
 
 The total time is apparently parsed as 16:04 instead of 1d 16:04 which
leads to the incorrect conclusion
 that 8:23 is 52.2% of the time.
 
 Emacs  : GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7)
  of 2014-03-07 on lamiak, modified by Debian
 Package: Org-mode version 8.2.7c (8.2.7c-elpa  at 
/home/loic/.emacs.d/elpa/org-20140730/)
 

This is a workaround for your problem (that I also faced) in order to
have the clocktables sum correctly. One just sets the time format to
hours and minutes. A real bugfix naturally would be much nicer.

---
;; format string used when creating CLOCKSUM lines and when generating a
;; time duration (avoid showing days. some clocktable functions cannot
;; digest
;; day formats, e.g. org-clock-time%)
(setq org-time-clocksum-format
  '(:hours %d :require-hours t :minutes :%02d :require-minutes t))


Cheers,
Derek






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

2014-08-13 Thread Jacek Generowicz

Alexis flexibe...@gmail.com writes:

 One could, for example, create an entirely new project on GitHub
 called 'MobileOrgRebooted', and create entirely new apps in the
 respective stores using that name.

That strikes me as the sensible thing to do.

 (As it is, there's not a uniformly named app in any case - we have
 'MobileOrg' for iOS, and 'MobileOrg-Android' for, well, Android.)

There's also MobileOrgNG for Android.

 And it certainly seems to me that it would be best to start the actual
 coding of the reboot /first/, and only worry about naming rights
 issues if and when it takes off. Doing otherwise is likely to bring
 into play another possible obstacle to getting actual implementation
 happening.

Agreed.



[O] [Feature Request / Bug] Remove statistic cookies from refile candidates

2014-08-13 Thread Marcin Antczak
I set up my refile targets and this is what I get when I'm trying to 
refile something from notes.org.


```
Refile subtre Test to (default devel.org/Project): devel.org/[0\0][0%] 
Project

```

Is this possible to remove automatically these statistics cookies from 
completion candidates list?


I know that I could write some custom function to list refile targets 
but this option could be available by default.



Regards,
Marcin



Re: [O] A gentle introduction to Emacs Org-mode?

2014-08-13 Thread Marcin Borkowski
Dnia 2014-07-23, o godz. 23:20:13
Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a):

 this is only partially Org-ode related, but I hope I'll be excused.
 A friend of mine uses Scrivener; he also does some simple
 JavaScript/jQuery programming and HTML/CSS editing.  He *is*
 interested in Emacs  Org-mode, but does not want to spend more than,
 say, 2 days on installing, configuring and learning basics of EOm.
 Are there any resources which might help?  I offered him some help
 with installing and teaching, but what could I use?  (Of course, the
 built-in tutorial and Sacha Chua's sketch-tutorials are great, but
 what else does there exist?  Also, is prelude or Emacs Starter Kit a
 good idea?  I understand this is opinion-based, but maybe someone has
 some experience *teaching* Emacs and Org-mode?)

Thanks for all the input (and for featuring this thread on Twitter;))!

The friend is just starting to like Org-mode;).

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University



[O] How to represent this in Org-mode

2014-08-13 Thread Marcin Borkowski
Hello,

now that I learned how to use a hammer, everything looks like a nail.
So I want to use Org-mode for this; my question is, did anyone do
anything similar and has some suggestions how to structure this
material?

I'm going to prepare a course in mathematical analysis (together with
the former-Scrivener-user-friend, btw).  The course will be divided
into very small modules (one proof, for instance, will correspond to
*at least* one module, and often more).  We want to emphasize the
connections between the ideas behind the theorems, proofs and
calculation methods, so basically the whole material will be divided
into these modules and partially ordered by the relation ... has to be
studied before   How to represent such a partially ordered set in
Org-mode?  One idea that comes to my mind is writing a normal outline
(tree) with all the modules (possibly nested), and including links to
all prerequisites in every such module.  Any other ideas?

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University



Re: [O] MobileOrg documentation?

2014-08-13 Thread Jason F. McBrayer

On 2014-08-08 10:38, jorge.alfaro-muri...@yale.edu wrote:


David Masterson dsmaster...@gmail.com writes:

Not looking for complete org functionality in my phone -- just a
reasonable ability to edit org outlines while I'm on the road.



If you have access by ssh to a computer that is always on, then I
recommend leaving an emacsclient open and using JuiceSSH of
ConnectBot for editing your org files on the go.


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
solution for running Emacs along with git, ssh, hg, and anything else
you might need for your org-mode workflow, and it doesn't even require
a rooted device (I prefer using Lil'Debi for running Emacs, but it
requires a rooted device and a bit more commitment).

With a real Emacs on my device (recent screenshot [here][1]), I can
just keep my hg-based syncing workflow that I'm used to from multiple
desktops, rather than adding a new and more complex mobile syncing
workflow. I'm not disparaging the MobileOrg-Android app, it looks
great, and works great given the MobileOrg protocol it has to work
with, but it's just not what I want to work with.

[1]: 
http://www.carcosa.net/jason/blog/computing/emacs/messageease-2014-08-02.html

--
+---+
| Jason F. McBrayer jmcb...@carcosa.net |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors. --- The Dhammapada |




Re: [O] [PATCH] ob-shell

2014-08-13 Thread Alan Schmitt
On 2014-08-04 21:48, Achim Gratz strom...@nexgo.de writes:

 Alan Schmitt writes:
 Has this been applied? I'm still seeing a failing test for ob-shell.

 1 unexpected results:
FAILED  ob-shell/bash-uses-assoc-arrays

 That's to be expected if you use a version of bash that doesn't support
 assoc arrays.

I don't use bash, I either use zsh or fish. So I guess the version of
bash on my system is the one that ships with OS X 10.9:

GNU bash, version 3.2.51(1)-release (x86_64-apple-darwin13)

 WHat is the backtrace from the test?  Babel (and the
 tests) blindly assume that these things work when they see you using
 bash.

Test ob-shell/bash-uses-assoc-arrays backtrace:
  signal(ert-test-failed (((should (equal 20 cm (org-babel-execute-s
  ert-fail(((should (equal 20 cm (org-babel-execute-src-block))) :fo
  (if (unwind-protect (setq value-1098 (apply fn-1096 args-1097)) (set
  (let (form-description-1100) (if (unwind-protect (setq value-1098 (a
  (let ((value-1098 (quote ert-form-evaluation-aborted-1099))) (let (f
  (let ((fn-1096 (function equal)) (args-1097 (list 20 cm (org-babel
  (save-restriction (org-babel-next-src-block 2) (let ((fn-1096 (funct
  (progn (org-id-goto 82320a48-3409-49d7-85c9-5de1c6d3ff87) (setq to
  (unwind-protect (progn (org-id-goto 82320a48-3409-49d7-85c9-5de1c6d
  (let ((save-match-data-internal (match-data))) (unwind-protect (prog
  (progn (let ((save-match-data-internal (match-data))) (unwind-protec
  (unwind-protect (progn (let ((save-match-data-internal (match-data))
  (let ((wconfig (current-window-configuration))) (unwind-protect (pro
  (unwind-protect (let ((wconfig (current-window-configuration))) (unw
  (let* ((id-location (org-id-find 82320a48-3409-49d7-85c9-5de1c6d3ff
  (lambda nil (let* ((id-location (org-id-find 82320a48-3409-49d7-85c
  byte-code(\306\307!q\210\310\216\311 \312\216\313\314\315\316\3
  ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
  byte-code(\306\307!\211\211r\310\311!q\210\312 d\313\223)L\210)\3
  ert-run-test([cl-struct-ert-test ob-shell/bash-uses-assoc-arrays Ba
  ert-run-or-rerun-test([cl-struct-ert--stats \\(org\\|ob\\) [[cl-st
  ert-run-tests(\\(org\\|ob\\) #[(event-type rest event-args) \306
  ert-run-tests-batch(\\(org\\|ob\\))
  ert-run-tests-batch-and-exit(\\(org\\|ob\\))
  (let ((org-id-track-globally t) (org-test-selector (if org-test-sele
  org-test-run-batch-tests(\\(org\\|ob\\))
  eval((org-test-run-batch-tests org-test-select-re))
  command-line-1((--eval (setq vc-handled-backends nil org-startup-
  command-line()
  normal-top-level()
Test ob-shell/bash-uses-assoc-arrays condition:
(ert-test-failed
 ((should
   (equal 20 cm
  (org-babel-execute-src-block)))
  :form
  (equal 20 cm 50 dl)
  :value nil :explanation
  (array-elt 0
 (different-atoms
  (50 #x32 ?2)
  (53 #x35 ?5)
   FAILED  104/510  ob-shell/bash-uses-assoc-arrays

Thanks,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7


signature.asc
Description: PGP signature


Re: [O] [PATCH] ob-shell

2014-08-13 Thread Pascal Fleury
Yes, sorry for late reaction (it's holiday season here :-).

This is an issue I introduced with the assoc. arrays, which does not verify
if the installed version of bash handles them (from bash4 on).
It needs a modification in the setup code that checks the version and only
issues assoc. array code when bash supports it. And it so happens that Macs
have bash3 installed. Will try to find such a machine and add the test.

--paf


On Wed, Aug 13, 2014 at 3:12 PM, Alan Schmitt 
alan.schm...@polytechnique.org wrote:

 On 2014-08-04 21:48, Achim Gratz strom...@nexgo.de writes:

  Alan Schmitt writes:
  Has this been applied? I'm still seeing a failing test for ob-shell.
 
  1 unexpected results:
 FAILED  ob-shell/bash-uses-assoc-arrays
 
  That's to be expected if you use a version of bash that doesn't support
  assoc arrays.

 I don't use bash, I either use zsh or fish. So I guess the version of
 bash on my system is the one that ships with OS X 10.9:

 GNU bash, version 3.2.51(1)-release (x86_64-apple-darwin13)

  WHat is the backtrace from the test?  Babel (and the
  tests) blindly assume that these things work when they see you using
  bash.

 Test ob-shell/bash-uses-assoc-arrays backtrace:
   signal(ert-test-failed (((should (equal 20 cm (org-babel-execute-s
   ert-fail(((should (equal 20 cm (org-babel-execute-src-block))) :fo
   (if (unwind-protect (setq value-1098 (apply fn-1096 args-1097)) (set
   (let (form-description-1100) (if (unwind-protect (setq value-1098 (a
   (let ((value-1098 (quote ert-form-evaluation-aborted-1099))) (let (f
   (let ((fn-1096 (function equal)) (args-1097 (list 20 cm (org-babel
   (save-restriction (org-babel-next-src-block 2) (let ((fn-1096 (funct
   (progn (org-id-goto 82320a48-3409-49d7-85c9-5de1c6d3ff87) (setq to
   (unwind-protect (progn (org-id-goto 82320a48-3409-49d7-85c9-5de1c6d
   (let ((save-match-data-internal (match-data))) (unwind-protect (prog
   (progn (let ((save-match-data-internal (match-data))) (unwind-protec
   (unwind-protect (progn (let ((save-match-data-internal (match-data))
   (let ((wconfig (current-window-configuration))) (unwind-protect (pro
   (unwind-protect (let ((wconfig (current-window-configuration))) (unw
   (let* ((id-location (org-id-find 82320a48-3409-49d7-85c9-5de1c6d3ff
   (lambda nil (let* ((id-location (org-id-find 82320a48-3409-49d7-85c
   byte-code(\306\307!q\210\310\216\311 \312\216\313\314\315\316\3
   ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
   byte-code(\306\307!\211\211r\310\311!q\210\312 d\313\223)L\210)\3
   ert-run-test([cl-struct-ert-test ob-shell/bash-uses-assoc-arrays Ba
   ert-run-or-rerun-test([cl-struct-ert--stats \\(org\\|ob\\) [[cl-st
   ert-run-tests(\\(org\\|ob\\) #[(event-type rest event-args) \306
   ert-run-tests-batch(\\(org\\|ob\\))
   ert-run-tests-batch-and-exit(\\(org\\|ob\\))
   (let ((org-id-track-globally t) (org-test-selector (if org-test-sele
   org-test-run-batch-tests(\\(org\\|ob\\))
   eval((org-test-run-batch-tests org-test-select-re))
   command-line-1((--eval (setq vc-handled-backends nil org-startup-
   command-line()
   normal-top-level()
 Test ob-shell/bash-uses-assoc-arrays condition:
 (ert-test-failed
  ((should
(equal 20 cm
   (org-babel-execute-src-block)))
   :form
   (equal 20 cm 50 dl)
   :value nil :explanation
   (array-elt 0
  (different-atoms
   (50 #x32 ?2)
   (53 #x35 ?5)
FAILED  104/510  ob-shell/bash-uses-assoc-arrays

 Thanks,

 Alan

 --
 OpenPGP Key ID : 040D0A3B4ED2E5C7




-- 
--paf


Re: [O] [PATCH] ob-shell

2014-08-13 Thread Alan Schmitt
On 2014-08-13 15:20, Pascal Fleury fle...@google.com writes:

 Yes, sorry for late reaction (it's holiday season here :-).

Funny, it's holiday season here as well (in Bretagne) ;-)

 This is an issue I introduced with the assoc. arrays, which does not
 verify if the installed version of bash handles them (from bash4 on).
 It needs a modification in the setup code that checks the version and
 only issues assoc. array code when bash supports it. And it so happens
 that Macs have bash3 installed. Will try to find such a machine and
 add the test.

Thanks a lot. If I can help, please let me know.

Best,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7


signature.asc
Description: PGP signature


Re: [O] Manipulating Dates Automatically in a Headline

2014-08-13 Thread Matt Price
It's been a couple of days so I'll try restate this question more
clearly.  I'm hoping it's possible to do something like this:

* Week one (2014-09-09)
* Week two (EVALUATE A LISP EXPRESSION THAT INSERTS A TIMESTAMP ONE
WEEK LATER THAN LAST TIMESTAMP FOUND IN BUFFER)

I don't have much experience with babel so I'm not sure how to do
this, but if it's possible I would love some hints.  Thanks as always,

Matt


On Mon, Aug 11, 2014 at 2:20 PM, Matt Price mopto...@gmail.com wrote:
 Hi Everyone,

 I've asked this before, but that was a year or two ago and am hoping
 someone has an idea now, perhaps involving babel or something.

 every year at this time I rewrite a set of syllabi. I do a lot of
 moving htings around while i'm oding it, and at the end I have to
 enter a whole bunch of dates somewhat laboriously.  I have headlines
 that look about like either like this:

 -
 * Outline
 ** Week 1: Topic Title (2013-09-10)
 Longish Description
 *** Reading
 - Article 1
 - Article 2
 *** Lab
 *** Notes
 ---

 or like this:
 --
 * Outline
 ** Week 1: 2013-09-09
 *** Seminar: Technology and Society  (2013-09-10)
 *** Reading
 - Article 1
 - Article 2
 *** Plenary: Global Citizenship (2013-09-13)
 

 I would like to replace the timestamps with code that dynamically
 generates timestamps based on the value either in the last sibling
 headline, or the parent headline.  It seems to me this ought to be
 possible, but I'm not at all sure how to do it.  i would really
 appreciate any guidance.  thanks!

 Matt



Re: [O] How to represent this in Org-mode

2014-08-13 Thread Thorsten Jolitz
Marcin Borkowski mb...@wmi.amu.edu.pl writes:

Hello,

 now that I learned how to use a hammer, everything looks like a nail.
 So I want to use Org-mode for this; my question is, did anyone do
 anything similar and has some suggestions how to structure this
 material?

 I'm going to prepare a course in mathematical analysis (together with
 the former-Scrivener-user-friend, btw).  The course will be divided
 into very small modules (one proof, for instance, will correspond to
 *at least* one module, and often more).  We want to emphasize the
 connections between the ideas behind the theorems, proofs and
 calculation methods, so basically the whole material will be divided
 into these modules and partially ordered by the relation ... has to be
 studied before   How to represent such a partially ordered set in
 Org-mode?  One idea that comes to my mind is writing a normal outline
 (tree) with all the modules (possibly nested), and including links to
 all prerequisites in every such module.  Any other ideas?

Sounds for me like a typical taskjuggler project, and fortunately there
is ob-taskjuggler.el. See

,
| http://orgmode.org/worg/org-tutorials/org-taskjuggler.html. 
`

-- 
cheers,
Thorsten




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

2014-08-13 Thread Jorge A. Alfaro-Murillo

Dear Mat, Henning, Richard and Sean

In case you are not subscribed to email list of orgmode, the 
following thread might be of interest to you.


Matthew Jones and Henning Weiss, and Richard Moreland and Sean 
Escriva are the top contributors for MobileOrg for Android and 
iPhone, respectively.


Best,

Jorge.

---BeginMessage---
Topics:
   Some thoughts on MobileOrg and its development 
   Re: Some thoughts on MobileOrg and its development 
   Re: Some thoughts on MobileOrg and its development 
   Re: Some thoughts on MobileOrg and its development 
   Re: Some thoughts on MobileOrg and its development 
   Re: Some thoughts on MobileOrg and its development 
   Re: Some thoughts on MobileOrg and its development 
   Re: Some thoughts on MobileOrg and its development 
   Re: Some thoughts on MobileOrg and its development 
   Re: Some thoughts on MobileOrg and its development 
   Re: Some thoughts on MobileOrg and its development 
---End Message---
---BeginMessage---

Hi all,

In light of recent discussions about 'MobileOrg' - which seemingly
actually constitutes two distinct projects for two different platforms -
together with the apparent relative lack of activity of both projects,
despite demand for them, i can't help but wonder if the 'MobileOrg'
endeavour needs a reboot.

More specifically, it seems to me that rebuilding MobileOrg as a single
project on top of Apache Cordova:

https://cordova.apache.org/

might be a way forward, for several reasons:

* It would help ensure that basically the same set of functionality is
  available across platforms, modulo specific limitations/issues with
  specific platforms. And when people add or modify core functionality,
  that functionality would more easily become available to people across
  platforms, rather than the functionality being initially implemented
  on platform X, and people on platform Y having to wait for it to be
  implemented in its entirety.

* Overall, only one lot of end-user documentation would need to be
  maintained.

* It would enable MobileOrg to be made available for mobile platforms
  other than Android and iOS, such as Windows Phone and Blackberry.

* The number of people available to assist with development might well
  be greater, due to the core development environment involving HTML,
  CSS and JavaScript. Barriers to entry for both regular and occasional
  committers would be much lower.

i'm aware that Cordova has various limitations,
including-but-not-limited-to the lack of native 'feel' of Cordova-based
applications. However, i feel that the above advantages, combined with
the my notion that Emacs users are probably less concerned with a
perfectly slick UI than with having access to functionality they
need/want, probably outweighs such limitations.

Unfortunately, due to other existing commitments, i wouldn't be able to
take point on such a reboot. But i'd definitely be willing and able to
help out!  Particularly in the area of contact management and syncing,
of course. :-)

Thoughts/comments/criticisms?


Alexis.



---End Message---
---BeginMessage---
Would love to see a reboot and further development on org-mobile. I am not
a developer myself but would love to help out with testing , writing
documentation etc

best

Z


On Sat, Aug 9, 2014 at 3:56 AM, Alexis flexibe...@gmail.com wrote:


 Hi all,

 In light of recent discussions about 'MobileOrg' - which seemingly
 actually constitutes two distinct projects for two different platforms -
 together with the apparent relative lack of activity of both projects,
 despite demand for them, i can't help but wonder if the 'MobileOrg'
 endeavour needs a reboot.

 More specifically, it seems to me that rebuilding MobileOrg as a single
 project on top of Apache Cordova:

 https://cordova.apache.org/

 might be a way forward, for several reasons:

 * It would help ensure that basically the same set of functionality is
   available across platforms, modulo specific limitations/issues with
   specific platforms. And when people add or modify core functionality,
   that functionality would more easily become available to people across
   platforms, rather than the functionality being initially implemented
   on platform X, and people on platform Y having to wait for it to be
   implemented in its entirety.

 * Overall, only one lot of end-user documentation would need to be
   maintained.

 * It would enable MobileOrg to be made available for mobile platforms
   other than Android and iOS, such as Windows Phone and Blackberry.

 * The number of people available to assist with development might well
   be greater, due to the core development environment involving HTML,
   CSS and JavaScript. Barriers to entry for both regular and occasional
   committers would be much lower.

 i'm aware that Cordova has various limitations,
 including-but-not-limited-to the lack of native 'feel' of Cordova-based
 applications. However, i feel that the above 

[O] org-mobile-push: Non-existent .#flagged.org angenda - how to avoid this message?

2014-08-13 Thread Shavkat Rustamov
When calling org-mobile-push, org gives this message Non-existing agenda
file .#flagged.org.

.# are lock files (create-lockfiles variable), which get created in the org
directory. I would prefer to have them.


Re: [O] org-mobile-push: Non-existent .#flagged.org angenda - how to avoid this message?

2014-08-13 Thread Nick Dokos
Shavkat Rustamov shavkat.rusta...@gmail.com writes:

 When calling org-mobile-push, org gives this message Non-existing agenda 
 file .#flagged.org.

 .# are lock files (create-lockfiles variable), which get created in the org 
 directory. I would prefer to have them.

Maybe org-mobile-files-exclude-regexp can help. Something
like

  (setq org-mobile-files-exclude-regexp \\.\\#.*)

I don't use MobileOrg, so this is completely untested, and even if it
works, the regexp can probably be improved.

--
Nick






Re: [O] org-mobile-push: Non-existent .#flagged.org angenda - how to avoid this message?

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

 Shavkat Rustamov shavkat.rusta...@gmail.com writes:

 When calling org-mobile-push, org gives this message Non-existing agenda 
 file .#flagged.org.

 .# are lock files (create-lockfiles variable), which get created in the org 
 directory. I would prefer to have them.

 Maybe org-mobile-files-exclude-regexp can help. Something
 like

   (setq org-mobile-files-exclude-regexp \\.\\#.*)

Sorry, unnecessary escapes:

(setq org-mobile-files-exclude-regexp \\.#.*)

is simpler and should match the same things.

--
Nick






Re: [O] MobileOrg documentation?

2014-08-13 Thread Xebar Saram
Thx Jason

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?

anyway great tip

thx :)

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

Z


On Wed, Aug 13, 2014 at 3:26 PM, Jason F. McBrayer jmcb...@carcosa.net
wrote:

 On 2014-08-08 10:38, jorge.alfaro-muri...@yale.edu wrote:

  David Masterson dsmaster...@gmail.com writes:

 Not looking for complete org functionality in my phone -- just a
 reasonable ability to edit org outlines while I'm on the road.


  If you have access by ssh to a computer that is always on, then I

 recommend leaving an emacsclient open and using JuiceSSH of
 ConnectBot for editing your org files on the go.


 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
 solution for running Emacs along with git, ssh, hg, and anything else
 you might need for your org-mode workflow, and it doesn't even require
 a rooted device (I prefer using Lil'Debi for running Emacs, but it
 requires a rooted device and a bit more commitment).

 With a real Emacs on my device (recent screenshot [here][1]), I can
 just keep my hg-based syncing workflow that I'm used to from multiple
 desktops, rather than adding a new and more complex mobile syncing
 workflow. I'm not disparaging the MobileOrg-Android app, it looks
 great, and works great given the MobileOrg protocol it has to work
 with, but it's just not what I want to work with.

 [1]: http://www.carcosa.net/jason/blog/computing/emacs/
 messageease-2014-08-02.html
 --
 +---+
 | Jason F. McBrayer jmcb...@carcosa.net |
 | If someone conquers a thousand times a thousand others in |
 | battle, and someone else conquers himself, the latter one |
 | is the greatest of all conquerors. --- The Dhammapada |





Re: [O] Manipulating Dates Automatically in a Headline

2014-08-13 Thread Samuel Wales
this might be entirely wrong as an answer, but org has a command to
clone a task with a date increment.  i wonder if that would help.

On 8/13/14, Matt Price mopto...@gmail.com wrote:
 * Week one (2014-09-09)
 * Week two (EVALUATE A LISP EXPRESSION THAT INSERTS A TIMESTAMP ONE
 WEEK LATER THAN LAST TIMESTAMP FOUND IN BUFFER)

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  And
ANYBODY can get it.

Denmark: free Karina Hansen NOW.



Re: [O] Refile: refile to any open file.

2014-08-13 Thread Isaac
suvayu ali fatkasuvayu+linux at gmail.com writes:

 
 On Sun, Feb 26, 2012 at 02:16,  lngndvs at gmail.com wrote:
  I have been using the function oog in org-occur-goto.el to search any
  open file, so somewhere in that file is a way to find  open files.  What
  remains is to use some condition from this file to declare
  org-refile-targets.   I understand that a function can be used as a
  value of this variable.
 
 Look at the function oog-check-input. I believe it checks buffer-list
 and the major-mode for each buffer to determine whether to include it
 in the search.
 
 GL
 

Dear All,

Similar to this previous post, I am trying to file orgmode items to 
files/buffers currently opened. Being elisp rookie, I tried and came up with 
the following:

(defun opened-buffer-files ()
  Return the list of files currently opened in emacs
  (delq nil (mapcar (function buffer-file-name) (buffer-list)))
  )

(setq org-refile-targets (quote ((opened-buffer-files :maxlevel . 5)
 (org-agenda-files :maxlevel . 5

Not suprisingly, it's not working ... I still can not get to the opened 
file/orgmode files, as target for filing. Can you help point out where I did 
it all wrong?

Simiarly, I would like to add all opened buffers to agenda files list. I 
would really appreciate your inputs.


Thanks, 
Isaac





Re: [O] How to represent this in Org-mode

2014-08-13 Thread Marcin Borkowski
Dnia 2014-08-13, o godz. 14:46:41
Pascal Fleury fle...@google.com napisał(a):

 Maybe this will help:
 http://orgmode.org/worg/org-contrib/org-depend.html
 
 --paf

Thanks, but not really.  My problem is not about /TODO/ dependencies -
I may as well actually /write/ the project in a totally different
order.  What I want to specify is the order of /studying/ that stuff,
which finally might be turned into links to the prerequisites in each
module or something like that.

Thanks anyway,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University



Re: [O] How to represent this in Org-mode

2014-08-13 Thread Marcin Borkowski
Dnia 2014-08-13, o godz. 16:53:15
Thorsten Jolitz tjol...@gmail.com napisał(a):

 Sounds for me like a typical taskjuggler project, and fortunately
 there is ob-taskjuggler.el. See

Do I get it correctly that taskjuggler is all about /TODO/
dependencies?  If yes, it seems to be a solution to a different
problem...

Thanks anyway

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University



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

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

 I have identified a minor bug. When a source code block has the mode
 cpp, we cannot expand the code or more precisely the code is not
 expanded in the correct way because the following function is missing  

 (defun org-babel-expand-body:cpp (body params)
   Execute BODY according to PARAMS.This function calls 
 `org-babel-expand-body:C++'.
   (org-babel-expand-body:C++ body params))
 Thanks for reporting this ! You may consider submitting a patch for this
 bug. The comment Execute BODY ... should be changed to Expand BODY 


Ok I will change the comment

 Best
 Ernesto
 You are very welcome
 Thierry

Thank you Thierry for your answer and all the details. I really want to be a 
contributor
and help ob-C to improve (as well as can do a modest lisper).

I tried to find a way to master Cx11 and babel is helping me a lot.
I think babel can really accelerate learning and dissimation of C++.

In this perspective, I have another very simple idea that I want to share
with you. I find C++ too noisy. In the following piece of code
I really find the presence of the main call and the return statement really 
annoying and useless.

#+begin_src C++ :includes '(iostream cassert) :results silent
template typename T1, typename T2
auto compose(T1 t1, T2 t2) - decltype(t1 + t2) { return t1+t2; }

int main() {
 auto d=compose(std::string(ola),std::string(ciao)); //d's type is 
std::string
 auto i=compose(4,2);
 assert(d== std::string(olaciao)  i==6);
return 0
}
#+end_src

We can remove it by letting ob-C do the work by modifying the function
org-babel-C-ensure-main-wrap. Now the code looks (according to me) easier to 
read

#+begin_src C++ :includes '(iostream cassert) :results silent
template typename T1, typename T2
auto compose(T1 t1, T2 t2) - decltype(t1 + t2) { return t1+t2; }

template 
int compose(int t1,int t2) { return t1+t2; }

main
auto d=compose(std::string(ola),std::string(ciao)); //d's type is 
std::string
auto i=compose(4,2);
assert(d== std::string(olaciao)  i==6);
#+end_src

What do you think ?

Best
Ernesto





Re: [O] Refile: refile to any open file.

2014-08-13 Thread Kyle Meyer
Isaac isaac...@a1make.com wrote:
[...]
 Similar to this previous post, I am trying to file orgmode items to 
 files/buffers currently opened. 

Some parts of my configuration [1,2] may be close to what you want (or
at least give you something to start with). More recently, I've been
using a slightly different approach [3] inspired by `dired-dwim-target'.

[1] http://kyleam.com/posts/dynamic-org-refile-targets/
[2] 
https://github.com/kyleam/emacs.d/blob/8ccfbdac75d09cf068348c138fe82787e0e8b809/lisp/init-org.el#L280-313
[3] 
https://github.com/kyleam/emacs.d/blob/8ccfbdac75d09cf068348c138fe82787e0e8b809/lisp/init-org.el#L256-278



Re: [O] Refile: refile to any open file.

2014-08-13 Thread Jorge A. Alfaro-Murillo
Isaac writes: 

Similar to this previous post, I am trying to file orgmode items 
to  files/buffers currently opened. Being elisp rookie, I tried 
and came up with  the following: 

(defun opened-buffer-files () 
  Return the list of files currently opened in emacs (delq nil 
  (mapcar (function buffer-file-name) (buffer-list))) ) 


Perhaps you should return instead only the org mode files that are 
opened, something like this:


#+BEGIN_SRC emacs-lisp 
 (delq nil  
   (mapcar (lambda (x)  
 (if (and (buffer-file-name x)  
  (string-match \\.org$ 
  (buffer-file-name x)))  
 (buffer-file-name x)))  
   (buffer-list))) 
#+END_SRC


Best,

--
Jorge.




[O] how to org-refile-region?

2014-08-13 Thread Peter Salazar
Is there a way to automatically refile highlighted text under an
org-heading? i.e. to cut the highlighted text and automatically paste it
under the heading of my choice?

You could call it org-refile-region. Similar to org-refile, but to refile
not the entire subtree, but only the highlighted region under any heading
in the current document. Ideally this would offer me only headings in the
current document.

Here's a start:

http://stackoverflow.com/questions/25256304/in-emacs-org-mode-how-to-refile-highlighted-text-under-an-org-heading

Thanks!


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

2014-08-13 Thread Carlos Sosa
Jacek Generowicz jacek.generow...@cern.ch writes:

 Alexis flexibe...@gmail.com writes:

 One could, for example, create an entirely new project on GitHub
 called 'MobileOrgRebooted', and create entirely new apps in the
 respective stores using that name.

 That strikes me as the sensible thing to do.

 (As it is, there's not a uniformly named app in any case - we have
 'MobileOrg' for iOS, and 'MobileOrg-Android' for, well, Android.)

 There's also MobileOrgNG for Android.

There's a difference feature wise between MobileOrgNG[1] and
MobileOrg-Android[2], which I believe should be merged into one project.
For instance, I don't know of MobileOrgNG having a SSH synchronizer
which many people make use of, including me, but with that said,
MobileOrgNG has a far greater and friendlier interface.

I would suggest merging both projects for the sake of a better user
experience.

[1] - https://github.com/kvj/mobileorg-android
[2] - https://github.com/matburt/mobileorg-android

-- Carlos Sosa




Re: [O] Manipulating Dates Automatically in a Headline

2014-08-13 Thread John Kitchin
Matt Price mopto...@gmail.com writes:

I have not done that exactly, but here is some code that does manipulate
timestamps:
http://kitchingroup.cheme.cmu.edu/blog/2014/02/05/Add-time-to-a-deadline/

It is not quite what you want, but it might be a good start.


 It's been a couple of days so I'll try restate this question more
 clearly.  I'm hoping it's possible to do something like this:

 * Week one (2014-09-09)
 * Week two (EVALUATE A LISP EXPRESSION THAT INSERTS A TIMESTAMP ONE
 WEEK LATER THAN LAST TIMESTAMP FOUND IN BUFFER)

 I don't have much experience with babel so I'm not sure how to do
 this, but if it's possible I would love some hints.  Thanks as always,

 Matt


 On Mon, Aug 11, 2014 at 2:20 PM, Matt Price mopto...@gmail.com wrote:
 Hi Everyone,

 I've asked this before, but that was a year or two ago and am hoping
 someone has an idea now, perhaps involving babel or something.

 every year at this time I rewrite a set of syllabi. I do a lot of
 moving htings around while i'm oding it, and at the end I have to
 enter a whole bunch of dates somewhat laboriously.  I have headlines
 that look about like either like this:

 -
 * Outline
 ** Week 1: Topic Title (2013-09-10)
 Longish Description
 *** Reading
 - Article 1
 - Article 2
 *** Lab
 *** Notes
 ---

 or like this:
 --
 * Outline
 ** Week 1: 2013-09-09
 *** Seminar: Technology and Society  (2013-09-10)
 *** Reading
 - Article 1
 - Article 2
 *** Plenary: Global Citizenship (2013-09-13)
 

 I would like to replace the timestamps with code that dynamically
 generates timestamps based on the value either in the last sibling
 headline, or the parent headline.  It seems to me this ought to be
 possible, but I'm not at all sure how to do it.  i would really
 appreciate any guidance.  thanks!

 Matt



-- 
---
John Kitchin
Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu



Re: [O] How to represent this in Org-mode

2014-08-13 Thread John Kitchin
Marcin Borkowski mb...@wmi.amu.edu.pl writes:

Are you hoping to have some properties on headlines that define the
dependencies, and then export the org-file to some format that has these
dependencies as links to those sections?

I am teaching a course this fall and I am actually using org-mode as the
format of the notes (students will be reading them in Emacs). So, I will
just be putting links to org-files directly into them, and in places
where I want to remind them of previous material. I wrote up each
lecture in a separate file, and provide the order in a separate table
of contents file.

If you plan to export the org files, I would use org-id links in a
section at the top of each file that indicate which previous material
should be mastered. These should export as links in html or latex.

 Dnia 2014-08-13, o godz. 14:46:41
 Pascal Fleury fle...@google.com napisał(a):

 Maybe this will help:
 http://orgmode.org/worg/org-contrib/org-depend.html
 
 --paf

 Thanks, but not really.  My problem is not about /TODO/ dependencies -
 I may as well actually /write/ the project in a totally different
 order.  What I want to specify is the order of /studying/ that stuff,
 which finally might be turned into links to the prerequisites in each
 module or something like that.

 Thanks anyway,

-- 
---
John Kitchin
Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu



Re: [O] how to org-refile-region?

2014-08-13 Thread Peter Salazar
Again, ideally this functionality would be independent of the org-agenda
files used by org-refile, so as to avoid displaying irrelevant headings as
possible targets.

Currently this is doable by doing:
1. select text
2. cut
3. other-window
4. navigate to desired target heading
5. paste text
6. other window

The proposed new function would make this much more efficient:
1. select text
2. org-refile-region
3. choose target

The most useful form of this would allow you to choose a target from among
any currently open documents. My use case involves selecting text from one
buffer and refiling it from among org-headings in another buffer, i.e.
moving text from a source document displayed in one window and refiling to
targets within the hierarchy of a target document displayed in another
window, like so:

http://i.imgur.com/E729fCQ.png




Does anyone have ideas for how to implement?



On Wed, Aug 13, 2014 at 5:28 PM, Peter Salazar cycleofs...@gmail.com
wrote:

 Is there a way to automatically refile highlighted text under an
 org-heading? i.e. to cut the highlighted text and automatically paste it
 under the heading of my choice?

 You could call it org-refile-region. Similar to org-refile, but to refile
 not the entire subtree, but only the highlighted region under any heading
 in the current document. Ideally this would offer me only headings in the
 current document.

 Here's a start:


 http://stackoverflow.com/questions/25256304/in-emacs-org-mode-how-to-refile-highlighted-text-under-an-org-heading

 Thanks!





[O] exporting org to org with link transforms?

2014-08-13 Thread John Kitchin
I was playing around with an idea for inserting bibliographies into an
exported org file. I thought I could specify a format for the 'org
backend that would convert the links like this:

cite:some-key  -  [[#some-key]]

bibliography:test.bib -

* Bibliography
** authors - title
 :PROPERTIES:
 :CUSTOM_ID: some-key
 :END:

so, for example the formatting part of the bibliography link looks like:

(lambda (keyword desc format)
 (cond
  ((eq format 'org) (org-ref-get-org-bibliography))
  ((eq format 'ascii) (org-ref-get-ascii-bibliography))
  ((eq format 'html) (org-ref-get-html-bibliography))
  ((eq format 'latex)
 ;; write out the latex bibliography command
   (format \\bibliography{%s}
 (replace-regexp-in-string  \\.bib  keyword)


where (org-ref-get-org-bibliography) returns a string that I want.  
  
What I get right now is no change in the links at all in an org-export
buffer for org or ascii. The html and latex work fine.

Should the org and ascii export work like I expect? Thanks,

-- 
---
John Kitchin
http://kitchingroup.cheme.cmu.edu




[O] org-babel with Matlab on windows?

2014-08-13 Thread John Kitchin
Is anyone using Matlab with org-babel on Windows successfully? If so,
how did you do it?


-- 
---
John Kitchin
http://kitchingroup.cheme.cmu.edu




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

2014-08-13 Thread Alexis

Carlos Sosa writes:

 There's a difference feature wise between MobileOrgNG[1] and
 MobileOrg-Android[2], which I believe should be merged into one project.
 For instance, I don't know of MobileOrgNG having a SSH synchronizer
 which many people make use of, including me, but with that said,
 MobileOrgNG has a far greater and friendlier interface.

 I would suggest merging both projects for the sake of a better user
 experience.

Well, again, the fundamental problem here is that none of these three
MobileOrg* projects are being actively worked on / maintained. The last
commit to MobileOrgNG was on 13 February last year (and is 149 commits
ahead, 863 commits behind MobileOrg-Android). And despite
not-insignificant discussion here on the Org mailing list about the
MobileOrg* projects over the last few months, none of the lead devs for
any of these projects has chimed in, which suggests work on the Org
ecosystem is a very low priority for them right now. So it seems to me
that the likelihood of getting the two projects to work on a merge
process is similarly very low.

It's certainly true that someone could create a third Android-specific
version of MobileOrg that combines what they feel to be the best of both
Android apps. However, assuming that new app took off, we would still
have two different implementations on two different platforms where
fixes and improvements to code and documentation on one platform
wouldn't be immediately useful and/or appropriate for the other
platform. (Not to mention there'd still not be even theoretical support
for platforms other than iOS and Android.)

From a purely selfish point of view, as an Android user, a new Android
app combining MobileOrg-Android and MobileOrgNG would probably meet my
needs in the short term. In the medium to long term, however, i'm not
yet convinced that it would make the Org-on-mobile-devices situation
much more sustainably active than it is now.


Alexis.



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

2014-08-13 Thread Sean Escriva

Greetings Org users!

(Current MobileOrg iOS maintainer here)

Great to read some feedback. It's often hard to know who really cares if
MobileOrg even exists.

Jacek Generowicz jacek.generow...@cern.ch writes:

 Alexis flexibe...@gmail.com writes:

 i can't help but wonder if the 'MobileOrg' endeavour needs a reboot.

 It seems clear that it does.

 More specifically, it seems to me that rebuilding MobileOrg as a single
 project [...] might be a way forward, 

 This is vital!

I haven't talked with Matburt for some time now, so I don't want to
speak for him.

However from my perspective there's a huge value in having a single
codebase. Basically my preference is to do whatever will allow the most
contributors to help out.


 on top of Apache Cordova:

 https://cordova.apache.org/

 I'd just like to float Kivy as another possibility:

http://kivy.org

 What makes Kivy interesting to me in this context (apart from its
 cross-platform nature) is its excellent support of gestures, which gives
 me (the perhaps naive) hope that a little more than an utterly trivial
 feature set might be provided on the mobile form factor.

If Cordova or Kivy are a way to that I'm open to looking at them, but
don't have experience with either.

I am comfortable with python so Kivy appeals to me personally.

From the little experience I have with them, cross platform frameworks
do suffer from a loss of fidelity compared to native applications but as
mentioned that may be an acceptable trade off.

There's tons of options for possible paths here (even
https://wukix.com/mocl for fellow LISPers) but the key in my mind is to
support a community of contributors.


 Unfortunately, due to other existing commitments, i wouldn't be able
 to take point on such a reboot.

 The dreamer in me thinks this might be the itch-to-scratch that finally
 motivates me to getting to grips with Kivy; the realist in me is pretty
 certain that I fall into the same category as you.


Realistically this is the issue in most cases, plenty of well meaning
help but not a lot of time to do anything. Life gets in the way.

As of the iOS version specifically, I have held off updating due to a
few requests to maintain support for older devices.

My preference in the short term for iOS would be to update the code to
the latest sdk and add a few minor features if needed, but then
determine the best way forward to maintain a single common functional
base.

I am an owner on the github org: https://github.com/MobileOrg and it
would be excellent to make it the central org for any efforts. I'm happy
to help that happen however I can.

-- 
-sean



Re: [O] MobileOrg iOS status?? (Sean?)

2014-08-13 Thread Sean Escriva
David Masterson dsmaster...@gmail.com writes:

 It appears that MobileOrg hasn't really moved in over a year.  In fact,
 the Changelog for MobileOrg stops at 1.5.1 where I am using 1.6.1, so it
 seems that things really are not up-to-date.  Looking in GitHub (which
 I'm not an expert on), it appears that development has split along OS
 lines.  What is the status of MobileOrg in general and, in particular,
 MobileOrg?  (Sean??)

That would be me. :)

Time contraints have kept me from doing what I would like, but if there
are users I can devote some time to at least getting it into shape with
the latest sdk.

 -- 
 David Masterson
 Programmer At Large



-- 
-sean



Re: [O] MobileOrg

2014-08-13 Thread Sean Escriva
Xebar Saram zelt...@gmail.com writes:

 Shame

 ive been using it for the past few months (took me a loong time to setup as
 the documentation is really hard to follow). i really would love to see
 mobile org developed as having my orgmode data on the go is really crucial

 best

 Z


 On Wed, Aug 6, 2014 at 7:33 PM, Alexis flexibe...@gmail.com wrote:


 Subhan Michael Tindall writes:

  There’s also a few areas I’d like to do or see some enhancements on
  the mobile end, for example handling display or edit of properties is
  very limited

 *nod* i started to address this issue with this pull request:

 https://github.com/matburt/mobileorg-android/pull/434

 which got merged  But given the lack of commits and releases more
 generally, i've been reticent to work on this further.

I am the iOS maintainer. I haven't heard from Matburt for a bit so I
can't comment there.

He was very active for a while.



 Alexis.



-- 
-sean



Re: [O] MobileOrg documentation?

2014-08-13 Thread Sean Escriva
Christian Kruse c...@defunct.ch writes:

 Hi,

 Am 07.08.14 09:13, schrieb David Masterson:
 Anyone using MobileOrg?

 I use the iPhone version, via WebDAV. For exactly two things:
 capturing TODOs and having my todo list at hand when I need it. It
 works pretty well for these two tasks, gladly.

As the maintainer, this is how I use it generally. I'd love to support
other usage patterns though.


 Best regards,

 -- 
 Christian Kruse
 http://ck.kennt-wayne.de/



-- 
-sean



Re: [O] MobileOrg documentation?

2014-08-13 Thread Sean Escriva
David Masterson dsmaster...@gmail.com writes:

 John Hendy jw.he...@gmail.com writes:

 Did you look at the docs?
 - https://github.com/matburt/mobileorg-android/wiki/Documentation

 Unfortunately, this looks like Android documentation where I have an
 iPhone.

me too!


 Unfortunately, looks like his images are borked at the moment. It's
 been a while since I've used it, but you're saying there's not an
 intuitive way to add a new heading? Can you just do ** something (or
 similar)?

 Doesn't seem to work.  The ** Something gets treated as text for the
 previous heading.  I suspect that, although you type the ** Something
 at the left margin, it gets indented as text under a heading should be
 which messes up the heading interpretation.

 On Mon, Aug 4, 2014 at 11:26 PM, David Masterson dsmaster...@gmail.com 
 wrote:
 There is not much to the MobileOrg documentation.  For instance, how do
 you 'add' a new heading to an outline?  Any examples around on how to
 use MobileOrg?

 Anyone using MobileOrg?

I use it still, fairly regularly.

I had started work on a new doc site using middleman here:
https://github.com/MobileOrg/mobileorg.github.io

which will generate the site here: https://mobileorg.github.io/

However I think it may be better for contributors to use something
like this: https://github.com/cinsk/jekyll-org

Unfortunately development _is_ split across platforms so there are
functional differences between android and ios. I'd love to see it
unified though.

-- 
-sean



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

2014-08-13 Thread Ashton Kemerling
It's probably hard to assertain interest because

1) iOS projects have a high barrier to entry contribution wise.
2) A lot of people feel mobileorg doesn't fit their current needs, and
are using something else.

I definitely fall into both categories. I wouldn't be surprised if a few
people come back once things get going again.

-- 
Ashton Kemerling



Re: [O] Refile: refile to any open file.

2014-08-13 Thread Nick Dokos
jorge.alfaro-muri...@yale.edu (Jorge A. Alfaro-Murillo) writes:

 Isaac writes: 

 Similar to this previous post, I am trying to file orgmode items 
 to  files/buffers currently opened. Being elisp rookie, I tried 
 and came up with  the following: 
 
 (defun opened-buffer-files () 
   Return the list of files currently opened in emacs (delq nil 
   (mapcar (function buffer-file-name) (buffer-list))) ) 

 Perhaps you should return instead only the org mode files that are 
 opened, something like this:


Excellent idea: refiling to an arbitrary non-org-mode file will either
skip the file (if you are lucky, in which case you just pay a
performance penalty) or it will try to use it in which case you'll end
up with an error. There is no point in including arbitrary files into
the refile list.

 #+BEGIN_SRC emacs-lisp 
   (delq nil  
 (mapcar (lambda (x)  
   (if (and (buffer-file-name x)  
(string-match \\.org$ 
(buffer-file-name x)))  
   (buffer-file-name x)))  
 (buffer-list))) 
 #+END_SRC


It might be better to check the major mode of the buffer, rather than
its filename: it is not necessarily true that foo.org is an org-mode
file, or foo.txt is not. But in general, I think it would be better to
use a more targeted approach, rather than trying to use whatever happens
to be open at the time.

-- 
Nick




Re: [O] Refile: refile to any open file.

2014-08-13 Thread Kyle Meyer
Nick Dokos ndo...@gmail.com wrote:
 jorge.alfaro-muri...@yale.edu (Jorge A. Alfaro-Murillo) writes:
[...]
 Perhaps you should return instead only the org mode files that are
 opened, something like this:


 Excellent idea: refiling to an arbitrary non-org-mode file will either
 skip the file (if you are lucky, in which case you just pay a
 performance penalty) or it will try to use it in which case you'll end
 up with an error. There is no point in including arbitrary files into
 the refile list.
[...]
 It might be better to check the major mode of the buffer, rather than
 its filename: it is not necessarily true that foo.org is an org-mode
 file, or foo.txt is not.

There's a built-in Org function that does this.

#+begin_src elisp
  (org-buffer-list 'files)  
#+end_src




Re: [O] MobileOrg documentation?

2014-08-13 Thread Carlos Sosa
Sean Escriva sean.escr...@gmail.com writes:

 which will generate the site here: https://mobileorg.github.io/

 However I think it may be better for contributors to use something
 like this: https://github.com/cinsk/jekyll-org

There's a more up-to-date Jekyll plugin for org-mode that makes use of
org-ruby, and that's maintained by the same contributors. See:

https://github.com/eggcaker/jekyll-org

-- Carlos Sosa