emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 23.0.50; global-set-key not correctly working?


From: Peter Dyballa
Subject: Re: 23.0.50; global-set-key not correctly working?
Date: Wed, 28 Nov 2007 20:45:17 +0100


Am 28.11.2007 um 18:18 schrieb Andreas Schwab:

You need to use [?\C-©].


My test environment is now from *shell* buffer:

        src/emacs-23.0.50.1 -Q &

and in *scratch* buffer I paste each time one out of these to experiment with:

        (global-set-key (kbd "C-©")   'global-set-key)
        (global-set-key [(control ?©)]  'global-set-key)
        (global-set-key [(control ©)]   'global-set-key)
        (global-set-key [?\C-©]         'global-set-key)
        (global-set-key [C-©]           'global-set-key)

I position the cursor at the closing parenthesis and press C-j. Then the text

        global-set-key

appears below that line. I check with C-h k C-© and I also press a simple ©. Finally I list with C-h b and i-search for global-set-key in *Help* buffer.

Results until now: these three work:

        (global-set-key [?\C-©]         'global-set-key)
        (global-set-key [(control ?©)]  'global-set-key)
        (global-set-key (kbd "C-©")   'global-set-key)

*But, when I leave away -Q, and I have in ~/.emacs any one of these three statements, then C-© is undefined.* They still work when I launch as src/emacs-23.0.50.1 -q & ...

Reducing my ~/.emacs file to just a few comments and one statement did not change anything. My last change was to save ~/.emacs in UTF-8 encoding: now it worked! In elder GNU Emacs 23.0.50 all three above work also with UTF-8 encoded user init file.

Is the described behaviour with (only ?) valid encoding in UTF-8 for ~/.emacs as expected?


Are there more modifications of global-set-key command possible?


--
Mit friedvollen Grüßen

  Pete

There is no national science just as there is no national multiplication table; what is national is no longer science.
                                      -- Anton Checov






reply via email to

[Prev in Thread] Current Thread [Next in Thread]