* Disputed keys
@ 2010-12-18 21:26 Andrea Crotti
2010-12-19 19:20 ` Eric S Fraga
` (3 more replies)
0 siblings, 4 replies; 12+ messages in thread
From: Andrea Crotti @ 2010-12-18 21:26 UTC (permalink / raw
To: emacs-orgmode
I wanted finally to fix the following problem, I would like to use
meta-left/right to switch frame, and that's one of the keys that orgmode
uses.
I added the two values here to the org-disputed-keys
--8<---------------cut here---------------start------------->8---
[(meta left)]
Value: [(meta control left)]
[(meta right)]
Value: [(meta control right)]
--8<---------------cut here---------------end--------------->8---
but still it doesn't work, in orgmode meta-left is always bound to the
org action, not to other-frame as it is in other modes...
Any suggestions?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Disputed keys
2010-12-18 21:26 Disputed keys Andrea Crotti
@ 2010-12-19 19:20 ` Eric S Fraga
2010-12-20 5:49 ` Suvayu Ali
2010-12-20 13:08 ` Andrea Crotti
2010-12-20 8:20 ` Stefan Vollmar
` (2 subsequent siblings)
3 siblings, 2 replies; 12+ messages in thread
From: Eric S Fraga @ 2010-12-19 19:20 UTC (permalink / raw
To: Andrea Crotti; +Cc: emacs-orgmode
Andrea Crotti <andrea.crotti.0@gmail.com> writes:
> I wanted finally to fix the following problem, I would like to use
> meta-left/right to switch frame, and that's one of the keys that orgmode
> uses.
>
> I added the two values here to the org-disputed-keys
>
> [(meta left)]
> Value: [(meta control left)]
> [(meta right)]
> Value: [(meta control right)]
>
> but still it doesn't work, in orgmode meta-left is always bound to the
> org action, not to other-frame as it is in other modes...
Isn't switching to frame a function of your window manager and not
emacs? That is, shouldn't this be a case of telling your window manage,
whatever that may be, to switch frames when these keys are pressed?
Or am I missing something fundamental here?
--
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.4 (release_7.4.25.geb0d)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Disputed keys
2010-12-19 19:20 ` Eric S Fraga
@ 2010-12-20 5:49 ` Suvayu Ali
2010-12-20 13:09 ` Andrea Crotti
2010-12-21 16:56 ` Darlan Cavalcante Moreira
2010-12-20 13:08 ` Andrea Crotti
1 sibling, 2 replies; 12+ messages in thread
From: Suvayu Ali @ 2010-12-20 5:49 UTC (permalink / raw
To: emacs-orgmode
On Sunday 19 December 2010 11:20 AM, Eric S Fraga wrote:
> Andrea Crotti<andrea.crotti.0@gmail.com> writes:
>
>> I wanted finally to fix the following problem, I would like to use
>> meta-left/right to switch frame, and that's one of the keys that orgmode
>> uses.
>>
>> I added the two values here to the org-disputed-keys
>>
>> [(meta left)]
>> Value: [(meta control left)]
>> [(meta right)]
>> Value: [(meta control right)]
>>
>> but still it doesn't work, in orgmode meta-left is always bound to the
>> org action, not to other-frame as it is in other modes...
>
> Isn't switching to frame a function of your window manager and not
> emacs? That is, shouldn't this be a case of telling your window manage,
> whatever that may be, to switch frames when these keys are pressed?
>
> Or am I missing something fundamental here?
I think Andrea meant to say switching window. But none the less, Emacs
has the ability to switch frames, `C-x 5 o' or even your regular
`switch-buffer'. But I think it does it by talking to the window manager.
This can be very useful when you have multiple emacs frames for one
instance of emacs on different desktops. If you have configured your
window manager appropriately simply switching to a buffer shown on
another desktop can switch you to that desktop and raise the Emacs frame
with the buffer. :)
--
Suvayu
Open source is the future. It sets us free.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Disputed keys
2010-12-18 21:26 Disputed keys Andrea Crotti
2010-12-19 19:20 ` Eric S Fraga
@ 2010-12-20 8:20 ` Stefan Vollmar
2010-12-20 13:11 ` Andrea Crotti
2010-12-20 14:44 ` Carsten Dominik
2011-01-09 11:24 ` David Maus
3 siblings, 1 reply; 12+ messages in thread
From: Stefan Vollmar @ 2010-12-20 8:20 UTC (permalink / raw
To: Andrea Crotti; +Cc: Org-mode ml
[-- Attachment #1.1: Type: text/plain, Size: 1843 bytes --]
Dear Andrea,
I have this in my .emacs file
(defun my-org-mode-stuff ()
(define-key org-mode-map [(meta tab)] 'previous-user-buffer)
(local-set-key (kbd "S-<right>") 'forward-char-mark)
(local-set-key (kbd "S-<left>") 'backward-char-mark)
(local-set-key (kbd "S-<up>") 'previous-line-mark)
(local-set-key (kbd "S-<down>") 'next-line-mark))
(add-hook 'org-mode-hook 'my-org-mode-stuff)
this was a suggestion from the list (thanks to PT <spamfilteraccount@gmail.com>) and works for me, I realize that this was not exactly what you were asking for but thought it might help.
Warm regards,
Stefan
On 18.12.2010, at 22:26, Andrea Crotti wrote:
> I wanted finally to fix the following problem, I would like to use
> meta-left/right to switch frame, and that's one of the keys that orgmode
> uses.
>
> I added the two values here to the org-disputed-keys
>
> --8<---------------cut here---------------start------------->8---
> [(meta left)]
> Value: [(meta control left)]
> [(meta right)]
> Value: [(meta control right)]
> --8<---------------cut here---------------end--------------->8---
>
> but still it doesn't work, in orgmode meta-left is always bound to the
> org action, not to other-frame as it is in other modes...
>
> Any suggestions?
>
>
> _______________________________________________
> 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
--
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213 FAX +49-221-4726-298
Tel.: +49-221-478-5713 Mobile: 0160-93874279
Email: vollmar@nf.mpg.de http://www.nf.mpg.de
[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4409 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
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] 12+ messages in thread
* Re: Disputed keys
2010-12-19 19:20 ` Eric S Fraga
2010-12-20 5:49 ` Suvayu Ali
@ 2010-12-20 13:08 ` Andrea Crotti
1 sibling, 0 replies; 12+ messages in thread
From: Andrea Crotti @ 2010-12-20 13:08 UTC (permalink / raw
To: emacs-orgmode
Eric S Fraga <e.fraga@ucl.ac.uk> writes:
>
> Isn't switching to frame a function of your window manager and not
> emacs? That is, shouldn't this be a case of telling your window manage,
> whatever that may be, to switch frames when these keys are pressed?
>
> Or am I missing something fundamental here?
Well yes and no, I could many programs running, and I want a key that
lets me switch only between the emacs frames, without showing me the
other windows.
Having that working it would be even better that the operating system
only show me one instance of emacs frames, not all of them.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Disputed keys
2010-12-20 5:49 ` Suvayu Ali
@ 2010-12-20 13:09 ` Andrea Crotti
2010-12-20 14:23 ` suvayu ali
2010-12-21 16:56 ` Darlan Cavalcante Moreira
1 sibling, 1 reply; 12+ messages in thread
From: Andrea Crotti @ 2010-12-20 13:09 UTC (permalink / raw
To: emacs-orgmode
Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:
>
> I think Andrea meant to say switching window. But none the less, Emacs
> has the ability to switch frames, `C-x 5 o' or even your regular
> switch-buffer'. But I think it does it by talking to the window
> manager.
>
> This can be very useful when you have multiple emacs frames for one
> instance of emacs on different desktops. If you have configured your
> window manager appropriately simply switching to a buffer shown on
> another desktop can switch you to that desktop and raise the Emacs
> frame with the buffer. :)
I meant switching frames...
I normally would keep the frames in the same desktop, maybe different
instances of emacs on different desktops (I have one for gnus and one
for everything else).
An example of a window manager configuration to do this anyway?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Disputed keys
2010-12-20 8:20 ` Stefan Vollmar
@ 2010-12-20 13:11 ` Andrea Crotti
0 siblings, 0 replies; 12+ messages in thread
From: Andrea Crotti @ 2010-12-20 13:11 UTC (permalink / raw
To: emacs-orgmode
Stefan Vollmar <vollmar@nf.mpg.de> writes:
> Dear Andrea,
>
> I have this in my .emacs file
>
> (defun my-org-mode-stuff ()
> (define-key org-mode-map [(meta tab)] 'previous-user-buffer)
> (local-set-key (kbd "S-<right>") 'forward-char-mark)
> (local-set-key (kbd "S-<left>") 'backward-char-mark)
> (local-set-key (kbd "S-<up>") 'previous-line-mark)
> (local-set-key (kbd "S-<down>") 'next-line-mark))
>
> (add-hook 'org-mode-hook 'my-org-mode-stuff)
>
> this was a suggestion from the list (thanks to PT <spamfilteraccount@gmail.com>) and works for me, I realize that this was not exactly what you were asking for but thought it might help.
>
I'm quite sure that also would work for me, that's the normal way to
proceed.
But since org-mode has this disputed-keys feature which is quite a good
idea I wanted to use it if possible...
Looks like that the key meta-left which would be bound to "other-frame"
is not seen as used by org-mode, that's my explanation...
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Re: Disputed keys
2010-12-20 13:09 ` Andrea Crotti
@ 2010-12-20 14:23 ` suvayu ali
0 siblings, 0 replies; 12+ messages in thread
From: suvayu ali @ 2010-12-20 14:23 UTC (permalink / raw
To: Andrea Crotti; +Cc: emacs-orgmode
Hi Andrea,
On Mon, Dec 20, 2010 at 5:09 AM, Andrea Crotti
<andrea.crotti.0@gmail.com> wrote:
>> This can be very useful when you have multiple emacs frames for one
>> instance of emacs on different desktops. If you have configured your
>> window manager appropriately simply switching to a buffer shown on
>> another desktop can switch you to that desktop and raise the Emacs
>> frame with the buffer. :)
>
> I normally would keep the frames in the same desktop, maybe different
> instances of emacs on different desktops (I have one for gnus and one
> for everything else).
>
> An example of a window manager configuration to do this anyway?
I use XFCE. In XFCE you can check the radio button for the option,
"Window Manager Tweaks --> Focus --> Honor standard ICCCM focus hint
--> Switch to window's workspace".
:)
--
Suvayu
Open source is the future. It sets us free.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Disputed keys
2010-12-18 21:26 Disputed keys Andrea Crotti
2010-12-19 19:20 ` Eric S Fraga
2010-12-20 8:20 ` Stefan Vollmar
@ 2010-12-20 14:44 ` Carsten Dominik
2011-01-09 11:24 ` David Maus
3 siblings, 0 replies; 12+ messages in thread
From: Carsten Dominik @ 2010-12-20 14:44 UTC (permalink / raw
To: Andrea Crotti; +Cc: emacs-orgmode
On Dec 18, 2010, at 10:26 PM, Andrea Crotti wrote:
> I wanted finally to fix the following problem, I would like to use
> meta-left/right to switch frame, and that's one of the keys that
> orgmode
> uses.
>
> I added the two values here to the org-disputed-keys
>
> --8<---------------cut here---------------start------------->8---
> [(meta left)]
> Value: [(meta control left)]
> [(meta right)]
> Value: [(meta control right)]
> --8<---------------cut here---------------end--------------->8---
>
> but still it doesn't work, in orgmode meta-left is always bound to the
> org action, not to other-frame as it is in other modes...
>
> Any suggestions?
Did you do
(setq org-replace-disputed-keys t)
- 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] 12+ messages in thread
* Re: Disputed keys
2010-12-20 5:49 ` Suvayu Ali
2010-12-20 13:09 ` Andrea Crotti
@ 2010-12-21 16:56 ` Darlan Cavalcante Moreira
1 sibling, 0 replies; 12+ messages in thread
From: Darlan Cavalcante Moreira @ 2010-12-21 16:56 UTC (permalink / raw
To: Suvayu Ali; +Cc: emacs-orgmode
I use the function other-frame for that, which is bound to `C-x 5 o' as
Suvayu mentioned. To make this easier (since I use it frequently) I just
bind "other-frame" to "C-c o" with
(global-set-key "\C-co" 'other-frame)
This works very well for me.
--
Darlan
At Sun, 19 Dec 2010 21:49:53 -0800,
Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote:
>
> On Sunday 19 December 2010 11:20 AM, Eric S Fraga wrote:
> > Andrea Crotti<andrea.crotti.0@gmail.com> writes:
> >
> >> I wanted finally to fix the following problem, I would like to use
> >> meta-left/right to switch frame, and that's one of the keys that orgmode
> >> uses.
> >>
> >> I added the two values here to the org-disputed-keys
> >>
> >> [(meta left)]
> >> Value: [(meta control left)]
> >> [(meta right)]
> >> Value: [(meta control right)]
> >>
> >> but still it doesn't work, in orgmode meta-left is always bound to the
> >> org action, not to other-frame as it is in other modes...
> >
> > Isn't switching to frame a function of your window manager and not
> > emacs? That is, shouldn't this be a case of telling your window manage,
> > whatever that may be, to switch frames when these keys are pressed?
> >
> > Or am I missing something fundamental here?
>
> I think Andrea meant to say switching window. But none the less, Emacs
> has the ability to switch frames, `C-x 5 o' or even your regular
> `switch-buffer'. But I think it does it by talking to the window manager.
>
> This can be very useful when you have multiple emacs frames for one
> instance of emacs on different desktops. If you have configured your
> window manager appropriately simply switching to a buffer shown on
> another desktop can switch you to that desktop and raise the Emacs frame
> with the buffer. :)
>
> --
> Suvayu
>
> Open source is the future. It sets us free.
>
> _______________________________________________
> 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] 12+ messages in thread
* Re: Disputed keys
2010-12-18 21:26 Disputed keys Andrea Crotti
` (2 preceding siblings ...)
2010-12-20 14:44 ` Carsten Dominik
@ 2011-01-09 11:24 ` David Maus
2011-01-09 11:48 ` David Maus
3 siblings, 1 reply; 12+ messages in thread
From: David Maus @ 2011-01-09 11:24 UTC (permalink / raw
To: Andrea Crotti; +Cc: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 1155 bytes --]
At Sat, 18 Dec 2010 22:26:13 +0100,
Andrea Crotti wrote:
>
> I wanted finally to fix the following problem, I would like to use
> meta-left/right to switch frame, and that's one of the keys that orgmode
> uses.
>
> I added the two values here to the org-disputed-keys
>
> --8<---------------cut here---------------start------------->8---
> [(meta left)]
> Value: [(meta control left)]
> [(meta right)]
> Value: [(meta control right)]
> --8<---------------cut here---------------end--------------->8---
>
> but still it doesn't work, in orgmode meta-left is always bound to the
> org action, not to other-frame as it is in other modes...
Works fine here with
Org-mode version 7.4 (release_7.4)
GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
of 2010-12-11 on raven, modified by Debian
However: Setting meta-left to control-meta-left only works if I set
the variable before loading Org mode. If I set it after loading, it
doesn't, but the other disputed keys are replaced.
Looks like an inconsistency to me.
Best,
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de
[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
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] 12+ messages in thread
* Re: Disputed keys
2011-01-09 11:24 ` David Maus
@ 2011-01-09 11:48 ` David Maus
0 siblings, 0 replies; 12+ messages in thread
From: David Maus @ 2011-01-09 11:48 UTC (permalink / raw
To: David Maus; +Cc: emacs-orgmode, Andrea Crotti
[-- Attachment #1.1: Type: text/plain, Size: 1615 bytes --]
At Sun, 09 Jan 2011 12:24:52 +0100,
David Maus wrote:
>
> [1 <multipart/signed (7bit)>]
> [1.1 <text/plain; US-ASCII (7bit)>]
> At Sat, 18 Dec 2010 22:26:13 +0100,
> Andrea Crotti wrote:
> >
> > I wanted finally to fix the following problem, I would like to use
> > meta-left/right to switch frame, and that's one of the keys that orgmode
> > uses.
> >
> > I added the two values here to the org-disputed-keys
> >
> > --8<---------------cut here---------------start------------->8---
> > [(meta left)]
> > Value: [(meta control left)]
> > [(meta right)]
> > Value: [(meta control right)]
> > --8<---------------cut here---------------end--------------->8---
> >
> > but still it doesn't work, in orgmode meta-left is always bound to the
> > org action, not to other-frame as it is in other modes...
>
> Works fine here with
>
> Org-mode version 7.4 (release_7.4)
>
> GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
> of 2010-12-11 on raven, modified by Debian
>
> However: Setting meta-left to control-meta-left only works if I set
> the variable before loading Org mode. If I set it after loading, it
> doesn't, but the other disputed keys are replaced.
Now I get it: Org uses `org-disputed-keys' when setting up the keymap
for Org mode. Thus, disputed keys have to be declared before Org mode
starts up and defines its keymap. And thats exactly what the
doc-string of `org-disputed-keys' says *cough*.
So no inconsistency, just a: I cannot reproduce this problem.
Best,
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de
[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
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] 12+ messages in thread
end of thread, other threads:[~2011-01-09 11:49 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-18 21:26 Disputed keys Andrea Crotti
2010-12-19 19:20 ` Eric S Fraga
2010-12-20 5:49 ` Suvayu Ali
2010-12-20 13:09 ` Andrea Crotti
2010-12-20 14:23 ` suvayu ali
2010-12-21 16:56 ` Darlan Cavalcante Moreira
2010-12-20 13:08 ` Andrea Crotti
2010-12-20 8:20 ` Stefan Vollmar
2010-12-20 13:11 ` Andrea Crotti
2010-12-20 14:44 ` Carsten Dominik
2011-01-09 11:24 ` David Maus
2011-01-09 11:48 ` David Maus
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.