emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* in-buffer completion question
@ 2011-03-01 21:56 henry atting
  2011-03-01 22:06 ` Erik Iverson
  2011-03-01 22:19 ` Carsten Dominik
  0 siblings, 2 replies; 5+ messages in thread
From: henry atting @ 2011-03-01 21:56 UTC (permalink / raw)
  To: emacs-orgmode

Let's say I am in an orgmode buffer, more precisely I
opened a file with org-contacts.
My first entry is:

** Mr.X
:PROPERTIES:
:EMAIL:  mail@mail.me
:END:

Then I want to create a new entry. Of course I am to
lazy to type ´:PROPERTIES:´ so I type ´:PR´ then hit
M-TAB. But instead of the word being completed I get
´There is no completion of PR´. 

Okay, but I can see that actually there is one, it's in the
buffer. I read that the new orgmode completion method
is derived from the method John Wiegley has implemented.
In ledger-mode however M-Tab not only completes the
unfinished word but lets me cycle through the alternatives
given in the current buffer.
So, that is what I would expect in orgmode too...

henry

-- 
http://literaturlatenight.de

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

* Re: in-buffer completion question
  2011-03-01 21:56 in-buffer completion question henry atting
@ 2011-03-01 22:06 ` Erik Iverson
  2011-03-01 22:19 ` Carsten Dominik
  1 sibling, 0 replies; 5+ messages in thread
From: Erik Iverson @ 2011-03-01 22:06 UTC (permalink / raw)
  To: henry atting; +Cc: emacs-orgmode

Not really answering your question, but you do
know about C-c C-x p  to set properties?

henry atting wrote:
> Let's say I am in an orgmode buffer, more precisely I
> opened a file with org-contacts.
> My first entry is:
> 
> ** Mr.X
> :PROPERTIES:
> :EMAIL:  mail@mail.me
> :END:
> 
> Then I want to create a new entry. Of course I am to
> lazy to type ´:PROPERTIES:´ so I type ´:PR´ then hit
> M-TAB. But instead of the word being completed I get
> ´There is no completion of PR´. 
> 
> Okay, but I can see that actually there is one, it's in the
> buffer. I read that the new orgmode completion method
> is derived from the method John Wiegley has implemented.
> In ledger-mode however M-Tab not only completes the
> unfinished word but lets me cycle through the alternatives
> given in the current buffer.
> So, that is what I would expect in orgmode too...
> 
> henry
> 

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

* Re: in-buffer completion question
  2011-03-01 21:56 in-buffer completion question henry atting
  2011-03-01 22:06 ` Erik Iverson
@ 2011-03-01 22:19 ` Carsten Dominik
  2011-03-03  5:30   ` John Wiegley
  1 sibling, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2011-03-01 22:19 UTC (permalink / raw)
  To: henry atting, John Wiegley; +Cc: emacs-orgmode


On 1.3.2011, at 22:56, henry atting wrote:

> Let's say I am in an orgmode buffer, more precisely I
> opened a file with org-contacts.
> My first entry is:
> 
> ** Mr.X
> :PROPERTIES:
> :EMAIL:  mail@mail.me
> :END:
> 
> Then I want to create a new entry. Of course I am to
> lazy to type ´:PROPERTIES:´ so I type ´:PR´ then hit
> M-TAB. But instead of the word being completed I get
> ´There is no completion of PR´. 
> 
> Okay, but I can see that actually there is one, it's in the
> buffer. I read that the new orgmode completion method
> is derived from the method John Wiegley has implemented.
> In ledger-mode however M-Tab not only completes the
> unfinished word but lets me cycle through the alternatives
> given in the current buffer.
> So, that is what I would expect in orgmode too...

Dynamic completion based on buffer contents is a standard Emacs feature
which is normally bound to M-/
Maybe ledger.el falls back onto dynamic completion when there is nothing
else to complete?  Org-mode used to fall back onto hippie-expand.  But
I see now that this has fallen through when we moved to pcomplete.
Maybe this can be put back in?

- Carsten

> 
> henry
> 
> -- 
> http://literaturlatenight.de
> 
> 
> _______________________________________________
> 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

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

* Re: in-buffer completion question
  2011-03-01 22:19 ` Carsten Dominik
@ 2011-03-03  5:30   ` John Wiegley
  2011-03-03 15:04     ` Carsten Dominik
  0 siblings, 1 reply; 5+ messages in thread
From: John Wiegley @ 2011-03-03  5:30 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: henry atting, emacs-orgmode

Carsten Dominik <carsten.dominik@gmail.com> writes:

>> In ledger-mode however M-Tab not only completes the unfinished word but
>> lets me cycle through the alternatives given in the current buffer.

This is a feature of pcomplete that must be enabled by turning on "cycling"
behavior.  In Ledger and Eshell this is the default.  I believe I explicitly
turned it off in Org-mode to avoid its being a surprise to people.

John

-- 
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

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

* Re: in-buffer completion question
  2011-03-03  5:30   ` John Wiegley
@ 2011-03-03 15:04     ` Carsten Dominik
  0 siblings, 0 replies; 5+ messages in thread
From: Carsten Dominik @ 2011-03-03 15:04 UTC (permalink / raw)
  To: John Wiegley; +Cc: henry atting, emacs-orgmode


On Mar 3, 2011, at 6:30 AM, John Wiegley wrote:

> Carsten Dominik <carsten.dominik@gmail.com> writes:
> 
>>> In ledger-mode however M-Tab not only completes the unfinished word but
>>> lets me cycle through the alternatives given in the current buffer.
> 
> This is a feature of pcomplete that must be enabled by turning on "cycling"
> behavior.  In Ledger and Eshell this is the default.  I believe I explicitly
> turned it off in Org-mode to avoid its being a surprise to people.

Ah, I see, will take a look at it.

Thanks John.

- 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

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

end of thread, other threads:[~2011-03-03 15:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-01 21:56 in-buffer completion question henry atting
2011-03-01 22:06 ` Erik Iverson
2011-03-01 22:19 ` Carsten Dominik
2011-03-03  5:30   ` John Wiegley
2011-03-03 15:04     ` Carsten Dominik

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).