Re: [O] org-capture-other-frame

2011-05-10 Thread Radosław Grzanka

W dniu 2011-05-02 20:07, Lluís pisze:

I've made a little function to launch org-capture on another frame,
which is very handy when plugged into a hotkey and working with other
applications.


That work excelent on windows machine.

Thank you!
  Radek.



Re: [O] Slowness in Org - how to disable mouse popups/followings

2011-05-07 Thread Radosław Grzanka
2011/5/6 Tom adatgyu...@gmail.com:
 Rainer Stengele rainer.stengele at diplan.de writes:

  I am always struggling with performance problemns when using
 Emacs orgmode under Windows.  Under Linux I do not see slow
 respsonses for my several and long org files.

 Under Windows I run GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 from trunk 2011-02-16 on LENNART-69DE564 (patched)

 Hovering with the emouse over the Emacs windows I see some
 popups showing up very slowly. Emacs also highlights the links in
 my org files when moving the mouse over it. This all semmes to
 slow down Emacs a lot - under Windows ...


 Sounds like an Emacs 24 problem, because with Emacs 23 I don't experience
 this on Windows. You may want to let the emacs developers know about this.

Unfortunately I experience the same with Emacs 23 and windows. When
hovering with mouse over agenda view i takes couple of seconds until I
regain control over emacs. It drives me crazy.

Thanks,
  Radek.



Re: [O] org-capture-other-frame

2011-05-07 Thread Radosław Grzanka
Thanks!
  I've asked about this a month ago or so but with no response. I will
test this soon on Windows 7.

Radek.

