Re: [Orgmode] Org-mode version 6.31a; conflicting packages section lacks some (tiny) viper info

2009-10-30 Thread Carsten Dominik

Hi Stefano,

I have now mentioned this conflict in the manual (will show up on the
web after the next release).

- Carsten

On Oct 29, 2009, at 5:56 PM, Stefano Zacchiroli wrote:




Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?   
See


http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


Heya,
 I'm using Org mode (beware: I'm an Org newbie!) and Viper mode. I've
noticed that there is a small incompatibility between the two, as  
Viper
(at least in export mode) has C-c / set to a command related to  
search

settings, whereas Org uses that for the sparse tree menu. To me it is
not a big deal as Viper's C-c / is, IMO, a completely useless setting
command, but it is still worth to be mentioned in manual section
14.7.2. Can you please do that?

Given my premise, my solution for that is simply to override Viper's
C-c / as follows:

 (define-key viper-vi-global-user-map (kbd C-c /) 'org-sparse-tree)

It is suboptimal since it sets C-c / as org-sparse-tree everywhere,
while it would be better to do that only in Org mode buffers. I've  
tried

with hooks and local maps, but I failed to obtain a more-local
solution. If you find it, you might want to specify that rather than
mine.

Thanks for Org!
Cheers.


Emacs  : GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version  
2.18.3)

of 2009-10-23 on elegiac, modified by Debian
Package: Org-mode version 6.31a

current state:
==
(setq
org-special-ctrl-a/e t
org-agenda-files '(~/example.org)
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-agenda-skip-scheduled-if-done t
org-export-preprocess-hook '(org-export-blocks-preprocess)
org-tab-first-hook '(org-hide-block-toggle-maybe)
org-src-mode-hook '(org-src-mode-configure-edit-buffer)
org-confirm-shell-link-function 'yes-or-no-p
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-default-notes-file ~/dati/org/notes.org
org-directory ~/dati/org
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- 
drawers org-cycle-show-empty-lines

  org-optimize-window-after-visibility-change)
org-mode-hook '(#[nil \300\301\302\303\304$\207 [org-add-hook  
change-major-mode-hook org-show-block-all append local] 5])

org-confirm-elisp-link-function 'yes-or-no-p
org-agenda-start-on-weekday nil
org-reverse-note-order t
org-insert-mode-line-in-empty-file t
org-occur-hook '(org-first-headline-recenter)
org-from-is-user-regexp \\Stefano Zacchiroli\\
org-remember-templates '((Web 119 * %?\n\n Source: %U, %c\n\n %i  
nil Note (Web))

  (Mail 109 * %?\n\n Source: %u, %c\n %i nil Note 
(Mail))
  (Note 110 * %?\n\n Source: %U, %c\n\n %i nil 
Note))
org-link-abbrev-alist '((debbug . http://bugs.debian.org/;))
)

--
Stefano Zacchiroli -o- PhD in Computer Science \ PostDoc @ Univ.  
Paris 7

z...@{upsilon.cc,pps.jussieu.fr,debian.org} -- http://upsilon.cc/zack/
Dietro un grande uomo c'è ..|  .  |. Et ne m'en veux pas si je te  
tutoie
sempre uno zaino ...| ..: | Je dis tu à tous ceux que  
j'aime



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


- Carsten





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


[Orgmode] Proposed key binding changes: archiving and attachments

2009-10-30 Thread Carsten Dominik

Hi everyone,

I would like to change some key bindings related to archiving,
and this change will also affect the access key for attachments.

The main reason is that I think there should be a single default key
for archiving, and that the user sets a variable to decide what the  
default

