all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 23.0.50; global-set-key not correctly working?
@ 2007-11-28 11:25 Peter Dyballa
  2007-11-28 13:16 ` martin rudalics
  2007-11-28 17:19 ` Dan Nicolaescu
  0 siblings, 2 replies; 11+ messages in thread
From: Peter Dyballa @ 2007-11-28 11:25 UTC (permalink / raw)
  To: emacs-pretest-bug

Hello!

• When I have set in ~/.emacs

	(global-set-key [C-©]		'global-set-key)

C-h k C-© returns

	C-© is undefined

The list of key translations (C-h b) lists:

	<C-©>	global-set-key


• When I have set in ~/.emacs

	(global-set-key [(control ©)]	'global-set-key)

C-h k C-© returns

	C-© is undefined

The list of key translations (C-h b) lists:

	\216	global-set-key


• When I have set in ~/.emacs

	(global-set-key [67111081]	'global-set-key)

C-h k C-© returns that C-© is bound to global-set-key.

The list of key translations (C-h b) lists:

	C-©	global-set-key


Can this behaviour be improved to become more consistent, unified?  
~/.emacs is ISO 8859-15 encoded, if it is of importance.


In GNU Emacs 23.0.50.1 (powerpc-apple-darwin8.11.0, X toolkit, Xaw3d  
scroll bars)
  of 2007-11-24 on Latsche.local
Windowing system distributor `The XFree86 Project, Inc', version  
11.0.40400000
configured using `configure  '--without-gtk' '--without-sound' '-- 
without-pop' '--with-x-toolkit=lucid' '--with-xpm' '--with-jpeg' '-- 
with-tiff' '--with-gif' '--with-png' '--enable-locallisppath=/Library/ 
Application Support/Emacs/calendar22:/Library/Application Support/ 
Emacs/caml:/Library/Application Support/Emacs:/sw/share/emacs21/site- 
lisp/elib' 'CPPFLAGS=-no-cpp-precomp -I/usr/local/include -I/sw/ 
include' 'CXXFLAGS=-no-cpp-precomp -I/usr/local/include -I/sw/ 
include' 'CFLAGS=-pipe -bind_at_load -fPIC -mcpu=7450 -mtune=7450 - 
fast -mpim-altivec -ftree-vectorize -foptimize-register-move - 
freorder-blocks -freorder-blocks-and-partition -fthread-jumps - 
fpeephole -fno-crossjumping' 'LDFLAGS=-dead_strip -multiply_defined  
suppress -bind_at_load -L/sw/lib/ncurses -L/usr/local/lib -L/sw/lib - 
lresolv''

Important settings:
   value of $LC_ALL: nil
   value of $LC_COLLATE: nil
   value of $LC_CTYPE: de_DE.UTF-8
   value of $LC_MESSAGES: nil
   value of $LC_MONETARY: nil
   value of $LC_NUMERIC: nil
   value of $LC_TIME: nil
   value of $LANG: de_DE.UTF-8
   locale-coding-system: utf-8
   default-enable-multibyte-characters: t

Major mode: Calendar

Minor modes in effect:
   shell-dirtrack-mode: t
   show-paren-mode: t
   display-time-mode: t
   desktop-save-mode: t
   tooltip-mode: t
   mouse-wheel-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   blink-cursor-mode: t
   unify-8859-on-encoding-mode: t
   utf-translate-cjk-mode: t
   auto-compression-mode: t
   column-number-mode: t
   line-number-mode: t
   transient-mark-mode: t

Recent input:
n <help-echo> <down-mouse-1> <mouse-1> C-h k C-© <help-echo>
<down-mouse-1> <mouse-1> C-h b <kp-enter> C-s g l o
b a l - <return> <help-echo> <help-echo> <down-mouse-1>
<mouse-1> C-x b C-g <down-mouse-1> <mouse-1> <down-mouse-1>
<mouse-1> <down-mouse-1> <mouse-movement> <help-echo>
<mouse-movement> <mouse-movement> <drag-mouse-1> <help-echo>
<down-mouse-1> <mouse-1> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <menu-bar> <help-menu> <se
nd-emacs-bug-report>


--
Greetings

   Pete

The box said "Use Windows 95 or better," so I got a Macintosh.

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

* Re: 23.0.50; global-set-key not correctly working?
  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 19:23   ` Stefan Monnier
  2007-11-28 17:19 ` Dan Nicolaescu
  1 sibling, 2 replies; 11+ messages in thread
From: martin rudalics @ 2007-11-28 13:16 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: emacs-pretest-bug

> • When I have set in ~/.emacs
> 
>     (global-set-key [C-©]        'global-set-key)
> 
> C-h k C-© returns
> 
>     C-© is undefined
...
> In GNU Emacs 23.0.50.1 (powerpc-apple-darwin8.11.0, X toolkit, Xaw3d  
> scroll bars)
>  of 2007-11-24 on Latsche.local

Stefan has checked in a fix for

(read_key_sequence): Use them to unify the "shift->unshift" mapping
for chars and symbol keys.

on 2007-11-28.  Could you retry with the latest sources?

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

* Re: 23.0.50; global-set-key not correctly working?
  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:23   ` Stefan Monnier
  1 sibling, 1 reply; 11+ messages in thread
From: Peter Dyballa @ 2007-11-28 16:49 UTC (permalink / raw)
  To: martin rudalics; +Cc: emacs-pretest-bug


Am 28.11.2007 um 14:16 schrieb martin rudalics:

>> • When I have set in ~/.emacs
>>     (global-set-key [C-©]        'global-set-key)
>> C-h k C-© returns
>>     C-© is undefined
> ...
>> In GNU Emacs 23.0.50.1 (powerpc-apple-darwin8.11.0, X toolkit,  
>> Xaw3d  scroll bars)
>>  of 2007-11-24 on Latsche.local
>
> Stefan has checked in a fix for
>
> (read_key_sequence): Use them to unify the "shift->unshift" mapping
> for chars and symbol keys.
>
> on 2007-11-28.  Could you retry with the latest sources?

Some files were updated:

-rw-r--r--   1 pete  admin  195370 28 Nov 16:12 src/buffer.c
-rw-r--r--   1 pete  admin  381047 28 Nov 16:12 src/keyboard.c

but (global-set-key [C-©] 'global-set-key) still leads to an  
undefined key, others too. src/Changelog contains Stefan Monnier's  
note. Is there something I should/could test more exactly?

One thing /has/ changed: C-h k © now tells me undefined, while Emacs  
from before says self-insert-command.

--
Mit friedvollen Grüßen

   Pete

"If we don't succeed, we run the risk of failure."

                                 George W. Bush

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

* Re: 23.0.50; global-set-key not correctly working?
  2007-11-28 16:49   ` Peter Dyballa
@ 2007-11-28 17:18     ` Andreas Schwab
  2007-11-28 19:45       ` Peter Dyballa
  0 siblings, 1 reply; 11+ messages in thread
From: Andreas Schwab @ 2007-11-28 17:18 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: martin rudalics, emacs-pretest-bug

Peter Dyballa <peter_Dyballa@Freenet.DE> writes:

> but (global-set-key [C-©] 'global-set-key) still leads to an undefined

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

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

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

* Re: 23.0.50; global-set-key not correctly working?
  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 17:19 ` Dan Nicolaescu
  2007-11-28 18:43   ` Peter Dyballa
  1 sibling, 1 reply; 11+ messages in thread
From: Dan Nicolaescu @ 2007-11-28 17:19 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: emacs-pretest-bug

Peter Dyballa <peter_Dyballa@Freenet.DE> writes:

  > Hello!
  > 
  > • When I have set in ~/.emacs
  > 
  > 	(global-set-key [C-©]		'global-set-key)
  > 
  > C-h k C-© returns
  > 
  > 	C-© is undefined
  > 
  > The list of key translations (C-h b) lists:
  > 
  > 	<C-©>	global-set-key
  > 
  > 
  > • When I have set in ~/.emacs
  > 
  > 	(global-set-key [(control ©)]	'global-set-key)

Try using [(control ??)] instead.

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

* Re: 23.0.50; global-set-key not correctly working?
  2007-11-28 17:19 ` Dan Nicolaescu
@ 2007-11-28 18:43   ` Peter Dyballa
  2007-11-28 19:03     ` Dan Nicolaescu
  0 siblings, 1 reply; 11+ messages in thread
From: Peter Dyballa @ 2007-11-28 18:43 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: emacs-pretest-bug


Am 28.11.2007 um 18:19 schrieb Dan Nicolaescu:

> Try using [(control ??)] instead.

Do you mean ?© (question mark + copyright sign) instead of two  
question marks?

--
Greetings

   Pete

A morning without coffee is like something without something else.

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

* Re: 23.0.50; global-set-key not correctly working?
  2007-11-28 18:43   ` Peter Dyballa
@ 2007-11-28 19:03     ` Dan Nicolaescu
  0 siblings, 0 replies; 11+ messages in thread
From: Dan Nicolaescu @ 2007-11-28 19:03 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: emacs-pretest-bug

Peter Dyballa <peter_Dyballa@freenet.de> writes:

  > Am 28.11.2007 um 18:19 schrieb Dan Nicolaescu:
  > 
  > > Try using [(control ??)] instead.
  > 
  > Do you mean ?© (question mark + copyright sign) instead of two
  > question marks?

2 questions marks
I am reading this with gnus on gmane.org, it showed a single question
mark in the message that I replied to. Did you have something else
there?

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

* Re: 23.0.50; global-set-key not correctly working?
  2007-11-28 13:16 ` martin rudalics
  2007-11-28 16:49   ` Peter Dyballa
@ 2007-11-28 19:23   ` Stefan Monnier
  2007-11-28 22:19     ` Peter Dyballa
  1 sibling, 1 reply; 11+ messages in thread
From: Stefan Monnier @ 2007-11-28 19:23 UTC (permalink / raw)
  To: martin rudalics; +Cc: emacs-pretest-bug, Peter Dyballa

> Stefan has checked in a fix for
> (read_key_sequence): Use them to unify the "shift->unshift" mapping
> for chars and symbol keys.

I don't think this will have any noticeable effect on this.
My fix is for the S-backspace -> DEL problem.


        Stefan

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

* Re: 23.0.50; global-set-key not correctly working?
  2007-11-28 17:18     ` Andreas Schwab
@ 2007-11-28 19:45       ` Peter Dyballa
  2007-11-28 22:12         ` Peter Dyballa
  0 siblings, 1 reply; 11+ messages in thread
From: Peter Dyballa @ 2007-11-28 19:45 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: martin rudalics, emacs-pretest-bug


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

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

* Re: 23.0.50; global-set-key not correctly working?
  2007-11-28 19:45       ` Peter Dyballa
@ 2007-11-28 22:12         ` Peter Dyballa
  0 siblings, 0 replies; 11+ messages in thread
From: Peter Dyballa @ 2007-11-28 22:12 UTC (permalink / raw)
  To: emacs-pretest-bug; +Cc: Andreas Schwab, martin rudalics


Am 28.11.2007 um 20:45 schrieb Peter Dyballa:

> *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?


Further experiments have shown that a local variable from a setting  
like ``coding: iso-8859-15;´´ switches the desired behaviour off. I  
did not change the coding after I deleted that setting and the mode- 
line still starts with same number.

Even GNU Emacs 21.3.50 now understands (global-set-key [?\C- 
©]	'global-set-key) ...

--
Greetings

   Pete

"There's no place like 127.0.0.1"
                      origin unknown

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

* Re: 23.0.50; global-set-key not correctly working?
  2007-11-28 19:23   ` Stefan Monnier
@ 2007-11-28 22:19     ` Peter Dyballa
  0 siblings, 0 replies; 11+ messages in thread
From: Peter Dyballa @ 2007-11-28 22:19 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: martin rudalics, emacs-pretest-bug


Am 28.11.2007 um 20:23 schrieb Stefan Monnier:

>> Stefan has checked in a fix for
>> (read_key_sequence): Use them to unify the "shift->unshift" mapping
>> for chars and symbol keys.
>
> I don't think this will have any noticeable effect on this.
> My fix is for the S-backspace -> DEL problem.
>


It seems that the init file's encoding plays the leading role: GNU  
Emacs obviously needs to assume it's UTF-8 encoded. Using this or  
that ISO Latin encoding in the file's header (coding: iso-8859-15;)  
disables a setting like (global-set-key [?\C-©]	'global-set-key).  
With non-Latin encoding even GNU Emacs 21.3.50 understands the key  
binding ...

--
Greetings

   Pete

“Computers are good at following instructions, but not at reading  
your mind.”
    - D. E. Knuth, The TeXbook, Addison-Wesley 1984, 1986, 1996, p. 9

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

end of thread, other threads:[~2007-11-28 22:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.