GNU bug report logs - #1292
23.0.60; key bindings in Emacs.app (and also launching it)

Previous Next

Package: emacs;

Reported by: Peter Dyballa <Peter_Dyballa <at> Freenet.DE>

Date: Sun, 2 Nov 2008 00:50:03 UTC

Severity: normal

Tags: unreproducible

Merged with 2841

Fixed in version 25.1

Done: Alan Third <alan <at> idiocy.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 1292 in the body.
You can then email your comments to 1292 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1292; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Peter Dyballa <Peter_Dyballa <at> Freenet.DE>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Peter Dyballa <Peter_Dyballa <at> Freenet.DE>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.0.60; key bindings in Emacs.app (and also launching it)
Date: Sun, 2 Nov 2008 01:40:08 +0100
Hello!

When launching Emacs.app as 'emacs/nextstep/Emacs.app/Contents/MacOS/ 
Emacs -Q -l .emacs-init.el &' it loads .emacs-init.el as some file,  
not as ELisp code to be executed.

In .emacs I have:

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

In all Emacsen I have among the "key translations:"

	A-C-g		global-set-key
	C-©		global-set-key
	<A-C-g>		global-set-key
	<C-©>		global-set-key

In GNU Emacs 23.0.60+22.3 and Carbon Emacs 22.2 I can use the key  
binding. In Emacs.app it is undefined when I press the three keys  
(the Option key is set as no modifier in the preferences). To have  
the key combination working I need to set:

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

There are some differences in the way Emacs.app interprets pressed  
keys on my German layout Apple keyboard:

Emacs.app		    GNU Emacs 23.0.60+22.3/Carbon Emacs 22.2	keys pressed
------------------------------------------------------------------------ 
------------
<C-268632065> is undefined	C-å is undefined			C-å, C-A-a
<C-268632066> is undefined	C-∫ is undefined			C-∫, C-A-b
<C-268632067> is undefined	C-ç is undefined			C-ç, C-A-c
<C-268632068> is undefined	C-∂ is undefined			C-∂, C-A-d
<C-268632069> is undefined	C-€ is undefined			C-€, C-A-e
<C-268632070> is undefined	C-ƒ is undefined			C-ƒ, C-A-f
<C-268632071> is undefined	C-© is undefined			C-©, C-A-g
<C-backspace>			C-ª is undefined			C-ª, C-A-h
<C-tab> is undefined		C-⁄ is undefined			C-⁄, C-A-i
<C-linefeed> is undefined	C-º is undefined			C-º, C-A-j
<C-clear> is undefined		C-∆ is undefined			C-∆, C-A-k
<C-268632076> is undefined	C-@ is set-mark-command			C-@, C-A-l
<C-return> is undefined	  	C-µ is undefined			C-µ, C-A-m
<C-268632078> is undefined	<C-dead-tilde>/C-~ is undefined		C-~, C-A-n
<C-268632079> is undefined	C-ø is undefined			C-ø, C-A-o
<C-268632080> is undefined	C-π is undefined			C-π, C-A-p
<C-268632081> is undefined	C-« is undefined			C-«, C-A-q
<C-pause> is undefined	  	C-® is undefined			C-®, C-A-r
<C-268632083> is undefined	C-‚ is undefined			C-‚, C-A-s
<C-268632084> is undefined	C-† is undefined			C-†, C-A-t
<C-268632085> is undefined	<C-dead-diaeresis>/C-¨ is undefined	C-¨, C- 
A-u
<C-268632086> is undefined	C-√ is undefined			C-√, C-A-v
<C-268632087> is undefined	C-∑ is undefined			C-∑, C-A-w
<C-268632088> is undefined	C-≈ is undefined			C-≈, C-A-x
<C-S-tab> is undefined	  	C-¥ is undefined			C-¥, C-A-y
<C-268632090> is undefined	C-Ω is undefined			C-Ω, C-A-z
„ is self-insert-command	C-„ is undefined			C-„, C-A-^
C-¡ is undefined		C-¡ is undefined			C-¡, C-A-1
C-“ is undefined		C-“ is undefined			C-“, C-A-2
C-¶ is undefined		C-¶ is undefined			C-¶, C-A-3
C-¢ is undefined		C-¢ is undefined			C-¢, C-A-4
<C-escape> is undefined		ESC-					C-[, C-A-5
<C-268632093> is undefined	C-] is abort-recursive-edit		C-], C-A-6
C-| is undefined		C-| is undefined			C-|, C-A-7
C-{ is undefined		C-{ is undefined			C-{, C-A-8
C-} is undefined		C-} is undefined			C-}, C-A-9
C-≠ is undefined		C-≠ is undefined			C-≠, C-A-0
C-¿ is undefined		C-¿ is undefined			C-¿, C-A-ß
' is self-insert-command	C-' is undefined			C-', C-A-´
C-• is undefined		C-• is undefined			C-•, C-A-ü
C-± is undefined		C-± is undefined			C-±, C-A-+
C-œ is undefined		C-œ is undefined			C-œ, C-A-ö
C-æ is undefined		C-æ is undefined			C-æ, C-A-ä
C-‘ is undefined		C-‘ is undefined			C-‘, C-A-#
C-≤ is undefined		C-≤ is undefined			C-≤, C-A-<
C-∞ is undefined		C-∞ is undefined			C-∞, C-A-,
C-… is undefined		C-… is undefined			C-…, C-A-.
C-– is undefined		C-– is undefined			C-–, C-A--

