emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bind pcomplete to C-M-i
@ 2019-01-27 17:51 Johannes Altmanninger
  2019-01-27 19:02 ` Gustavo Barros
  2019-01-27 21:01 ` Nicolas Goaziou
  0 siblings, 2 replies; 5+ messages in thread
From: Johannes Altmanninger @ 2019-01-27 17:51 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

My installation of Emacs bundles Org mode 9.1.9
and it defines keyboard mapping for completion like this:

(org-defkey org-mode-map "\M-\t" #'pcomplete)
(org-defkey org-mode-map [?\e (tab)] #'pcomplete)

Here I can also use C-M-i to call pcomplete.
(Both in windowed and terminal mode).


However, I want to use org-plus-contrib from the Org ELPA repository.
which uses a slightly different definition:

(org-defkey org-mode-map (kbd "M-<tab>") #'pcomplete)
(org-defkey org-mode-map (kbd "ESC <tab>") #'pcomplete)

This does not bind C-M-i which I'd like to use.
Is there any reason for this discrepancy?

Thank you
Johannes

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

* Re: Bind pcomplete to C-M-i
  2019-01-27 17:51 Bind pcomplete to C-M-i Johannes Altmanninger
@ 2019-01-27 19:02 ` Gustavo Barros
  2019-01-27 21:01 ` Nicolas Goaziou
  1 sibling, 0 replies; 5+ messages in thread
From: Gustavo Barros @ 2019-01-27 19:02 UTC (permalink / raw)
  To: emacs-orgmode, Johannes Altmanninger

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

Hi all,
Hi Johannes,

for the record, there has been a question regarding this in Emacs.SX as 
of recent:
https://emacs.stackexchange.com/q/47239/18951

Best,
Gustavo.


On 27/01/2019 15:51, Johannes Altmanninger wrote:
> Hi,
>
> My installation of Emacs bundles Org mode 9.1.9
> and it defines keyboard mapping for completion like this:
>
> (org-defkey org-mode-map "\M-\t" #'pcomplete)
> (org-defkey org-mode-map [?\e (tab)] #'pcomplete)
>
> Here I can also use C-M-i to call pcomplete.
> (Both in windowed and terminal mode).
>
>
> However, I want to use org-plus-contrib from the Org ELPA repository.
> which uses a slightly different definition:
>
> (org-defkey org-mode-map (kbd "M-<tab>") #'pcomplete)
> (org-defkey org-mode-map (kbd "ESC <tab>") #'pcomplete)
>
> This does not bind C-M-i which I'd like to use.
> Is there any reason for this discrepancy?
>
> Thank you
> Johannes
>


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

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

* Re: Bind pcomplete to C-M-i
  2019-01-27 17:51 Bind pcomplete to C-M-i Johannes Altmanninger
  2019-01-27 19:02 ` Gustavo Barros
@ 2019-01-27 21:01 ` Nicolas Goaziou
  2019-01-27 21:17   ` Johannes Altmanninger
  1 sibling, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2019-01-27 21:01 UTC (permalink / raw)
  To: Johannes Altmanninger; +Cc: emacs-orgmode

Hello,

Johannes Altmanninger <aclopte@gmail.com> writes:

> However, I want to use org-plus-contrib from the Org ELPA repository.
> which uses a slightly different definition:
>
> (org-defkey org-mode-map (kbd "M-<tab>") #'pcomplete)
> (org-defkey org-mode-map (kbd "ESC <tab>") #'pcomplete)

Would (kbd "M-TAB") and (kbd "ESC TAB") work?

Regards,

-- 
Nicolas Goaziou

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

* Re: Bind pcomplete to C-M-i
  2019-01-27 21:01 ` Nicolas Goaziou
@ 2019-01-27 21:17   ` Johannes Altmanninger
  2019-01-29  9:09     ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Johannes Altmanninger @ 2019-01-27 21:17 UTC (permalink / raw)
  To: Johannes Altmanninger, emacs-orgmode

Hi Nicolas,

On Sun, Jan 27, 2019 at 10:01 PM Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
>
> Hello,
>
> Johannes Altmanninger <aclopte@gmail.com> writes:
>
> > However, I want to use org-plus-contrib from the Org ELPA repository.
> > which uses a slightly different definition:
> >
> > (org-defkey org-mode-map (kbd "M-<tab>") #'pcomplete)
> > (org-defkey org-mode-map (kbd "ESC <tab>") #'pcomplete)
>
> Would (kbd "M-TAB") and (kbd "ESC TAB") work?

Yes, either of them works!
They appear to behave the same as (kbd "\M-\t").

Regards,
Johannes

>
> Regards,
>
> --
> Nicolas Goaziou

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

* Re: Bind pcomplete to C-M-i
  2019-01-27 21:17   ` Johannes Altmanninger
@ 2019-01-29  9:09     ` Nicolas Goaziou
  0 siblings, 0 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2019-01-29  9:09 UTC (permalink / raw)
  To: Johannes Altmanninger; +Cc: emacs-orgmode

Hello,

Johannes Altmanninger <aclopte@gmail.com> writes:

> Hi Nicolas,
>
> On Sun, Jan 27, 2019 at 10:01 PM Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
>>
>> Hello,
>>
>> Johannes Altmanninger <aclopte@gmail.com> writes:
>>
>> > However, I want to use org-plus-contrib from the Org ELPA repository.
>> > which uses a slightly different definition:
>> >
>> > (org-defkey org-mode-map (kbd "M-<tab>") #'pcomplete)
>> > (org-defkey org-mode-map (kbd "ESC <tab>") #'pcomplete)
>>
>> Would (kbd "M-TAB") and (kbd "ESC TAB") work?
>
> Yes, either of them works!
> They appear to behave the same as (kbd "\M-\t").

Done. Thank you.

Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2019-01-29  9:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-27 17:51 Bind pcomplete to C-M-i Johannes Altmanninger
2019-01-27 19:02 ` Gustavo Barros
2019-01-27 21:01 ` Nicolas Goaziou
2019-01-27 21:17   ` Johannes Altmanninger
2019-01-29  9:09     ` Nicolas Goaziou

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