Re: [O] RFQ - new contribution - org-screenshot.el

2013-05-21 Thread Viktor Rosenfeld
Forgot to attach the patch in my last mail. Sorry about the double posting. Viktor Rosenfeld wrote: > Hi, > > Haider Rizvi wrote: > > > Max Mikhanosha writes: > > > > > Hi All, > > > > > > I've been writing some documentation in OrgMode with screenshots, and > > > as with any screenshot taki

Re: [O] RFQ - new contribution - org-screenshot.el

2013-05-21 Thread Viktor Rosenfeld
Hi, Haider Rizvi wrote: > Max Mikhanosha writes: > > > Hi All, > > > > I've been writing some documentation in OrgMode with screenshots, and > > as with any screenshot taking, it takes a while to get one just right. > > > > A few tiny helper utilities, quickly snowballed into this :-) It may >

Re: [O] RFQ - new contribution - org-screenshot.el

2013-05-21 Thread François Pinard
Feng Shu writes: > Haider Rizvi writes: >> Max Mikhanosha writes: >>> "scrot" >> screencapture > "import" (imagemagick) > https://wiki.archlinux.org/index.php/Taking_a_Screenshot >> http://thread.gmane.org/gmane.emacs.orgmode/69221/focus=69272 Thanks for these links! :-) François

Re: [O] RFQ - new contribution - org-screenshot.el

2013-05-21 Thread Feng Shu
Haider Rizvi writes: > Max Mikhanosha writes: > >> Hi All, >> >> I've been writing some documentation in OrgMode with screenshots, and >> as with any screenshot taking, it takes a while to get one just right. >> >> A few tiny helper utilities, quickly snowballed into this :-) It may >> need some

Re: [O] RFQ - new contribution - org-screenshot.el

2013-05-21 Thread Haider Rizvi
Max Mikhanosha writes: > Hi All, > > I've been writing some documentation in OrgMode with screenshots, and > as with any screenshot taking, it takes a while to get one just right. > > A few tiny helper utilities, quickly snowballed into this :-) It may > need some cleanup, but IMHO its too awesom

Re: [O] RFQ - new contribution - org-screenshot.el

2013-05-21 Thread Russell Adams
On Tue, May 21, 2013 at 08:03:45AM -0400, François Pinard wrote: > I also have my own screenshot tool (this was my first own addition to > Org mode, soon after I started to use it, quite a while ago now!) which > is intermediate in features between Russell's and Max's. I can't take credit, that sn

Re: [O] RFQ - new contribution - org-screenshot.el

