From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hans Meine Newsgroups: gmane.emacs.bugs Subject: bug#11682: 23.3; meta key stops working if X modifier map becomes (temporarily) empty Date: Tue, 12 Jun 2012 18:18:14 +0200 Organization: Fraunhofer MEVIS Message-ID: <7543206.IZWW6iXkjA@hmeine-pc> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1339518103 14259 80.91.229.3 (12 Jun 2012 16:21:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Jun 2012 16:21:43 +0000 (UTC) To: 11682@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 12 18:21:41 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SeTqX-0002yP-CS for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jun 2012 18:21:33 +0200 Original-Received: from localhost ([::1]:47702 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeTqX-0003Sk-4X for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jun 2012 12:21:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeTqO-0003Pw-4Z for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2012 12:21:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SeTqJ-0004F0-KW for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2012 12:21:23 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58307) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeTqJ-0004Es-H5 for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2012 12:21:19 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SeTsv-0003Yl-Uw for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2012 12:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Hans Meine Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Jun 2012 16:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11682 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.133951818513610 (code B ref -1); Tue, 12 Jun 2012 16:24:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Jun 2012 16:23:05 +0000 Original-Received: from localhost ([127.0.0.1]:39620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SeTs0-0003XS-Nc for submit@debbugs.gnu.org; Tue, 12 Jun 2012 12:23:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45464) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SeTqW-0003Up-EE for submit@debbugs.gnu.org; Tue, 12 Jun 2012 12:21:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SeTnn-0002ng-SF for submit@debbugs.gnu.org; Tue, 12 Jun 2012 12:18:49 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:56207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeTnn-0002nR-Ok for submit@debbugs.gnu.org; Tue, 12 Jun 2012 12:18:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeTnf-0002Je-ID for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2012 12:18:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SeTnY-0002f2-5L for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2012 12:18:34 -0400 Original-Received: from mx-relay04-haj2.antispameurope.com ([83.246.65.204]:45625) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeTnX-0002dD-OT for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2012 12:18:28 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EAF9r10+GZub5/2dsb2JhbABFhVevYIEHgkJGAUQCBQ8SAhEBNwIUMYdtC5gOjj6SYIEghTuEZoJeggeBEgOlGoJigVQJGg X-IronPort-AV: E=Sophos;i="4.75,758,1330902000"; d="scan'208";a="86791448" Original-Received: from mail.mevis.fraunhofer.de ([134.102.230.249]) by mail-mtaS26.fraunhofer.de with ESMTP/TLS/AES128-SHA; 12 Jun 2012 18:18:21 +0200 Original-Received: from hmeine-pc.localnet (10.142.0.40) by srv-cashub-02.fme.lan (10.142.0.19) with Microsoft SMTP Server (TLS) id 14.1.355.2; Tue, 12 Jun 2012 18:18:21 +0200 User-Agent: KMail/4.8.3 (Linux/3.2.0-24-generic; KDE/4.8.3; x86_64; ; ) X-Originating-IP: [10.142.0.40] X-cloud-security-sender: hans.meine@mevis.fraunhofer.de X-cloud-security-recipient: bug-gnu-emacs@gnu.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mx-gate04-haj2 with 48ED2794005 X-cloud-security: scantime:.6692 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Tue, 12 Jun 2012 12:23:03 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:60891 Archived-At: Hi everybody, I am running (K)Ubuntu 12.04, and I am suffering from a bug in VMWare P= layer=20 that clears the X modifier map whenever it grabs the keyboard: https://bugs.launchpad.net/ubuntu/+source/xkeyboard-config/+bug/195982 The workaround is to call 'setxkbmap' without any arguments to restore = the=20 current xkb map, effectively repopulating the modifier map. The (new) problem with Emacs is that it loses its meaning of the meta k= ey=20 definition (this is meant to be a very superficial description from a u= ser's=20 perspective; I could not find out what exactly goes wrong), i.e. all ke= y=20 bindings including the meta key stop working. For instance, I need to = use=20 "ESC x" instead of M-x. I am using the Alt key for Meta, here's the output of 'xmodmap -pm': xmodmap: up to 4 keys per modifier, (keycodes in parentheses): shift Shift_L (0x32), Shift_R (0x3e) lock Shift_L (0x32) control Control_L (0x25), Control_R (0x69) mod1 Alt_L (0x40), Meta_L (0xcd) mod2 =20 mod3 ISO_Level5_Shift (0x5e) mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L = (0xcf) mod5 ISO_Level3_Shift (0x33), ISO_Level3_Shift (0x5c), Mode_sw= itch=20 (0xcb) This is the temporary state after I used VMWare, before restoring the w= orking=20 state using 'setxkbmap': xmodmap: up to 0 keys per modifier, (keycodes in parentheses): shift =20 lock =20 control =20 mod1 =20 mod2 =20 mod3 =20 mod4 =20 mod5 =20 (It /may/ not be irrelevant that I am using the German Neo layout.) If I start a new Emacs, that one is taking meta all right, so I tried h= aving=20 both side-by-side, one Emacs that lost control over meta, and one fresh= Emacs=20 that has not yet seen an empty modifier map, and had a look at some lis= p=20 varibles, e.g. 'x-{meta,alt,...}-keysym' (which are all nil) and x-keys= ym- table, but could not find any difference. So my current assumption is that there is some code in Emacs that react= s to=20 the modifier change, changes some internal state, and does not react to= the=20 restored modifier map in a way that the old internal state is restored.= I=20 hope that this can be fixed, and I think the latter behavior (i.e. that= the=20 meta key auto-detection internal state depends only on the /current/ ex= ternal=20 state, and is independent of any intermediate states) would be desirabl= e in=20 general. The following is unmodified output of M-x report-emacs-bug: If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /usr/share/emacs/23.3/etc/DEBUG. In GNU Emacs 23.3.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-03-25 on allspice, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11103= 000 configured using `configure '--build' 'x86_64-linux-gnu' '--build' 'x8= 6_64- linux-gnu' '--prefix=3D/usr' '--sharedstatedir=3D/var/lib' '--libexecdi= r=3D/usr/lib'=20 '--localstatedir=3D/var/lib' '--infodir=3D/usr/share/info' '-- mandir=3D/usr/share/man' '--with-pop=3Dyes' '--enable- locallisppath=3D/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.3/sit= e- lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.3/site- lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.3/leim' '--with-crt= - dir=3D/usr/lib/x86_64-linux-gnu' '--with-x=3Dyes' '--with-x-toolkit=3Dg= tk' '--with- toolkit-scroll-bars' 'build_alias=3Dx86_64-linux-gnu' 'CFLAGS=3D-DDEBIA= N -g -O2'=20 'LDFLAGS=3D-g' 'CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2'' 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: de_DE.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Apropos Minor modes in effect: delete-selection-mode: t shell-dirtrack-mode: t global-semantic-idle-summary-mode: t show-paren-mode: t recentf-mode: t pc-selection-mode: t global-semanticdb-minor-mode: t semantic-mode: t tooltip-mode: t mouse-wheel-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 line-number-mode: t transient-mark-mode: t Recent input: M-x a p r o p o s k e y s y m C-x=20 o C-x 1 =20 =20 =20 C-x=20 C-g C-x o C-x 1 =20 =20 =20 =20 =20 =20 =20 C-x C-g C-x C-b =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 M-x m e t a C-x=20 1 =20 =20 C-x 1 M-x r e p o r t < return> Recent messages: Loading paren...done Loading /home/hmeine/.recentf...done Cleaning up the recentf list...done (0 removed) Ido mode enabled Loading flymake...done Loading /usr/share/emacs/23.3/site-lisp/tex-site.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Type C-x 1 to delete the help window. line-move-visual: Beginning of buffer [11 times] Type C-x 1 to delete the help window. Load-path shadows: /usr/share/emacs/23.3/site-lisp/auctex/tex-style hides /usr/share/emacs= /site- lisp/auctex/tex-style /usr/share/emacs/23.3/site-lisp/auctex/tex-info hides /usr/share/emacs/= site- lisp/auctex/tex-info /usr/share/emacs/23.3/site-lisp/auctex/bib-cite hides /usr/share/emacs/= site- lisp/auctex/bib-cite /usr/share/emacs/23.3/site-lisp/auctex/tex-fold hides /usr/share/emacs/= site- lisp/auctex/tex-fold /usr/share/emacs/23.3/site-lisp/auctex/tex-font hides /usr/share/emacs/= site- lisp/auctex/tex-font /usr/share/emacs/23.3/site-lisp/auctex/font-latex hides /usr/share/emac= s/site- lisp/auctex/font-latex /usr/share/emacs/23.3/site-lisp/auctex/context-nl hides /usr/share/emac= s/site- lisp/auctex/context-nl /usr/share/emacs/23.3/site-lisp/auctex/tex-bar hides /usr/share/emacs/s= ite- lisp/auctex/tex-bar /usr/share/emacs/23.3/site-lisp/auctex/multi-prompt hides=20 /usr/share/emacs/site-lisp/auctex/multi-prompt /usr/share/emacs/23.3/site-lisp/auctex/latex hides /usr/share/emacs/sit= e- lisp/auctex/latex /usr/share/emacs/23.3/site-lisp/auctex/tex-mik hides /usr/share/emacs/s= ite- lisp/auctex/tex-mik /usr/share/emacs/23.3/site-lisp/auctex/context hides /usr/share/emacs/s= ite- lisp/auctex/context /usr/share/emacs/23.3/site-lisp/auctex/tex hides /usr/share/emacs/site-= lisp/auctex/tex /usr/share/emacs/23.3/site-lisp/auctex/tex-fptex hides /usr/share/emacs= /site- lisp/auctex/tex-fptex /usr/share/emacs/23.3/site-lisp/auctex/context-en hides /usr/share/emac= s/site- lisp/auctex/context-en /usr/share/emacs/23.3/site-lisp/auctex/toolbar-x hides /usr/share/emacs= /site- lisp/auctex/toolbar-x /usr/share/emacs/23.3/site-lisp/auctex/tex-buf hides /usr/share/emacs/s= ite- lisp/auctex/tex-buf /usr/share/emacs/23.3/site-lisp/auctex/texmathp hides /usr/share/emacs/= site- lisp/auctex/texmathp /usr/share/emacs/23.3/site-lisp/auctex/tex-jp hides /usr/share/emacs/si= te- lisp/auctex/tex-jp /usr/share/emacs/23.3/site-lisp/cmake-data/cmake-mode hides=20 /usr/share/emacs/site-lisp/cmake-mode /usr/share/emacs/23.3/site-lisp/debian-startup hides /usr/share/emacs/s= ite- lisp/debian-startup /usr/share/emacs23/site-lisp/dictionaries-common/flyspell hides=20 /usr/share/emacs/23.3/lisp/textmodes/flyspell /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/23.3/lisp/textmod= es/rst /usr/share/emacs23/site-lisp/dictionaries-common/ispell hides=20 /usr/share/emacs/23.3/lisp/textmodes/ispell Features: (shadow sort mail-extr message sendmail ecomplete rfc822 mml mml-sec mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc204= 5 qp ietf-drums mailabbrev nnheader mm-util mail-prsvr gmm-utils mailheader canlock sha1 hex-util hashcash mail-utils emacsbug pp help-mode view apropos server flymake gtags grin find-dired dired ffap cus-edit MDL-mode cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs derived delsel tramp-imap tramp-gw tramp-fish= tramp-smb tramp-cache tramp-ftp tramp-cmds tramp regexp-opt auth-source= gnus-util netrc time-date shell password-cache format-spec tramp-compat= trampver saveplace semantic/idle semantic/decorate/mode semantic/decorate pulse paren recentf tree-widget pc-select ido cus-start cus-load ecb warnings edmacro kmacro ecb-symboldef ecb-analys= e ecb-compatibility ecb-winman-support ecb-autogen autoload ecb-tod ecb-cycle ecb-eshell ecb-help ecb-jde ecb-method-browser hideshow ecb-semantic ecb-file-browser ecb-speedbar ecb-layout compile comint ecb-create-layout advice help-fns advice-preload ecb-compilation ecb-common-browser speedbar sb-image dframe assoc ecb-navigate ecb-mode-line ecb-face tree-buffer ecb-upgrade ecb-cedet-wrapper semantic/db-mode semantic/db-find semantic/db-ref semantic/analyze semantic/sort semantic/scope semantic/analyze/fcn semantic/db eieio-bas= e semantic/format ezimage semantic/tag-ls semantic/ctxt semantic/util-modes easymenu semantic/util semantic semantic/tag semantic/lex semantic/fw eieio byte-opt bytecomp byte-compile mode-loca= l cedet wid-edit ecb-util ring thingatpt preview-latex tex-site auto-load= s tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting 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 dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) --=20 Hans Meine =E2=80=A2 Fraunhofer MEVIS =E2=80=A2 Universit=C3=A4tsallee = 29 =E2=80=A2 28359 Bremen Tel.: +49 421/218-59255 (Fax: +49 421/218-98 59255)