emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org Properties and tab completion issues
@ 2012-07-08 23:35 dlc
  2012-07-12  8:04 ` Bastien
  0 siblings, 1 reply; 3+ messages in thread
From: dlc @ 2012-07-08 23:35 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2624 bytes --]


Using the example in the Org Manual doesn't seem to work although I am new to emacs and org mode so maybe i'm not grasping the concept.
I set org-use-inheritance to true, I saved the file and loaded it fresh and tried C-c C-c on the #+PROPERTY line to refresh local setup.

Problems:
1. If the property is not yet used on an entry, tab completion only shows "property_ALL" instead of "property", and of course there is no completion on possible values. 
2. inherited properties - Where is the GENRES property and the inheritance?
3. Is there a way to display only some of the STANDARD properties along with my custom properties in the completion buffer?

See sample org file below:

Use case - i am trying to manage my contacts and want to predefine about 30 properties and their allowed values before using them.  I want to use COLUMN view to look through 1,000's of contacts and possibly sort them by different criteria depending on task at hand.  I will use agenda to manage TODOs and SCHEDULED.  By setting a UUID for each top -level entry (a person) then possibly write some functions (providing a database -like functionality).  I need this to work across Windows, Mac Leopard & Lion, Centos, and OpenSuse, along with syncing some contact info to iPhone & iPad, all whether I'm online or offline (in the field).  I will use svn or git to keep things current on the desktop/laptop platforms.   


#+PROPERTY: NDisks_ALL 1 2 3 4

* CD collection
  :PROPERTIES:
  :Publisher_ALL: "Deutsche Grammophon" Philips EMI
  :END:
** Classic
   :PROPERTIES:
   :GENRES:   Classic
   :END:
*** Goldberg Variations
    :PROPERTIES:
    :Title:    Goldberg Variations
    :Artist:   Glen Gould
    :Composer: J.S. Bach
    :Publisher: Deutsche Grammophon
    :NDisks:    1
    :GENRES+: Baroque
    :END:

#+begin_src emacs-lisp :results output
(print (version))
(print org-use-property-inheritance)
(print (org-entry-properties nil ))
#+end_src

#+RESULTS:
: 
: "GNU Emacs 24.1.1 (x86_64-apple-darwin11.3.0, NS apple-appkit-1138.32)
:  of 2012-06-15 on gamma.local"
: 
: t
: 
: (("FILE" . "/Users/davidcoate/gtd/temp.org") ("BLOCKED" . "") ("Title" . "Goldberg Variations") ("Artist" . "Glen Gould") ("Composer" . "J.S. Bach") ("Publisher" . "Deutsche Grammophon") ("NDisks" . "1") ("CATEGORY" . "temp"))






David Coate
Broker Associate
"Coate Connection"
www.CoateConnection.com
Re/Max Paradise
www.AlabamaParadise.com
Licensed in AL and FL
23525 Perdido Beach Blvd.
Orange Beach, Al 36561
251-213-8811 cell
251-948-8888 fax
1-800-339-2836 direct toll free



[-- Attachment #2: Type: text/html, Size: 6433 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Org Properties and tab completion issues
  2012-07-08 23:35 Org Properties and tab completion issues dlc
@ 2012-07-12  8:04 ` Bastien
  2012-07-12 13:36   ` dlc
  0 siblings, 1 reply; 3+ messages in thread
From: Bastien @ 2012-07-12  8:04 UTC (permalink / raw)
  To: dlc; +Cc: emacs-orgmode

Hi Dave,

dlc <dlc@coateconnection.com> writes:

> Using the example in the Org Manual doesn't seem to work although I
> am new to emacs and org mode so maybe i'm not grasping the concept.
> I set org-use-inheritance to true

(I assume this is `org-use-property-inheritance'.)

> Problems:
> 1. If the property is not yet used on an entry, tab completion only
> shows "property_ALL" instead of "property", and of course there is no
> completion on possible values. 

There was a small bug here -- please pull from git and test.
Thanks for reporting this.

> 2. inherited properties - Where is the GENRES property and the
> inheritance?

I don't understand.

> 3. Is there a way to display only some of the STANDARD properties
> along with my custom properties in the completion buffer?

Nope.  I think completion is handy enough like this, but perhaps I
misunderstand the request.

HTH,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Org Properties and tab completion issues
  2012-07-12  8:04 ` Bastien
@ 2012-07-12 13:36   ` dlc
  0 siblings, 0 replies; 3+ messages in thread
From: dlc @ 2012-07-12 13:36 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

>
>
>> Problems:
>> 1. If the property is not yet used on an entry, tab completion only
>> shows "property_ALL" instead of "property", and of course there is no
>> completion on possible values.
>
> There was a small bug here -- please pull from git and test.
> Thanks for reporting this.
>
>> 2. inherited properties - Where is the GENRES property and the
>> inheritance?
>
> I don't understand.

The manual gives an example of an inherited property (GENRES in the  
discography example) but (org-entry-properties) does not return it.   
Is there a different function for this? From the function description:

"(org-entry-properties &optional POM WHICH SPECIFIC)

Get all properties of the entry at point-or-marker POM.
This includes the TODO keyword, the tags, time strings for deadline,
scheduled, and clocking, and any additional properties defined in the
entry.  The return value is an alist, keys may occur multiple times
if the property key was used several times.
POM may also be nil, in which case the current entry is used.
If WHICH is nil or `all', get all properties.  If WHICH is
`special' or `standard', only get that subclass.  If WHICH
is a string only get exactly this property.  SPECIFIC can be a string,  
the
specific property we are interested in.  Specifying it can speed
things up because then unnecessary parsing is avoided. "

By the way, how is WHICH different from SPECIFIC?

>
>> 3. Is there a way to display only some of the STANDARD properties
>> along with my custom properties in the completion buffer?
>
> Nope.  I think completion is handy enough like this, but perhaps I
> misunderstand the request.
>

There are about 28 STANDARD properties, if I add 30 custom properties,  
the completion list becomes overwhelming.  Is there a way to to  
hardcode the completion list to just the properties I want it to offer?

> HTH,
>
> -- 
> Bastien
>

Thanks Bastien!!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-12 13:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-08 23:35 Org Properties and tab completion issues dlc
2012-07-12  8:04 ` Bastien
2012-07-12 13:36   ` dlc

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).