[O] Paste subtree without expanding it / keep it collapsed after pasting

2019-01-14 Thread Marcelo de Moraes Serpa
Hi list,

I often copy an item and its whole subtree to move them around, I know I
can move them with the move commands, but sometimes it's faster to just
copy, paste and fix the leveling later.

I can copy or cut a collapsed subtree and it will copy everything below it
until it ends (and the next item at the same level starts), which is
intuitive and works great. However, when pasting it, it automatically
expands the tree and it makes it really hard to see the context so I can
fix the leveling, for example.

Is there a way to paste the subtree [and keep it] collapsed?

Thanks in advance!


Re: [O] Visualizing org files

2018-10-03 Thread Marcelo de Moraes Serpa
Oh wow Karl, lot's of 'hidden' gems there. Not related to this thread but I
specially liked `lazyblorg`, I actually had a very similar idea and was
about to develop something like that, you saved me a bunch of time :)

On Mon, Oct 1, 2018 at 3:57 PM Samuel Wales  wrote:

> market more :]
>
> or you could convert it to an emacs visualization in the agenda buffer :]
>
>


[O] Move (the children of) a subtree to another subtree programmatically

2018-09-14 Thread Marcelo de Moraes Serpa
Hi there,

I'm trying to figure out the best way to move the children of a subtree to
another one. The use-case is simple: I have another lisp function that
creates a new item in an orgfile for me everyday with the current date and
gives it focus. In the case below, it'd have created `<2018-01-01`> above
`<2017-12-31>`, that works already:

* <2018-01-01>
* <2017-12-31>
** TODO Foobar
** DONE Barfoo

As part of that, I'd also want to move all TODO items from the previous day
to the next day. I'm not sure how to do it though. I tried using
`org-map-entries` with an `if` to exclude the direct parent (the date item)
and then use `org-cut-subtree` and `org-paste-subtree` but for some reason
emacs hangs. I couldn't figure out how to use `org-refile` programmatically
though.

Considering I have access in elisp to both a `to` and `from` variables,
where `to` is `<2018-01-01>` and from is `<2017-12-31>` and that I want to
move all *non-DONE` items from `from` to `to`, how would I go about doing
that?

Thanks in adance!

- Marcelo.


[O] TaskWarrior <> OrgMode integration

2018-09-10 Thread Marcelo de Moraes Serpa
I've given TaskWarrior a try this weekend it's actually quite nice. The
advantage it has over org is that it's more suitable for a gtd(ish) system
out-of-the-box, you don't need to tinker with anything and the reports are
great.

Integrating TaskWarrior with orgmode might make sense. My idea is that in
addition to what it already does, TaskWarrior could be used as a capture
tool for org, meaning TW tasks could be stored in a an org file, using the
org format.

This way, if you don't want to tinker with org to make it more suitable for
GTD, you can just use TW for what it is good at, and org for what it's
better at (taking notes for the tasks, etc) and you can even mix-and-match,
sometimes using org or sometimes TW from the CLI, both sharing the same org
text file.

Do you think such an integration would make sense?

- Marcelo.


[O] Visualizing org files

2018-09-07 Thread Marcelo de Moraes Serpa
Hey all,

I'm a long org-mode user and I absolutely love it. During the years I've
been using org, nothing else came close to being so simple and so powerful
as org - and I a lot tried different productivity apps.

One thing that would nicely complement org, in my opinion, would be a
visualization mode for its buffers. Right now I sometimes use Freeplane*[0]
to draft/brainstorm complex ideas or problems/solutions and then attach it
to an org item and write more specific action items there.

It'd be nice to have everything in a Freemind map, if needed. What I'm
proposing is a way to visualize org buffers in Freeplane and vice-versa.

It could also be a script that uses something like graphviz*[1] to create a
graph of one or more org buffers, like Sasha Chua did here:
http://pages.sachachua.com/evil-plans/, although I prefer using Freeplane
since it allows me to edit the org file as a mind-map, visually, if I want.

I think a script to automatically transform the Freeplane XML to org and
vice-versa wouldn't be too hard to come up with. The graphviz solution is
also interesting and Sasha already provides the snippets.

Are any other people out there that are already doing something similar to
what I described above? Maybe we could share some ideas on how to tackle
this feature or if it'd be worth adding it into the org core ;)

Cheers!

- Marcelo

*[0] https://www.freeplane.org/wiki/index.php/Home
*[1] https://www.graphviz.org/


[O] Encrypt attachments

2017-06-15 Thread Marcelo de Moraes Serpa
Hi there,

I currently use org-encrypt to encrypt entries and epa to encrypt entire
org files successfully. I was wondering though, if org supports any
out-of-the-box encryption feature for attachments.

I've been using an encrypted file volume on OSX for attachments. The nice
thing about the enc. volume is that it's a volume in a file, so it's easy
to check it into github and it doesn't expose the file tree either
(Actually, I think this could be extended to include the whole org
repository). Also, once you unlock it, it is mounted and stays like this
until you reboot the OS (you can also auto-mount it) so it's transparent.

I recently got a Linux box and I'm searching for a cross-platform solution.
Is there anything like this for Linux? What do you use to encript your
attachments and or org files?

Thanks in advance,

- Marcelo.


Re: [O] Org to mindmap and back

2015-07-16 Thread Marcelo de Moraes Serpa
No, it did not work for me. Maybe it's time to find a new maintainer for
it. I'd do it if I had the time. I think there's a lot of potential in this
app!

On Fri, May 15, 2015 at 6:42 AM, Ken Mankoff mank...@gmail.com wrote:


 On 2015-05-14 at 12:12, Marcelo de Moraes Serpa celose...@gmail.com
 wrote:
  After some research, I could finally find the repository on github for
 this
  project, so, for anyone who might also be interested, here it is:
 
  https://github.com/dogriffiths/hipster

 Looks great, but when I copypaste I see Markdown not Org. Does Org work
 for you?

   -k.



Re: [O] Org to mindmap and back

2015-07-16 Thread Marcelo de Moraes Serpa
Hmm, It looks like David is still maintaining it in the new github repo.
The last commit, that, at the time of this posting, was made 29 days ago.
So maybe if we create an issue at github he'll take care of that (or fork
and make a PR).

On Thu, Jul 16, 2015 at 6:55 PM, Marcelo de Moraes Serpa 
celose...@gmail.com wrote:

 No, it did not work for me. Maybe it's time to find a new maintainer for
 it. I'd do it if I had the time. I think there's a lot of potential in this
 app!

 On Fri, May 15, 2015 at 6:42 AM, Ken Mankoff mank...@gmail.com wrote:


 On 2015-05-14 at 12:12, Marcelo de Moraes Serpa celose...@gmail.com
 wrote:
  After some research, I could finally find the repository on github for
 this
  project, so, for anyone who might also be interested, here it is:
 
  https://github.com/dogriffiths/hipster

 Looks great, but when I copypaste I see Markdown not Org. Does Org work
 for you?

   -k.





Re: [O] org-babel-load-file fails with (wrong-type-argument stringp nil)

2015-06-19 Thread Marcelo de Moraes Serpa
*bump* does anyone have any idea? I'd like to save my current org setup,
but looks like I'll need to do a clean install. Thanks!

On Mon, Jun 15, 2015 at 12:43 PM, Marcelo de Moraes Serpa 
celose...@gmail.com wrote:

 Hi list,

 I'm using Org-mode version 8.2.10 (8.2.10-dist @
 /Users/fullofcaffeine/.emacs.d/vendor/org-mode/lisp/) -- which as you can
 see was installed in a custom location, with emacs GNU Emacs 24.3.1
 (x86_64-apple-darwin11.4.2, Carbon Version 1.6.0 AppKit 1138.51) of
 2014-04-03 on Yukikaze.local.

 After updating to org 8.2.10, I started getting some cryptic (for me)
 errors with org-babel. My main conf file is an org file which gets
 processed by babel to .el. It used to work fine, but now I get this
 (stacktrace follows):

 `
 Debugger entered--Lisp error: (wrong-type-argument stringp nil)
   expand-file-name(nil)
   load-file(nil)
   org-babel-load-file(/Users/fullofcaffeine/.emacs.d/fullofcaffeine.org)
   mapc(org-babel-load-file (/Users/fullofcaffeine/.emacs.d/
 fullofcaffeine.org))
   eval-buffer(#buffer  *load* nil
 /Users/fullofcaffeine/.emacs.d/init.el nil t)  ; Reading at buffer
 position 1458
   load-with-code-conversion(/Users/fullofcaffeine/.emacs.d/init.el
 /Users/fullofcaffeine/.emacs.d/init.el t t)
   load(/Users/fullofcaffeine/.emacs.d/init t t)
   #[nil ^H\205\276^@   \306=\203^Q^@\307^H\310Q\202A^@
 \311=\2033^@\312\307\313\314#\203#^@\315\202A^@\312\307\313\316#\203/^@\317\202A^@\315\202A^@
   \320=\203=^@\321\202A^@\307^H\322Q^Z\323^S\324\n\$
   command-line()
   normal-top-level()
 `

 Here's my init.el file: http://pastie.org/private/1eajm9mkmqfjbpr0z3ska

 Does anyone know what is the issue?

 Thanks,

 -- Marcelo.



[O] org-babel-load-file fails with (wrong-type-argument stringp nil)

2015-06-15 Thread Marcelo de Moraes Serpa
Hi list,

I'm using Org-mode version 8.2.10 (8.2.10-dist @
/Users/fullofcaffeine/.emacs.d/vendor/org-mode/lisp/) -- which as you can
see was installed in a custom location, with emacs GNU Emacs 24.3.1
(x86_64-apple-darwin11.4.2, Carbon Version 1.6.0 AppKit 1138.51) of
2014-04-03 on Yukikaze.local.

After updating to org 8.2.10, I started getting some cryptic (for me)
errors with org-babel. My main conf file is an org file which gets
processed by babel to .el. It used to work fine, but now I get this
(stacktrace follows):

`
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  expand-file-name(nil)
  load-file(nil)
  org-babel-load-file(/Users/fullofcaffeine/.emacs.d/fullofcaffeine.org)
  mapc(org-babel-load-file (/Users/fullofcaffeine/.emacs.d/
fullofcaffeine.org))
  eval-buffer(#buffer  *load* nil
/Users/fullofcaffeine/.emacs.d/init.el nil t)  ; Reading at buffer
position 1458
  load-with-code-conversion(/Users/fullofcaffeine/.emacs.d/init.el
/Users/fullofcaffeine/.emacs.d/init.el t t)
  load(/Users/fullofcaffeine/.emacs.d/init t t)
  #[nil ^H\205\276^@   \306=\203^Q^@\307^H\310Q\202A^@
\311=\2033^@\312\307\313\314#\203#^@\315\202A^@\312\307\313\316#\203/^@\317\202A^@\315\202A^@
  \320=\203=^@\321\202A^@\307^H\322Q^Z\323^S\324\n\$
  command-line()
  normal-top-level()
