Re: [Orgmode] Disputed keys

2011-01-09 Thread David Maus
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 dmj...@jabber.org
Email. dm...@ictsoc.de


pgp5EtLtYaToE.pgp
Description: PGP signature
___
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] Disputed keys

2010-12-21 Thread Darlan Cavalcante Moreira

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+li...@gmail.com wrote:
 
 On Sunday 19 December 2010 11:20 AM, Eric S Fraga wrote:
  Andrea Crottiandrea.crott...@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

___
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] Disputed keys

2010-12-20 Thread Stefan Vollmar
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 
spamfilteracco...@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: voll...@nf.mpg.de   http://www.nf.mpg.de








smime.p7s
Description: S/MIME cryptographic signature
___
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] Disputed keys

2010-12-20 Thread Carsten Dominik


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



___
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] Disputed keys

2010-12-19 Thread Eric S Fraga
Andrea Crotti andrea.crott...@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)

___
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] Disputed keys

2010-12-19 Thread Suvayu Ali

On Sunday 19 December 2010 11:20 AM, Eric S Fraga wrote:

Andrea Crottiandrea.crott...@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