all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <peter_Dyballa@Freenet.DE>
To: Andreas Schwab <schwab@suse.de>
Cc: martin rudalics <rudalics@gmx.at>, emacs-pretest-bug@gnu.org
Subject: Re: 23.0.50; global-set-key not correctly working?
Date: Wed, 28 Nov 2007 20:45:17 +0100	[thread overview]
Message-ID: <87C045B8-376D-448E-889B-5A1AF61357F8@Freenet.DE> (raw)
In-Reply-To: <jed4tu2sr6.fsf@sykes.suse.de>


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	other threads:[~2007-11-28 19:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-28 11:25 23.0.50; global-set-key not correctly working? Peter Dyballa
2007-11-28 13:16 ` martin rudalics
2007-11-28 16:49   ` Peter Dyballa
2007-11-28 17:18     ` Andreas Schwab
2007-11-28 19:45       ` Peter Dyballa [this message]
2007-11-28 22:12         ` Peter Dyballa
2007-11-28 19:23   ` Stefan Monnier
2007-11-28 22:19     ` Peter Dyballa
2007-11-28 17:19 ` Dan Nicolaescu
2007-11-28 18:43   ` Peter Dyballa
2007-11-28 19:03     ` Dan Nicolaescu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87C045B8-376D-448E-889B-5A1AF61357F8@Freenet.DE \
    --to=peter_dyballa@freenet.de \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=rudalics@gmx.at \
    --cc=schwab@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.