From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.bugs Subject: bug#6527: C-h b alters key-translation-map (in a bad way) Date: Mon, 28 Jun 2010 10:41:36 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1277737189 27724 80.91.229.12 (28 Jun 2010 14:59:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 Jun 2010 14:59:49 +0000 (UTC) Cc: larry@denenberg.com To: 6527@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 28 16:59:40 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OTFo6-0001fc-FW for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Jun 2010 16:59:35 +0200 Original-Received: from localhost ([127.0.0.1]:50838 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTFo5-00066K-HD for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Jun 2010 10:59:33 -0400 Original-Received: from [140.186.70.92] (port=41914 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTFnw-000665-1p for bug-gnu-emacs@gnu.org; Mon, 28 Jun 2010 10:59:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTFnu-00062O-Ee for bug-gnu-emacs@gnu.org; Mon, 28 Jun 2010 10:59:23 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33896) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTFnu-00062K-D6 for bug-gnu-emacs@gnu.org; Mon, 28 Jun 2010 10:59:22 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OTFX8-0000U9-UB; Mon, 28 Jun 2010 10:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Reitter Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: larry@denenberg.com, bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Jun 2010 14:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6527 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Bug-Gnu-Emacs X-Debbugs-Original-Xcc: larry@denenberg.com Original-Received: via spool by submit@debbugs.gnu.org id=B.12777361181855 (code B ref -1); Mon, 28 Jun 2010 14:42:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Jun 2010 14:41:58 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTFX3-0000Ts-Jm for submit@debbugs.gnu.org; Mon, 28 Jun 2010 10:41:58 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTFX0-0000Tl-1M for submit@debbugs.gnu.org; Mon, 28 Jun 2010 10:41:55 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:46665) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OTFWu-0006Lw-Tu for submit@debbugs.gnu.org; Mon, 28 Jun 2010 10:41:48 -0400 Original-Received: from [140.186.70.92] (port=40764 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTFWr-0000Sm-Q1 for bug-gnu-emacs@gnu.org; Mon, 28 Jun 2010 10:41:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTFWo-0002Wb-1D for bug-gnu-emacs@gnu.org; Mon, 28 Jun 2010 10:41:45 -0400 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:57528) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTFWn-0002WM-TM for bug-gnu-emacs@gnu.org; Mon, 28 Jun 2010 10:41:42 -0400 Original-Received: by vws1 with SMTP id 1so1765641vws.0 for ; Mon, 28 Jun 2010 07:41:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:content-type :content-transfer-encoding:subject:date:message-id:to:mime-version :x-mailer; bh=LYq/P1AqCMKPi7n1kYPshczUkicjwbRjhdu7Kp19NPM=; b=OSvjS3QNi4vWEwhEF8CoeAc1355ETgnF1+gSX1UVTKKcLHIsrSasGTUXh/GUd1DQS0 h+bY34N07DBF+cNFJjNhaP0G95K7dt9EUWvu6YsnDo7zX6F8nDA1cHr1RjY4T3bkJSBX e0werMyMHF1WlgmnbU4DHKRm2uVQhgUeu249Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=w2nPgRPH5SlW3ybUEXSUjsFgaQGE9j2Yg40FwPLXsdb1WSyzpzho824UTB0s2NY/qU kv5/f47Pg3NT5NUULxcZ/wEOG2M6TW3k4kkKUqyvyowJ3CsBWKCUFM9oAE21VupcyDqQ bljes6dzcvSs/LDdjGWR3yYzFnZ5qHcubzJE0= Original-Received: by 10.224.72.132 with SMTP id m4mr3329725qaj.145.1277736100537; Mon, 28 Jun 2010 07:41:40 -0700 (PDT) Original-Received: from [192.168.1.17] (pool-96-235-7-98.pitbpa.east.verizon.net [96.235.7.98]) by mx.google.com with ESMTPS id q31sm24434760qcq.44.2010.06.28.07.41.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 28 Jun 2010 07:41:39 -0700 (PDT) X-Mailer: Apple Mail (2.1081) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 28 Jun 2010 10:42:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:38071 Archived-At: X-debbugs-cc: larry@denenberg.com C-h b alters the key translation map. Emacs (setq ns-command-modifier 'alt) ;; On NS, we need to assign the = modifier key Press Command-C -> A-c is undefined (correct) C-h b Press Command-C -> =C2=A2 is inserted The value of `key-translation-map' is indeed changed by C-h b, and = resetting it fixes the problem. Some debugging suggests that something odd is happening in = describe_map(). Commenting out map =3D call1 (Qkeymap_canonicalize, map); makes the error go away. A direct call to `keymap-canonicalize' does = not, however, reproduce it, so there is something else going on. Full credit for the original report of a reproducible bug goes to Larry = Denenberg - his report is quoted below. In GNU Emacs 23.2.50.1 (x86_64-apple-darwin10.3.1, NS = apple-appkit-1038.29) of 2010-05-10 on elin.psy.cmu.edu Windowing system distributor `Apple', version 10.3.1038 configured using `configure '--with-ns'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: which-function-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 auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x k ) s e =20 ( s e t q SPC n s - a c o m=20 m a n d - m o d i f i e r SPC ' a l t ) C-x C-e =20 A-c A-c C-h b =20 A-c A-c =20 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Unable to load color "darkblue" alt Type C-x 1 to delete the help window, C-M-v to scroll help. Load-path shadows: None found. Features: (shadow sort mail-extr message ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug kmacro two-column iso-transl help-mode view ghostedit ghostedit-stopwords-en easy-mmode which-func imenu tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win easymenu tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs) =3D=3D=3D Begin forwarded message: > From: Larry Denenberg > Date: June 25, 2010 7:02:32 AM EDT > To: aquamacs-bugs@aquamacs.org > Cc: larry@denenberg.com > Subject: [Aquamacs-bugs] 23.2; ^H B doesn't just describe bindings, it = changes them > Reply-To: Bug reports for Aquamacs Emacs >=20 >=20 > Starting from scratch, type ^H C =E2=8C=98. [that's C-h A-.) to get > =E2=8C=98. runs the command keyboard-quit >=20 > Then type ^H B to see a help buffer describing key bindings, after > which ^H C =E2=8C=98. again (in any buffer) yields > =C2=B7 (translated from =E2=8C=98.) runs the command = self-insert-command >=20 > Note that the first character here is not a period but a centered dot, = #xb7. >=20 > BTW, after you've done this, you get "Options have changed - save = them?" > upon exit. >=20 > I get this behavior in Aquamacs as described below, whether starting > "-q" or "-Q", and also in 24.0.50.1. I do not get it in 22.3.1, nor = in > plain GNU Emacs 24.0.50.2. >=20 > /Larry Denenberg > larry@denenberg.com > http://larry.denenberg.com/ >=20 >=20 > In GNU Emacs 23.2.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) > of 2010-05-09 on braeburn.aquamacs.org - Aquamacs Distribution 2.0 > Windowing system distributor `Apple', version 10.3.1038 > configured using `configure '--with-ns' '--without-x' 'CFLAGS=3D-arch = i386 -arch ppc' 'LDFLAGS=3D-arch i386 -arch ppc'' >=20 > Important settings: > value of $LC_ALL: nil > value of $LC_COLLATE: nil > value of $LC_CTYPE: nil > value of $LC_MESSAGES: nil > value of $LC_MONETARY: nil > value of $LC_NUMERIC: nil > value of $LC_TIME: nil > value of $LANG: en_US.UTF-8 > value of $XMODIFIERS: nil > locale-coding-system: utf-8-unix > default enable-multibyte-characters: t >=20 > Major mode: Text >=20 > Minor modes in effect: > savehist-mode: t > smart-frame-positioning-mode: t > aquamacs-autoface-mode: t > recentf-mode: t > osx-key-mode: t > tabbar-mwheel-mode: t > tabbar-mode: t > show-paren-mode: t > delete-selection-mode: t > pc-selection-mode: t > cua-mode: t > tooltip-mode: t > mouse-wheel-mode: t > tool-bar-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > blink-cursor-mode: t > auto-encryption-mode: t > auto-compression-mode: t > smart-spacing-mode: t > column-number-mode: t > line-number-mode: t > visual-line-mode: t > transient-mark-mode: t >=20 > Recent input: > ^H C =E2=8C=98. ^H B ^H C =E2=8C=98. ^X=20 > O ^H O =20 > ^H C =E2=8C=98. =20 > =20 > >=20 >=20 > Recent messages: > Cleaning up the recentf list...done (0 removed) > 29 environment variables imported from login shell (/bin/bash). > Loading = /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/auc= tex.el (source)...done > Loading = /Applications/Aquamacs.app/Contents/Resources/lisp/aquamacs/edit-modes/has= kell-mode/haskell-site-file.el (source)...done > one-buffer-one-frame-mode disabled. > Mark set [32 times] > Aquamacs is based on GNU Emacs, a part of the GNU/Linux system. It is = Free Software: you can improve and redistribute it under the GNU General = Public License, version 3 or later. Copyright (C) 2010 Free Software = Foundation, Inc. (C) 2010 D. Reitter. No Warranty. > =E2=8C=98. runs the command keyboard-quit > Type "q" to quit, M-x scroll-up to scroll help. > =C2=B7 (translated from =E2=8C=98.) runs the command = self-insert-command [2 times] > start-vanilla-aquamacs: Searching for program: no such file or = directory, Aquamacs.app/Contents/MacOS/Aquamacs >=20 > Load-path shadows: > None found. >=20 > Features: > (shadow sort mail-extr message ecomplete rfc822 mml mml-sec > password-cache mm-decode mm-bodies mm-encode mailcap mail-parse = rfc2231 > rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc > mm-util mail-prsvr gmm-utils mailheader canlock sha1 hex-util hashcash > mail-utils emacsbug kmacro two-column iso-transl = aquamacs-mode-defaults > auctex-config server tex-site smart-dnd aquamacs-aux savehist = mouse-sel > one-buffer-one-frame smart-frame-positioning drews_init > color-theme-autoloads saveplace visual-line aquamacs-bug > aquamacs-autoface-mode aquamacs-editing sendmail recentf tree-widget > cus-edit osxkeys emulate-mac-keyboard-mode frame-cmds strings misc-fns > thingatpt+ thingatpt frame-fns avoid aquamacs-mac-fontsets fit-frame > aquamacs-frame-setup aquamacs-tabbar tabbar-window cl cl-19 tabbar > easy-mmode cus-start cus-load aquamacs-site-start cocoa-compatibility > filladapt aquamacs-redo check-for-updates aquamacs-menu osx_defaults > aquamacs-tool-bar aquamacs mac-extra-functions aquamacs-tools > aquamacs-macros parse-time timezone time-date paren delsel pc-select > cua-base wid-edit regexp-opt advice advice-preload byte-opt bytecomp > byte-compile debug help-fns help-mode view image-file disp-table = tooltip > ediff-hook vc-hooks lisp-float-type mwheel ns-win easymenu tool-bar = dnd > fontset image fringe lisp-mode register page menu-bar rfn-eshadow = timer > select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu > font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan > thai tai-viet lao korean japanese hebrew greek romanian slovak czech > european ethiopic indian cyrillic chinese case-table epa-hook > jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces > cus-face files text-properties overlay md5 base64 format env = code-pages > mule custom widget hashtable-print-readable backquote > make-network-process ns multi-tty emacs) >=20 > Command line: (Aquamacs.app/Contents/MacOS/Aquamacs) >=20 > PATH: = /Users/larry/Bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/nmh/bin:/usr/loc= al/bin:/usr/local/mysql/bin:/usr/texbin:/opt/subversion/bin:/usr/lib:/User= s/larry/Bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/nmh/bin:/usr/local/bi= n:/usr/local/mysql/bin:/usr/texbin:/opt/subversion/bin:/usr/lib:/usr/texbi= n:/usr/local/texlive/2008/bin >=20 > exec-path: (/Users/larry/Bin /bin /sbin /usr/bin /usr/sbin = /usr/local/nmh/bin /usr/local/bin /usr/local/mysql/bin /usr/texbin = /opt/subversion/bin /usr/lib /Users/larry/Bin /bin /sbin /usr/bin = /usr/sbin /usr/local/nmh/bin /usr/local/bin /usr/local/mysql/bin = /usr/texbin /opt/subversion/bin /usr/lib = /Applications/Aquamacs.app/Contents/MacOS/bin = /usr/local/texlive/2008/bin) > _______________________________________________ > Aquamacs-bugs mailing list > Aquamacs-bugs@aquamacs.org > http://lists.aquamacs.org/mailman/listinfo.cgi/aquamacs-bugs