2013-05-21 Thread François Pinard
Max Mikhanosha writes: > At Mon, 20 May 2013 13:45:48 -0500, Russell Adams wrote: >> What advantages would org-screenshot provide by comparison? > To me the most useful feature is actually "screenshot rotation" > shortcuts, I also have my own screenshot tool (this was my first own addition to O

Re: [O] RFQ - new contribution - org-screenshot.el

2013-05-20 Thread Russell Adams
On Mon, May 20, 2013 at 08:14:16PM -0400, Max Mikhanosha wrote: > To me the most useful feature is actually "screenshot rotation" > shortcuts, that cycle image before point, with other files in the > `(org-screenshot-image-directory)'. That is useful! > Taking screenshot itself and inserting link

Re: [O] RFQ - new contribution - org-screenshot.el

2013-05-20 Thread Max Mikhanosha
At Mon, 20 May 2013 13:45:48 -0500, Russell Adams wrote: > I use this for all screenshots. This inserts a link named by buffer > with a timestamp appended using the Imagemagick import utility, where > I can just click a window or drag an area. > > (defun org-screenshot () > "Take a screenshot in

Re: [O] RFQ - new contribution - org-screenshot.el

2013-05-20 Thread Russell Adams
On Thu, May 16, 2013 at 11:21:56PM -0400, Max Mikhanosha wrote: > Hi All, > > I've been writing some documentation in OrgMode with screenshots, and > as with any screenshot taking, it takes a while to get one just right. Max, I use this for all screenshots. This inserts a link named by buffer wit

Re: [O] RFQ - new contribution - org-screenshot.el

2013-05-20 Thread François Pinard
Max Mikhanosha writes: > [...] (require 'org-screenshot) [...] Thanks, Max, for sharing this! :-) François P.S. I appreciate the org-screenshot-image-directory function: by making it easy to override, the feature has been immediately useful to me.

Re: [O] RFQ - new contribution - org-screenshot.el

2013-05-17 Thread Brett Viren
Max Mikhanosha writes: > Just committed a potential fix, can you see if it works? Commit > 0d68eef0372b6b57359a49cb5e35b67c651c5ee2 Works great! Thanks, -Brett. pgpAYtFdzq95n.pgp Description: PGP signature

Re: [O] RFQ - new contribution - org-screenshot.el

2013-05-17 Thread Max Mikhanosha
At Fri, 17 May 2013 13:20:16 -0400, Brett Viren wrote: > > Hi Max, > > Max Mikhanosha writes: > > > I have committed org-screenshot to master > > This sounds like a great idea. And just to prove that no good deed goes > unpunished, here is a bug report: > > In an org-mode file I run "M-x or

Re: [O] RFQ - new contribution - org-screenshot.el

2013-05-17 Thread Brett Viren
Hi Max, Max Mikhanosha writes: > I have committed org-screenshot to master This sounds like a great idea. And just to prove that no good deed goes unpunished, here is a bug report: In an org-mode file I run "M-x org-screenshot-take", scrot runs and I can either click on a window or draw a se

Re: [O] RFQ - new contribution - org-screenshot.el

2013-05-17 Thread Max Mikhanosha
I have committed org-screenshot to master

Re: [O] RFQ - new contribution - org-screenshot.el

2013-05-17 Thread Max Mikhanosha
At Fri, 17 May 2013 15:05:05 +0200, Carsten Dominik wrote: > > > > Nice and very useful. Can this be included in /contrib? > > Certainly! Ok cool, I've already cleaned up the docstrings, I'll change some defvars to defcustoms and commit it later today. Regards, Max

Re: [O] RFQ - new contribution - org-screenshot.el

2013-05-17 Thread Bastien
Hi Max, Max Mikhanosha writes: > My list is. > > 1. Convert defvar to defcustom > > 2. Is (require 'dired) fine? It uses macro `dired-mark-if' defined in >dired.el Seems fine to me. > 3. The prefix C-c M-s seems awkward but Org is so big everything else >is taken, and C-c C-x s is too

Re: [O] RFQ - new contribution - org-screenshot.el

2013-05-17 Thread Feng Shu
Max Mikhanosha writes: > Hi All, > > I've been writing some documentation in OrgMode with screenshots, and > as with any screenshot taking, it takes a while to get one just right. > > A few tiny helper utilities, quickly snowballed into this :-) It may > need some cleanup, but IMHO its too awesom

Re: [O] RFQ - new contribution - org-screenshot.el

2013-05-17 Thread Feng Shu
Max Mikhanosha writes: > At Fri, 17 May 2013 09:38:29 +0200, > Rainer M. Krug wrote: >> >> Nice and very useful. Can this be included in /contrib? > > That is my intention, I have the FSF paper signed for Emacs and Org. > > So what I'm looking for some minimum amount of eyes on the code, and > a

Re: [O] RFQ - new contribution - org-screenshot.el

2013-05-17 Thread Carsten Dominik
On 17.5.2013, at 09:38, Rainer M. Krug wrote: > Bastien writes: > >> Hi Max, >> >> Max Mikhanosha writes: >> >>> To try it out, you'll need /usr/bin/scrot which is available as >>> "scrot" package on most distributions. >>> >>> Then (require 'org-screenshot) and try C-c M-s (org-screenshot

Re: [O] RFQ - new contribution - org-screenshot.el

2013-05-17 Thread Carsten Dominik
On 17.5.2013, at 09:38, Rainer M. Krug wrote: > Bastien writes: > >> Hi Max, >> >> Max Mikhanosha writes: >> >>> To try it out, you'll need /usr/bin/scrot which is available as >>> "scrot" package on most distributions. >>> >>> Then (require 'org-screenshot) and try C-c M-s (org-screenshot

Re: [O] RFQ - new contribution - org-screenshot.el

2013-05-17 Thread Daniel F
It looks great! I think I'd only convert defvars to defcustom. Personally, I don't worry about prefixes that much, because if I am not using a command very often I just tend do run it using M-x command-name - Dan On Fri, May 17, 2013 at 2:41 PM, Max Mikhanosha wrote: > At Fri, 17 May 2013 09:

Re: [O] RFQ - new contribution - org-screenshot.el

2013-05-17 Thread Max Mikhanosha
At Fri, 17 May 2013 09:38:29 +0200, Rainer M. Krug wrote: > > Nice and very useful. Can this be included in /contrib? That is my intention, I have the FSF paper signed for Emacs and Org. So what I'm looking for some minimum amount of eyes on the code, and advice as to minimum set of things I nee

Re: [O] RFQ - new contribution - org-screenshot.el

2013-05-17 Thread Rainer M. Krug
Bastien writes: > Hi Max, > > Max Mikhanosha writes: > >> To try it out, you'll need /usr/bin/scrot which is available as >> "scrot" package on most distributions. >> >> Then (require 'org-screenshot) and try C-c M-s (org-screenshot-take) in an >> Org File. Make >> sure to turn on inline image

Re: [O] RFQ - new contribution - org-screenshot.el

2013-05-16 Thread Bastien
Hi Max, Max Mikhanosha writes: > To try it out, you'll need /usr/bin/scrot which is available as > "scrot" package on most distributions. > > Then (require 'org-screenshot) and try C-c M-s (org-screenshot-take) in an > Org File. Make > sure to turn on inline image display (C-c C-x C-v) after ta

[O] RFQ - new contribution - org-screenshot.el

2013-05-16 Thread Max Mikhanosha
Hi All, I've been writing some documentation in OrgMode with screenshots, and as with any screenshot taking, it takes a while to get one just right. A few tiny helper utilities, quickly snowballed into this :-) It may need some cleanup, but IMHO its too awesome not to share it with the list. To