Christian Lynbech | 9 Oct 2006 17:13
Picon

languages/keyboard settings

I have an annoying problem that is drivingg me nuts.

I live in Denmark and have configured my mac according to this and my
danish keyboard.

I am however not quite content with the default layout, so I have
created my own. Thus I have two choices in the keyboard menu in the
topmost (desktop) menuline, the standard danish one and my own
customised layout.

However, even if I keep selecting my own layout, something or someone
keeps resetting it back to the standard danish layout. 

I can live with this in applications like Safari where I mostly mouse
around anyway, but I have discovered that in aquamacs (version
0.9.9d,ppc) it happens everytime I type M-x and goes to the minibuffer
and this is very frustrating to somebody using emacs as much as me. I
cannot deselect the standard binding, unless I select some other
standard binding in which case I have the same problem.

I suspect that this may be some rather basic thing, but I am pretty
new to this mac thing, so any help would be much apreciated.

------------------------+-----------------------------------------------------
Christian Lynbech       | christian #\ <at>  defun #\. dk
------------------------+-----------------------------------------------------
Hit the philistines three times over the head with the Elisp reference manual.
                                        - petonic <at> hal.com (Michael A. Petonic)
---------------------------- Info -----------------------------
List Post: <mailto:macosx-emacs <at> email.esm.psu.edu>
(Continue reading)

Peter Dyballa | 9 Oct 2006 17:37
Picon

Re: languages/keyboard settings


Am 09.10.2006 um 17:13 schrieb Christian Lynbech:

> I can live with this in applications like Safari where I mostly mouse
> around anyway, but I have discovered that in aquamacs (version
> 0.9.9d,ppc) it happens everytime I type M-x and goes to the minibuffer
> and this is very frustrating to somebody using emacs as much as me.

Can you check which key sequence switches to another keyboard layout?  
Can you change it?

Can you launch the "virtual keyboard" application and see which  
layout it is showing when?

--
Greetings

   Pete

IMBECILITY, n.  A kind of divine inspiration, or sacred fire  
affecting censorious critics of this dictionary.
                    -- Ambrose Bierce: _The Devil's Dictionary_

---------------------------- Info -----------------------------
List Post: <mailto:macosx-emacs <at> email.esm.psu.edu>
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>

David Reitter | 9 Oct 2006 17:27
Picon
Gravatar

Re: languages/keyboard settings

On 9 Oct 2006, at 16:13, Christian Lynbech wrote:

>
> However, even if I keep selecting my own layout, something or someone
> keeps resetting it back to the standard danish layout.

If you add this to your Preferences.el file, does that help?

(remove-hook 'minibuffer-setup-hook 'mac-change-language-to-us)

Cheers
David

--
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and  
support the Aquamacs Project!

---------------------------- Info -----------------------------
List Post: <mailto:macosx-emacs <at> email.esm.psu.edu>
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>

Christian Lynbech | 9 Oct 2006 18:28
Picon

Re: languages/keyboard settings


>>>>> "David" == David Reitter <david.reitter <at> gmail.com> writes:

David> If you add this to your Preferences.el file, does that help?
David> (remove-hook 'minibuffer-setup-hook 'mac-change-language-to-us)

Indeed it does, thanks a lot.

                             -- Christian
---------------------------- Info -----------------------------
List Post: <mailto:macosx-emacs <at> email.esm.psu.edu>
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>

David Reitter | 9 Oct 2006 18:39
Picon
Gravatar

[macemacsjp-english 712] emacs-inline: mac-change-language-to-us in minibuffer-setup-hook

I'm wondering if automatically changing the keyboard layout back to  
US every time the user enters the minibuffer is such a good idea.

It might make sense for non-roman writing systems where you have to  
switch the layout in order to input Emacs commands. But if people  
choose an alternative keyboard layout to input roman stuff, it  
probably is the wrong thing to do.

Maybe there is a way to check whether a keyboard layout is intended  
to be "roman"?

from the emacs-inline patch:

+
+ (if mac-input-method-mode
+     (progn
+       (setq default-input-method "MacOSX")
+       (add-hook 'minibuffer-setup-hook 'mac-change-language-to-us))
+   (setq default-input-method nil)
+   (remove-hook 'minibuffer-setup-hook 'mac-change-language-to-us)))
+

Cheers
David

Begin forwarded message:

> From: Christian Lynbech <christian <at> defun.dk>
> Date: 9 October 2006 16:13:14 BDT
> To: "Emacs on Mac OS X" <macosx-emacs <at> email.esm.psu.edu>
(Continue reading)


Gmane