unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#5206: OPTION key combinations using international keyboards in the NEXTSTEP versions of Emacs don't work
@ 2009-12-13 10:18 Anders Bolt-Evensen
  2009-12-14  8:02 ` Jan Djärv
  2016-04-05 20:50 ` Alan Third
  0 siblings, 2 replies; 3+ messages in thread
From: Anders Bolt-Evensen @ 2009-12-13 10:18 UTC (permalink / raw)
  To: bug-emacs

Hey!

I've been working on Emacs for some time now, and recently I started using the Mac OS X user interface instead of the X windowing system.
But there is one problem: I'm using a Norwegian keyboard, and to use characters like |, [, ], {, } and a few other characters I need to use either the OPTION or SHIFT+OPTION keys. In the NEXTSTEP version of Emacs the OPTION key is defined as the meta key.

OPTION+7 = |
OPTION+8 = [
OPTION+9 = ]
SHIFT+OPTION+7 = \
SHIFT+OPTION+8 = {
SHIFT+OPTION+9 = }

When I press the OPTION+7 keys, the vertical bar should appear as seen in the list above, but insted nothing happens until I press an other key, in this case I used the A key, and "aaaaaaa" appears. When I press the SHIFT+OPTION+7 keys, the word "system" appears. This problem only applies to the NEXTSTEP version - the terminal and X window versions work as they should.

Best regards, 
Anders





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

* bug#5206: OPTION key combinations using international keyboards in the NEXTSTEP versions of Emacs don't work
  2009-12-13 10:18 bug#5206: OPTION key combinations using international keyboards in the NEXTSTEP versions of Emacs don't work Anders Bolt-Evensen
@ 2009-12-14  8:02 ` Jan Djärv
  2016-04-05 20:50 ` Alan Third
  1 sibling, 0 replies; 3+ messages in thread
From: Jan Djärv @ 2009-12-14  8:02 UTC (permalink / raw)
  To: Anders Bolt-Evensen, 5206; +Cc: bug-emacs



Anders Bolt-Evensen skrev 2009-12-13 11.18:
> Hey!
>
> I've been working on Emacs for some time now, and recently I started using the Mac OS X user interface instead of the X windowing system.
> But there is one problem: I'm using a Norwegian keyboard, and to use characters like |, [, ], {, } and a few other characters I need to use either the OPTION or SHIFT+OPTION keys. In the NEXTSTEP version of Emacs the OPTION key is defined as the meta key.
>
> OPTION+7 = |
> OPTION+8 = [
> OPTION+9 = ]
> SHIFT+OPTION+7 = \
> SHIFT+OPTION+8 = {
> SHIFT+OPTION+9 = }
>
> When I press the OPTION+7 keys, the vertical bar should appear as seen in the list above, but insted nothing happens until I press an other key, in this case I used the A key, and "aaaaaaa" appears. When I press the SHIFT+OPTION+7 keys, the word "system" appears. This problem only applies to the NEXTSTEP version - the terminal and X window versions work as they should.
>

The defaults used for Emacs is really bad, it makes Emacs almost unusable for 
any text input if you have a non-english keyboard.

Here is what I do as a workaround:

M-x customize-group <return> ns <return>

Scroll down a bit and you see
NS Command Modifier: [Value Menu] super
...
NS Alternate modifier: [Value Menu] meta

If you change those so that command is meta and alternate modifier is No 
modifier you can then use Alt as ususal (i.e. Alt 7 gives | as normal) and use 
the Command-key as meta.

I don't understand why there is a default mapping from Command-key to super. 
Super is very little used and many binding seems to be duplicates of other 
bindings.

	Jan D.





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

* bug#5206: OPTION key combinations using international keyboards in the NEXTSTEP versions of Emacs don't work
  2009-12-13 10:18 bug#5206: OPTION key combinations using international keyboards in the NEXTSTEP versions of Emacs don't work Anders Bolt-Evensen
  2009-12-14  8:02 ` Jan Djärv
@ 2016-04-05 20:50 ` Alan Third
  1 sibling, 0 replies; 3+ messages in thread
From: Alan Third @ 2016-04-05 20:50 UTC (permalink / raw)
  To: Anders Bolt-Evensen; +Cc: 5206

Anders Bolt-Evensen <a-bolt@online.no> writes:

> Hey!
>
> I've been working on Emacs for some time now, and recently I started using the Mac OS X user interface instead of the X windowing system.
> But there is one problem: I'm using a Norwegian keyboard, and to use characters like |, [, ], {, } and a few other characters I need to use either the OPTION or SHIFT+OPTION keys. In the NEXTSTEP version of Emacs the OPTION key is defined as the meta key.
>
> OPTION+7 = |
> OPTION+8 = [
> OPTION+9 = ]
> SHIFT+OPTION+7 = \
> SHIFT+OPTION+8 = {
> SHIFT+OPTION+9 = }
>
> When I press the OPTION+7 keys, the vertical bar should appear as seen
> in the list above, but insted nothing happens until I press an other
> key, in this case I used the A key, and "aaaaaaa" appears. When I
> press the SHIFT+OPTION+7 keys, the word "system" appears. This problem
> only applies to the NEXTSTEP version - the terminal and X window
> versions work as they should.

Hi, one way round this is to unset the right-option key in Emacs so
left-option works as meta and right-option will behave as "normal":

(setq ns-right-alternate-modifier (quote none))

If you don't like that, there are all sorts of other ways you could
rebind keys.

Emacs has behaved this way for a long time so I get the feeling it's
unlikely the default behaviour is going to be changed. I don't know what
a good alternate default would be as not having a meta key makes Emacs
kind of hard to use and I don't consider the escape key a decent
alternative. Does anyone else have an opinion? Is this a non-bug?
-- 
Alan Third





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

end of thread, other threads:[~2016-04-05 20:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-13 10:18 bug#5206: OPTION key combinations using international keyboards in the NEXTSTEP versions of Emacs don't work Anders Bolt-Evensen
2009-12-14  8:02 ` Jan Djärv
2016-04-05 20:50 ` Alan Third

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

	https://git.savannah.gnu.org/cgit/emacs.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).