archiving method should be.  I would like this key to be `C-c C-a' which
is why the org-attach key would have to move as well.

Here is my proposal:

In Org-mode files
-

C-c C-a  archive default (setq by org-archive-default-command)
C-c C-x C-s  org-archive-subtree (C-c $ remains valid as well)
C-c C-x aorg-toggle-archive-tag
C-c C-x Aorg-archive-to-archive-sibling

C-c C-x C-a  attach

In the agenda
-
aarchive with org-archive-default-command
C-c C-a  same as a
C-c C-x aorg-toggle-archive-tag
C-c C-x Aorg-archive-to-archive-sibling
C-c C-x C-s  org-archive-subtree ($ remains valid as well)


I am wondering how much resistance such a change would create.

Comments?

- Carsten





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


Re: [Orgmode] org-agenda-custom-commands

2009-10-30 Thread Carsten Dominik


On Oct 29, 2009, at 8:56 PM, Harald Weis wrote:


But I still think it could be advantageous to do the whole lot within
the org-agenda-custom-commands variable if the match would be  
evaluated

before getting used.


Well, we can try and see if it breaks something.  The latest git version
now does evaluate it, but I have not yet introduced this into the
customize type - so you need to set the command list in Lisp for the
time being.

- Carsten




Thank you very much indeed.
Harald Weis


On Mon, Oct 19, 2009 at 03:36:42PM +0200, Carsten Dominik wrote:

Well, I guess I could evaluate match before it gets used.  But maybe
you can also turn this around:  Dinfe a function what will call the
tree maker directly


(defun my-tree (match)
 (interactive s)
 (org-match-sparse-tree nil (concat { match })))

or something like this

- Carsten

On Oct 18, 2009, at 4:43 PM, Harald Weis wrote:


Hi All,

I would like to define one entry of the org-agenda-custom-commands
variable like so:
(setq org-agenda-custom-commands
   '((i item tags-tree
 (remedy-build-tags-tree-regex item

where ''item'' is the property key and
where the remedy-build-tags-tree-regex function is defined as  
follows:


(defun remedy-build-tags-tree-regex (propkey)
   (concat propkey
  ={
  (read-from-minibuffer (concat propkey  : ))
  }))

This would allow me to select the property value interactively.

The org-make-tags-matcher function does not appreciate.
''C-c a'' yields
i   item: set of 2 commands

Selecting ''i'' produces the following error message in the
minibuffer.
Wrong type argument: stringp, (remedy-build-tags-tree-regex item)

Is there a way to get the desired functionality?



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


- Carsten





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


Re: [Orgmode] Org-mode version 6.31a; conflicting packages section lacks some (tiny) viper info

2009-10-30 Thread Stefano Zacchiroli
On Fri, Oct 30, 2009 at 06:47:38AM +0100, Carsten Dominik wrote:
 I have now mentioned this conflict in the manual (will show up on the
 web after the next release).

Thanks a lot Carsten!

Keep up the good work,
Cheers.

-- 
Stefano Zacchiroli -o- PhD in Computer Science \ PostDoc @ Univ. Paris 7
z...@{upsilon.cc,pps.jussieu.fr,debian.org} -- http://upsilon.cc/zack/
Dietro un grande uomo c'è ..|  .  |. Et ne m'en veux pas si je te tutoie
sempre uno zaino ...| ..: | Je dis tu à tous ceux que j'aime


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


[Orgmode] Re: contact management in org-mode?

2009-10-30 Thread Uwe Jochum

Hi all,

has someone tried forms for the purpose of contact management? See:

http://sunsite.ualberta.ca/Documentation/Gnu/emacs-21.1/html_chapter/forms_frame.html

Best,

Uwe

Alan E. Davis schrieb am 29.10.2009 21:00:
I'll mention EDB, emacs data base, here, even though I haven't used it 
for several years.  


http://gnuvola.org/software/edb/

It's available on many GNU/Linux distros, as a package.  It is for 
Gentoo, and perhaps for Debian/Ubuntu as well. 

It is extensible/programmable, so that various interfaces could perhaps 
be possible.  I spent a little time years ago setting up an Addresses 
database, with output formats to automatically set up a LaTeX header for 
each marked address.  It was a bit klunky, to be sure, but it worked 
REALLY well, and it worked the way I wanted it to.


It's an old piece of software.  I tried it lately with my address DB, 
with Emacs 23, so it may just still work fine.


In the examples directory, above, are a rolodex database, possibly 
somewhat similar to what I had going, and some other examples.   There 
has been some relatively recent effort into maintaining EDB.


I write this not as a programmer, but a user, just to point to something 
that has worked well for me in the past.


Alan Davis




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




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


Re: [Orgmode] Html and unreadable characters

2009-10-30 Thread Carsten Dominik


On Oct 25, 2009, at 4:00 PM, andrea Crotti wrote:

When I export to html and there is source code inside sometimes I  
get unreadable
characters,that's because the color is very light and on a white  
background it

disappears.

How could I solve it?
Wouldn't be possible to export keeping the emacs theme (like htmlize  
does)

for example?



Org does use htmlize to produce the export of source code!

- Carsten



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


Re: [Orgmode] org-export-as-freemind writes *.mm files that freemind (0.8.1) cannot read

2009-10-30 Thread Carsten Dominik

We are moving to install this exporter, should be in the next release.

- Carsten

On Sep 21, 2009, at 9:17 PM, Friedrich Delgado Friedrichs wrote:


Hi!

Carsten Dominik schrieb:
is there any kind of consensus about which of the two freemind  
exporters

is better?  Marco Vezzoli's is the one included with Org currently.
The other one is by Lennart.



Would anyone like to make a comparison?

---Zitatende---

Just in case my opinion isn't already clear: I prefer the one by
Lennart, as I couldn't get the one from contrib to work at all for me.


--
   Friedrich Delgado Friedrichs frie...@nomaden.org
TauPan on Ircnet and Freenode ;)


- Carsten





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


Re: [Orgmode] Proposed key binding changes: archiving and attachments

2009-10-30 Thread Friedrich Delgado Friedrichs
Hi!

Carsten Dominik schrieb:
 The main reason is that I think there should be a single default key
 for archiving, and that the user sets a variable to decide what the
 default
 archiving method should be.  I would like this key to be `C-c C-a' which
 is why the org-attach key would have to move as well.

That seems like a good idea.

 In Org-mode files
 
 C-c C-a  archive default (setq by org-archive-default-command)
 C-c C-x C-s  org-archive-subtree (C-c $ remains valid as well)
 C-c C-x aorg-toggle-archive-tag
 C-c C-x Aorg-archive-to-archive-sibling

No problems here for me. The keys I use most often are still at their
previous bindings.

 In the agenda
 aarchive with org-archive-default-command

If that hit me by surprise there would be some cussing involved, I
guess. What's the planned default for org-archive-default-command? If
I get a fair warning I'd set it to org-toggle-archive-tag.

 I am wondering how much resistance such a change would create.
---Zitatende---

Not too much, I guess.

-- 
Friedrich Delgado Friedrichs frie...@nomaden.org
 TauPan on Ircnet and Freenode ;)


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


Re: [Orgmode] Proposed key binding changes: archiving and attachments

2009-10-30 Thread Peter Frings


On 30 Oct 2009, at 10:54, Friedrich Delgado Friedrichs wrote:


Carsten Dominik schrieb:

The main reason is that I think there should be a single default key
for archiving, and that the user sets a variable to decide what the
default archiving method should be.  I would like this key to be `C- 
c C-a' which

is why the org-attach key would have to move as well.


[snip]


In the agenda
aarchive with org-archive-default-command


If that hit me by surprise there would be some cussing involved, I
guess. What's the planned default for org-archive-default-command? If
I get a fair warning I'd set it to org-toggle-archive-tag.


I kind of agree that one-letter commands should be `safe': they should  
not do anything that cannot be easily undone; it's just too easy to  
hit them by accident. If it cannot be undone, I prefer the C-x ... key  
sequence, or have the `a' prompt for something.


Cheers,
Peter.


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


[Orgmode] Re: Proposed key binding changes: archiving and attachments

2009-10-30 Thread Matt Lundin
Hi Carsten,

Carsten Dominik carsten.domi...@gmail.com writes:

 Hi everyone,

 I would like to change some key bindings related to archiving,
 and this change will also affect the access key for attachments.

 The main reason is that I think there should be a single default key
 for archiving, and that the user sets a variable to decide what the
 default
 archiving method should be.  I would like this key to be `C-c C-a' which
 is why the org-attach key would have to move as well.

 Here is my proposal:

 In Org-mode files
 -

 C-c C-a  archive default (setq by org-archive-default-command)
 C-c C-x C-s  org-archive-subtree (C-c $ remains valid as well)
 C-c C-x aorg-toggle-archive-tag
 C-c C-x Aorg-archive-to-archive-sibling

 C-c C-x C-a  attach

Since I've taken to using attachments quite a bit, I would most likely
restore the current keybindings in my own settings.

My chief concern with mapping archiving to C-c C-a is that it is too
close to the conventional keybinding for org-agenda (C-c a). With the
proposed keybindings, I fear it might be too easy to introduce drastic
changes in a file accidentally. (E.g., I sometimes hit C-c C-a when I
intend to hit C-c a and vice versa.)


 In the agenda
 -
 aarchive with org-archive-default-command
 C-c C-a  same as a
 C-c C-x aorg-toggle-archive-tag
 C-c C-x Aorg-archive-to-archive-sibling
 C-c C-x C-s  org-archive-subtree ($ remains valid as well)

Again, I would prefer that C-c C-a remain bound to org-attach.

I currently unbind a (org-toggle-archive-tag) in the agenda. In the
past, items often mysteriously disappeared from my agenda view. I
discovered the cause: I was occasionally hitting a by accident.

I agree with Peter that commands with relatively destructive
consequences (such as archiving) should not be bound to a single key.
One wouldn't want to miss an appointment because one accidentally hits
a in the agenda. :)

Thanks for giving us the chance to provide feedback on these proposed
changes.

- Matt



 I am wondering how much resistance such a change would create.

 Comments?

 - Carsten


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


[Orgmode] Make active timestamps visible in CONTENT view?

2009-10-30 Thread Friedrich Delgado Friedrichs
Hi!

I'm just doing my weekly review which entails going through all my org files
in CONTENT view mode (via global cycle). There are some items that have active
timestamps and to see those, I have to switch to SHOW ALL (at least for the
current item).

Is there a way to see the active timestamps in CONTENT mode?

I've clicked through some customisation options in org-structure and org-time
and didn't spot anything.


-- 
Friedrich Delgado Friedrichs frie...@nomaden.org
 TauPan on Ircnet and Freenode ;)


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


Re: [Orgmode] Make active timestamps visible in CONTENT view?

2009-10-30 Thread Carsten Dominik


On Oct 30, 2009, at 1:22 PM, Friedrich Delgado Friedrichs wrote:


Hi!

I'm just doing my weekly review which entails going through all my  
org files
in CONTENT view mode (via global cycle). There are some items that  
have active
timestamps and to see those, I have to switch to SHOW ALL (at least  
for the

current item).

Is there a way to see the active timestamps in CONTENT mode?