`

Here's my init.el file: http://pastie.org/private/1eajm9mkmqfjbpr0z3ska

Does anyone know what is the issue?

Thanks,

-- Marcelo.


Re: [O] Org to mindmap and back

2015-05-14 Thread Marcelo de Moraes Serpa
After some research, I could finally find the repository on github for this
project, so, for anyone who might also be interested, here it is:

https://github.com/dogriffiths/hipster

The email shown in the org buffer in the video did not exist, but searching
for the name of the app (hiPster mindmapping), surprinsigly brought back
the github repo.

Thank you David for making it open source!

On Wed, Mar 18, 2015 at 3:02 PM, Marcelo de Moraes Serpa 
celose...@gmail.com wrote:

 Hi Nick,

 Good catch, thanks. I'll try contacting him directly and will share my
 findings here.

 -- Marcelo

 On Wed, Mar 18, 2015 at 10:05 AM, Nick Dokos ndo...@gmail.com wrote:

 Marcelo de Moraes Serpa celose...@gmail.com writes:

  Hi Dave,
 
  Yes, I'm aware of the freemind exporter. I'm not very fond of freemind
 though, I find it clunky to use.
 
  I really liked the minimalist style of the mind-mapping application
 shown in the video (also the animation effects are cool, too).
  Would be great if the author could chime in and perhaps share the code.
 Heck, I'd be willing to buy it if the integration with org
  was good enough (both-ways auto synchronization).

 If you examine the video closely, it looks like it's a Mac application,
 the author is David Griffiths and the application *might* be iMapMinder
 (also available on Windows, but not on Linux - non-free both in the
 freedom and beer sense). All of this is pure guesswork on my part
 and might very well be completely wrong.

 If David Griffiths is indeed the author, I don't remember seeing him on
 the ML.  You'll have to find another way to contact him. The org file
 shows an email address of

   dgriffiths AT fas.harvard.edu

 but that might not be valid any longer (the video was posted in 2011).

 Nick

 
  On Tue, Mar 17, 2015 at 3:59 PM, J. David Boyd dbo...@mmm.com wrote:
 
  Marcelo de Moraes Serpa celose...@gmail.com writes:
 
   Hi,
  
   While searching for mind mapping tools that already had some
   integration with orgmode, I found this video:
   https://www.youtube.com/watch?v=93cqGFu3B-g, which shows a
 simple (but
   seemingly powerful) mindmapping tool that integrates well with
 org.
  
   Unfortunately the link to the code / app is nowhere to be found
 in the
   video description and the video is pretty old. It'd be
 unfortunate to
   not share such an interesting project. I'm very interested in
   using/testing/extending it. I'm wondering if the author still
 lurks
   around this mailing list? *ping*
  
   Either way, it's a great idea and someone else (even myself)
 could get
   some inspiration out off it and create something similar (and
 share!) -
   I've been wanting a way to visualize my org files in the form of a
   mindmap and keep both representations synced so I could just
 switch
   when I wanted, and this seems to be the gist of it.
  
   Cheers,
  
   -- Marcelo
 
  There is a connection to Freemind in the source tree.  Not near my
 computer
  right now.  The name is something like ox-freemind.el...
 
  Dave






Re: [O] Org to mindmap and back

2015-03-18 Thread Marcelo de Moraes Serpa
Hi Nick,

Good catch, thanks. I'll try contacting him directly and will share my
findings here.

-- Marcelo

On Wed, Mar 18, 2015 at 10:05 AM, Nick Dokos ndo...@gmail.com wrote:

 Marcelo de Moraes Serpa celose...@gmail.com writes:

  Hi Dave,
 
  Yes, I'm aware of the freemind exporter. I'm not very fond of freemind
 though, I find it clunky to use.
 
  I really liked the minimalist style of the mind-mapping application
 shown in the video (also the animation effects are cool, too).
  Would be great if the author could chime in and perhaps share the code.
 Heck, I'd be willing to buy it if the integration with org
  was good enough (both-ways auto synchronization).

 If you examine the video closely, it looks like it's a Mac application,
 the author is David Griffiths and the application *might* be iMapMinder
 (also available on Windows, but not on Linux - non-free both in the
 freedom and beer sense). All of this is pure guesswork on my part
 and might very well be completely wrong.

 If David Griffiths is indeed the author, I don't remember seeing him on
 the ML.  You'll have to find another way to contact him. The org file
 shows an email address of

   dgriffiths AT fas.harvard.edu

 but that might not be valid any longer (the video was posted in 2011).

 Nick

 
  On Tue, Mar 17, 2015 at 3:59 PM, J. David Boyd dbo...@mmm.com wrote:
 
  Marcelo de Moraes Serpa celose...@gmail.com writes:
 
   Hi,
  
   While searching for mind mapping tools that already had some
   integration with orgmode, I found this video:
   https://www.youtube.com/watch?v=93cqGFu3B-g, which shows a simple
 (but
   seemingly powerful) mindmapping tool that integrates well with org.
  
   Unfortunately the link to the code / app is nowhere to be found in
 the
   video description and the video is pretty old. It'd be unfortunate
 to
   not share such an interesting project. I'm very interested in
   using/testing/extending it. I'm wondering if the author still lurks
   around this mailing list? *ping*
  
   Either way, it's a great idea and someone else (even myself) could
 get
   some inspiration out off it and create something similar (and
 share!) -
   I've been wanting a way to visualize my org files in the form of a
   mindmap and keep both representations synced so I could just switch
   when I wanted, and this seems to be the gist of it.
  
   Cheers,
  
   -- Marcelo
 
  There is a connection to Freemind in the source tree.  Not near my
 computer
  right now.  The name is something like ox-freemind.el...
 
  Dave





Re: [O] Org to mindmap and back

2015-03-17 Thread Marcelo de Moraes Serpa
Hi Dave,

Yes, I'm aware of the freemind exporter. I'm not very fond of freemind
though, I find it clunky to use.

I really liked the minimalist style of the mind-mapping application shown
in the video (also the animation effects are cool, too). Would be great if
the author could chime in and perhaps share the code. Heck, I'd be willing
to buy it if the integration with org was good enough (both-ways auto
synchronization).

On Tue, Mar 17, 2015 at 3:59 PM, J. David Boyd dbo...@mmm.com wrote:

 Marcelo de Moraes Serpa celose...@gmail.com writes:

  Hi,
 
  While searching for mind mapping tools that already had some
  integration with orgmode, I found this video:
  https://www.youtube.com/watch?v=93cqGFu3B-g, which shows a simple (but
  seemingly powerful) mindmapping tool that integrates well with org.
 
  Unfortunately the link to the code / app is nowhere to be found in the
  video description and the video is pretty old. It'd be unfortunate to
  not share such an interesting project. I'm very interested in
  using/testing/extending it. I'm wondering if the author still lurks
  around this mailing list? *ping*
 
  Either way, it's a great idea and someone else (even myself) could get
  some inspiration out off it and create something similar (and share!) -
  I've been wanting a way to visualize my org files in the form of a
  mindmap and keep both representations synced so I could just switch
  when I wanted, and this seems to be the gist of it.
 
  Cheers,
 
  -- Marcelo

 There is a connection to Freemind in the source tree.  Not near my computer
 right now.  The name is something like ox-freemind.el...

 Dave





[O] Org to mindmap and back

2015-03-17 Thread Marcelo de Moraes Serpa
Hi,

While searching for mind mapping tools that already had some integration
with orgmode, I found this video:
https://www.youtube.com/watch?v=93cqGFu3B-g, which shows a simple (but
seemingly powerful) mindmapping tool that integrates well with org.

Unfortunately the link to the code / app is nowhere to be found in the
video description and the video is pretty old. It'd be unfortunate to not
share such an interesting project. I'm very interested in
using/testing/extending it. I'm wondering if the author still lurks around
this mailing list? *ping*

Either way, it's a great idea and someone else (even myself) could get some
inspiration out off it and create something similar (and share!) - I've
been wanting a way to visualize my org files in the form of a mindmap and
keep both representations synced so I could just switch when I wanted, and
this seems to be the gist of it.

Cheers,

-- Marcelo


Re: [O] Export to google docs spreadsheet

2015-03-17 Thread Marcelo de Moraes Serpa
Thanks Eric! That will do it.

On Tue, Mar 17, 2015 at 2:53 AM, Eric S Fraga e.fr...@ucl.ac.uk wrote:

 On Monday, 16 Mar 2015 at 22:10, Marcelo de Moraes Serpa wrote:
  Hi all,
 
  Is there a way to export an orgmode spreadsheet to a format that can be
  imported by google docs?

 M-x org-table-export RET

 will export to TSV or CSV which you can read into any spreadsheet
 program although I have no idea what google docs may expect or allow.

 --
 : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org
 release_8.3beta-895-g375c83



[O] Export to google docs spreadsheet

2015-03-16 Thread Marcelo de Moraes Serpa
Hi all,

Is there a way to export an orgmode spreadsheet to a format that can be
imported by google docs?


Re: [O] Updating to 8.2.5 broke org-mode

2014-08-17 Thread Marcelo de Moraes Serpa
@Achim Thanks - replacing (require 'org-install) with (require
'org-loaddefs) solved the issue!

Cheers,

--
Marcelo


On Sun, Aug 17, 2014 at 12:52 AM, Achim Gratz strom...@nexgo.de wrote:

 Marcelo de Moraes Serpa writes:
  I've updated org to 8.2.5 (by checking out the release_8.2.5 tag) from
  7.9.4. After updating remote and checking out the mentioned branch, I
  ran make and then make install.

 The latest release version is 8.2.7c and if you install from Git anyway
 you should just checkout maint.

  However, when starting Emacs, I get the following error:

 Did you remember to remove

 (require 'org-install)

 and make that

 (require 'org-loaddefs)

 in your init.el instead?  Did you change load-path before trying to load
 anything from Org?


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

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





[O] Auto-encrypting/decrypting the whole org file with EasyPG

2014-08-17 Thread Marcelo de Moraes Serpa
Hi everyone,

I currently use org-crypt successfully to encrypt the contents of an
org-mode entries. For some files though, it's more practical to just
encrypt the whole file, and I followed the instructions here:
http://orgmode.org/worg/org-tutorials/encrypting-files.html, but could not
get it to work.

I've placed the org meta-data in a comment as the first line of the org
file, like this

# -*- mode: org -*- -*- epa-file-encrypt-to: (my@gpgkeyemail.address) -*-

I'm loading org-epa and enabling like this:

(require 'epa-file)
(epa-file-enable)

And I made sure it was loaded by evaluating epa-file-enable. However, when
I save the file, it doesn't encrypt it. I've cat'ed the file after saving
it and it still shows the original unencrypted content. Am I missing
something? Do I need to use a .gpg extension?

Version information:
* GNU Emacs 24.3.1 (x86_64-apple-darwin11.4.2, Carbon Version 1.6.0 AppKit
1138.51) of 2014-04-03 on Yukikaze.local
* Org-mode version 8.2.5 (release_8.2.5 @
/Users/user/.emacs.d/vendor/org-mode/lisp/)
* OSX Mavericks

Thanks in advance,

--
Marcelo


[O] Updating to 8.2.5 broke org-mode

2014-08-16 Thread Marcelo de Moraes Serpa
Hey everyone,

I've updated org to 8.2.5 (by checking out the release_8.2.5 tag) from
7.9.4. After updating remote and checking out the mentioned branch, I ran
make and then make install.

However, when starting Emacs, I get the following error:

Symbol's function definition is void: org-babel-load-file

I use this function in several places since I follow literate programming
approach to writing el config files.

Here's the full backtrace:

Debugger entered--Lisp error: (void-function org-babel-load-file)
  org-babel-load-file(/Users/user/.emacs.d/myuser.org)
  mapc(org-babel-load-file (/Users/user/.emacs.d/myuser.org
/Users/user/.emacs.d/readme.org))
  eval-buffer(#buffer  *load* nil /Users/user/.emacs.d/init.el nil t)
 ; Reading at buffer position 1440
  load-with-code-conversion(/Users/user/.emacs.d/init.el
/Users/user/.emacs.d/init.el t t)
  load(/Users/fuser/.emacs.d/init t t)
  #[nil ^H\205\276^@   \306=\203^Q^@\307^H\310Q\202A^@
\311=\2033^@\312\307\313\314#\203#^@\315\202A^@\312\307\313\316#\203/^@\317\202A^@\315\202A^@

\320=\203=^@\321\202A^@\307^H\322Q^Z\323^S\324\n\323\211#\210^K\323=\203i^@\325\326\327\307^H\330Q!\^\\324\f\323\211$
  command-line()
  normal-top-level()

Does anyone know what could be happening here?

Thanks,

--
Marcelo


Re: [O] Updating to 8.2.5 broke org-mode

2014-08-16 Thread Marcelo de Moraes Serpa
Org-mode version 8.2.5 (release_8.2.5 @
/Users/user/.emacs.d/vendor/org-mode/lisp/)


On Sat, Aug 16, 2014 at 3:18 PM, Thorsten Jolitz tjol...@gmail.com wrote:

 Marcelo de Moraes Serpa celose...@gmail.com writes:

  I've updated org to 8.2.5 (by checking out the release_8.2.5 tag) from
  7.9.4. After updating remote and checking out the mentioned branch, I
  ran make and then make install.

 What does M-x org-version say?

 Should look somehow like this

 #+begin_src emacs-lisp
  (call-interactively 'org-version)
 #+end_src

 #+results:
 : Org-mode version 8.3beta (release_8.3beta-175-g59cd25 @
 /usr/share/emacs/24.3/lisp/org/lisp/)


 --
 cheers,
 Thorsten





Re: [O] Drag and drop, pasting images and files

2014-02-25 Thread Marcelo de Moraes Serpa
Niiice! Thanks for sharing Oleh.

Does anyone know if a paste hook would be possible for the exact same use
case?



On Mon, Feb 24, 2014 at 12:01 PM, Oleh ohwoeo...@gmail.com wrote:

  I actually posted it here:
 
  https://github.com/railwaycat/emacs-mac-port/issues/43
 
  Emacs + orgmode is the best combo for everything related to information
  management. I've tried Evernote a couple of times, but the workflow feels
  slow and awkward, no matter how polished they make the app.
 
  One things that I miss is a fast workflow for embedding images and
 files
  in my org files, though. See the ticket description for more details.
 
  I'd be willing to actually take the time and try to implement it, could
 be a
  good learning experience.
 
  Does anyone else think these new features would be a nice addition?
 
  I want to make sure it's not possible with a simpler approach as well,
 so if
  you know a similar workflow is possible, please share.
 
 

 Image drag and drop is already implemented at
 org-mode/contrib/lisp/org-download.el.
 All you have to do is:

 (require 'org-download)

 It also does screenshots.
 Any issues can be reported to
 https://github.com/abo-abo/org-download/issues

 regards,
 Oleh




Re: [O] Drag and drop, pasting images and files

2014-02-25 Thread Marcelo de Moraes Serpa
That's simply awesome. I'll test it out. Thanks Oleh.


On Tue, Feb 25, 2014 at 11:28 AM, Oleh ohwoeo...@gmail.com wrote:

  Niiice! Thanks for sharing Oleh.
 
  Does anyone know if a paste hook would be possible for the exact same use
  case?
 

 `org-download-yank` will insert the image based on the address in the kill
 ring.
 Address can be a path to a local file (remember 0 w in `dired`)
 or a http link.

 regards,
 Oleh



[O] Drag and drop, pasting images and files

2014-02-24 Thread Marcelo de Moraes Serpa
I actually posted it here:

https://github.com/railwaycat/emacs-mac-port/issues/43

Emacs + orgmode is the best combo for everything related to information
management. I've tried Evernote a couple of times, but the workflow feels
slow and awkward, no matter how polished they make the app.

One things that I miss is a fast workflow for embedding images and files
in my org files, though. See the ticket description for more details.

I'd be willing to actually take the time and try to implement it, could be
a good learning experience.

Does anyone else think these new features would be a nice addition?

I want to make sure it's not possible with a simpler approach as well, so
if you know a similar workflow is possible, please share.


Re: [O] Emacs Mac Port

2014-02-13 Thread Marcelo de Moraes Serpa
@Bastien Yeah, this is one of my favorite features. Check it out:
http://screencast.com/t/RVd0wfTJzVt


On Thu, Feb 13, 2014 at 3:25 AM, Bastien b...@gnu.org wrote:

 Hi Alan,

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

  - smooth scrolling;

 I'm curious about this one -- any screencast demonstrating
 this?  Any hint on what part of the Emacs display engine has
 been improved to get this?

 Thanks,

 --
  Bastien



[O] Emacs Mac Port

2014-02-12 Thread Marcelo de Moraes Serpa
Hey guys,

If you are on a Mac, you *should* start using this:

https://github.com/railwaycat/emacs-mac-port

I've been having some serious issues with the vanilla Cocoa Emacs lately on
Mavericks, including a nasty memory leak that would somehow trigger
distnoted and put the CPU usage at 100% every hour or so.

Besides being quite stable, it has some nice usability improvements made
specifically to make Emacs integrate better with OSX. My orgmode experience
has been much better since I started using it!

Thought I'd share :)

Cheers,

Marcelo.


[O] Error when trying to show the agenda view for the current day

2014-01-15 Thread Marcelo de Moraes Serpa
Hi,

Not sure what I did, but when I try to C-a a a, the agenda view fails to be
built, and I get the following message:

byte-code: Before first headline at position 169 in buffer gtd.org

Does anyone know what this means?

Thanks in advance.


Re: [O] Automatically add a repeater when scheduling

2014-01-15 Thread Marcelo de Moraes Serpa
Thank you.

 This might be a good feature and I might looking into creating a new
version that does this automatically, since I use the current day agenda
view as my next actions list, and use it to automatically carry tasks to
the following day, so the +1d repeater really keeps things clean for my
specific workflow.

The nice thing is that when they are current, they are put in the right
order (as they are defined in the org file in question), but what bugs me
is that when they are outdated, they are ordered by the oldest to the
newest, it seems.



On Wed, Jan 15, 2014 at 3:36 AM, Sebastien Vauban
sva-n...@mygooglest.comwrote:

 Marcelo de Moraes Serpa wrote:
  Does org allow automatically adding a repeater (say, +1d) to a schedule
  when adding it with C-c C-s?

 No -- at least, not yet:

   ╭
   │ C-c C-s runs the command org-schedule, which is an interactive Lisp
 function in
   │ `org.el'.
   │
   │ It is bound to C-c C-s, menu-bar Org Dates and Scheduling
 Schedule
   │ Item.
   │
   │ (org-schedule ARG optional TIME)
   │
   │ Insert the SCHEDULED: string with a timestamp to schedule a TODO item.
   │ With one universal prefix argument, remove any scheduling date from
 the item.
   │ With two universal prefix arguments, prompt for a delay cookie.
   │ With argument TIME, scheduled at the corresponding date.  TIME can
   │ either be an Org date like 2011-07-24 or a delta like +2d.
   ╰

 You see that C-c C-s is already pretty loaded (with up to two universal
 arguments foreseen...).

  If not, I think it wouldn't be so hard to monkeypatch the method to do
 so,
  would it?

 Best regards,
   Seb

 --
 Sebastien Vauban





Re: [O] Adding a new column in the agenda view

2014-01-14 Thread Marcelo de Moraes Serpa
Thanks Bastien!

Is org-agenda-filter-by-top-headline a new func? I can't find it in org
7.9.4.

Thanks,


On Tue, Jan 14, 2014 at 9:26 AM, Bastien b...@gnu.org wrote:

 Hi Marcelo,

 Marcelo de Moraes Serpa celose...@gmail.com writes:

  I'd like to add a new column to display some information about the
  scheduled item in the agenda. Take the following screenshot: https://
  www.dropbox.com/s/gkcnbjrivhvql46/orgmode.jpg
 
  I'd like to add a colum there that shows the closest parent with the
  :project: tag. Does org provide any APIs for that?

 Nope -- check the org column tutorial to see the possibilities:
   http://orgmode.org/worg/org-tutorials/org-column-view-tutorial.html

 Also check org-agenda-filter-by-top-headline (which is ^ in agenda
 mode): I think it can help you *not* implementing this view...

 --
  Bastien



[O] Automatically add a repeater when scheduling

2014-01-14 Thread Marcelo de Moraes Serpa
Hey list,

Does org allow automatically adding a repeater (say, +1d) to a schedule
when adding it with C-c C-s?

If not, I think it wouldn't be so hard to monkeypatch the method to do so,
would it?

Thanks,

--
Marcelo.


[O] Adding a new column in the agenda view

2014-01-13 Thread Marcelo de Moraes Serpa
Hi list,

I'd like to add a new column to display some information about the
scheduled item in the agenda. Take the following screenshot:
https://www.dropbox.com/s/gkcnbjrivhvql46/orgmode.jpg