2011/5/2 Lluís xscr...@gmx.net:
 I've made a little function to launch org-capture on another frame,
 which is very handy when plugged into a hotkey and working with other
 applications.

 It lacks some settings that I already have active system wide (like no
 scrollbars, no toolbar and the like), so you should probably tune those
 (a defcustom for the frame parameters should suffice).

 In any case, tell me (directly, as I'm not not subscribed) if you're
 going to install this into org-mode. Otherwise I'll upload the snippet
 into emacs wiki:

 #+begin_src lisp
 (defun my-org-capture-other-frame ()
  Create a new frame and run org-capture.
  (interactive)
  (make-frame '((name . Org-Capture)
                (width  . 120)
                (height .  20)
                (menu-bar-lines . 0)
                (tool-bar-lines . 0)
                (auto-lower . nil)
                (auto-raise . t)))
  (select-frame-by-name Org-Capture)
  (if (condition-case nil
          (progn (org-capture) t)
        (error nil))
      (delete-other-windows)
    (my-org-capture-other-frame-cleanup)))

 (defun my-org-capture-other-frame-cleanup ()
  Close the Org-Capture frame.
  (if (equal Org-Capture (frame-parameter nil 'name))
      (delete-frame)))
 (add-hook 'org-capture-after-finalize-hook 
 'my-org-capture-other-frame-cleanup)
 #+end_src


 Thanks,
    Lluis

 --
  And it's much the same thing with knowledge, for whenever you learn
  something new, the whole world becomes that much richer.
  -- The Princess of Pure Reason, as told by Norton Juster in The Phantom
  Tollbooth





Re: [O] Inline Images Showing as Link

2011-04-21 Thread Radosław Grzanka

Hello,

W dniu 2011-04-21 10:34, Manuel Giraud pisze:


Hi,

Aankhenaank...@gmail.com  writes:


[...]
I think you’d need to majorly rejigger them to make Org recognize your
link as an image.



And it doesn't seem to work in HTML anyway. I just tried to render this:

--8---cut here---start-8---
img 
src=https://docs.google.com/leaf?id=0B-swGEqSDpxyMjgwNjE0MzEtMTA4OC00NTdmLWE3MjktMDJmOGE5ZWM2YjY0hl=en;
  alt=none/
--8---cut here---end---8---

in firefox and only get the alternative. (its the google way of web).



That is because this is not link to image but to the page that shows 
image. Direct link to image is 
https://lh6.googleusercontent.com/KXI0totQ7IlQlRpUqszAYhRM0ldASL6vdl3VWDEswuoStG-jMMbNffNW-pHwRCR_xiXpgGNNaZGZfUWJ9UlGHjvwxQ=s512


and

img 
src=https://lh6.googleusercontent.com/KXI0totQ7IlQlRpUqszAYhRM0ldASL6vdl3VWDEswuoStG-jMMbNffNW-pHwRCR_xiXpgGNNaZGZfUWJ9UlGHjvwxQ=s512; 
 alt=none/


works fine. However, giving that this is some google docs image over 
https it probably will not always work.


Cheers,
  Radek.



[O] Filtering agenda by tags.

2011-04-20 Thread Radosław Grzanka

Hello,
  I have another problem which I fail on resolving.

Let's say I have a org file

--
#+FILETAGS: work

* Do something at work
* Do something at the internet:internet:
--

and another file:

--

* Do something at home:home:
* Do something at the internet:internet:
* Some other untagged task

--

I'd like to have two agenda views:

1. should show things I can do at work and internet and untagged tasks
2. should show things I can do at home and internet and untagged tasks

I fail with defining custom agenda views. I've browsed google and 
already tried:
- org-agenda-filter-preset - but that seems not to support or (maybe 
I'm missing something?)
- org-agenda-skip-function - which I found googling around - with regexp 
like '(org-agenda-skip-subtree-if 'regexp :work:)' - but that seems 
not to support inherited tags.


I'm using latest git checkout org and emacs 23.3.1 on windows.

Thanks for any tip

Radek.






Re: [O] Filtering agenda by tags.

2011-04-20 Thread Radosław Grzanka

Hello,

W dniu 2011-04-20 14:52, Matt Lundin pisze:

I'd like to have two agenda views:

1. should show things I can do at work and internet and untagged tasks
2. should show things I can do at home and internet and untagged tasks



The simplest solution is just to use a query/match (as above). The
variables org-agenda-filter-preset and org-agenda-skip-function are
meant primarily for agenda views, which are built around timestamps


Which is exactly what I want - maybe I was not clear enough. I don't 
want tags search. I want agenda view without entries with given tags (or 
entries only with given tags).


Thanks,
  Radek.

P.S. After not-so-much thinking untagged makes no sense anymore.



Re: [O] Filtering agenda by tags.

2011-04-20 Thread Radosław Grzanka

W dniu 2011-04-20 15:12, Matt Lundin pisze:

Radosław Grzankaradosl...@gmail.com  writes:


Hello,

W dniu 2011-04-20 14:52, Matt Lundin pisze:

I'd like to have two agenda views:

1. should show things I can do at work and internet and untagged tasks
2. should show things I can do at home and internet and untagged tasks



The simplest solution is just to use a query/match (as above). The
variables org-agenda-filter-preset and org-agenda-skip-function are
meant primarily for agenda views, which are built around timestamps


Which is exactly what I want - maybe I was not clear enough. I don't
want tags search. I want agenda view without entries with given tags
(or entries only with given tags).


Could you please clarify what you mean by an agenda view. Do you mean
the daily/weekly agenda?

None of the examples you provided have timestamps, so they would not
show up in the *daily/weekly* agenda view unless you had
org-agenda-include-all-todo set to t.


Hi,
  yes, I've simplified examples to the point which made no sense. I'm 
very sorry.
  All entries should have had some kind of timestamp, deadline or 
schedule. Yes, I'd like daily/weekly agenda view filtered by tags.


Thanks for helping,
  Radek.




[O] taking note when clocking out

2011-04-14 Thread Radosław Grzanka

Hello,
  I cannot find this using google nor browsing documentation so I ask 
for help. Generally I don't want to take notes when I'm clocking out 
except for one task.
Is there property I can set that forces me to take note everytime I 
clock out from this single task?


Thanks,
  Radek.



Re: [O] taking note when clocking out

2011-04-14 Thread Radosław Grzanka

Hello,

W dniu 2011-04-14 10:34, Richard Riley pisze:

Giovanni Ridolfigiovanni.rido...@yahoo.it  writes:


Radosław Grzankaradosl...@gmail.com  writes:


Hello,
   I cannot find this using google nor browsing documentation so I ask
for help. Generally I don't want to take notes when I'm clocking out
except for one task.

You can use the org-clock-out-hook,

but if you'll post an example, well'have something real to work on:

'But I must have something to work on. I cannot burn snow'
Gandalf

Giovanni ;-)



 From reading the OP he is requesting a way to mark/tag a task so that
when he clocks out he is prompted to take a note.

In this case someone more org savvy might construct something which, in
the clock out hook, sees if, e.g, the note-at-clockout property is set
and if so prompts the user for a new note which is then duly attached to
that org item.



Exactly that.

I'm not sure what example I can provide. I'd like to have org file like:


#+STARTUP: nolognoteclock-out

* Headline1

* Headline 2
:PROPERTIES:
:CLOCK-OUT-NOTE: t
:END:

* Headline 3

-

When clocking out from Headline 2 I'd like to be forced to give a 
note. Real life example is that I do not really care about what I have 
been doing during my clocked-in time except for some discussions with 
client, who is bugging me constantly and I record it under Headline 2.


I don't mind hooking in and using unique id of this task but I'm not 
lisp fluent to do that myslef.


Thanks,
  Radek.



Re: [O] taking note when clocking out

2011-04-14 Thread Radosław Grzanka

Hello,

I thought I'd have a quick crack at this since its ages I tried any
elisp

Something along the lines of


,
| (require 'org-clock)
|
| (defun rgr/check-for-clock-out-note()
|   (interactive)
|   (save-excursion
| (set-mark (goto-char (org-entry-beginning-position)))
| (let ((tags (org-get-tags)))
|   (message tags: %s  tags)
|   (if (member clockout_note tags)
|   (org-add-note)
|
| (add-hook 'org-clock-out-hook 'rgr/check-for-clock-out-note)
`


Mircale! Thank you.

Radek.



Re: [O] Clock-in task when emacs starts

2011-04-13 Thread Radosław Grzanka

--8---cut here---start-8---
(require 'org-id)

(defun bh/clock-in-organization-task ()
   (interactive)
   (bh/clock-in-task-by-id eb155a82-92b2-4f25-a3c6-0304591af2f9))

(defun bh/clock-in-task-by-id (id)
   Clock in a task by id
   (save-restriction
 (widen)
 (org-with-point-at (org-id-find id 'marker)
   (org-clock-in '(16)
--8---cut here---end---8---


Thanks Bernt, that is so cool. In fact I conceived something simillar 
but it dependent on exact headline name. Your version is way more versilite.


Thanks!




[O] Clock-in task when emacs starts

2011-04-12 Thread Radosław Grzanka

Hello,
  is it possible to select and clock-in default task when emacs starts?

I'm trying to implement GTD setup as described here 
http://doc.norang.ca/org-mode.html and I like concept of punching-in. 
However, I found out it is not necessary for me to select default task 
each time I punch in becaue I have only one such task.


Therefore, I'd like to set default task and clock it in when emacs starts.

Any help?

 Thanks,
  Radek.



Re: [O] Recurring events with ranges broken

2011-04-11 Thread Radosław Grzanka

Hello,

recurring ranges with timestamps
are not properly recognized in the agenda.
This wont work:
2011-04-07 Thu +1w--2011-04-20 Wed

uh! Has it ever worked ?-)

Could you please give us an idea approximately
when it was working?

Could you also, please, explain to me what's the
rationale behind this kind of time range?
Why do intend to use it?


I'm not sure the intention of the original poster but I'd find that 
feature handy.
This notation would mean: repeat event each week until the date 
2011-04-20 - after that date stop. I know I wanted this in the past and 
it didn't work. Maybe there is other way - I was not motivated enough to 
dig deeper.


Cheers,
  Radek.





[O] remember-other-frame with org-capture?

2011-03-28 Thread Radosław Grzanka

Hello,
  I was using function remember-other-frame on my windows box to 
quickly popup emacs with remember activated. I also used defadvice 
remember-other-frame that configured size of popup window.


Now I switched to org-capture as being more powerful in terms of 
templates but I cannot find out equivalent of that function.


Can somebody more enlighten in org and emacs show me how to get same 
functionality with org-capture package? I tried to write this function 
myself but all I can do in elisp is monkey-see-monkey-do stuff which 
did not work in this case.


Thanks,
  Radek.





Re: [O] org-remember and lists

2011-03-25 Thread Radosław Grzanka

W dniu 2011-03-25 10:12, Aankhen pisze:

Hullo,

On Fri, Mar 25, 2011 at 02:07, Radosław Grzankaradosl...@gmail.com  wrote:

  I'm trying to tweak remember templates to follow my needs but I
fail. I want to do template for my shopping list entries like this:

(setq org-remember-templates (list
   (list shopping ?s - [ ] %?\n (concat 
org-directory
notes.org) Shopping List)
))

However after saving, there is header prepended to this like:

** Thu Mar 24 21:32:49 2011 (- [ ] apples)
   - [ ] apples

I don't want this - I already have heading with all the info I need *
Shopping List. ;) I don't know how to accomplish that.

Any help?

I’m not sure what the problem is here, but ‘org-capture’ is preferred
over remember these days; maybe that would work better for you:

,
| (require 'org-capture)
| (global-set-key (kbd C-M-z) 'org-capture) ; use any key you like
| (setq org-capture-templates `((s Shopping checkitem
|(file+headline ,(concat org-directory
notes.org)
|   Shopping List
`Hello,


  Yep! That solved it. I think I come from stone age when remember 
was preffered ;) . Thanks for help.


Radek.



[O] org-remember and lists

2011-03-24 Thread Radosław Grzanka
Hello,
  I'm trying to tweak remember templates to follow my needs but I
fail. I want to do template for my shopping list entries like this:

(setq org-remember-templates (list
   (list shopping ?s - [ ] %?\n (concat 
org-directory
notes.org) Shopping List)
))

However after saving, there is header prepended to this like:

** Thu Mar 24 21:32:49 2011 (- [ ] apples)
   - [ ] apples

I don't want this - I already have heading with all the info I need *
Shopping List. ;) I don't know how to accomplish that.

Any help?

Thanks,
  Radek.



[Orgmode] Keeping agenda window

2010-06-15 Thread Radosław Grzanka

Hello,
  I'm pretty new user of emacs and orgmode. Here is my problem that I 
tried to solve for couple of days now.
When I open agenda window it splits my frame horizontally - I browse my 
agenda and that is great.
However, if I follow the link to one of my outlines it opens in the 
window of agenda - this is not what I want. I want it to open in my 
upper window (preferably moving cursor and focus there) and leave the 
agenda window intact so I can still see it.
  I've browsed 'org-customize' but foud no variable responsible for 
such behaviour. Could someone point me in the correct direction?


Org-version 6.36c Emacs version 23.2.1 on windows.

Thanks,
  Radek.


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Keeping agenda window

2010-06-15 Thread Radosław Grzanka

W dniu 2010-06-15 13:13, Matt Lundin pisze:

Radosław Grzankaradosl...@gmail.com  writes:

   

W dniu 2010-06-15 10:16, Livin Stephen Sharma pisze:

 Radek,  have you tried 'org-agenda-follow-mode'?   [ yes, I did
 see you write ..if i follow the link to one of my outlines.. in
 your email :) ]

Hello,   thank you for your reply. I did not know about follow-mode
but it seems it is not working like described here:
http://orgmode.org/manual/ Agenda-commands.html

It says:  In Follow mode, as you move the cursor through the agenda
buffer, the other window always shows the corresponding location in
the Org file.
 

Follow mode works as described here. What precisely is not working for
you?
   


I might have not written this clearly. From description it seems that 
follow mode, once activated should change the content of the other 
window whenever I change cursor position in agenda buffer. It does not. 
It changes content of the other window only upon activation (hitting 
'F') and then does nothing. It says Follow in status bar but seems to 
do nothing until I quit Follow mode and enter it again.



Try TAB (org-agenda-goto).

,[(info (org) Agenda commands)]
| `TAB'
|  Go to the original location of the item in another window. Under
|  Emacs 22, `mouse-1' will also works for this.
`
   


I knew it was supposed to be simple! Thank you very much. This is 
exactly what I wanted - thanks.


Radek.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Keeping agenda window

2010-06-15 Thread Radosław Grzanka


Strange. If I bring up the agenda (C-c a a) and then invoke follow

mode (v f), when I move down or up (n or p) in the agenda view, the
other window gets updated with the entry on the current line.  You
should not have to hit TAB, although TAB is useful when you are not in
follow mode of course.

What version of org-mode are you using?

Hello,
  Thanks for reply. If I use n or p it works. If I use arrow keys 
(which I always do) it does not. So I guess I'm not using it as inteded.


Thank you,
  Radek.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode