From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rusi Newsgroups: gmane.emacs.help Subject: Re: Cant type unicode in emacs any more Date: Tue, 29 Apr 2014 08:51:08 -0700 (PDT) Message-ID: <4e6d9045-d68e-4288-aea4-7b9cf46c5d18@googlegroups.com> References: <0cab7d04-ccf8-47e4-858b-bb16b478cad6@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1398786931 29628 80.91.229.3 (29 Apr 2014 15:55:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Apr 2014 15:55:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 29 17:55:24 2014 Return-path: Envelope-to: geh-help-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 1WfANQ-0006Ux-9o for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Apr 2014 17:55:24 +0200 Original-Received: from localhost ([::1]:50809 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfANQ-00039i-0q for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Apr 2014 11:55:24 -0400 X-Received: by 10.52.2.129 with SMTP id 1mr14091900vdu.4.1398786669080; Tue, 29 Apr 2014 08:51:09 -0700 (PDT) X-Received: by 10.182.96.133 with SMTP id ds5mr88874obb.16.1398786668798; Tue, 29 Apr 2014 08:51:08 -0700 (PDT) Original-Path: usenet.stanford.edu!ih12no929442qab.1!news-out.google.com!en3ni366igc.0!nntp.google.com!uq10no371478igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=59.95.54.75; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 59.95.54.75 User-Agent: G2/1.0 Injection-Date: Tue, 29 Apr 2014 15:51:08 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:205182 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:97449 Archived-At: On Tuesday, April 29, 2014 6:14:45 PM UTC+5:30, Eric Abrahamsen wrote: > Rusi writes: > > For some time now I have this in my X startup programs: > > $ setxkbmap -option compose:menu > > After this I can type (in mostly any window) for example: > > (with MN being the windows-menu key) > > MN.. gives ... ie an ellipses > > MN--. gives - ie an en dash > > MN--- gives -- ie an em dash > > Not to mention all the e" giving =C3=AB > > etc etc - all the unicode goodies at > > /usr/share/X11/locale/$LANG/Compose > > Now suddenly its stopped working. > > ie it works in most other X apps but not in emacs > > I thought there may be a race-condition between the setxkb and emacs > > which are both in my startup programs. > > So I ran the setxkb command by hand from a shell and (re)started emacs > > from the shell > > No luck: > > The compose works outside emacs > > Doesn't work inside > > Any clues? > > Its the same for emacs 23 and 24 > Many of us have had to start emacs with the XMODIFIERS environment > variable *unset* for quite some time, to make this work: > /usr/bin/env -u XMODIFIERS /usr/bin/emacs > If I recall correctly, the emacs developers have caught this and fixed > it (?) in the development trunk, but I wouldn't be surprised if that > hasn't made its way to any releases yet. Why you've only bumped into > this recently I can't say, though again I have a feeling that one of the > linux distros updated not too long ago in a way that exposed this bug. > Anyhow, try unsetting the environment variable and see if that's it... No that did not work However Ive found what made it stop working: I had created a .XCompose file containing the one line : "=E2=86=B5" U21B5 No I am not very addicted to the =E2=86=B5 character -- just trying out how= easy it is to add one's own compose-sequences Removing the .XCompose file makes it work again. This of course raises more questions than it answers: Minor: If its a bug/inconsistency then in whom Significant: I thought X was one (or more) levels below emacs. Why is emacs (effectively) looking into .XCompose? Because currently the behavior I am seeing is: - Other apps *add* contents of .XCompose to the builtin composeables - Emacs *replaces* builtins with .XCompose