I'd like to add a colum there that shows the closest parent with the
:project: tag. Does org provide any APIs for that?

Cheers,

--
Marcelo.


Re: [O] Emulate a wiki a la wikidpad

2013-11-16 Thread Marcelo de Moraes Serpa
I'm looking for something inside emacs, not exported. Org-wikinodes does
not work with filenames (although I can see it could be easy to add). I
want something like wikidpad.

Cheers.


On Wed, Oct 30, 2013 at 3:19 PM, Jambunathan K kjambunat...@gmail.comwrote:


 I am in the process of adding support for Org-mode markup to the Oddmuse
 wiki engine.  I call the new wiki Orgmuse.

 Interested people can watch for my announcements in this space.

 http://www.oddmuse.org/wiki/Org_Markup_Extension

 or watch the churnings in

 http://repo.or.cz/w/orgmuse.git

 I planning to merge the Org modules to Oddmuse repo.

 Marcelo de Moraes Serpa celose...@gmail.com writes:

  Hey guys,
 
  I love orgmode and I've been using it for many years. I know there are
  wiki extensions for it and other extensions for emacs, but I've never
  found something as easy and straightforwards as WikiDPad. Wikidpad is
  a real-time wiki. It's really cool (http://wikidpad.sourceforge.net/).
 
  What I'm looking for is an extension that could automatically link
  camecased words in org files, and create its respective file in a
  specific directory, if the file does not exist. I know it wouldn't be
  too difficult to implement, but I'd like to check here first before
  trying to come up with a solution myself.
 
  The rationale is that it's a really great way to keep reference data,
  and since it's in real time, you don't need to export to a format like
  HTML to view it. It's just so convenient when brainstorming or for
  keeping notes.
 
  Cheers!
 
  Marcelo.



[O] Emulate a wiki a la wikidpad

2013-10-18 Thread Marcelo de Moraes Serpa
Hey guys,

I love orgmode and I've been using it for many years. I know there are wiki
extensions for it and other extensions for emacs, but I've never found
something as easy and straightforwards as WikiDPad. Wikidpad is a real-time
wiki. It's really cool (http://wikidpad.sourceforge.net/).

What I'm looking for is an extension that could automatically link
camecased words in org files, and create its respective file in a specific
directory, if the file does not exist. I know it wouldn't be too difficult
to implement, but I'd like to check here first before trying to come up
with a solution myself.

The rationale is that it's a really great way to keep reference data, and
since it's in real time, you don't need to export to a format like HTML to
view it. It's just so convenient when brainstorming or for keeping notes.

Cheers!

Marcelo.


[O] [org][gpg] Encrypt org-attachments?

2013-04-29 Thread Marcelo de Moraes Serpa
Hi list,

Is it currently possible to use gnupg to automatically encrypt/decrypt
files attached using the org-attach feature? If not, would it be hard to
implement?

The org-crypt feature is great and I use it all the time to keep sensitive
data in my reference file, but when I need to archive files (often scan of
documents) I would also like to have the ability to automatically encrypt
them when filing, and them decrypt them when using org-attach to open the
file.

Thanks,

Marcelo.


[O] Agenda file is not in `org-mode'

2013-04-23 Thread Marcelo de Moraes Serpa
Hey guys,

When trying to show up the archived items in the agenda view, I'm getting
this message:

Agenda file /Users/fullofcaffeine/org/gtd/gtd.org_archive is not in
`org-mode'

To fix it, I have to manually open gtd.org_archive, and M-x org-mode it.

Any ideas on why this happens?

Thanks in advance,

Marcelo.


Re: [O] evil-mode movement keys in the agenda?

2013-04-15 Thread Marcelo de Moraes Serpa
Works like a charm! Thank you very much!