I've clicked through some customisation options in org-structure and  
org-time

and didn't spot anything.


Maybe a sparse tree matching 20[0-9]\{2\}

???

- Carsten



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


Re: [Orgmode] Make active timestamps visible in CONTENT view?

2009-10-30 Thread Russell Adams
On Fri, Oct 30, 2009 at 01:22:25PM +0100, Friedrich Delgado Friedrichs wrote:
 Hi!
 
 I'm just doing my weekly review which entails going through all my org files
 in CONTENT view mode (via global cycle). There are some items that have active
 timestamps and to see those, I have to switch to SHOW ALL (at least for the
 current item).
 
 Is there a way to see the active timestamps in CONTENT mode?
 
 I've clicked through some customisation options in org-structure and org-time
 and didn't spot anything.

Try using the agenda in logbook mode C-c a l. You can also view inactive
timestamps with [.

--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


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


[Orgmode] Re: Proposed key binding changes: archiving and attachments

2009-10-30 Thread Bernt Hansen
Peter Frings peter.fri...@agfa.com writes:

 On 30 Oct 2009, at 10:54, Friedrich Delgado Friedrichs wrote:

 Carsten Dominik schrieb:
 The main reason is that I think there should be a single default key
 for archiving, and that the user sets a variable to decide what the
 default archiving method should be.  I would like this key to be
 C- 
 c C-a' which
 is why the org-attach key would have to move as well.

 [snip]

 In the agenda
 aarchive with org-archive-default-command

 If that hit me by surprise there would be some cussing involved, I
 guess. What's the planned default for org-archive-default-command? If
 I get a fair warning I'd set it to org-toggle-archive-tag.

 I kind of agree that one-letter commands should be `safe': they should
 not do anything that cannot be easily undone; it's just too easy to
 hit them by accident. If it cannot be undone, I prefer the C-x ... key
 sequence, or have the `a' prompt for something.

That's my initial reaction too.  I archive using C-c C-x C-s but I bind
it to a macro.  I archive once a month in 'bunches' so I find a subtree
to archive, then do C-x ( C-c C-x C-e (once) then C-x e e e e ... to do
my archiving for a sequential set of subtrees.

I can see hitting 'a' by accident would archive stuff when I don't
intend to.  Maybe if there was a configurable question to verify you
want to archive then that would mitigate this potential problem.  We
would need the ability to toggle this safety question on and off.

-Bernt


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


[Orgmode] Re: Proposed key binding changes: archiving and attachments

2009-10-30 Thread Carsten Dominik


On Oct 30, 2009, at 12:36 PM, Matt Lundin wrote:


Hi Carsten,

Carsten Dominik carsten.domi...@gmail.com writes:


Hi everyone,

I would like to change some key bindings related to archiving,
and this change will also affect the access key for attachments.

The main reason is that I think there should be a single default key
for archiving, and that the user sets a variable to decide what the
default
archiving method should be.  I would like this key to be `C-c C-a'  
which

is why the org-attach key would have to move as well.

Here is my proposal:

In Org-mode files
-

C-c C-a  archive default (setq by org-archive-default-command)
C-c C-x C-s  org-archive-subtree (C-c $ remains valid as well)
C-c C-x aorg-toggle-archive-tag
C-c C-x Aorg-archive-to-archive-sibling

C-c C-x C-a  attach


Since I've taken to using attachments quite a bit, I would most likely
restore the current keybindings in my own settings.

My chief concern with mapping archiving to C-c C-a is that it is too
close to the conventional keybinding for org-agenda (C-c a). With the
proposed keybindings, I fear it might be too easy to introduce drastic
changes in a file accidentally. (E.g., I sometimes hit C-c C-a when I
intend to hit C-c a and vice versa.)



In the agenda
-
aarchive with org-archive-default-command
C-c C-a  same as a
C-c C-x aorg-toggle-archive-tag
C-c C-x Aorg-archive-to-archive-sibling
C-c C-x C-s  org-archive-subtree ($ remains valid as well)


Again, I would prefer that C-c C-a remain bound to org-attach.

I currently unbind a (org-toggle-archive-tag) in the agenda. In the
past, items often mysteriously disappeared from my agenda view. I
discovered the cause: I was occasionally hitting a by accident.

I agree with Peter that commands with relatively destructive
consequences (such as archiving) should not be bound to a single key.
One wouldn't want to miss an appointment because one accidentally hits
a in the agenda. :)


These are convincing arguments from you all, so I will leave things as  
they
are, except that I will make a in the agenda prompt for [y]es and  
then do the archiving, using the default archiving command.  So  
archiving from the agenda will then be `a y'.


- Carsten



Thanks for giving us the chance to provide feedback on these proposed
changes.


Well, I just learned again how important this is.  Thanks for chiming in



- Matt




I am wondering how much resistance such a change would create.

Comments?

- Carsten


- Carsten





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


[Orgmode] exclude certain types from agenda

2009-10-30 Thread Richard Riley

Is it possible to exclude certain tags from the normal agenda?
(org-agenda a).

I have vocab org items to learn (tagged VOCAB) but only want to see them from a
specially selected agenda tags v view : not from the normal agenda.

regards

r.





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


[Orgmode] Re: Proposed key binding changes: archiving and attachments

2009-10-30 Thread Detlef Steuer
On Fri, 30 Oct 2009 07:36:43 -0400
Matt Lundin m...@imapmail.org wrote:

 My chief concern with mapping archiving to C-c C-a is that it is too
 close to the conventional keybinding for org-agenda (C-c a). With the
 proposed keybindings, I fear it might be too easy to introduce drastic
 changes in a file accidentally. (E.g., I sometimes hit C-c C-a when I
 intend to hit C-c a and vice versa.)

That was my fear, too. If you don't use the archive on a regular basis you'll 
be very surprised, when your entry vanishes ...

:-)

It is _very_ close to C-c a.

Detlef



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


[Orgmode] Re: Using org-learn and babel to learn foreign words

2009-10-30 Thread Richard Riley
Richard Riley rileyrg...@gmail.com writes:

 This little set up uses org-learn in conjunction with babel in emacs to
 automatically store all translations looked up from within emacs when
 preceded with the prefix key. I'm not much of an elisp programmer but
 here is the stuff for anyone interested:-

 1) The key bindings:-

 Invoke a translation on the word or region at point

 ,
 | (global-set-key (kbd f5)
 (lambda()(interactive)(rgr/context-babel)))

Correction:

,
| (global-set-key (kbd f5) (lambda()(interactive)(rgr/context-babel t)))
`




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


[Orgmode] Re: exclude certain types from agenda

2009-10-30 Thread Matt Lundin
Richard Riley rileyrg...@gmail.com writes:

 Is it possible to exclude certain tags from the normal agenda?
 (org-agenda a).

 I have vocab org items to learn (tagged VOCAB) but only want to see them from 
 a
 specially selected agenda tags v view : not from the normal
 agenda.

Two options: 

1) 

(setq org-agenda-filter-preset '(-VOCAB))


2) 

(setq org-agenda-skip-function 
  '(org-agenda-skip-entry-if 'regexp :VOCAB:))

Either of these should work. Note: they will apply to all of your agenda
views. I.e., you'll have to adjust the local setting of the variable
appropriately in your custom agenda commands if you want to see :VOCAB:
items in a particular view.

Best,
Matt


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


[Orgmode] Re: Proposed key binding changes: archiving and attachments

2009-10-30 Thread Leo
On 2009-10-30 06:54 +, Carsten Dominik wrote:
 I would like to change some key bindings related to archiving, and
 this change will also affect the access key for attachments.

 The main reason is that I think there should be a single default key
 for archiving, and that the user sets a variable to decide what the
 default archiving method should be. I would like this key to be `C-c
 C-a' which is why the org-attach key would have to move as well.

I think one of these days we could take a look at the whole of the key
bindings in org mode. It is violating some conventions. For example,
'Alt' usually means something slightly different in actions in both
Emacs and other applications on the system:

 `C-f'   - forward-char
 `C-M-f' - forward-sexp

On OS X,
  Cmd + H   - Hide APP
  Cmd + Option(Alt) + H - Hide others

But in org, it seems the Shift key is taking this role:

   M-RET
   M-S-RET
   ..

And usually Shift is not a modifier on terminals so another set of keys
are provided.

Another problem is the C-c C-x prefix. It makes the keys look long. And
I always fear I might type C-x C-c instead which exits Emacs.


Best wishes,

Leo


-- 
Emacs uptime: 38 days, 8 hours, 42 minutes, 15 seconds


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


[Orgmode] org-remember bug?

2009-10-30 Thread Adam Spiers
Hi all,

With commit 79bcdbe73667be7ad811c1f2facd419cbef90426 of
http://repo.or.cz/r/org-mode.git, remember 2.0, and a value of
org-remember-templates similar to the following (I removed some
entries which work):

