Re: [Orgmode] Re: does #+PROPERTY still exist ?
On Sep 23, 2010, at 7:19 AM, Vincent Belaïche wrote: Thanks for the feedback, I'll download the latest. Yes, I just meant that *completion* does not work for property name, addition of property works fine. I have just fixed this issue, now completion should work on both the # +property keyword itself, as well as the property name after it. Cheers - Carsten Vincent. To: nicholas.do...@hp.com From: nicholas.do...@hp.com Subject: Re: [Orgmode] Re: does #+PROPERTY still exist ? Date: Thu, 23 Sep 2010 00:34:19 -0400 CC: vincent@hotmail.fr; emacs-orgmode@gnu.org; Nick Dokos nicholas.do...@hp.com wrote: Vincent Belaïche vincent@hotmail.fr wrote: ... 2.2 The completion at `Value:' prompt does not propose 1 2 or 3 Yes. I don't know how difficult it would be to add these features. Actually, pressing TAB after the value prompt *does* produce the list of allowed values in the more-or-less current version I'm running: Org-mode version 7.01trans (release_7.01h.500.gbbac.dirty) Nick ___ 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 ___ 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 ___ 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: does #+PROPERTY still exist ?
Noorul Islam K M noo...@noorul.com wrote: Nick Dokos nicholas.do...@hp.com writes: Vincent Belaïche vincent@hotmail.fr wrote: In the org manual node `(org) Property syntax' one can read the following: --8-coupez ici--début--8--- If you want to set properties that can be inherited by any entry in a file, use a line like #+PROPERTY: NDisks_ALL 1 2 3 4 --8-coupez ici---fin---8--- However this does not seem to work. In what way does it fail to work? AFAICT, it works as advertised: after inserting the above line, I try to insert a NDisks property with C-c C-x p NDisksRET5RET and it complains (No match). If I use e.g. 3 instead of 5, the property is inserted. In the below example #+PROPERTY: Age 25 #+COLUMNS: %25ITEM %Age * Heading 1 * Heading 2 When I try to use column view to edit the property it is not using the format that I mentioned at the file level. But the following one works * Heading 1 :PROPERTIES: :Age: 25 :COLUMNS: %25ITEM %Age :END: * Heading 2 Looks like the file level settings are not working. If I evaluate the form (org-entry-get (point) Age t) with the point at any heading, I get 25. OTOH, even with org-use-property-inheritance set to t, column view does not show it. Ergo, it's a column view bug. In org-columns-compute, I see ... (while (re-search-backward re beg t) (setq sumpos (match-beginning 0) last-level level level (org-outline-level) val (org-entry-get nil property) ... I suspect the val line needs to be val (org-entry-get nil property org-use-property-inheritance) instead. HTH, Nick ___ 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: does #+PROPERTY still exist ?
Nick Dokos nicholas.do...@hp.com wrote: Noorul Islam K M noo...@noorul.com wrote: In the below example #+PROPERTY: Age 25 #+COLUMNS: %25ITEM %Age * Heading 1 * Heading 2 When I try to use column view to edit the property it is not using the format that I mentioned at the file level. But the following one works * Heading 1 :PROPERTIES: :Age: 25 :COLUMNS: %25ITEM %Age :END: * Heading 2 Looks like the file level settings are not working. If I evaluate the form (org-entry-get (point) Age t) with the point at any heading, I get 25. OTOH, even with org-use-property-inheritance set to t, column view does not show it. Ergo, it's a column view bug. In org-columns-compute, I see ... (while (re-search-backward re beg t) (setq sumpos (match-beginning 0) last-level level level (org-outline-level) val (org-entry-get nil property) ... I suspect the val line needs to be val (org-entry-get nil property org-use-property-inheritance) instead. No, that's not it. I think the basic problem is that org-entry-properties ignores inheritance altogether (in particular, it parses property names explicitly instead of using org-entry-get)[1]. Nick [1] ... but it's late, I'm tired and I may very well be wrong - again. ___ 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: does #+PROPERTY still exist ?
On Sep 22, 2010, at 8:58 AM, Noorul Islam K M wrote: Nick Dokos nicholas.do...@hp.com writes: Vincent Belaïche vincent@hotmail.fr wrote: In the org manual node `(org) Property syntax' one can read the following: --8-coupez ici--début--8--- If you want to set properties that can be inherited by any entry in a file, use a line like #+PROPERTY: NDisks_ALL 1 2 3 4 --8-coupez ici---fin---8--- However this does not seem to work. In what way does it fail to work? AFAICT, it works as advertised: after inserting the above line, I try to insert a NDisks property with C-c C-x p NDisksRET5RET and it complains (No match). If I use e.g. 3 instead of 5, the property is inserted. In the below example #+PROPERTY: Age 25 #+COLUMNS: %25ITEM %Age * Heading 1 * Heading 2 When I try to use column view to edit the property it is not using the format that I mentioned at the file level. But the following one works * Heading 1 :PROPERTIES: :Age: 25 :COLUMNS: %25ITEM %Age :END: * Heading 2 Looks like the file level settings are not working. They are, but 1. inheritance is not on by default, you need to enable if for specific properties. 2. Column view never looks at inherited values. That iswhy it is not using org-entry-get with an inheritance flag. Column view only shows and edits properties that are local to each entry. Otherwise, editing an inherited value would silently edit it also for other entries. I hope this makes it a bit clearer. - Carsten ___ 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: does #+PROPERTY still exist ?
On 09/22/2010 10:13 PM, Vincent Belaïche wrote: Hello all, Thanks for all the feedback. I am using Org-mode version 6.33x which is the latest on emacs CVS repository --- that may be outdated as emacs is using bazaar now. Yes, very outdated. Orgmode 7.01 was released over two months ago now. You can get the latest from http://orgmode.org It is a very simple installation, just download and add a couple directories to your load-path. You can also get the latest from git, which is what I do. What is not working is 1. Auto-completion of `#+PROP' does not work 2. `C-c C-x p' does not work. Look at the following example: --8-coupez ici--début--8--- #+PROPERTY: toto_ALL 1 2 3 * test Then I type here `C-c C-x p' --8-coupez ici---fin---8--- 2.1 The completion at `Property:' prompt does not propose `toto' 2.2 The completion at `Value:' prompt does not propose 1 2 or 3 Hope that this clarifies the issue. Vincent. PS-1: Where can I get the latest org-mode ? PS-2: Sorry for my first email contained an error, setting properties before the 1st heading does not work. ___ 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 ___ 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: does #+PROPERTY still exist ?
Vincent Belaïche vincent@hotmail.fr wrote: Thanks for all the feedback. I am using Org-mode version 6.33x which is the latest on emacs CVS repository --- that may be outdated as emacs is using bazaar now. What is not working is 1. Auto-completion of `#+PROP' does not work Indeed: #+PROPERTY is missing from org-get-current-options in org-exp.el. 2. `C-c C-x p' does not work. That should say: *completion* in C-c C-x p (org-set-property) does not work. The function itself works just fine. Look at the following example: --8-coupez ici--début--8--- #+PROPERTY: toto_ALL 1 2 3 * test Then I type here `C-c C-x p' --8-coupez ici---fin---8--- 2.1 The completion at `Property:' prompt does not propose `toto' 2.2 The completion at `Value:' prompt does not propose 1 2 or 3 Yes. I don't know how difficult it would be to add these features. Hope that this clarifies the issue. Yes, thsnks! Nick ___ 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: does #+PROPERTY still exist ?
Nick Dokos nicholas.do...@hp.com wrote: Vincent Belaïche vincent@hotmail.fr wrote: ... 2.2 The completion at `Value:' prompt does not propose 1 2 or 3 Yes. I don't know how difficult it would be to add these features. Actually, pressing TAB after the value prompt *does* produce the list of allowed values in the more-or-less current version I'm running: Org-mode version 7.01trans (release_7.01h.500.gbbac.dirty) Nick ___ 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: does #+PROPERTY still exist ?
Thanks for the feedback, I'll download the latest. Yes, I just meant that *completion* does not work for property name, addition of property works fine. Vincent. To: nicholas.do...@hp.com From: nicholas.do...@hp.com Subject: Re: [Orgmode] Re: does #+PROPERTY still exist ? Date: Thu, 23 Sep 2010 00:34:19 -0400 CC: vincent@hotmail.fr; emacs-orgmode@gnu.org; Nick Dokos nicholas.do...@hp.com wrote: Vincent Belaïche vincent@hotmail.fr wrote: ... 2.2 The completion at `Value:' prompt does not propose 1 2 or 3 Yes. I don't know how difficult it would be to add these features. Actually, pressing TAB after the value prompt *does* produce the list of allowed values in the more-or-less current version I'm running: Org-mode version 7.01trans (release_7.01h.500.gbbac.dirty) Nick ___ 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 ___ 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