<C-S-268632065> is undefined	C-Å is undefined			C-Å, C-A-S-a
<C-S-268632066> is undefined	C-‹ is undefined			C-‹, C-A-S-b
<C-S-268632067> is undefined	C-Ç is undefined			C-Ç, C-A-S-c
<C-S-268632068> is undefined	C-™ is undefined			C-™, C-A-S-d
<C-S-268632069> is undefined	C-‰ is undefined			C-‰, C-A-S-e
<C-S-268632070> is undefined	C-Ï is undefined			C-Ï, C-A-S-f
<C-S-268632071> is undefined	C-Ì is undefined			C-Ì, C-A-S-g
<C-S-backspace>		    	C-Ó is undefined			C-Ó, C-A-S-h
<C-S-tab> is undefined	    	C-Û is undefined			C-Û, C-A-S-i
<C-S-linefeed> is undefined 	C-ı is undefined			C-ı, C-A-S-j
<C-S-clear> is undefined    	C-ˆ is undefined			C-ˆ, C-A-S-k
<C-S-268632076> is undefined	C-fl is undefined			C-fl, C-A-S-l
<C-S-return> is undefined   	C-˘ is undefined			C-˘, C-A-S-m
<C-S-268632078> is undefined	C-› is undefined			C-›, C-A-S-n
<C-S-268632079> is undefined	C-Ø is undefined			C-Ø, C-A-S-o
<C-S-268632080> is undefined	C-∏ is undefined			C-∏, C-A-S-p
<C-S-268632081> is undefined	C-» is undefined			C-», C-A-S-q
<C-S-pause> is undefined    	C-¸ is undefined			C-¸, C-A-S-r
<C-S-268632083> is undefined	C-Í is undefined			C-Í, C-A-S-s
<C-S-268632084> is undefined	C-˝ is undefined			C-˝, C-A-S-t
<C-S-268632085> is undefined	C-Á is undefined			C-Á, C-A-S-u
<C-S-268632086> is undefined	C-◊ is undefined			C-◊, C-A-S-v
<C-S-268632087> is undefined	C-„ is undefined			C-„, C-A-S-w
<C-S-268632088> is undefined	C-Ù is undefined			C-Ù, C-A-S-x
<C-S-S-tab> is undefined    	C-‡ is undefined			C-‡, C-A-S-y
<C-S-268632090> is undefined	C-ˇ is undefined			C-ˇ, C-A-S-z
C-“ is undefined		C-“ is undefined			C-“, C-A-S-^
C-¬ is undefined		C-¬ is undefined			C-¬, C-A-S-1
C-” is undefined		C-” is undefined			C-”, C-A-S-2
C-# is undefined		C-# is undefined			C-#, C-A-S-3
C-£ is undefined		C-£ is undefined			C-£, C-A-S-4
C-fi is undefined		C-fi is undefined			C-fi, C-A-S-5
C-^ is undefined		<C-S-dead-circumflex>/C-^ is undefined	C-^, C-A-S-6
<C-S-268632092> is undefined	C-\ is toggle-input-method		C-\, C-A-S-7
C-˜ is undefined		C-˜ is undefined			C-~, C-A-S-8
C-· is undefined		C-· is undefined			C-·, C-A-S-9
C-¯ is undefined		C-¯ is undefined			C-¯, C-A-S-0
C-˙ is undefined		C-˙ is undefined			C-˙, C-A-S-ß
˚ is self-insert-command	C-˚ is undefined			C-˚, C-A-S-´
C-° is undefined		C-° is undefined			C-°, C-A-S-ü
C- is undefined		C- is undefined			C-, C-A-S-+
C-Œ is undefined		C-Œ is undefined			C-Œ, C-A-S-ö
C-Æ is undefined		C-Æ is undefined			C-Æ, C-A-S-ä
C-’ is undefined		C-’ is undefined			C-’, C-A-S-#
C-≥ is undefined		C-≥ is undefined			C-≥, C-A-S-<
C-˛ is undefined		C-˛ is undefined			C-˛, C-A-S-,
C-÷ is undefined		C-÷ is undefined			C-÷, C-A-S-.
<C-S-268632095> is undefined	C-— is undefined			C-—, C-A-S--




