Re: [O] [Orgmode] Automatic screenshot insertion

2012-01-15 Thread Russell Adams
On Sun, Jan 15, 2012 at 12:37:16AM -0600, Marcelo de Moraes Serpa wrote: A bit OT, but related. --- It would be *awesome* if we could somehow hook into the emacs paste/(drag-and)drop events and automatically paste or drop the image in an org buffer. I don't know if it's possible, but I

Re: [O] [Orgmode] Automatic screenshot insertion

2012-01-15 Thread Marcelo de Moraes Serpa
Awesome! I will try that out. What about hooking into the pasting event and check when it's an image (or whatever file you want) ? Thanks, - Marcelo. On Sun, Jan 15, 2012 at 6:10 AM, Russell Adams rlad...@adamsinfoserv.comwrote: On Sun, Jan 15, 2012 at 12:37:16AM -0600, Marcelo de Moraes

Re: [O] [Orgmode] Automatic screenshot insertion

2012-01-15 Thread Russell Adams
Marcelo, You can check out the Emacs DND (drag-n-drop) help files for more information. I'm not sure what other capabilities it has. I know that I was subscribing my function to the files event only, there were a few other types. Thanks. On Sun, Jan 15, 2012 at 01:31:02PM -0600, Marcelo de

Re: [O] [Orgmode] Automatic screenshot insertion

2012-01-14 Thread François Pinard
Skip Collins skip.coll...@gmail.com writes: 2012/1/10 François Pinard pin...@iro.umontreal.ca: Some sad people think of me as a programmer.  While deep down, I am fundamentally an artist.  Programming is mere mean of expression :-). You and Jambunathan K. should form a club. I do not know

Re: [O] [Orgmode] Automatic screenshot insertion

2012-01-14 Thread Marcelo de Moraes Serpa
A bit OT, but related. --- It would be *awesome* if we could somehow hook into the emacs paste/(drag-and)drop events and automatically paste or drop the image in an org buffer. I don't know if it's possible, but I imagine that if hooking into those events was somehow possible, then we could get

Re: [O] [Orgmode] Automatic screenshot insertion

2012-01-11 Thread Skip Collins
On Wed, Jan 11, 2012 at 12:50 AM, Jambunathan K kjambunat...@gmail.com wrote: You and Jambunathan K. should form a club. Since I am being dragged in to the conversaion, Of course I intend no disrespect for you or François. I have noticed that org, perhaps not surprisingly, attracts people with

Re: [O] [Orgmode] Automatic screenshot insertion

2012-01-11 Thread Thomas S. Dye
Hi Skip, I love OCD! Thanks for that one. And, thank goodness the Org mode community is big enough for artists, artisans, and crafts people. I find it fascinating to use software created by such a diverse community. I've often thought I'm glimpsing the future. All the best, Tom Skip

Re: [O] [Orgmode] Automatic screenshot insertion

2012-01-10 Thread Eric S Fraga
pin...@iro.umontreal.ca (François Pinard) writes: [...] Hi, Eric. Sorry. Here is a quick correction for that problem. This is only this week that I plan to use that function for actual work; last week was rather an exploration of the capability of various tools. Of course, do not

Re: [O] [Orgmode] Automatic screenshot insertion

2012-01-10 Thread François Pinard
Eric S Fraga e.fr...@ucl.ac.uk writes: Hi again, Eric. I'll be using your corrections on the code, thanks! I had to add a call to expand-file-name for getting a file name which worked on my system for some reason. (make-temp-name (expand-file-name (concat (file-name-as-directory

Re: [O] [Orgmode] Automatic screenshot insertion

2012-01-10 Thread Eric S Fraga
pin...@iro.umontreal.ca (François Pinard) writes: Eric S Fraga e.fr...@ucl.ac.uk writes: Hi again, Eric. I'll be using your corrections on the code, thanks! You're welcome! I had to add a call to expand-file-name for getting a file name which worked on my system for some reason.

Re: [O] [Orgmode] Automatic screenshot insertion

2012-01-10 Thread François Pinard
Eric S Fraga e.fr...@ucl.ac.uk writes: I appreciate your reasoning in each case I've elided but, in the end, the different versions or approaches you mention are all essentially equivalent (computationally)... :-) Who cares about computation! :-) Some sad people think of me as a programmer.

Re: [O] [Orgmode] Automatic screenshot insertion

2012-01-10 Thread Skip Collins
2012/1/10 François Pinard pin...@iro.umontreal.ca: Some sad people think of me as a programmer.  While deep down, I am fundamentally an artist.  Programming is mere mean of expression :-). You and Jambunathan K. should form a club.

Re: [O] [Orgmode] Automatic screenshot insertion

2012-01-10 Thread Eric S Fraga
pin...@iro.umontreal.ca (François Pinard) writes: Some sad people think of me as a programmer. While deep down, I am fundamentally an artist. Programming is mere mean of expression :-). Hence: D Knuth: The Art of computer programming

Re: [O] [Orgmode] Automatic screenshot insertion

2012-01-10 Thread Jambunathan K
Skip Collins skip.coll...@gmail.com writes: 2012/1/10 François Pinard pin...@iro.umontreal.ca: Some sad people think of me as a programmer.  While deep down, I am fundamentally an artist.  Programming is mere mean of expression :-). You and Jambunathan K. should form a club. Since I am

Re: [O] [Orgmode] Automatic screenshot insertion

2012-01-09 Thread Eric S Fraga
pin...@iro.umontreal.ca (François Pinard) writes: Russell Adams rlad...@adamsinfoserv.com writes: On Sun, Nov 28, 2010 at 08:35:23PM +0100, David Maus wrote: At Thu, 18 Nov 2010 18:16:22 +0100, Jonathan BISSON wrote: Here is a little function that allows a user to insert a screenshot

Re: [O] [Orgmode] Automatic screenshot insertion

2012-01-09 Thread François Pinard
Eric S Fraga e.fr...@ucl.ac.uk writes: pin...@iro.umontreal.ca (François Pinard) writes: Thanks! However, if I give it a directory name, the function fails with Cannot create image file in the mini-buffer. [...] In summary, if I give it an existing file name, that works; if I give it a

Re: [O] [Orgmode] Automatic screenshot insertion

2012-01-05 Thread François Pinard
Russell Adams rlad...@adamsinfoserv.com writes: On Sun, Nov 28, 2010 at 08:35:23PM +0100, David Maus wrote: At Thu, 18 Nov 2010 18:16:22 +0100, Jonathan BISSON wrote: Here is a little function that allows a user to insert a screenshot easily. Only works on unix-like systems where

Re: [O] [Orgmode] Automatic screenshot insertion

2011-06-06 Thread David Maus
At Tue, 29 Mar 2011 09:43:27 -0500, Russell Adams wrote: I made a minor change. File names are now generated by using the current org buffer filename, plus the date and time, and a unique number. This allows me to sort out the images better. (defun org-screenshot ()