On Thu, Apr 11, 2013 at 5:06 AM, Michael Strey mst...@strey.biz wrote:

 Marcelo,

 I'm using only the following two lines.

 #+BEGIN_SRC emacs-lisp
 ;;; org agenda -- leave in emacs mode but add j  k

 (define-key org-agenda-mode-map j 'evil-next-line)
 (define-key org-agenda-mode-map k 'evil-previous-line)
 #+END_SRC

 It's a good compromise.

 Regards
 --
 Michael Strey
 http://www.strey.biz




[O] evil-mode movement keys in the agenda?

2013-04-10 Thread Marcelo de Moraes Serpa
Hi list,

Is there a way to setup the movement keys in the agenda to hjkl? I use
evil-mode with my org files, and when I open the agenda, I always have to
remember not to use hjkl to move around, which is kind of annoying :)

Cheers!

- Marcelo.


[O] org-babel-tangle-file not parsing code blocks

2013-03-25 Thread Marcelo de Moraes Serpa
Hi list,

I have a simple babel file with an Emacs Lisp code block, that looks like
this:

peepopen-config.org:


* Load it
#+BEGIN_SRC emacs_lisp
  (add-to-list 'load-path (concat fullofcaffeine-vendor-dir /peepopen))
  (require 'peepopen)
  (textmate-mode)
#+END_SRC

(provide 'peepopen-config)


I'm trying to tangle it with (org-babel-tangle-file peepopen-config.org),
but I get the following in the Messages buffer:

Tangled 0 code blocks from peepopen-config.org


I'm confused, since the file *does* contain a code block. Am I doing
something wrong?

Thanks in advance,

- Marcelo.


Re: [O] org-babel-tangle-file not parsing code blocks

2013-03-25 Thread Marcelo de Moraes Serpa
Versions:

Org-mode version 8.0-pre (release_8.0-pre-186-g8aeea9.dirty)

GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of
2013-03-12



On Mon, Mar 25, 2013 at 4:02 PM, Marcelo de Moraes Serpa 
celose...@gmail.com wrote:

 Hi list,

 I have a simple babel file with an Emacs Lisp code block, that looks like
 this:

 peepopen-config.org:


 * Load it
 #+BEGIN_SRC emacs_lisp
   (add-to-list 'load-path (concat fullofcaffeine-vendor-dir /peepopen))
   (require 'peepopen)
   (textmate-mode)
 #+END_SRC

 (provide 'peepopen-config)


 I'm trying to tangle it with (org-babel-tangle-file peepopen-config.org),
 but I get the following in the Messages buffer:

 Tangled 0 code blocks from peepopen-config.org


 I'm confused, since the file *does* contain a code block. Am I doing
 something wrong?

 Thanks in advance,

 - Marcelo.






Re: [O] org-babel-tangle-file not parsing code blocks

2013-03-25 Thread Marcelo de Moraes Serpa
Hi Thomas,

Stupid me. There was a syntax error in the code block -- emacs_lisp
instead of emacs-lisp.

Thank you for taking your time to answer it, though!

- Marcelo.

On Mon, Mar 25, 2013 at 4:19 PM, Thomas S. Dye t...@tsdye.com wrote:

 Aloha Marcelo,

 Marcelo de Moraes Serpa celose...@gmail.com writes:

  Hi list,
 
  I have a simple babel file with an Emacs Lisp code block, that looks like
  this:
 
  peepopen-config.org:
 
 
  * Load it
  #+BEGIN_SRC emacs_lisp
(add-to-list 'load-path (concat fullofcaffeine-vendor-dir /peepopen))
(require 'peepopen)
(textmate-mode)
  #+END_SRC
 
  (provide 'peepopen-config)
 
 
  I'm trying to tangle it with (org-babel-tangle-file peepopen-config.org
 ),
  but I get the following in the Messages buffer:
 
  Tangled 0 code blocks from peepopen-config.org
 
 
  I'm confused, since the file *does* contain a code block. Am I doing
  something wrong?

 Not really, but you do need to tell Babel you want to tangle this code
 block.  See the header argument :tangle, which by default is set to
 `no'.  If you add :tangle yes to the code block header, then it should
 do what you want.

 hth,
 Tom

 
  Thanks in advance,
 
  - Marcelo.
  Hi list,
 
 
  I have a simple babel file with an Emacs Lisp code block, that looks
  like this:
 
  peepopen-config.org:
 
 
  * Load it
  #+BEGIN_SRC emacs_lisp
(add-to-list 'load-path (concat fullofcaffeine-vendor-dir
  /peepopen))
(require 'peepopen)
(textmate-mode)
  #+END_SRC
 
  (provide 'peepopen-config)
 
 
  I'm trying to tangle it with (org-babel-tangle-file
  peepopen-config.org), but I get the following in the Messages
  buffer:
 
  Tangled 0 code blocks from peepopen-config.org
 
 
  I'm confused, since the file *does* contain a code block. Am I doing
  something wrong?
 
  Thanks in advance,
 
  - Marcelo.
 
 
 

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



Re: [O] org-babel-tangle-file not parsing code blocks

2013-03-25 Thread Marcelo de Moraes Serpa
Oh, actually that wasn't the issue.

org-babel-load-file seems to force tangling the file to an .el.
org-babel-tangle-file doesn't. Is there a way to force the output to the
.el file without using the parameter in the code block itself?

Thanks!

On Mon, Mar 25, 2013 at 4:20 PM, Marcelo de Moraes Serpa 
celose...@gmail.com wrote:

 Hi Thomas,

 Stupid me. There was a syntax error in the code block -- emacs_lisp
 instead of emacs-lisp.

 Thank you for taking your time to answer it, though!

 - Marcelo.


 On Mon, Mar 25, 2013 at 4:19 PM, Thomas S. Dye t...@tsdye.com wrote:

 Aloha Marcelo,

 Marcelo de Moraes Serpa celose...@gmail.com writes:

  Hi list,
 
  I have a simple babel file with an Emacs Lisp code block, that looks
 like
  this:
 
  peepopen-config.org:
 
 
  * Load it
  #+BEGIN_SRC emacs_lisp
(add-to-list 'load-path (concat fullofcaffeine-vendor-dir
 /peepopen))
(require 'peepopen)
(textmate-mode)
  #+END_SRC
 
  (provide 'peepopen-config)
 
 
  I'm trying to tangle it with (org-babel-tangle-file 
 peepopen-config.org),
  but I get the following in the Messages buffer:
 
  Tangled 0 code blocks from peepopen-config.org
 
 
  I'm confused, since the file *does* contain a code block. Am I doing
  something wrong?

 Not really, but you do need to tell Babel you want to tangle this code
 block.  See the header argument :tangle, which by default is set to
 `no'.  If you add :tangle yes to the code block header, then it should
 do what you want.

 hth,
 Tom

 
  Thanks in advance,
 
  - Marcelo.
  Hi list,
 
 
  I have a simple babel file with an Emacs Lisp code block, that looks
  like this:
 
  peepopen-config.org:
 
 
  * Load it
  #+BEGIN_SRC emacs_lisp
(add-to-list 'load-path (concat fullofcaffeine-vendor-dir
  /peepopen))
(require 'peepopen)
(textmate-mode)
  #+END_SRC
 
  (provide 'peepopen-config)
 
 
  I'm trying to tangle it with (org-babel-tangle-file
  peepopen-config.org), but I get the following in the Messages
  buffer:
 
  Tangled 0 code blocks from peepopen-config.org
 
 
  I'm confused, since the file *does* contain a code block. Am I doing
  something wrong?
 
  Thanks in advance,
 
  - Marcelo.
 
 
 

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





Re: [O] org-babel-tangle-file not parsing code blocks

2013-03-25 Thread Marcelo de Moraes Serpa
Perhaps I'm misunderstanding how org-babel-tangle-file works. Isn't it
supposed to create a correspondent .el file for the tangled org file?


On Mon, Mar 25, 2013 at 4:45 PM, Marcelo de Moraes Serpa 
celose...@gmail.com wrote:

 Oh, actually that wasn't the issue.

 org-babel-load-file seems to force tangling the file to an .el.
 org-babel-tangle-file doesn't. Is there a way to force the output to the
 .el file without using the parameter in the code block itself?

 Thanks!


 On Mon, Mar 25, 2013 at 4:20 PM, Marcelo de Moraes Serpa 
 celose...@gmail.com wrote:

 Hi Thomas,

 Stupid me. There was a syntax error in the code block -- emacs_lisp
 instead of emacs-lisp.

 Thank you for taking your time to answer it, though!

 - Marcelo.


 On Mon, Mar 25, 2013 at 4:19 PM, Thomas S. Dye t...@tsdye.com wrote:

 Aloha Marcelo,

 Marcelo de Moraes Serpa celose...@gmail.com writes:

  Hi list,
 
  I have a simple babel file with an Emacs Lisp code block, that looks
 like
  this:
 
  peepopen-config.org:
 
 
  * Load it
  #+BEGIN_SRC emacs_lisp
(add-to-list 'load-path (concat fullofcaffeine-vendor-dir
 /peepopen))
(require 'peepopen)
(textmate-mode)
  #+END_SRC
 
  (provide 'peepopen-config)
 
 
  I'm trying to tangle it with (org-babel-tangle-file 
 peepopen-config.org),
  but I get the following in the Messages buffer:
 
  Tangled 0 code blocks from peepopen-config.org
 
 
  I'm confused, since the file *does* contain a code block. Am I doing
  something wrong?

 Not really, but you do need to tell Babel you want to tangle this code
 block.  See the header argument :tangle, which by default is set to
 `no'.  If you add :tangle yes to the code block header, then it should
 do what you want.

 hth,
 Tom

 
  Thanks in advance,
 
  - Marcelo.
  Hi list,
 
 
  I have a simple babel file with an Emacs Lisp code block, that looks
  like this:
 
  peepopen-config.org:
 
 
  * Load it
  #+BEGIN_SRC emacs_lisp
(add-to-list 'load-path (concat fullofcaffeine-vendor-dir
  /peepopen))
(require 'peepopen)
(textmate-mode)
  #+END_SRC
 
  (provide 'peepopen-config)
 
 
  I'm trying to tangle it with (org-babel-tangle-file
  peepopen-config.org), but I get the following in the Messages
  buffer:
 
  Tangled 0 code blocks from peepopen-config.org
 
 
  I'm confused, since the file *does* contain a code block. Am I doing
  something wrong?
 
  Thanks in advance,
 
  - Marcelo.
 
 
 

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






Re: [O] org-babel-tangle-file not parsing code blocks

2013-03-25 Thread Marcelo de Moraes Serpa
Hi Thomas. Thanks again for the reply.

I still don't understand why the TARGET_FILE argument is optional. I would
expect it to create a file of the same name of the org file that is
tangled. Take this code:

(org-babel-tangle-file ~/.emacs.d/config/peepopen-config.org)

Contents:

* Load it
 #+BEGIN_SRC emacs-lisp
   (add-to-list 'load-path (concat fullofcaffeine-vendor-dir /peepopen))
   (require 'peepopen)
   (textmate-mode)
 (provide 'peepopenconfig)
 #+END_SRC


When I evaluate the (org-babel-tangle-file...) line, I get the following:

Tangled 0 code blocks from peepopen-config.org


I would expect it to tangle 1 block, and create a peepopen-config.el (no
need to define a TARGET_FILE string).

Two questions:

1) Not sure why it's not tangling the BEGIN_SRC emacs-lisp block
2) Am I wrong about the .el file creation assumption ?

Cheers!

- Marcelo.

On Mon, Mar 25, 2013 at 5:39 PM, Thomas S. Dye t...@tsdye.com wrote:

 Aloha Marcelo,

 Marcelo de Moraes Serpa celose...@gmail.com writes:

  Oh, actually that wasn't the issue.
 
  org-babel-load-file seems to force tangling the file to an .el.
  org-babel-tangle-file doesn't. Is there a way to force the output to the
  .el file without using the parameter in the code block itself?
 

 Yes, there is.

 (org-babel-tangle-file FILE optional TARGET-FILE LANG)

 You should be able set TARGET-FILE with a buffer-wide header argument,
 like this:

 #+PROPERTY: tangle force-output-to-the.el

 hth,
 Tom

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



[O] Cleaning up my org setup, using version from git

2013-03-22 Thread Marcelo de Moraes Serpa
Hey guys,

I'm trying to update to org 8.0, and also clean up my org setup, as it
looks like it still loads some of the .el files out of the Emacs std
distribution (I'm using  Emacs 23.4.1 (x86_64-apple-darwin, NS
apple-appkit-1038.36)).

I have org in ~/.emacs.d/vendor/org, and I also added the following lines
to my init.el:

(add-to-list load-path (cons (concat dotfiles-dir vendor/org/lisp)
 load-path))
(add-to-list load-path (cons (concat dotfiles-dir
vendor/org/contrib/lisp)  load-path))

But it fails hard when emacs inits:

Warning (initialization): An error occurred while loading
 `/Users/fullofcaffeine/.emacs.d/init.el':
 error: Autoloading failed to define function org-babel-do-load-languages
 To ensure normal operation, you should investigate and remove the
 cause of the error in your initialization file.  Start Emacs with
 the `--debug-init' option to view a complete error backtrace.



When I try to make autoloads I get the following:


 org git:(master): make autoloads
 ==
 = Invoke make help for a synopsis of make targets. =
 = Created a default local.mk template.   =
 = Setting oldorg as the default target.=
 = Please adapt local.mk to your local setup! =
 ==
 End of file during parsing
 make: [local.mk] Error 255 (ignored)
 make -C lisp autoloads
 rm -f org-version.el org-loaddefs.el org-version.elc org-loaddefs.elc
 org-install.elc
 org-version: 8.0-pre (release_8.0-pre-150-g412d98)
 End of file during parsing
 make[1]: *** [org-version.el] Error 255
 make: *** [autoloads] Error 2


Not sure where to go from here.

How could I clean up the org installation so Emacs only loads the version
from git?

Thanks in advance,

- Marcelo.


Re: [O] org-mode's HEAD org-remember bug?

2013-03-22 Thread Marcelo de Moraes Serpa
Thanks @Sebastian, @Bastien. I'm currently trying to clean up my local org
setup. I just started another thread for it, since I'm experiencing a
couple of issues.

Cheers,

- Marcelo.

On Sat, Mar 16, 2013 at 12:28 PM, Bastien b...@altern.org wrote:

 Hi Marcelo,

 Marcelo de Moraes Serpa celose...@gmail.com writes:

  I just updated org to HEAD, and I'm getting the following error when
  trying to run the org-remember function (bound to C-c r):

 Sébastien is right, `org-remember' is now obsolete, so please
 update your capture templates accordingly if that's necessary.

 But your error seems to come from a dirty installation: make
 sur you follow the steps described in the manual:

   http://orgmode.org/org.html#Installation

 HTH,

 --
  Bastien



Re: [O] Cleaning up my org setup, using version from git

2013-03-22 Thread Marcelo de Moraes Serpa
Hi Nick, thank you for the reply.

Happens it was an error specific to the terminal version of emacs (OpenStep
could not be found, by org-mac-protocol). Not loading that file solved the
issue.

It looks like I just need to upgrade from org-remember to org-capture.

However, I'm getting the following message when calling org-version:

Org-mode version 8.0-pre (release_8.0-pre-150-g412d98-git @ org-loaddefs.el
can not be found!)

What does org-loaddefs do and how could I get org-loaddefs to be loaded?

Thanks!

- Marcelo


On Fri, Mar 22, 2013 at 3:02 PM, Nick Dokos nicholas.do...@hp.com wrote:

 Marcelo de Moraes Serpa celose...@gmail.com wrote:


  I have org in ~/.emacs.d/vendor/org, and I also added the following
 lines to my init.el:
 
  (add-to-list load-path (cons (concat dotfiles-dir vendor/org/lisp)
  load-path))
  (add-to-list load-path (cons (concat dotfiles-dir
 vendor/org/contrib/lisp)  load-path))
 
  But it fails hard when emacs inits:
 
  Warning (initialization): An error occurred while loading
 `/Users/fullofcaffeine/.emacs.d/
  init.el':
  error: Autoloading failed to define function
 org-babel-do-load-languages
  To ensure normal operation, you should investigate and remove the
  cause of the error in your initialization file.  Start Emacs with
  the `--debug-init' option to view a complete error backtrace.
 
  When I try to make autoloads I get the following:
 
  org git:(master): make autoloads
  ==
  = Invoke make help for a synopsis of make targets. =
  = Created a default local.mk template.   =
  = Setting oldorg as the default target.=
  = Please adapt local.mk to your local setup! =
  ==
  End of file during parsing
  make: [local.mk] Error 255 (ignored)
  make -C lisp autoloads
  rm -f org-version.el org-loaddefs.el org-version.elc
 org-loaddefs.elc org-install.elc
  org-version: 8.0-pre (release_8.0-pre-150-g412d98)
  End of file during parsing
  make[1]: *** [org-version.el] Error 255
  make: *** [autoloads] Error 2
 
  Not sure where to go from here.
 

 This

   Start Emacs with
  the `--debug-init' option to view a complete error backtrace.

 would be a start. The End of file during parsing probably indicates
 a missing paren or some such, possibly in init.el. I presume emacs -q
 starts up properly?

 Nick




Re: [O] Cleaning up my org setup, using version from git

2013-03-22 Thread Marcelo de Moraes Serpa
Yes,


 org git:(master): make autoloads
 ==
 = Invoke make help for a synopsis of make targets. =
 = Created a default local.mk template.   =
 = Setting oldorg as the default target.=
 = Please adapt local.mk to your local setup! =
 ==
 End of file during parsing
 make: [local.mk] Error 255 (ignored)
 make -C lisp autoloads
 rm -f org-version.el org-loaddefs.el org-version.elc org-loaddefs.elc
 org-install.elc
 org-version: 8.0-pre (release_8.0-pre-150-g412d98)
 End of file during parsing
 make[1]: *** [org-version.el] Error 255
 make: *** [autoloads] Error 2





On Fri, Mar 22, 2013 at 3:35 PM, Thomas S. Dye t...@tsdye.com wrote:

 Aloha Marcelo,

 Marcelo de Moraes Serpa celose...@gmail.com writes:

  Hi Nick, thank you for the reply.
 
  Happens it was an error specific to the terminal version of emacs
 (OpenStep
  could not be found, by org-mac-protocol). Not loading that file solved
 the
  issue.
 
  It looks like I just need to upgrade from org-remember to org-capture.
 
  However, I'm getting the following message when calling org-version:
 
  Org-mode version 8.0-pre (release_8.0-pre-150-g412d98-git @
 org-loaddefs.el
  can not be found!)
 
  What does org-loaddefs do and how could I get org-loaddefs to be loaded?

 Did you `make autoloads'?

 Tom

 
  Thanks!
 
  - Marcelo
 
 
  On Fri, Mar 22, 2013 at 3:02 PM, Nick Dokos nicholas.do...@hp.com
 wrote:
 
  Marcelo de Moraes Serpa celose...@gmail.com wrote:
 
 
   I have org in ~/.emacs.d/vendor/org, and I also added the following
  lines to my init.el:
  
   (add-to-list load-path (cons (concat dotfiles-dir vendor/org/lisp)
   load-path))
   (add-to-list load-path (cons (concat dotfiles-dir
  vendor/org/contrib/lisp)  load-path))
  
   But it fails hard when emacs inits:
  
   Warning (initialization): An error occurred while loading
  `/Users/fullofcaffeine/.emacs.d/
   init.el':
   error: Autoloading failed to define function
  org-babel-do-load-languages
   To ensure normal operation, you should investigate and remove the
   cause of the error in your initialization file.  Start Emacs with
   the `--debug-init' option to view a complete error backtrace.
  
   When I try to make autoloads I get the following:
  
   org git:(master): make autoloads
   ==
   = Invoke make help for a synopsis of make targets. =
   = Created a default local.mk template.   =
   = Setting oldorg as the default target.=
   = Please adapt local.mk to your local setup! =
   ==
   End of file during parsing
   make: [local.mk] Error 255 (ignored)
   make -C lisp autoloads
   rm -f org-version.el org-loaddefs.el org-version.elc
  org-loaddefs.elc org-install.elc
   org-version: 8.0-pre (release_8.0-pre-150-g412d98)
   End of file during parsing
   make[1]: *** [org-version.el] Error 255
   make: *** [autoloads] Error 2
  
   Not sure where to go from here.
  
 
  This
 
Start Emacs with
   the `--debug-init' option to view a complete error backtrace.
 
  would be a start. The End of file during parsing probably indicates
  a missing paren or some such, possibly in init.el. I presume emacs -q
  starts up properly?
 
  Nick
 
 
  Hi Nick, thank you for the reply.
 
 
  Happens it was an error specific to the terminal version of emacs
  (OpenStep could not be found, by org-mac-protocol). Not loading that
  file solved the issue.
 
  It looks like I just need to upgrade from org-remember to org-capture.
 
  However, I'm getting the following message when calling org-version:
 
  Org-mode version 8.0-pre (release_8.0-pre-150-g412d98-git @
  org-loaddefs.el can not be found!)
 
  What does org-loaddefs do and how could I get org-loaddefs to be
  loaded?
 
  Thanks!
 
  - Marcelo
 
 
  On Fri, Mar 22, 2013 at 3:02 PM, Nick Dokos nicholas.do...@hp.com
  wrote:
 
 
  Marcelo de Moraes Serpa celose...@gmail.com wrote:
 
 
   I have org in ~/.emacs.d/vendor/org, and I also added the
  following lines to my init.el:
  
   (add-to-list load-path (cons (concat dotfiles-dir
  vendor/org/lisp)  load-path))
   (add-to-list load-path (cons (concat dotfiles-dir
  vendor/org/contrib/lisp)  load-path))
  
   But it fails hard when emacs inits:
  
   Warning (initialization): An error occurred while loading
  `/Users/fullofcaffeine/.emacs.d/
   init.el':
   error: Autoloading failed to define function
  org-babel-do-load-languages
   To ensure normal operation, you should investigate and
  remove the
   cause of the error in your initialization file.  Start Emacs
  with
   the `--debug-init' option to view a complete error

Re: [O] Cleaning up my org setup, using version from git

2013-03-22 Thread Marcelo de Moraes Serpa
It seems to work fine so far (apart from org-remember failing, but AFAIK,
it has been deprecated). What are the consequences of not having those
autoloads files?


On Fri, Mar 22, 2013 at 4:19 PM, Thomas S. Dye t...@tsdye.com wrote:

 Sorry, I didn't read closely.

 Tom

 Marcelo de Moraes Serpa celose...@gmail.com writes:

  Yes,
 
 
  org git:(master): make autoloads
  ==
  = Invoke make help for a synopsis of make targets. =
  = Created a default local.mk template.   =
  = Setting oldorg as the default target.=
  = Please adapt local.mk to your local setup! =
  ==
  End of file during parsing
  make: [local.mk] Error 255 (ignored)
  make -C lisp autoloads
  rm -f org-version.el org-loaddefs.el org-version.elc org-loaddefs.elc
  org-install.elc
  org-version: 8.0-pre (release_8.0-pre-150-g412d98)
  End of file during parsing
  make[1]: *** [org-version.el] Error 255
  make: *** [autoloads] Error 2
 
 
 
 
 
  On Fri, Mar 22, 2013 at 3:35 PM, Thomas S. Dye t...@tsdye.com wrote:
 
  Aloha Marcelo,
 
  Marcelo de Moraes Serpa celose...@gmail.com writes:
 
   Hi Nick, thank you for the reply.
  
   Happens it was an error specific to the terminal version of emacs
  (OpenStep
   could not be found, by org-mac-protocol). Not loading that file solved
  the
   issue.
  
   It looks like I just need to upgrade from org-remember to org-capture.
  
   However, I'm getting the following message when calling org-version:
  
   Org-mode version 8.0-pre (release_8.0-pre-150-g412d98-git @
  org-loaddefs.el
   can not be found!)
  
   What does org-loaddefs do and how could I get org-loaddefs to be
 loaded?
 
  Did you `make autoloads'?
 
  Tom
 
  
   Thanks!
  
   - Marcelo
  
  
   On Fri, Mar 22, 2013 at 3:02 PM, Nick Dokos nicholas.do...@hp.com
  wrote:
  
   Marcelo de Moraes Serpa celose...@gmail.com wrote:
  
  
I have org in ~/.emacs.d/vendor/org, and I also added the following
   lines to my init.el:
   
(add-to-list load-path (cons (concat dotfiles-dir
 vendor/org/lisp)
load-path))
(add-to-list load-path (cons (concat dotfiles-dir
   vendor/org/contrib/lisp)  load-path))
   
But it fails hard when emacs inits:
   
Warning (initialization): An error occurred while loading
   `/Users/fullofcaffeine/.emacs.d/
init.el':
error: Autoloading failed to define function
   org-babel-do-load-languages
To ensure normal operation, you should investigate and remove
 the
cause of the error in your initialization file.  Start Emacs
 with
the `--debug-init' option to view a complete error backtrace.
   
When I try to make autoloads I get the following:
   
org git:(master): make autoloads
==
= Invoke make help for a synopsis of make targets. =
= Created a default local.mk template.   =
= Setting oldorg as the default target.=
= Please adapt local.mk to your local setup! =
==
End of file during parsing
make: [local.mk] Error 255 (ignored)
make -C lisp autoloads
rm -f org-version.el org-loaddefs.el org-version.elc
   org-loaddefs.elc org-install.elc
org-version: 8.0-pre (release_8.0-pre-150-g412d98)
End of file during parsing
make[1]: *** [org-version.el] Error 255
make: *** [autoloads] Error 2
   
Not sure where to go from here.
   
  
   This
  
 Start Emacs with
the `--debug-init' option to view a complete error backtrace.
  
   would be a start. The End of file during parsing probably indicates
   a missing paren or some such, possibly in init.el. I presume emacs -q
   starts up properly?
  
   Nick
  
  
   Hi Nick, thank you for the reply.
  
  
   Happens it was an error specific to the terminal version of emacs
   (OpenStep could not be found, by org-mac-protocol). Not loading that
   file solved the issue.
  
   It looks like I just need to upgrade from org-remember to org-capture.
  
   However, I'm getting the following message when calling org-version:
  
   Org-mode version 8.0-pre (release_8.0-pre-150-g412d98-git @
   org-loaddefs.el can not be found!)
  
   What does org-loaddefs do and how could I get org-loaddefs to be
   loaded?
  
   Thanks!
  
   - Marcelo
  
  
   On Fri, Mar 22, 2013 at 3:02 PM, Nick Dokos nicholas.do...@hp.com
   wrote:
  
  
   Marcelo de Moraes Serpa celose...@gmail.com wrote:
  
  
I have org in ~/.emacs.d/vendor/org, and I also added the
   following lines to my init.el:
   
(add-to-list load-path (cons (concat dotfiles-dir
   vendor/org/lisp)  load-path))
(add-to-list load-path (cons (concat dotfiles-dir
   vendor/org/contrib/lisp)  load-path

[O] org-mode's HEAD org-remember bug?

2013-03-15 Thread Marcelo de Moraes Serpa
Hey guys,

I just updated org to HEAD, and I'm getting the following error when trying
to run the org-remember function (bound to C-c r):


 Debugger entered--Lisp error: (wrong-type-argument stringp nil)
   string-match(\\[\\[\\([^][]+\\)\\]\\(\\[\\([^][]+\\)\\]\\)?\\] nil)
   (cond ((equal desc NONE) (setq desc nil)) ((string-match
 org-bracket-link-regexp desc) (setq desc ...)))
   (let (link cpltxt desc description search txt custom-id agenda-link
 sfuns sfunsn) (cond (...) (... ...) (... ...) (... ...) (... ... ...) (...
 ... ...) (... ... ...) (... ... ...) (... ...) (... ... ...) (... ... ...
 ...) (... ...) (t ...)) (if (consp link) (setq cpltxt ... link ...)) (setq
 link (or link cpltxt) desc (or desc cpltxt)) (cond (... ...) (... ...)) (if
 (and ... link) (progn ... ... ...) (or agenda-link ...)))
   (let* ((org-called-with-limited-levels t) (org-outline-regexp ...)
 (outline-regexp org-outline-regexp) (org-outline-regexp-bol ...)) (let
 (link cpltxt desc description search txt custom-id agenda-link sfuns
 sfunsn) (cond ... ... ... ... ... ... ... ... ... ... ... ... ...) (if ...
 ...) (setq link ... desc ...) (cond ... ...) (if ... ... ...)))
   (org-with-limited-levels (let (link cpltxt desc description search txt
 custom-id agenda-link sfuns sfunsn) (cond ... ... ... ... ... ... ... ...
 ... ... ... ... ...) (if ... ...) (setq link ... desc ...) (cond ... ...)
 (if ... ... ...)))
   org-store-link(nil)
   org-remember-annotation()
   run-hook-with-args-until-success(org-remember-annotation)
   remember(nil)
   org-do-remember()
   org-remember(nil)
   call-interactively(org-remember nil nil)


Any hints?

Cheers,

- Marcelo.


Re: [O] Speeding up the agenda search

2012-10-22 Thread Marcelo de Moraes Serpa
Anyone else with huge org databases out there? Any tips on improving
performance of the agenda search would be appreciated :)

On Sat, Oct 20, 2012 at 12:29 AM, Marcelo de Moraes Serpa 
celose...@gmail.com wrote:

 Hello everyone,

 My list of files in the agenda got to a considerable size. It still
 searchable, but some types of search, such as PROPERTY, usually lock down
 emacs and I'm forced to kill the process. Is there any way to speed it up?
 Perhaps by compiling the elisp files to bytecode?

 I'm on OSX Lion, emacs: GNU Emacs 23.4.1 (x86_64-apple-darwin, NS
 apple-appkit-1038.36) of 2012-01-29 on bob.porkrind.org
 M
 orgmode: Org-mode version 7.9.1 (release_7.9.1-299-g08c5ea.dirty-git @
 mixed installation! /Applications/Emacs.app/Contents/Resources/lisp/org/
 and /Users/fullofcaffeine/.emacs.d/vendor/org/lisp/)
 M

 Any hints appreciated,

 - Marcelo.



Re: [O] Random Access Node

2012-10-19 Thread Marcelo de Moraes Serpa
That'd be a nice feature, indeed.

On Thu, Oct 18, 2012 at 6:37 PM, Esben Stien b...@esben-stien.name wrote:

 Is there some way to go directly to a node?

 F.ex, I have:

 * foo
 ** bar..
 ** baz..
 ** hukarz..

 I do C-c a s to search for baz, which brings up a buffer with baz
 somewhere in there and I have to move down the list to hit TAB on baz.

 Is there maybe some IDO magic or something similar which can take me
 there quicker?.

 Preferably, I'd like to do a regex on second level nodes and get
 instanly there.

 --
 Esben Stien is b0ef@e s  a
  http://www. s tn m
   irc://irc.  b  -  i  .   e/%23contact
sip:b0ef@   e e
jid:b0ef@n n




[O] Speeding up the agenda search

2012-10-19 Thread Marcelo de Moraes Serpa
Hello everyone,

My list of files in the agenda got to a considerable size. It still
searchable, but some types of search, such as PROPERTY, usually lock down
emacs and I'm forced to kill the process. Is there any way to speed it up?
Perhaps by compiling the elisp files to bytecode?

I'm on OSX Lion, emacs: GNU Emacs 23.4.1 (x86_64-apple-darwin, NS
apple-appkit-1038.36) of 2012-01-29 on bob.porkrind.org
M
orgmode: Org-mode version 7.9.1 (release_7.9.1-299-g08c5ea.dirty-git @
mixed installation! /Applications/Emacs.app/Contents/Resources/lisp/org/
and /Users/fullofcaffeine/.emacs.d/vendor/org/lisp/)
M

Any hints appreciated,

- Marcelo.


[O] Scribus+org?

2012-10-06 Thread Marcelo de Moraes Serpa
I've recently found about Scribus (http://www.scribus.net/canvas/Scribus),
an open-source alternative to InDesign. I've tried InDesign, and it's
great, but it can't beat org+TeX publishing because it can't be programmed
(at least I didn't find out a way to do so).

I was wondering if there are any use cases for the use of Scribus + org for
publishing? Is anyone in the list using it by any chances? It looks
interesting.

I'll be playing with it in the following days and share my findings as well.

Cheers!

- Marcelo.


Re: [O] orgmode + evernote, anyone using it? Use cases?

2012-09-25 Thread Marcelo de Moraes Serpa
You make some very good points, Eden.

Dragging is what bothers me.


I used to use Emacs for a lot of other stuff before, but decided to be more
pragmatic and enjoy apps outside it as well. I don't currently live inside
Emacs (in fact, I've ended up switching to MacVim for most of my coding
tasks, but that was before Evil was available, and I might take the time to
switch my env to Emacs again someday, now that there is a decent Vim
emulation layer), and I use other OSX apps. OSX is very graphical. Being
able to quickly drag and drop items in an Emacs org buffer would be a plus,
and would also be helpful to less technically-savvy/more graphically
oriented people willing to use org.

I have grown a habit of capturing absolutely
 everything, which is eased by the fact that I redirect everything I
 can to IRC or my mailbox, which gives me a very efficient note-taking
 and communication system


That sounds *very* interesting. Would you mind sharing a bit more about
your system? I'm specially curious about the capture tools you're using
(IRC?).

I also have the capability of capturing
 links to stuff on a remote system (which Evernote can't do).


Good point.

The only useful thing I've ever done with Evernote is
 take advantage of the OCR search, which means I can capture physical
 things fast with the smartphone and find them later via search


True. That's a very useful Evernote capture feature, very convenient when
you just don't feel like writing.

Now, I agree orgmode has the edge, specially for the geekier audience, but
Evernote has some great capture tools, tools that could be ported to org
(food for thought) or used in conjunction.

Cheers!

- Marcelo.

On Tue, Sep 25, 2012 at 10:59 AM, Eden Cardim e...@insoli.de wrote:

  Marcelo == Marcelo de Moraes Serpa celose...@gmail.com writes:

 Marcelo Hello everyone, As much as I love orgmode, I can't deny
 Marcelo that Evernote looks slick. I would not replace org by
 Marcelo Evernote per se, but Evernote does have more polished
 Marcelo capture tools than orgmode has. Just the simple fact that
 Marcelo you can drag and drop anything to an Evernote note, and
 Marcelo it will automatically store/display it accordingly is
 Marcelo great.

 Dragging is what bothers me. I practically live inside emacs and
 pressing one key to capture stuff is about 5 times faster than doing
 it by dragging, that is, if the app I want to capture from happens to
 be on the same desktop. I have grown a habit of capturing absolutely
 everything, which is eased by the fact that I redirect everything I
 can to IRC or my mailbox, which gives me a very efficient note-taking
 and communication system. I also have the capability of capturing
 links to stuff on a remote system (which Evernote can't do). Also,
 Evernote has no integrated calendar, which really hurts, in org I can
 capture and add a scheduled/deadline timestamp to the item which
 effectively implements GTD's recommendation of using the item itself
 as a reminder. The only useful thing I've ever done with Evernote is
 take advantage of the OCR search, which means I can capture physical
 things fast with the smartphone and find them later via search, like
 bookmarking a page from a physical book or capturing a business card.

 --
 Polytope tetris is so unrealistic





Re: [O] dnd-protocol-alist and org

2012-09-24 Thread Marcelo de Moraes Serpa
Yeah, I've tried there, but no luck. In fact, I thought it'd be
interesting/relevant enough to org in order to post here. Integration with
dnd and copy and paste for files and images would be awesome and put org on
par with Evernote in this regard.

I mean, it's so much faster and more intuitive to just paste images or
files into a document (or drag and drop them) than it is to org-attach them
or link them manually :)

On Mon, Sep 24, 2012 at 12:10 AM, Bastien b...@altern.org wrote:

 Hi Marcelo,

 Marcelo de Moraes Serpa celose...@gmail.com writes:

  *bump* Does anyone else think that'd be a nice feature? I'm having a
  hard time making dnd-protocol-alist work on OSX though, any hints
  appreciated :)

 AFAIU this is a general Emacs question, maybe you'll have more chance on
 emacs-devel.

 --
  Bastien



Re: [O] Org HTML-PDF publishing

2012-09-24 Thread Marcelo de Moraes Serpa
Just for the record, I just downloaded Adobe Acrobat, and
org-html-acrobat seems to be a viable workflow, and not as expensive as
Prince.

However, Acrobat, as far as I'm concerned, doesn't provide any way to
automate the process - you have to open it and edit it manually in order to
polish the typography and add additional graphical elements, but seems to
be a great alternative.

Cheers,

- Marcelo.

On Sat, Sep 22, 2012 at 9:28 PM, Srinivas sp...@yahoo.com wrote:

 There is a free license for non-commerical use:

 From princexml.com:
 We offer a free license for non-commercial use of Prince.
 This license adds a small logo to the first page of
 generated PDF files.

 Will this work for you?







[O] orgmode + evernote, anyone using it? Use cases?

2012-09-24 Thread Marcelo de Moraes Serpa
Hello everyone,

As much as I love orgmode, I can't deny that Evernote looks slick. I would
not replace org by Evernote per se, but Evernote does have more polished
capture tools than orgmode has. Just the simple fact that you can drag and
drop anything to an Evernote note, and it will automatically store/display
it accordingly is great.

I'm considering using Evernote for capturing research notes (alongside
images and other kind of attachments). Does anyone else here also use
Evernote? I'd also like to use it mainly as a polished client, and sync
the docs back to orgmode somehow. I know there's the Evernote mode for
emacs, but I haven't tried it yet.

Anyway, I think org and Evernote *could* be an interesting combo;
nevertheless, I'll be satisfied if this message triggers  some interesting
discussion about those two great tools.

Cheers,

- Marcelo.


Re: [O] dnd-protocol-alist and org

2012-09-23 Thread Marcelo de Moraes Serpa
*bump* Does anyone else think that'd be a nice feature? I'm having a hard
time making dnd-protocol-alist work on OSX though, any hints appreciated :)

On Wed, Sep 5, 2012 at 8:35 PM, Marcelo de Moraes Serpa celose...@gmail.com
 wrote:

 In addition to that: An even more awesome feature would be to hook into
 the pasting process in emacs, get that data, save that to a pre-defined
 location, and link it in the org buffer. Imagine copying an image from
 anywhere and being able to insert it in the org buffer with just a paste
 command! :)


 On Wed, Sep 5, 2012 at 8:31 PM, Marcelo de Moraes Serpa 
 celose...@gmail.com wrote:

 Hi list,

 I've been trying to get dnd-protocol-alist to work on Emacs 23, OSX (GNU
 Emacs 23.4.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2012-01-29
 on bob.porkrind.org) but couldn't so far. Has anyone got it to work with
 Cocoa Emacs?

 I think this could be used to implement some real cool features, such as
 dragging-and-dropping-auto-archiving of images and other file types. This
 way, one could, for example, drag an image into an org buffer, and it would
 be copied to a pre-configured location and displayed auto-magically. What
 do you think?

 Cheers,

 Marcelo.







Re: [O] org-wikinodes - is there a limit of processable files/nodes

2012-09-22 Thread Marcelo de Moraes Serpa
Hi Bastien,

Working now, thanks a lot! What was that change about?

One last question:

How can I have a wikilink in a headline? When I write a CamelCased link in
an org headline, it doesn't get converted to a link automatically, probably
because headlines are the nodes and that might cause a deadlock loop? Is
there a way to force a wikilink (to another wikinode) in a headline? (I've
tried enclosing in [[]] but it doesn't seem to create a wikinode link, only
a regular org link).

Also, a suggestion: I think an additional value for the scope setting could
be created called list of directories, where you could force a specific
directory(ies) where you keep your wiki org files. Right now, I'm doing
that by modifying the function as I stated in the previous message. I might
do that if I have the time, but I fear breaking something else, as my elisp
skills are still quite basic.

Cheers,

Marcelo.

On Sat, Sep 22, 2012 at 2:21 AM, Bastien b...@altern.org wrote:

 Hi Marcelo,

 Marcelo de Moraes Serpa celose...@gmail.com writes:

  Why? Because I have files in other directory levels that I still want
  to link to the wiki, so basically I want to force all wikilinks to
  point to nodes in org files that reside in this wiki/ directory only.

 I just pushed some changes in org-wikinodes.el, maybe they will solve
 your problem.  Let me know.

 Thanks,

 --
  Bastien



Re: [O] org-wikinodes - is there a limit of processable files/nodes

2012-09-21 Thread Marcelo de Moraes Serpa
Hi Bastien,

Can you narrow down the problem and describe a simple way to reproduce
 it?


Sure, sorry if I wasn't specific enough.

I have a specific wiki/ directory that has ~500 org files. There are an
average of ~20 org headlines per file.

I'm trying to take advantage of org-wikinodes' camelcase linking feature.
So, say I have a headlines like this in one of those 500 org files:

* MyPIMSystem

And in another org file in the same wiki/ directory I write:

... as I do in MyPIMSystem ...

The MyPIMSystem gets converted to a wikinodes link, and when I click it,
considering the wiki cache is nil, wikinodes will start searching the
current directory's org files for the a file with MyPIMSystem headline
(this takes around ~10secs), and even though there exists the org file with
the MyPIMSystem headline in the wiki/ directory, wikinodes just doesn't
find it, and shows the prompt asking me if I want to create it.

I must also say that I modified the org-wikinodes-which-file function
slightly from this:


 (defun org-wikinodes-which-file (target optional directory)
   Return the file for wiki headline TARGET DIRECTORY.
 If there is no such wiki target, return nil.
   (setq directory (expand-file-name (or directory default-directory)))
   (unless (assoc directory org-wikinodes-directory-targets-cache)
 (push (cons directory (org-wikinodes-get-links-for-directory
 directory))
   org-wikinodes-directory-targets-cache))
   (cdr (assoc target (cdr (assoc directory
  org-wikinodes-directory-targets-cache)


To this:

(defun org-wikinodes-which-file (target optional directory)
   Return the file for wiki headline TARGET DIRECTORY.
 If there is no such wiki target, return nil.
   (setq directory (expand-file-name /Users/myself/org/wiki)) ;
  here
   (unless (assoc directory org-wikinodes-directory-targets-cache)
 (push (cons directory (org-wikinodes-get-links-for-directory
 directory))
   org-wikinodes-directory-targets-cache))
   (cdr (assoc target (cdr (assoc directory
  org-wikinodes-directory-targets-cache)


Why? Because I have files in other directory levels that I still want to
link to the wiki, so basically I want to force all wikilinks to point to
nodes in org files that reside in this wiki/ directory only. But this is a
simple change, I don't think it would cause any kind of issues.

Also, after I try clicking in a wikilink, and the cache is nil, just after
this function tries to build the cache, and when I evaluate the
 org-wikinodes-directory-targets-cache var, instead of the expected
data-structure containing filenames and nodes, I get this:

((/Users/myself/wiki))

I've tested with the unmodified org-wikinodes-which-file func + a
org-wikinodes-scope setting = directory, and I get the same thing. I
looks as if the amount of files and data is the problem.

Thanks in advance,

- Marcelo.


On Fri, Sep 21, 2012 at 3:44 AM, Bastien b...@altern.org wrote:

 Hi Marcelo,

 Marcelo de Moraes Serpa celose...@gmail.com writes:

  I'm trying to setup org-wikinodes, and I have a directory with
  hundres of org files and each of them has dozens+ nodes. It looks as
  if org-wikinode can't build the wiki cache data-structure for that
  many files/nodes, because it never finds the headlines. Am I missing
  something?

 Can you narrow down the problem and describe a simple way to reproduce
 it?

 Thanks,

 --
  Bastien



Re: [O] org-wikinodes is not activating CamelCase links automatically

2012-09-21 Thread Marcelo de Moraes Serpa
Thanks Bastien, it's working now.

Cheers,

- Marcelo.

On Fri, Sep 21, 2012 at 3:44 AM, Bastien b...@altern.org wrote:

 Marcelo de Moraes Serpa celose...@gmail.com writes:

  Even though it's activated, I don't get a link when I write words in
  CamelCase. Any ideas?

 (setq org-wikinodes-active t)

 is not enough.

 You need to have org-wikinodes in org-modules.

 Best,

 --
  Bastien



Re: [O] [OT] Current website not very attractive

2012-09-21 Thread Marcelo de Moraes Serpa
Bastien,

I can't clone the orgweb repo:

git clone git://orgmode.org/orgweb.git
Cloning into 'orgweb'...
fatal: The remote end hung up unexpectedly

Is the server is down?

- Marcelo.

On Fri, Sep 14, 2012 at 12:41 AM, Bastien b...@altern.org wrote:

 Hi Marcelo,

 glad you like the new website!  It's important to keep Org open
 to non-developers, it is good if the website somehow advertizes
 this attitude.

 Marcelo de Moraes Serpa celose...@gmail.com writes:

  I can help with the Spanish and Portuguese versions, by the way.

 Great!

 ~$ git clone git://orgmode.org/orgweb.git
 ~$ cd orgweb/
 ~$ git branch orgweb-es
 ~$ mkdir es/
 ~$ cp *org es/

 [translate the es/*org files]

 ~$ git commit -m Yeah! es translation done!
 ~$ git format-patch master

 ... then send me the patch(es).

 Should be one-hour max of work.

 Thanks in advance :)

 --
  Bastien



[O] org-wikinodes - is there a limit of processable files/nodes

2012-09-20 Thread Marcelo de Moraes Serpa
Hi list,

I'm trying to setup org-wikinodes, and I have a directory with hundres of
org files and each of them has dozens+ nodes. It looks as if org-wikinode
can't build the wiki cache data-structure for that many files/nodes,
because it never finds the headlines. Am I missing something?

Thanks in advance,

- Marcelo.


[O] tag search broken

2012-09-20 Thread Marcelo de Moraes Serpa
Hello guys,

My tag search is broken, for some reason. When I search for tag1 for
example, the search breaks and I get the following message in the
*Messages* buffer:

if: Wrong type argument: stringp, (tag0 tag1 tag3 tag4)

Here's the backtrace:

Debugger entered--Lisp error: (wrong-type-argument stringp (haxe ruby
 blog coffeinthevein))
   string-match(\\[\\[\\([^][]+\\)\\]\\(\\[\\([^][]+\\)\\]\\)?\\] (haxe
 ruby blog coffeinthevein))
   (if (string-match org-bracket-link-regexp category) (progn (setq l ...)
 (when ... ... ...)) (if (and org-prefix-category-max-length ...) (setq
 category ...)))
   (let* ((category ...) (category-icon ...) (category-icon ...) (tag ...)
 time effort neffort (ts ...) (time-of-day ...) stamp plain s0 s1 s2 rtn srp
 l duration thecategory) (and (derived-mode-p ...) buffer-file-name
 (add-to-list ... buffer-file-name)) (when (and dotime time-of-day) (when
 ... ... ...) (if s1 ...) (if s2 ...) (when ... ...) (when s2 ...)) (when
 (string-match ... txt) (if ... ... ...)) (when (derived-mode-p ...) (setq
 effort ...) (when effort ...)) (or effort (setq effort )) (when remove-re
 (while ... ...)) (add-text-properties 0 (length txt) (quote ...) txt) (setq
 time (cond ... ... ...) extra (or ... ) category (if ... ... category)
 thecategory (copy-sequence category)) (if (string-match
 org-bracket-link-regexp category) (progn ... ...) (if ... ...)) (setq rtn
 (concat ... txt)) (remove-text-properties 0 (length rtn) (quote ...) rtn)
 (org-add-props rtn nil (quote org-category) (if thecategory ... category)
 (quote tags) (mapcar ... tags) (quote org-highest-priority)
 org-highest-priority (quote org-lowest-priority) org-lowest-priority (quote
 time-of-day) time-of-day (quote duration) duration (quote effort) effort
 (quote effort-minutes) neffort (quote txt) txt (quote time) time (quote
 extra) extra (quote format) org-prefix-format-compiled (quote dotime)
 dotime))
   (progn (setq txt (org-trim txt)) (setq txt
 (org-agenda-fix-displayed-tags txt tags org-agenda-show-inherited-tags
 org-agenda-hide-tags-regexp)) (let* (... ... ... ... time effort neffort
 ... ... stamp plain s0 s1 s2 rtn srp l duration thecategory) (and ...
 buffer-file-name ...) (when ... ... ... ... ... ...) (when ... ...) (when
 ... ... ...) (or effort ...) (when remove-re ...) (add-text-properties 0
 ... ... txt) (setq time ... extra ... category ... thecategory ...) (if ...
 ... ...) (setq rtn ...) (remove-text-properties 0 ... ... rtn)
 (org-add-props rtn nil ... ... ... ... ... org-highest-priority ...
 org-lowest-priority ... time-of-day ... duration ... effort ... neffort ...
 txt ... time ... extra ... org-prefix-format-compiled ... dotime)))
   (unwind-protect (progn (setq txt ...) (setq txt ...) (let* ... ... ...
 ... ... ... ... ... ... ... ... ... ...)) (set-match-data
 save-match-data-internal (quote evaporate)))
   (let ((save-match-data-internal ...)) (unwind-protect (progn ... ...
 ...) (set-match-data save-match-data-internal ...)))
   (save-match-data (setq txt (org-trim txt)) (setq txt
 (org-agenda-fix-displayed-tags txt tags org-agenda-show-inherited-tags
 org-agenda-hide-tags-regexp)) (let* (... ... ... ... time effort neffort
 ... ... stamp plain s0 s1 s2 rtn srp l duration thecategory) (and ...
 buffer-file-name ...) (when ... ... ... ... ... ...) (when ... ...) (when
 ... ... ...) (or effort ...) (when remove-re ...) (add-text-properties 0
 ... ... txt) (setq time ... extra ... category ... thecategory ...) (if ...
 ... ...) (setq rtn ...) (remove-text-properties 0 ... ... rtn)
 (org-add-props rtn nil ... ... ... ... ... org-highest-priority ...
 org-lowest-priority ... time-of-day ... duration ... effort ... neffort ...
 txt ... time ... extra ... org-prefix-format-compiled ... dotime)))
   (let* ((bindings ...) (formatter ...)) (loop for (var value) in bindings
 do (set var value)) (save-match-data (setq txt ...) (setq txt ...) (let*
 ... ... ... ... ... ... ... ... ... ... ... ... ...)))
   org-agenda-format-item( #(cyberchrist haxe engine vs jekyll -- a nice
 way to see what's haxe is capable of and what is missing from ruby
 :haxe:ruby:blog:coffeinthevein: 0 142 (org-category someday_maybe
 fontified nil)) someday_maybe (haxe ruby blog coffeinthevein))
   (setq txt (org-agenda-format-item  (concat ... ...) category
 tags-list) priority (org-get-priority txt))
   (cond ((eq action ...) (and org-highlight-sparse-tree-matches ... ...
 ...) (org-show-context ...)) ((eq action ...) (setq txt ... priority ...)
 (goto-char lspos) (setq marker ...) (org-add-props txt props ... marker ...
 marker ... category ... todo ... priority ... tagsmatch) (push txt rtn))
 ((functionp action) (setq org-map-continue-from nil) (save-excursion ...
 ...)) (t (error Invalid action)))
   (progn (cond (... ... ...) (... ... ... ... ... ...) (... ... ...) (t
 ...)) (unless org-tags-match-list-sublevels (org-end-of-subtree t)
 (backward-char 1)))
   (if (and (and ... ...) (progn ... t) (or ... ...) (or ... ...)) 

Re: [O] Org HTML-PDF publishing

2012-09-20 Thread Marcelo de Moraes Serpa
Thank you for the suggestion guys.

It looks as if most of the free solutions don't produce a very good output.
Prince does look very good, but it's way too much expensive. I think using
org and exporting to both HTML and learning just enough LaTeX in order to
export a well formatted output with a nice typography is what I'm going to
do.

Geez, orgmode is a publishing powerhouse :)

Cheers,

- Marcelo.

On Wed, Sep 19, 2012 at 10:31 AM, Srinivas sp...@yahoo.com wrote:

 You might want to take a look at http://www.princexml.com/

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






Re: [O] tag search broken

2012-09-20 Thread Marcelo de Moraes Serpa
Updating to git HEAD solved the problem.

Thanks!

- Marcelo.

On Thu, Sep 20, 2012 at 10:36 PM, Nick Dokos nicholas.do...@hp.com wrote:

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

  What causes this is not clear however: check org.el:org-scan-tags to make
  sure that the call to org-agenda-format-item includes the level argument.
  That sounds unlikely however.
 

 Geez - I'm doing a hash of things today. The scenario I was envisaging
 was that org-agenda.el was updated (so org-agenda-format-item needs the
 new level arg) but org.el was not (so org-scan-tags calls it *without*
 the level argument). That's what sounded unlikely to me.

 But it might not be that far-fetched: there *were* some problems in this
 area and you might have updated at the wrong time. So do check, and if
 necessary, update to latest before rebuilding and starting with a fresh
 emacs.

 Nick




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

2012-09-18 Thread Marcelo de Moraes Serpa
@Bastien, Yeah, I've been thinking about the link approach or perhaps
babel, thank you for the suggestions!

@Eden, That's awesome! Looks like I didn't do the proper research...

Thank you guys,

- Marcelo.

On Tue, Sep 18, 2012 at 4:54 AM, Eden Cardim e...@insoli.de wrote:

  Marcelo == Marcelo de Moraes Serpa celose...@gmail.com writes:

 Marcelo Hi list, I've found a pretty interesting piece of
 Marcelo software today. It's called Xiki, check out the video:

 Marcelo http://www.youtube.com/watch?v=bUR_eUVcABgfeature=youtu.be

 Marcelo I'm wondering it something like that could be done with
 Marcelo emacs (and possibly integrating orgmode to add the
 Marcelo outlining features)?

 It's already done in emacs, see https://github.com/trogdoro/xiki





[O] Org HTML-PDF publishing

2012-09-18 Thread Marcelo de Moraes Serpa
Hey guys,

Is it feasible to publish something (say an ebook) to html and then convert
it to pdf?

I know *TeX is the most powerful framework for creating PDFs, but given
that I'm more familiar with CSS, I'm sure I could come up with a
better style for the document in much less time than if, say, using LaTeX,
as of now.

My thought is, publish to HTML via org using a custom CSS, and then convert
this HTML+CSS to PDF somehow - I'm still not sure how exactly - printing to
PDF from the browser might be an option, however, I'm afraid that the final
PDF quality will not be enough for the given publication.

Has anyone tried this workflow?

Cheers,

- Marcelo.


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

2012-09-18 Thread Marcelo de Moraes Serpa
Wow, that's a lot of options! I really liked impress.js, and I'm glad to
know there's an org mode bridge to it :)

I've only used showoff in the past (https://github.com/schacon/showoff) and
it uses one or more markdown files as the source for the presentation. No
need to write HTML/CSS/JS if you don't want to. It's simple and works very
well.

Since it's markdown, I'm sure using org could be very possible, since org
can export to markdown. Perhaps there's even a library out there that
already adapts showoff to org?

On Tue, Sep 18, 2012 at 4:15 PM, Nick Dokos nicholas.do...@hp.com wrote:

 Fabrice Popineau fabrice.popin...@supelec.fr wrote:

  I can compile a 20-slide file (no tikz) in less than a second.
  Of course, larger slide decks will take longer and I'm sure tikz
  requires considerable CPU time, but what do you mean by huge?
  Also how big a slide deck are you talking about and what percentage
  of the slides use tikz?
 
  About 1500 slides (350 actual frames with overlays) for a 20 hours
 course.
  LuaTeX + opentype fonts makes it even slower. Some complex slides with
  animate algorithms (mergesort, ford fulkerson, stuff like that)
  Ok, I can split it in lectures (albeit that's not so simple to use
 \lectureonly without
  breaking toc). I can use the externalize library. Etc.
 

 Yikes! That's a whole 'nother ballgame. Even if I had something that
 big, I don't think I could manage it in a single file.

 Nick





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

2012-09-17 Thread Marcelo de Moraes Serpa
Hi list,

I've found a pretty interesting piece of software today. It's called Xiki,
check out the video:

http://www.youtube.com/watch?v=bUR_eUVcABgfeature=youtu.be

I'm wondering it something like that could be done with emacs (and possibly
integrating orgmode to add the outlining features)?

That could be interesting.

Just food for thought,

Cheers!

- Marcelo.


Re: [O] Store org-files in a git repository?

2012-09-13 Thread Marcelo de Moraes Serpa

 This calls for a good logging system.
 Something that stores any action you take on a .org file (editing an
 entry, marking it as DONE, clocking it, refiling it, etc.) and that you
 can easily *query*.
 For now the logs are somewhat hackish, more a casual convenience,
 and the actual system is not good for stable parsing.
 That's something I considered working on at some point, but starting
 this before org-element.el was complete was not a good idea.
 Ok, now org-element.el is complete...  :)


This sounds promising, Bastien!

Let us know how it goes.

On Wed, Sep 12, 2012 at 11:52 AM, Samuel Wales samolog...@gmail.com wrote:

 On 9/12/12, Bastien b...@altern.org wrote:
  This calls for a good logging system.

 Of possible tangential relevance for the display part of it: FR:
 inactive timestamps in log mode (and a sorting FR)




[O] Status of org-sync?

2012-09-13 Thread Marcelo de Moraes Serpa
Hi guys,

What's the current status of org-sync? Is it already a contrib? I'd like to
extend it to support Acunote.

Thanks,

- Marcelo.


[O] [OT] Automating the process of creating 'buildlogs'

2012-09-13 Thread Marcelo de Moraes Serpa
This is kind of OT, but still relevant to org, I think..

I spend most of my day coding, and sometimes doing devops stuff. When I
can't (don't have the time, or the client just doesn't want to) automate it
with a scm system like Chef, I rely on buildlogs (all of them saved as org
files). However, I find buildlogs a pain to build manually, specially when
you are int the middle of the task - in the zone - typing, retyping,
researching etc, and still have to stop and take notes in a document.

My perfect workflow would be something like: automatically capture
everything you wrote in the terminal to a file. Then, based off this file,
add the step descriptions and any other additional information. No need to
manually copy pieces of data from the terminal to the document, risking
forgetting a step in the process.

I was wondering if any of you guys ever thought about this or done anything
to automate it? I don't use the shell from emacs, I use iTerm. One
alternative I think is to use GNU Screen and set it up to log the input (I
know a colleague of mine did that once). Another one is to setup something
from emacs that automatically saves the input data in a temp buffer and
then converts it to a org file.

I'll try one of those tonight, but if any of you guys have insights you'd
like to share, it'd be superb :)

Cheers!

- Marcelo.


Re: [O] [OT] Current website not very attractive

2012-09-13 Thread Marcelo de Moraes Serpa
Bastien et al,

Congrats on the new site! I really liked the minimalist concept, the colors
and the typography! It's much cleaner and much more attractive :)

- Marcelo.

On Sat, Aug 11, 2012 at 4:30 AM, Bastien b...@gnu.org wrote:

 brian powell briangpowel...@gmail.com writes:

  --I just hope that whoever wins the contest creates web pages that
  are 501 compliant and everyone can read on any computer using any
  operating system and browser and those webpages are as printable as a
  Texinfo document.

 Even better: as the website is based on .org files, and as a new TeXinfo
 exporter will soon be in contrib/lisp/, you will be able to export each
 page of the website into a TeXinfo document.

 --
  Bastien



Re: [O] [OT] Current website not very attractive

2012-09-13 Thread Marcelo de Moraes Serpa
I think the new design is more appealing to not-very-technical-people like
graphic designers and other knowledge-workers that might not be
coding-savvy, by the way.

On Thu, Sep 13, 2012 at 3:19 PM, Marcelo de Moraes Serpa 
celose...@gmail.com wrote:

 Bastien et al,

 Congrats on the new site! I really liked the minimalist concept, the
 colors and the typography! It's much cleaner and much more attractive :)

 - Marcelo.

 On Sat, Aug 11, 2012 at 4:30 AM, Bastien b...@gnu.org wrote:

 brian powell briangpowel...@gmail.com writes:

  --I just hope that whoever wins the contest creates web pages that
  are 501 compliant and everyone can read on any computer using any
  operating system and browser and those webpages are as printable as a
  Texinfo document.

 Even better: as the website is based on .org files, and as a new TeXinfo
 exporter will soon be in contrib/lisp/, you will be able to export each
 page of the website into a TeXinfo document.

 --
  Bastien





Re: [O] [OT] Current website not very attractive

2012-09-13 Thread Marcelo de Moraes Serpa
I can help with the Spanish and Portuguese versions, by the way.

On Thu, Sep 13, 2012 at 3:21 PM, Marcelo de Moraes Serpa 
celose...@gmail.com wrote:

 I think the new design is more appealing to not-very-technical-people like
 graphic designers and other knowledge-workers that might not be
 coding-savvy, by the way.

 On Thu, Sep 13, 2012 at 3:19 PM, Marcelo de Moraes Serpa 
 celose...@gmail.com wrote:

 Bastien et al,

 Congrats on the new site! I really liked the minimalist concept, the
 colors and the typography! It's much cleaner and much more attractive :)

 - Marcelo.

 On Sat, Aug 11, 2012 at 4:30 AM, Bastien b...@gnu.org wrote:

 brian powell briangpowel...@gmail.com writes:

  --I just hope that whoever wins the contest creates web pages that
  are 501 compliant and everyone can read on any computer using any
  operating system and browser and those webpages are as printable as a
  Texinfo document.

 Even better: as the website is based on .org files, and as a new TeXinfo
 exporter will soon be in contrib/lisp/, you will be able to export each
 page of the website into a TeXinfo document.

 --
  Bastien






[O] building tagcloud datastructure in elisp

2012-09-12 Thread Marcelo de Moraes Serpa
Hi list,

How hard would it be to parse a bunch of org files and build an elisp data
structure (Hash?) that represents a tagcloud? All tags in all headlines and
subtrees should be taken into account (for all org files that are parsed).
Could I use org-element to help me parse this or is there a better way?

I'm just learning the org API, and I've only done a bunch of elisp hacks,
so any insight would be greatly appreciated!

Thanks,

- Marcelo.


Re: [O] Store org-files in a git repository?

2012-09-10 Thread Marcelo de Moraes Serpa
It'd be nice to see how Google Docs does its versioning and try to model
something like that for org. I think it's a version per data saved. I
currently use a cron, but I see some value in versioning after each save.

On Mon, Sep 10, 2012 at 5:23 PM, Moritz Ulrich mor...@tarn-vedra.de wrote:


 Achim Gratz writes:

  Moritz Ulrich writes:
  I plan to put my org directory (where I keep among other my agenda
  files) under version control and would like to have some sort of
  specialized function for that.
 
  My dream setup would be a range of functions hooking into all sorts of
  org-mode hooks, automatically committing changes done via the agenda or
  other org functions together with a context dependent commit message.
 
  »The road to hell is paved with good intentions.« — proverb
 
  What you're proposing (if I understand it correctly) would introduce
  transactions to Org and with it the non-trivial problem of determining
  when a transaction is finished (and started, but that's really another
  one).  Git would merely be the mechanism to record the transactions and
  probably not a good one at that even with the merge driver.
 
  THat aside, even if it worked I'm sure it would annoy me so much I'd
  switch it off entirely.
 
 
  Regards,
  Achim.

 I rarely thought about the problem of transactional operations in
 org-mode. From the standpoint you mentioned, my dream doesn't look that
 nice anymore.

 A simple cron job for committing doesn't sound that bad anymore ;-)

 Thanks for saving me much work.


 Cheers,
 Moritz Ulrich

 --
 Moritz Ulrich



[O] Quick poll - do you use the agenda more as a query interface or as your main view

2012-09-07 Thread Marcelo de Moraes Serpa
I'm wondering: Do you use the agenda more as a query interface or as your
main view?

I tend to use the agenda for its powerful search capabilities, and either
use follow mode and or enter to get more hierarchical context of the task
(since I tend to follow GTD, and there's always a project/sub-projects with
actions (TODO), so an item by itself might not have all the necessary
information about it (what project does it belong to, for example). But I
never use it as my main view.

In fact, it would be nice if we could have an agenda view that showed
items hierarchically (like follow mode, but in the agenda listing itself,
perhaps with the levels configurable). I might play around with it and see
if I can come up with something :)

Cheers,

- Marcelo.


Re: [O] Store org-files in a git repository?

2012-09-07 Thread Marcelo de Moraes Serpa
I have not done yet, but I do use git for my org repo; however, I commit
every 6 hours via cron (and the commit message is a timestamp). I'm
planning to do something similar to what you described, but I haven't used
org-merged-driver yet. I'll play with it and post my findings, if you do,
let us know how it goes as well!

- Marcelo.

On Fri, Sep 7, 2012 at 6:28 PM, Moritz Ulrich mor...@tarn-vedra.de wrote:


 Hello,

 I plan to put my org directory (where I keep among other my agenda
 files) under version control and would like to have some sort of
 specialized function for that.

 My dream setup would be a range of functions hooking into all sorts of
 org-mode hooks, automatically committing changes done via the agenda or
 other org functions together with a context dependent commit message.

 For example, changing a TODO item to DONE would commit this change to
 git with the following message:

 * Headline title: State changed to 'DONE'

 Archiving, refiling, etc. would do similar things.

 A use case is automatic, safe synchronization between different machines
 and generally having recoverable backups of my org setup.

 This setup should work pretty good with org-merge-driver.


 Has someone built something comparable to this? I'd like to give it a
 try but don't want to reinvent the wheel.


 Cheers,
 Moritz Ulrich

 --
 Moritz Ulrich




Re: [O] org-refile failing

2012-09-06 Thread Marcelo de Moraes Serpa
HI Nick,

Looks like the 0 was causing the issue. Changing it to any non-zero value
solves it. I don't remember how it ended up there though - I might have
setup it by accident.

Thanks!

- Marcelo.

On Thu, Sep 6, 2012 at 1:53 AM, Brian van den Broek 
brian.van.den.br...@gmail.com wrote:


 On 5 Sep 2012 19:59, Marcelo de Moraes Serpa celose...@gmail.com
 wrote:
 
  Sorry Bastien, should have included it before.
 
  Emacs:
  GNU Emacs 23.4.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of
 2012-01-29 on bob.porkrind.org
 
  Org:
  Org-mode version 7.9.1 (release_7.9.1-145-g0a6165-git @ mixed
 installation! /Applications/Emacs.app/Contents/Resources/lisp/org/ and
 /Users/fullofcaffeine/.emacs.d/vendor/org/lisp/)

 Hi all,

 I don't have any specific light to shed on the OP's issue. But i did
 notice the discussion seemed to miss the above which itself can many
 problems cause.

 Best,

 Brian vdB



[O] Cached agenda views?

2012-09-06 Thread Marcelo de Moraes Serpa
Hi list,

It's a known fact that the more files you put into the agenda, the more
likely it is to become slower. I've started using Memacs a few weeks ago,
and my agenda is still very useable, but significantly slower than before
(due to the big amount of temporal data being processed from my gmail
emails and git logs).

I was wondering if it would be possible to NOT regenerate the agenda
everytime.

I think this would mean parsing the org files and dumping the elisp objects
created somehow. This way, when visiting the agenda again, it would be
loaded from the objects dump and would not go through the parsing of all
the agenda files again, unless forced by the user; or within
a specific time, via a cron or internal emacs timer. This would also, in
theory, allow the agenda to be constantly regenerated in a background
worker process.

What do you think?

Cheers,

- Marcelo.


[O] Org links that point to filenames with space do not open

2012-09-06 Thread Marcelo de Moraes Serpa
Hi list,

I have several links that use the file protocol to open files indexed in
org entries. They work fine for entries that point to file whose filenames
do *not* contain space, but for entries with space in them, it just fails
silently. I.e:

  [[file:/Volumes/ext-hd/pdfs/Name\ Of\ The-\ 4th\ file.pdf]]

I even escaped the filename using the (shell-quote-argument) function when
indexing, but no luck.

Any ideas?

More info:

- GNU Emacs 23.4.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of
2012-01-29 on bob.porkrind.org
- Org-mode version 7.9.1 (release_7.9.1-145-g0a6165-git @ mixed
installation! /Applications/Emacs.app/Contents/Resources/lisp/org/ and
/Users/fullofcaffeine/.emacs.d/vendor/org/lisp/)
- Mac OSX Lion.

Thanks,

- Marcelo.


Re: [O] Org links that point to filenames with space do not open

2012-09-06 Thread Marcelo de Moraes Serpa
Nick, it's a custom script... however, it looks like I was using the wrong
format. Instead of escaping the space chars, I should uri-encode them it
seems. I'll try that. Thanks!


On Thu, Sep 6, 2012 at 11:03 PM, Nick Dokos nicholas.do...@hp.com wrote:

 Marcelo de Moraes Serpa celose...@gmail.com wrote:

  I have several links that use the file protocol to open files indexed in
  org entries. They work fine for entries that point to file whose
 filenames
  do *not* contain space, but for entries with space in them, it just fails
  silently. I.e:
 
[[file:/Volumes/ext-hd/pdfs/Name\ Of\ The-\ 4th\ file.pdf]]
 
  I even escaped the filename using the (shell-quote-argument) function
 when
  indexing, but no luck.
 

 This is a link to a directory. I grabbed it with C-c l and inserted it
 with C-c C-l. It seems to work fine:

 [[file:lib/music/Arnold%20Schoenberg/Moses%20und%20Aron/][Moses und Aron]

 Nick



Re: [O] Org links that point to filenames with space do not open

2012-09-06 Thread Marcelo de Moraes Serpa
OK, found the issue, had to use url-insert-entities-in-string instead of
shell-quote-argument.

Thanks,

- Marcelo.

On Thu, Sep 6, 2012 at 11:47 PM, Marcelo de Moraes Serpa 
celose...@gmail.com wrote:

 Nick, it's a custom script... however, it looks like I was using the wrong
 format. Instead of escaping the space chars, I should uri-encode them it
 seems. I'll try that. Thanks!


 On Thu, Sep 6, 2012 at 11:03 PM, Nick Dokos nicholas.do...@hp.com wrote:

 Marcelo de Moraes Serpa celose...@gmail.com wrote:

  I have several links that use the file protocol to open files indexed in
  org entries. They work fine for entries that point to file whose
 filenames
  do *not* contain space, but for entries with space in them, it just
 fails
  silently. I.e:
 
[[file:/Volumes/ext-hd/pdfs/Name\ Of\ The-\ 4th\ file.pdf]]
 
  I even escaped the filename using the (shell-quote-argument) function
 when
  indexing, but no luck.
 

 This is a link to a directory. I grabbed it with C-c l and inserted it
 with C-c C-l. It seems to work fine:

 [[file:lib/music/Arnold%20Schoenberg/Moses%20und%20Aron/][Moses und Aron]

 Nick





[O] org-refile failing

2012-09-05 Thread Marcelo de Moraes Serpa
Hi guys,

When trying to run org-refile on an org entry, I'm getting the following
error:

while: Invalid regexp: Invalid content of \\{\\}

Any ideas?

Cheers,

- Marcelo.


[O] [OT] evil-leader Evil mode extension

2012-09-05 Thread Marcelo de Moraes Serpa
Hey guys,

Just wanted to share this little gem I've found. Some of you might already
be using Evil mode for Emacs, it's great. But if you want to improve your
experience, try the evil-leader extension -- it allows you to setup
shortcuts by emulating Vim's mapleader. So you can have leaderkey
shortcuts just like you would in Vim (i.e ,b ,e etc). Pretty neat!

https://github.com/aantn/evil-leader

Cheers,

- Marcelo


Re: [O] org-refile failing

2012-09-05 Thread Marcelo de Moraes Serpa
Sorry Bastien, should have included it before.

Emacs:
GNU Emacs 23.4.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of
2012-01-29 on bob.porkrind.org

Org:
Org-mode version 7.9.1 (release_7.9.1-145-g0a6165-git @ mixed installation!
/Applications/Emacs.app/Contents/Resources/lisp/org/ and
/Users/fullofcaffeine/.emacs.d/vendor/org/lisp/)

To reproduce it, I just move the cursor to the beginning of  a headline
like this:

* TODO Do something

And then M-x org-refile

Cheers,

- Marcelo.



On Wed, Sep 5, 2012 at 6:43 PM, Bastien b...@altern.org wrote:

 Hi Marcelo,

 Marcelo de Moraes Serpa celose...@gmail.com writes:

  When trying to run org-refile on an org entry, I'm getting the
  following error:
 
  while: Invalid regexp: Invalid content of \\{\\}

 Can you give us your Org version, your Emacs version and a recipe
 to reproduce this problem?  Refiling works fine here.

 Thanks,

 --
  Bastien



Re: [O] org-refile failing

2012-09-05 Thread Marcelo de Moraes Serpa
 ...)
(org-refile-goto-last-stored) (when ... ... ... ... ...)))
  (if (member goto (quote ...)) (org-refile-cache-clear) (let* (... ... ...
... ... ... pos it nbuf file re level reversed) (setq last-command nil)
(when regionp ... ... ... ...) (if ... ... ...)))
  org-refile(nil)
  call-interactively(org-refile t nil)
  execute-extended-command(nil)
  call-interactively(execute-extended-command nil nil)


On Wed, Sep 5, 2012 at 6:59 PM, Marcelo de Moraes Serpa celose...@gmail.com
 wrote:

 Sorry Bastien, should have included it before.

 Emacs:
 GNU Emacs 23.4.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of
 2012-01-29 on bob.porkrind.org

 Org:
 Org-mode version 7.9.1 (release_7.9.1-145-g0a6165-git @ mixed
 installation! /Applications/Emacs.app/Contents/Resources/lisp/org/ and
 /Users/fullofcaffeine/.emacs.d/vendor/org/lisp/)

 To reproduce it, I just move the cursor to the beginning of  a headline
 like this:

 * TODO Do something

 And then M-x org-refile

 Cheers,

 - Marcelo.



 On Wed, Sep 5, 2012 at 6:43 PM, Bastien b...@altern.org wrote:

 Hi Marcelo,

 Marcelo de Moraes Serpa celose...@gmail.com writes:

  When trying to run org-refile on an org entry, I'm getting the
  following error:
 
  while: Invalid regexp: Invalid content of \\{\\}

 Can you give us your Org version, your Emacs version and a recipe
 to reproduce this problem?  Refiling works fine here.

 Thanks,

 --
  Bastien





[O] dnd-protocol-alist and org

2012-09-05 Thread Marcelo de Moraes Serpa
Hi list,

I've been trying to get dnd-protocol-alist to work on Emacs 23, OSX (GNU
Emacs 23.4.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2012-01-29
on bob.porkrind.org) but couldn't so far. Has anyone got it to work with
Cocoa Emacs?

I think this could be used to implement some real cool features, such as
dragging-and-dropping-auto-archiving of images and other file types. This
way, one could, for example, drag an image into an org buffer, and it would
be copied to a pre-configured location and displayed auto-magically. What
do you think?

Cheers,

Marcelo.


Re: [O] org-refile failing

2012-09-05 Thread Marcelo de Moraes Serpa
Hi Nick, thanks for the reply.

I don't remember customizing the org-refile-targets var. When I evaluate
it, I get the following:

((org-agenda-files :maxlevel . 0))

- Marcelo.

On Wed, Sep 5, 2012 at 7:57 PM, Nick Dokos nicholas.do...@hp.com wrote:

 Marcelo de Moraes Serpa celose...@gmail.com wrote:

  Here's the backtrace (debug-on-error set to t):
 

 Thanks for that! I sent mail requesting the same just a second
 before I got your mail, so I was wondering if the speed of light limit
 had been violated, but I guess not :-)

 Looks like the calculation of descre in org-refile-get-location is
 wrong:

 ,
 | (setq descre (concat ^\\*\\{1, (number-to-string
 |   (if org-odd-levels-only
 |   (1- (* 2 (cdr desc)))
 | (cdr desc)))
 |  \\}[ \t])))
 `

 The subexpression gives 0 and re-search-forward does not like things
 like ^\\*\\{1,0\\}[ ]. But why that is is not clear to me: it depends
 on what (cdr desc) is (presumably 0 in order to get the result you get -
 and org-odd-levels-only is false, correct?).  In turn, that comes from
 org-refile-targets. Have you customized org-refile-targets by any
 chance? If so, please send the value.

 Nick



Re: [O] dnd-protocol-alist and org

2012-09-05 Thread Marcelo de Moraes Serpa
In addition to that: An even more awesome feature would be to hook into the
pasting process in emacs, get that data, save that to a pre-defined
location, and link it in the org buffer. Imagine copying an image from
anywhere and being able to insert it in the org buffer with just a paste
command! :)

On Wed, Sep 5, 2012 at 8:31 PM, Marcelo de Moraes Serpa celose...@gmail.com
 wrote:

 Hi list,

 I've been trying to get dnd-protocol-alist to work on Emacs 23, OSX (GNU
 Emacs 23.4.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2012-01-29
 on bob.porkrind.org) but couldn't so far. Has anyone got it to work with
 Cocoa Emacs?

 I think this could be used to implement some real cool features, such as
 dragging-and-dropping-auto-archiving of images and other file types. This
 way, one could, for example, drag an image into an org buffer, and it would
 be copied to a pre-configured location and displayed auto-magically. What
 do you think?

 Cheers,

 Marcelo.






[O] [OT] Does anyone use Tinderbox?

2012-09-04 Thread Marcelo de Moraes Serpa
Hi list,

I've recently found out about Tinderbox (http://www.eastgate.com/Tinderbox/),
a personal information management application/framework for the Mac. It
looks very interesting in its visualization capabilities.

Does anyone in the list use it, and if so, care to share a bit about the
experience?

Perhaps it could serve as inspiration for orgmode extensions/integration
ideas.

Cheers,

- Marcelo.


Re: [O] [OT] Does anyone use Tinderbox?

2012-09-04 Thread Marcelo de Moraes Serpa
Hi Eric,

Thank your for sharing your insights! Tinderbox does look interesting,
albeit a bit overkill.

*without* later discovering some
 free open source software that did the same thing better.


Care to share which?

Thanks,

Marcelo.

On Tue, Sep 4, 2012 at 3:19 PM, Eric Abrahamsen e...@ericabrahamsen.netwrote:

 On Tue, Sep 04 2012, Marcelo de Moraes Serpa wrote:

  Hi list,
 
  I've recently found out about Tinderbox (http://www.eastgate.com/
  Tinderbox/), a personal information management application/framework
  for the Mac. It looks very interesting in its visualization
  capabilities.
 
  Does anyone in the list use it, and if so, care to share a bit about
  the experience?
 
  Perhaps it could serve as inspiration for orgmode extensions/
  integration ideas.
 
  Cheers,
 
  - Marcelo.

 I used to use it, when I still used a Mac. Despite the price tag, it was
 the only piece of software I paid for, *without* later discovering some
 free open source software that did the same thing better.

 Tinderbox has some feature overlap with Org, but not a lot. It's much
 more a generalized note-taking/data collection program -- it can and
 often is configured as a TODO machine, but you'd have to build in much
 of the stuff that comes with Org by default. On the other hand, it's
 much more powerful and flexible when it comes to (re)organizing chunks
 of plain data. Tinderbox notes are comparable to a single Org
 headline-plus-text-and-metadata, but they can be arranged and related
 much more flexibly. Tinderbox doesn't have spreadsheets, tho -- not as
 far as I remember.

 Multiple views on the same data is something that Tinderbox also does
 very well.

 One interesting distinction is Tinderbox agents. Agents are notes that
 are mini-programs: they collect other notes according to various search
 criteria, and the act on them according to various rules. They make
 Tinderbox powerful, but they also make it confusing: the search and
 action rules are written in a mini-programming language that is a bit
 perplexing.

 But there are interesting implications for Org. Org agenda views are the
 equivalent of agents, in the *collection* sense: you give it search
 criteria, and it gives you what is essentially a set of symlinks to
 other headlines. Action is done by the user, of course, with Agenda
 commands.

 I've daydreamed about this before: what if, instead of agenda views, we
 took a page from the Tinderbox method and made agendas simple
 headlines, with some cookie saying I'm an agenda, and a property
 containing the search string. Instead of having an ephemeral *Org
 Agenda* buffer, your agenda views are simply another in-file headline,
 whose children are TODOs/headlines that match the query. Multiple and
 persistent agendas are suddenly a matter of course.

 It wouldn't work well for date-based Agendas, of course. In fact, it
 would probably turn out to be a bad idea for reasons I haven't fully
 thought through, yet, but it was an interesting daydream.

 E

 --
 GNU Emacs 24.2.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.11)
  of 2012-09-04 on pellet
 7.9.1





[O] Trying to print the agenda in the terminal - emacs stdout limit?

2012-09-03 Thread Marcelo de Moraes Serpa
Hey guys,

I'm doing a small experiment and trying to print the agenda buffer to the
terminal. I have a elisp script (with the shebang in the top pointing to
emacs with the --script flag), and the following code (besides the code
that loads org);

(org-agenda nil t)
(set-buffer *Org Agenda*)
(message (buffer-substring-no-properties (point-min) (point-max)))

If I eval this block in Emacs, the whole agenda text is shown in the
*Messages* buffer, but when I run it from the command line, it only shows
the first two lines:

➜  ~  ./script.el
Global list of TODO items of type: ALL
Available with `N r': (0)ALL

The rest seems to be truncated somehow. Does anyone know what could be
happening?

Thanks in advance,

Marcelo.


Re: [O] Trying to print the agenda in the terminal - emacs stdout limit?

2012-09-03 Thread Marcelo de Moraes Serpa
Ah, good catch! Damn, forgot about this. Works fine now, thanks!

On Mon, Sep 3, 2012 at 10:21 PM, Memnon Anon 
gegendosenflei...@googlemail.com wrote:

 Hi,

 Marcelo de Moraes Serpa celose...@gmail.com writes:

  If I eval this block in Emacs, the whole agenda text is shown in the
  *Messages* buffer, but when I run it from the command line, it only
  shows the first two lines:
 
  ➜  ~  ./script.el
  Global list of TODO items of type: ALL
  Available with `N r': (0)ALL
 
  The rest seems to be truncated somehow. Does anyone know what could be
  happening?

 Quick test here with emacs 23 and 24 seems to work.

 ,[ (info (emacs)Initial Options) ]
 |  `--batch' implies `-q' (do not load an initialization file), but
 |  `site-start.el' is loaded nonetheless.
 `

 Did you setq your org-agenda-files in that script?
 My first guess would be it is not set.

 hth









Re: [O] Any way to change the *

2012-09-02 Thread Marcelo de Moraes Serpa
Oh, indeed -- the face is simply the font settings, the overlay has more
display flexibility (i.e images), right?


 It's a not-so-rare request. Thus, if Someone implements a minor mode
 adding overlays on these stars (or even a more general beautify
 minor-mode adding overlays on list items, todo keywords...), it could
 make a nice addition to contrib/.


Definitely. I thought it was already possible somehow. Anyway,  it's only
aesthetics, so not high priority, but would still be nice to have.

On Sat, Sep 1, 2012 at 4:36 AM, Nicolas Goaziou n.goaz...@gmail.com wrote:

 Hello,

 Marcelo de Moraes Serpa celose...@gmail.com writes:

  I was wondering if it's possible to change the face of the asterisk used
  for the bullet points. Using  a smoother UTF-8 character or even an image
  would be neat. Is that possible?

 You can change the face of the asterisk, but it will still be an
 asterisk. So, that's not what you're looking after. You need overlays to
 visually change the symbol.

 It's a not-so-rare request. Thus, if Someone implements a minor mode
 adding overlays on these stars (or even a more general beautify
 minor-mode adding overlays on list items, todo keywords...), it could
 make a nice addition to contrib/.


 Regards,

 --
 Nicolas Goaziou



[O] relisp - elisp-ruby bridge

2012-09-02 Thread Marcelo de Moraes Serpa
Hey list,

I've found about relisp today (there were no github mirrors, so I created
one here: https://github.com/fullofcaffeine/relisp). This gem allows you to
call Ruby from Elisp and vice-versa.

I even built a small proof of concept project that I've been wanting to do
for some time. Since I (still) prefer Ruby over Lisp (also because I don't
know much elisp), I've built the (seemingly) hardest part in Ruby, and the
rest in elisp, here's the URL to it:

https://github.com/fullofcaffeine/org-catalog-ebooks

relips works really well. It can be a great way to extend emacs by using
Ruby and also by using Elisp/orgmode from Ruby apps!

Cheers,

- Marcelo.


Re: [O] [OT] Encoding error when calling a ruby script from Emacs using shell-command

2012-09-01 Thread Marcelo de Moraes Serpa

 This is nonsense, may I suggest you read locale (1p)?  If you set
 LC_ALL, this overrides the other two settings no matter what they are
 set to (and you may prevent some scripts trying to set LC_COLLATE or
 something like that from functioning correctly).  Unless you really need
 such a big hammer, set LANG (this provides the default) and leave it at
 that.


I had no idea it worked like that. Thanks for the heads up.

I don't understand why such a hammer is needed at all


It was a simple labor of trial and error. I didn't want to spend more time
on it, and since it worked, I left it as is, for now.

And in that case, how/why does it work from a terminal?


It works fine from the terminal (iTerm/zshell), and after I used setenv
before the (shell-command), it worked just like it does from when ran from
the terminal.

I might get into it and try to figure out why emacs is not inheriting the
setting from the shell (I'm using zshell on Mac OSX Lion, and emacs is
(GNU Emacs 23.4.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of
2012-01-29 on bob.porkrind.org). But for now, I'll leave it as is, since
it's working as expected.

Thanks!

- Marcelo.

On Sat, Sep 1, 2012 at 8:53 AM, Nick Dokos nicholas.do...@hp.com wrote:

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

  Marcelo de Moraes Serpa writes:
   So, I did this:
  
   (defun test ()
(setenv LANG en_US.UTF-8)
(setenv LC_ALL en_US.UTF-8)
(setenv LC_CTYPE en_US.UTF-8)
(shell-command /Users/myself/.rvm/bin/rvm ruby-1.9.3-p194 do
   /usr/bin/rubyscript))
 
  This is nonsense, may I suggest you read locale (1p)?  If you set
  LC_ALL, this overrides the other two settings no matter what they are
  set to (and you may prevent some scripts trying to set LC_COLLATE or
  something like that from functioning correctly).  Unless you really need
  such a big hammer, set LANG (this provides the default) and leave it at
  that.
 

 I don't understand why such a hammer is needed at all: if LANG (or
 LC_ALL) is set in a login shell[fn:1] and exported, then all child
 processes (including emacs and including any shells that emacs spawns)
 will inherit the setting. So if setting it as above with setenv
 (i.e. modifying the emacs environment and therefore the processes that
 emacs spawns) makes a difference, that suggests that it is not set
 globally. I doubt that that is a good idea in general. Even if you want
 it just in the case of emacs, it's probably better to do the setenv
 first thing in .emacs.

 And in that case, how/why does it work from a terminal?

 Nick

 Footnotes:

 [fn:1] Or some equivalent way for a graphical login.




[O] Tags macro?

2012-09-01 Thread Marcelo de Moraes Serpa
Hi list,

I find myself tagging items that often go with multiple tags at the same
time. I'm wondering if a tags macro would make sense, where a key
shortcut would apply multiple tags at once. What do you guys think?

- Marcelo.


Re: [O] [OT] Encoding error when calling a ruby script from Emacs using shell-command

2012-08-31 Thread Marcelo de Moraes Serpa
Alright, I solved it.

The problem is that emacs' shell-command doesn't use the same environment,
so it wasn't picking up the value of those three vars:

✗ export | grep UTF
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8
LC_CTYPE=en_US.UTF-8

So, I did this:

(defun test ()
  (setenv LANG en_US.UTF-8)
  (setenv LC_ALL en_US.UTF-8)
  (setenv LC_CTYPE en_US.UTF-8)
(shell-command  /Users/myself/.rvm/bin/rvm ruby-1.9.3-p194 do
/usr/bin/rubyscript)
)

And now it works fine.

Cheers,

- Marcelo.




On Fri, Aug 31, 2012 at 2:51 PM, Nick Dokos nicholas.do...@hp.com wrote:

 Marcelo de Moraes Serpa celose...@gmail.com wrote:

  Hey list,
 
  I've tried posting on help-gnu-emacs mailing list first, but not luck so
 far, so I thought I'd try here, as I know there are many savvy emacs users
 around.
 
  I have a small Ruby CLI program that I want to call from emacs. This
 script simply opens an emacs orgmode file from a specific location in my
 hard drive, and does some text processing. When I call it from the terminal
 directly, it works fine. When I call it from emacs, the
  script fails with an encoding error.
 
  I'm using this elisp to call it from emacs after a buffer is saved:
 
  (defun test ()
(let ((universal-coding-system-argument 'utf-8-unix))
  (shell-command  /Users/myself/.rvm/bin/rvm ruby-1.9.3-p194
 do /usr/bin/myrubyscript)
  ))
  (add-hook 'after-save-hook 'test)
 
  NOTE: The (let ((universal-coding-system-argument 'utf-8-unix)) was an
 attempt to fix it, but it made no difference whatsoever.
 

 Probably wrong, but who knows? it may work by some miracle:

 (let ((coding-system-for-read 'utf-8-unix)
   (coding-system-for-write 'utf-8-unix))
   (shell-command /Users/myself/.rvm/bin/rvm ruby-1.9.3-p194 do
 /usr/bin/myrubyscript)


  After I save a buffer, the shell-command function is fired, but I get
 the following output in the *Shell Command Output* buffer:
 
  F, [2012-08-30T01:59:18.688827 #94004] FATAL -- : invalid byte
 sequence in US-ASCII (ArgumentError)
 
 /Users/myself/.rvm/gems/ruby-1.9.3-p194/gems/org-ruby-0.6.3/lib/org-ruby/parser.rb:89:in
 `split'
 
 /Users/myself/.rvm/gems/ruby-1.9.3-p194/gems/org-ruby-0.6.3/lib/org-ruby/parser.rb:89:in
 `initia
 

 But this looks like ruby is expecting ASCII and is getting something else
 (probably UTF-8).
 What does the output of the command, when executed from a terminal, look
 like? Redirect it into
 a file and then use od to look at bytes.

 Also, you can try adding an output buffer as argument to the shell-command
 and then eyeballing the
 output in that buffer to see if it matches the terminal output.

 Nick

  The strange thing is that the file that this script opens *is*
 accessible, and is the same file it would open if it were fired up from the
 terminal. For some reason, Emacs is getting in the way, but I have no idea
 what that could be. Am I missing something? If someone could
  enlighten me here, I'd be really grateful!
 
  Thanks in advance,
 
  - Marcelo.
 
 
  
  Alternatives:
 
  



  1   2   3   4   5   >