In GNU Emacs 23.0.60.1 (powerpc-apple-darwin8.11.0, NS apple- 
appkit-824.48)
 of 2008-11-01 on Latsche.local
Windowing system distributor `Apple', version  
97.112.112.108.101.45.97.112.112.107.105.116.45.56.50.52.46.52.56
configured using `configure  '--without-sound' '--without-pop' '-- 
with-dbus' '--with-libotf' '--with-ns' '--disable-ns-self-contained'  
'--enable-locallisppath=/Library/Application Support/Emacs/ 
calendar23:/Library/Application Support/Emacs/caml:/Library/ 
Application Support/Emacs:/sw/share/emacs21/site-lisp/elib'  
'PKG_CONFIG_PATH=/sw/lib/xft2/lib/pkgconfig:/sw/lib/fontconfig2/lib/ 
pkgconfig:/sw/lib/freetype219/lib/pkgconfig:/sw/lib/pango-ft219/lib/ 
pkgconfig:/sw/lib/qt4-x11/lib/pkgconfig:/sw/lib/system-openssl/lib/ 
pkgconfig:/sw/lib/pkgconfig:/sw/share/pkgconfig:/usr/X11R6/lib/ 
pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig' 'CFLAGS=-Wno- 
pointer-sign -bind_at_load -H -pipe -fPIC -mcpu=7450 -mtune=7450 - 
fast -mpim-altivec -ftree-vectorize -foptimize-register-move - 
freorder-blocks -freorder-blocks-and-partition -fthread-jumps - 
fpeephole -fno-crossjumping' 'CPPFLAGS=-no-cpp-precomp' 'LDFLAGS=- 
bind_at_load -dead_strip -multiply_defined suppress -L/sw/lib/ncurses''

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
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  shell-dirtrack-mode: t
  diff-auto-refine-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
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t


--
Greetings

  Pete

Klingon function calls do not have "parameters" - they have  
"arguments" - and they ALWAYS WIN THEM.





bug reassigned from package `emacs' to `emacs,ns'. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Sun, 02 Nov 2008 01:40:04 GMT) Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com:
bug#1292; Package emacs,ns. (Fri, 23 Jan 2009 13:25:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Adrian Robert <adrian.b.robert <at> gmail.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com. (Fri, 23 Jan 2009 13:25:04 GMT) Full text and rfc822 format available.

Message #12 received at 1292 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Adrian Robert <adrian.b.robert <at> gmail.com>
To: 1292 <at> debbugs.gnu.org
Cc: Peter Dyballa <Peter_Dyballa <at> Freenet.DE>
Subject: Re: 23.0.60; key bindings in Emacs.app
Date: Fri, 23 Jan 2009 15:15:36 +0200
Hi,

About the keybindings where some number is required, could you have a  
look in lisp/term/ns-win.el, the x-setup-function-keys function,  
where there are lines like:

...
             (cons (logior (lsh 0 16)  12) 'ns-new-frame)
             (cons (logior (lsh 1 16)  32) 'f1)
...

I am wondering if either:

- more definitions like the second one need to be added here
-or-
- some definitions like the first one are interfering with the keys  
you are trying to use

Could you experiment a little with this?

Also, on the web page for this bug:

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=1292

All of these chars are showing up as squares; it could be my browser  
but it could also be some munging that happened along the way from  
email to web page.  Could you send me this table directly through email?

thanks,
Adrian





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com:
bug#1292; Package emacs,ns. (Fri, 23 Jan 2009 15:00:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Peter Dyballa <Peter_Dyballa <at> Freenet.DE>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com. (Fri, 23 Jan 2009 15:00:03 GMT) Full text and rfc822 format available.

Message #17 received at 1292 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Peter Dyballa <Peter_Dyballa <at> Freenet.DE>
To: Adrian Robert <adrian.b.robert <at> gmail.com>
Cc: 1292 <at> debbugs.gnu.org
Subject: Re: 23.0.60; key bindings in Emacs.app
Date: Fri, 23 Jan 2009 15:51:00 +0100
Am 23.01.2009 um 14:15 schrieb Adrian Robert:

>              (cons (logior (lsh 0 16)  12) 'ns-new-frame)
>              (cons (logior (lsh 1 16)  32) 'f1)

How are these numbers connected to keys on my keyboard or the data  
that Key Codes.app reports?


My basic opinion is that no key press should be undefined, so more  
entries of the second form seem to be needed if they're not  
instantaneously "known."

--
Greetings

  Pete

Let's face it; we don't want a free market economy either.
		– James Farley, president, Coca-Cola Export Corp., 1959







Merged 1292 2841. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 22 Nov 2012 18:48:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#1292; Package emacs. (Thu, 21 Jan 2016 20:44:01 GMT) Full text and rfc822 format available.

Message #22 received at 1292 <at> debbugs.gnu.org (full text, mbox):

From: Alan Third <alan <at> idiocy.org>
To: Peter Dyballa <Peter_Dyballa <at> Freenet.DE>
Cc: 1292 <at> debbugs.gnu.org, 2841 <at> debbugs.gnu.org
Subject: Re: bug#2841: 23.0.92; Emacs.app loads Emacs Lisp file as text file
Date: Thu, 21 Jan 2016 20:43:36 +0000
Peter Dyballa <Peter_Dyballa <at> Freenet.DE> writes:

> Invoked as ``nextstep/Emacs.app/Contents/MacOS/Emacs -Q -l ~/.emacs- 
> init.el &´´ it loads my rudimentary init file like some text file into
> a buffer in Emacs-Lisp mode. Other Emacs variants execute the code,
> which is the documented behaviour.

Hi, I can't reproduce this behaviour in Emacs 25. The .el file runs as
expected. Are you still seeing this behaviour in a recent build?
-- 
Alan Third




Added tag(s) unreproducible. Request was from Alan Third <alan <at> idiocy.org> to control <at> debbugs.gnu.org. (Thu, 21 Jan 2016 20:44:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#1292; Package emacs. (Fri, 22 Jan 2016 08:43:02 GMT) Full text and rfc822 format available.

Message #27 received at 1292 <at> debbugs.gnu.org (full text, mbox):

From: Peter Dyballa <Peter_Dyballa <at> Freenet.DE>
To: Alan Third <alan <at> idiocy.org>
Cc: 1292 <at> debbugs.gnu.org, 2841 <at> debbugs.gnu.org
Subject: Re: bug#2841: 23.0.92; Emacs.app loads Emacs Lisp file as text file
Date: Fri, 22 Jan 2016 09:39:37 +0100
Am 21.01.2016 um 21:43 schrieb Alan Third:

> Peter Dyballa <Peter_Dyballa <at> Freenet.DE> writes:
> 
>> Invoked as ``nextstep/Emacs.app/Contents/MacOS/Emacs -Q -l ~/.emacs- 
>> init.el &´´ it loads my rudimentary init file like some text file into
>> a buffer in Emacs-Lisp mode. Other Emacs variants execute the code,
>> which is the documented behaviour.
> 
> Hi, I can't reproduce this behaviour in Emacs 25. The .el file runs as
> expected. Are you still seeing this behaviour in a recent build?

And neither me! The bug was obviously resolved some time ago…

--
Greetings

  Pete

Time flies like an error – but fruit flies like a banana!
				- (almost) Groucho Marx





bug marked as fixed in version 25.1, send any further explanations to 1292 <at> debbugs.gnu.org and Peter Dyballa <Peter_Dyballa <at> Freenet.DE> Request was from Alan Third <alan <at> idiocy.org> to control <at> debbugs.gnu.org. (Fri, 22 Jan 2016 16:08:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 20 Feb 2016 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 124 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.