((Procrastination 80 * [#B] %T %^{activity}\n  :PROPERTIES:\n  
:thoughts/feelings: %^{thoughts/feelings}\n  :justification: 
%^{justification}\n  :attempted solution: %^{attempted solution}\n  :resultant 
thoughts/feelings: %^{resultant thoughts/feelings}\n  :END: 
~/roaming/notes/Procrastination.log bottom nil))

I get this error when I hit C-c C-c in the *Remember* buffer:

Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil)
  insert(nil)
  (cond ((not ...) (if ... ... ... ...) (insert text-before-node-creation) 
(when remember-save-after-remembering ... ...) (throw ... t)) ((eq heading ...) 
(goto-char ...) (or ... ...) (setq org-goto-start-pos ...)) ((eq heading ...) 
(goto-char ...) (or ... ...) (setq org-goto-start-pos ...)) ((and ... ...) 
(goto-char ...) (if ... ... ...)) (t (goto-char ...) (setq org-goto-start-pos 
... heading ...)))
  (progn (cond (... ... ... ... ...) (... ... ... ...) (... ... ... ...) (... 
... ...) (t ... ...)))
  (if heading (progn (cond ... ... ... ... ...)))
  (when heading (cond (... ... ... ... ...) (... ... ... ...) (... ... ... ...) 
(... ... ...) (t ... ...)))
  (save-restriction (widen) (setq reversed (org-notes-order-reversed-p)) (when 
heading (cond ... ... ... ... ...)) (cond (... ...) (fastp ...) (... ...) (... 
...) (t ...)) (if (not spos) (throw ... nil)) (and visitp (run-with-idle-timer 
0.01 nil ...)) (goto-char spos) (cond (... ... ... ...) (... ... ... ... ...) 
(... ...) (... ...) (t ... ... ... ...)) (when remember-save-after-remembering 
(save-buffer) (if ... ...)) (when org-remember-auto-remove-backup-files (when 
backup-file ...) (when org-remember-backup-directory ...)))
  (save-excursion (save-restriction (widen) (setq reversed ...) (when heading 
...) (cond ... ... ... ... ...) (if ... ...) (and visitp ...) (goto-char spos) 
(cond ... ... ... ... ...) (when remember-save-after-remembering ... ...) (when 
org-remember-auto-remove-backup-files ... ...)))
  (save-current-buffer (set-buffer (or visiting ...)) (unless (or ... ...) 
(error Target files for notes must be in Org-mode if not filing to 
top/bottom)) (save-excursion (save-restriction ... ... ... ... ... ... ... ... 
... ...)))
  (with-current-buffer (or visiting (find-file-noselect file)) (unless (or ... 
...) (error Target files for notes must be in Org-mode if not filing to 
top/bottom)) (save-excursion (save-restriction ... ... ... ... ... ... ... ... 
... ...)))
  (let* ((visitp ...) (backup-file ...) (dummy ...) (previousp ...) (clockp 
...) (fastp ...) (file ...) (heading org-remember-default-headline) (visiting 
...) (org-startup-folded nil) (org-startup-align-all-tables nil) 
(org-goto-start-pos 1) spos exitcmd level reversed txt 
text-before-node-creation) (when (equal current-prefix-arg ...) (setq visitp 
t)) (when previousp (setq file ... visiting ... heading ... fastp t)) (when 
clockp (setq file ... visiting ... heading org-clock-heading-for-remember fastp 
t)) (setq current-prefix-arg nil) (when org-remember-delete-empty-lines-at-end 
(goto-char ...) (if ... ...)) (goto-char (point-min)) (unless (looking-at 
org-outline-regexp) (setq text-before-node-creation ...) (insert ...) 
(backward-char 1) (when org-adapt-indentation ...)) (when 
org-remember-delete-empty-lines-at-end (goto-char ...) (if ... ... ...)) 
(goto-char (point-min)) (setq txt (buffer-string)) (org-save-markers-in-region 
(point-min) (point-max)) (set-buffer-modified-p nil) (when (and ... ...) 
(org-refile nil ...) (and visitp ...) (save-excursion ... ... ...) (throw ... 
t)) (with-current-buffer (or visiting ...) (unless ... ...) (save-excursion 
...)))
  (catch (quote quit) (if org-note-abort (throw ... t)) (let* (... ... ... ... 
... ... ... ... ... ... ... ... spos exitcmd level reversed txt 
text-before-node-creation) (when ... ...) (when previousp ...) (when clockp 
...) (setq current-prefix-arg nil) (when org-remember-delete-empty-lines-at-end 
... ...) (goto-char ...) (unless ... ... ... ... ...) (when 
org-remember-delete-empty-lines-at-end ... ...) (goto-char ...) (setq txt ...) 
(org-save-markers-in-region ... ...) (set-buffer-modified-p nil) (when ... ... 
... ... ...) (with-current-buffer ... ... ...)))
  org-remember-handler()
  run-hook-with-args-until-success(org-remember-handler)
  remember-region(1 179)
  remember-finalize()
  org-remember-finalize()
  call-interactively(org-remember-finalize nil nil)

I tried to debug but got lost in a maze of code I didn't understand.
Any ideas?

Thanks!
Adam


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


[Orgmode] Re: exclude certain types from agenda

2009-10-30 Thread Richard Riley
Matt Lundin m...@imapmail.org writes:

 Richard Riley rileyrg...@gmail.com writes:

 Is it possible to exclude certain tags from the normal agenda?
 (org-agenda a).

 I have vocab org items to learn (tagged VOCAB) but only want to see them 
 from a
 specially selected agenda tags v view : not from the normal
 agenda.

 Two options: 

 1) 

 (setq org-agenda-filter-preset '(-VOCAB))

 2) 

 (setq org-agenda-skip-function 
   '(org-agenda-skip-entry-if 'regexp :VOCAB:))

 Either of these should work. Note: they will apply to all of your agenda
 views. I.e., you'll have to adjust the local setting of the variable
 appropriately in your custom agenda commands if you want to see :VOCAB:
 items in a particular view.

 Best,
 Matt


Oh, very good,  thanks a lot.

My agenda command is now:

,
| (v Vocab tags VOCAB ((org-agenda-filter-preset 
'(+VOCAB))(org-agenda-todo-ignore-with-date nil)))
`

and the global agenda filter preset is


,
| (setq org-agenda-filter-preset '(-VOCAB))
`

regards,

r.



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


[Orgmode] Folding comments under clock entries

2009-10-30 Thread Tony Ware
I've been increasingly using clocking to keep track of how I'm
spending my time, and I like to make notes under clock entries so I
can look back over what I was doing. This can get a bit unwieldy if
the notes start to become at all substantial. Is there any way to make
the clock entries act like node headers (at least when they are
enclosed in a LOGBOOK drawer for example, so that the text between
them can be folded and unfolded using the TAB?

Here's an example of what I'm trying to describe.

:LOGBOOK:
CLOCK: [2009-10-29 Thu 11:00]--[2009-10-29 Thu 12:13] =  1:13
Office hour, lecture prep.
CLOCK: [2009-10-28 Wed 14:35]--[2009-10-28 Wed 14:49] =  0:14
Did something else
CLOCK: [2009-10-27 Tue 11:29]--[2009-10-27 Tue 13:50] =  2:21
I did quite a lot here:
- this
- that
- the other thing
CLOCK: [2009-10-27 Tue 09:50]--[2009-10-27 Tue 10:56] =  1:06
This time wasn't wasted either
:END:

It would be great to be able to see this as a list of clock entries
only (with trailing ellipses perhaps) and to be able to expand to see
the text if desired.

Thanks,

Tony

-- 
http://www.math.ucalgary.ca/~aware


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


Re: [Orgmode] Folding comments under clock entries

2009-10-30 Thread Russell Adams
On Fri, Oct 30, 2009 at 02:32:22PM -0600, Tony Ware wrote:
 I've been increasingly using clocking to keep track of how I'm
 spending my time, and I like to make notes under clock entries so I
 can look back over what I was doing. This can get a bit unwieldy if
 the notes start to become at all substantial. Is there any way to make
 the clock entries act like node headers (at least when they are
 enclosed in a LOGBOOK drawer for example, so that the text between
 them can be folded and unfolded using the TAB?
 
 Here's an example of what I'm trying to describe.
 
 :LOGBOOK:
 CLOCK: [2009-10-29 Thu 11:00]--[2009-10-29 Thu 12:13] =  1:13
 Office hour, lecture prep.
 CLOCK: [2009-10-28 Wed 14:35]--[2009-10-28 Wed 14:49] =  0:14
 Did something else
 CLOCK: [2009-10-27 Tue 11:29]--[2009-10-27 Tue 13:50] =  2:21
 I did quite a lot here:
 - this
 - that
 - the other thing
 CLOCK: [2009-10-27 Tue 09:50]--[2009-10-27 Tue 10:56] =  1:06
 This time wasn't wasted either
 :END:
 
 It would be great to be able to see this as a list of clock entries
 only (with trailing ellipses perhaps) and to be able to expand to see
 the text if desired.
 
 Thanks,
 
 Tony

This is oddly on topic for the last few items.

I watch what I was doing when by adding an inactive timestamp into my
outline in place with my notes each time I come back to them.

I also use the clock, but only to track billable hours.

When I want to see what I was doing when, I use the agenda, log mode
L, and enable inactive timestamps [.

I don't like intermixing notes in the property drawer, I see that as
metadata storage only. Notes are content.

--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


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


[Orgmode] Agenda clock report does not follow links via keypress

2009-10-30 Thread Chris Leyon
When I generate a clock report in the agenda, the Headline column
contains things that *look like* Org links.  I can mouse-1 or mouse-2
on them and the corresponding items pop up correctly.  But if I move
point onto one of these and press Return, I am told Command not
allowed in this line, even though org-return-follows-link is t.  If I
press `C-c C-o', I get Wrong type argument: number-or-marker-p, nil.
 I am using org-version 6.32 on GNU Emacs 23.1.


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


[Orgmode] org-table-import fails with negative number

2009-10-30 Thread Dan Davison
If a file contains -1 followed by a newline and nothing else,
org-table-import on that file fails. The first commit with this property
is a commit (below) to do with CVS tables made a few days ago. I have
given up trying to work out a good solution to this :) In case it is
useful, the failure occurs when org-table-align is called at the end of
org-table-convert-region. I think it is long-standing behaviour that
hitting tab inside of
|-1|
doesn't make a table containing -1, so presumably there is something
different about the context in which org-table-align is now being
called.

Dan

commit 59c9c4cdd4ae974dfb92ab441462b3fee48ab5af
Author: Carsten Dominik carsten.domi...@gmail.com
Date:   Mon Oct 26 12:31:16 2009 +0100

Correctly interpret CVS tables with quoted fields

The csv parser was very primitive, ignoring quoted fields.  This is
now fixed.


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


[Orgmode] suggestion: automatically recording entry creation date

2009-10-30 Thread Ilya Shlyakhter
A frequently-needed task is to find recently created entries.  Right
now I do this by manually pasting a date into each entry,
and using the timeline agenda.
Maybe, there are better ways?  E.g. have the option to automatically
record a property, Creation-date, when an entry is created.
There would be much clutter if every entry had a :PROPERTIES: line.
But maybe there could be an option to hide the :PROPERTIES:
lines completely, unless it contained some user-defined properties.

Or, creation date could be stored as a text property, to avoid
clutter, for long-running emacs sessions.   But it would be lost when
the file is closed.
Maybe at file-closing time it could be converted to a normal property
in the :PROPERTIES: drawer.

Or maybe there are other options?

ilya


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


Re: [Orgmode] Re: contact management in org-mode?

2009-10-30 Thread Russell Adams
On Fri, Oct 30, 2009 at 09:48:16AM +0100, Uwe Jochum wrote:
 Hi all,

 has someone tried forms for the purpose of contact management? See:

 http://sunsite.ualberta.ca/Documentation/Gnu/emacs-21.1/html_chapter/forms_frame.html

 Best,

 Uwe

Given the discussion about a simple database, it struck me that I
might just use properties and column mode. Dynamic fields and views,
hotlinks, VC, text file...

---
#+COLUMNS: %20ITEM %10Company %14WorkPhone %15WorkEmail

* Smith, Bob  :WORK:
  :PROPERTIES:
  :Title:Chief Decider
  :Company:  Boodle Bits
  :WorkEmail: d...@1332.com
  :WorkAddress: 1234 Waddle Lane
  :WorkCity: Anywhere
  :WorkState: TX
  :WorkZip:  080384
  :WorkPhone: 281-555-1212
  :WorkCell:
  :WorkFax:
  :HomeEmail:
  :HomeAddress:
  :HomeCity:
  :HomeState:
  :HomeZip:
  :HomePhone:
  :HomeCell:
  :HomeFax:
  :END:

Bob's note here, neatly folded.

---

Now, I know this won't give me synchronization. Unfortunately I think
that's a lost cause currently, I just want a way to find a contact.

Fast finding on the CLI?

awk 'BEGIN {RS=\n\n\\*  ; IGNORECASE=1} /chief/ {print $0}' Contacts.org 

I can even adapt that to give me emails for mutt.

Yes there's no way to push this to CSV and back, but I could write
something in an hour in Perl to do so. (feature idea! Export
column-view as csv...)

I thought I'd post here for feedback prior to committing my contacts
to this format.

Thanks.

--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


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


Re: [Orgmode] Re: contact management in org-mode?

2009-10-30 Thread Russell Adams
 Now, I know this won't give me synchronization. Unfortunately I think
 that's a lost cause currently, I just want a way to find a contact.
 
 Fast finding on the CLI?
 
 awk 'BEGIN {RS=\n\n\\*  ; IGNORECASE=1} /chief/ {print $0}' Contacts.org 
 
 I can even adapt that to give me emails for mutt.
 
 Yes there's no way to push this to CSV and back, but I could write
 something in an hour in Perl to do so. (feature idea! Export
 column-view as csv...)
 
 I thought I'd post here for feedback prior to committing my contacts
 to this format.


Looking into this some more, export is really easy. I can just use a
dynamic block to store column view in whatever format I choose, and
export then search  replace ',' for '|'. That is minimal effort!

Sparse searches in column view, hierarchy organization, etc. I'm
trying to find a problem here.

--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


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


[Orgmode] Re: suggestion: automatically recording entry creation date

2009-10-30 Thread Bernt Hansen
Ilya Shlyakhter ilya_...@alum.mit.edu writes:

 A frequently-needed task is to find recently created entries.  Right
 now I do this by manually pasting a date into each entry,
 and using the timeline agenda.
 Maybe, there are better ways?  E.g. have the option to automatically
 record a property, Creation-date, when an entry is created.
 There would be much clutter if every entry had a :PROPERTIES: line.
 But maybe there could be an option to hide the :PROPERTIES:
 lines completely, unless it contained some user-defined properties.

 Or, creation date could be stored as a text property, to avoid
 clutter, for long-running emacs sessions.   But it would be lost when
 the file is closed.
 Maybe at file-closing time it could be converted to a normal property
 in the :PROPERTIES: drawer.

 Or maybe there are other options?

I have a hook that adds creation date to a task as follows

(defun bh/insert-inactive-timestamp ()
  (interactive)
  (save-excursion
(insert \n)
(org-cycle)
(org-insert-time-stamp nil t t nil nil nil)))

(add-hook 'org-insert-heading-hook 'bh/insert-inactive-timestamp)

which makes new entries look like this when hitting 'S-RET New Entry'

* TODO New entry
  [2009-10-31 Sat 00:56]

This is an inactive timestamp which you can display on the agenda with [
or ].

HTH,
Bernt


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