From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Filipe Silva Newsgroups: gmane.emacs.help Subject: =?UTF-8?Q?Re=3A_how_to_teach_emacs_that_=27_=2B_c_=3D_=C3=A7?= Date: Wed, 5 Jul 2017 12:55:08 -0300 Message-ID: References: <87a84jbq6x.fsf@wanadoo.es> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1499270145 28028 195.159.176.226 (5 Jul 2017 15:55:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 5 Jul 2017 15:55:45 +0000 (UTC) Cc: Help Gnu Emacs mailing list To: =?UTF-8?Q?=C3=93scar_Fuentes?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 05 17:55:41 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSmeS-000724-25 for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Jul 2017 17:55:40 +0200 Original-Received: from localhost ([::1]:46806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSmeW-0006Cw-0d for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Jul 2017 11:55:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSme4-0006Cr-DB for help-gnu-emacs@gnu.org; Wed, 05 Jul 2017 11:55:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSme0-0006ng-3I for help-gnu-emacs@gnu.org; Wed, 05 Jul 2017 11:55:16 -0400 Original-Received: from mail-oi0-x230.google.com ([2607:f8b0:4003:c06::230]:33238) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSmdz-0006mQ-RF for help-gnu-emacs@gnu.org; Wed, 05 Jul 2017 11:55:12 -0400 Original-Received: by mail-oi0-x230.google.com with SMTP id p188so128617991oia.0 for ; Wed, 05 Jul 2017 08:55:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=yL30BpFdRhcydd2kmG7aIWdErw494YLj/KsqT6RXLPg=; b=ORRzPsjS5uR1ec/v1KJb3HCmifHEbs9/5Z1xbLSsmsGaXB5nw8cw7wZZ5ZCnebaRXf exqCXCQiXuUCsyvboEq6Y79zljE8DmC22IsVsELUXRr7+O2SeJbnqBs2fUB5OHEer84+ lLfqZDcgBfJTS1eh/oCxNutCP0cgXUDHUczBesWbxCeMocXU1qW2C9psPV6sQENdLmxG G4YBWPIzszMlbHn8737pR2FUVPtconrsRfQIxgWy7YYvLZPyT3648Mz6DmSbjFdHOg6q 9Adp/a+/DrqldYxw44V8fjuaaYvdP74ks3sN0cLX1GJ3ok4Kog0jLBjd6BsO4wVirm7f EjSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=yL30BpFdRhcydd2kmG7aIWdErw494YLj/KsqT6RXLPg=; b=HD0jcjdHqGCl2Vl8vtUDmQo/EmAoXnrUaPHXeCz+CGcduYwrNSh8li3MA3J8fuFs2N HdcSDC3UY+aNfgd1ZpE8F4Lmx8evlv/eTah32FmA0OzSCb3PT60C2KHW1z53ORX+HBHL 82PsqxSe7dY8Nv5A3kIrXfMoVWXfnTUo8ODQ/kEN39HwHRyCaZ5YuMHNvSc/n8B/8oQo tPe14fSCrdFoCggd/a+87XsqfhB4KCw2CUcfvIiR+Y+SovWYqYSF852yZOEaozccYlUk JWzJyV6QPpKu3plMCacRU4pJg+/2U06PPsXZIf7KMYJaQ4NfTqbr+jhF9op5v+MCc5YJ 8sUg== X-Gm-Message-State: AKS2vOyi1yEfIzdGEM4WWuQzNfZpG0taBRiReVQputczjZQscTFefuDx 96/a0RGVdBQs74BQu9ZlLYv1OprSlQ== X-Received: by 10.202.240.66 with SMTP id o63mr25304893oih.169.1499270109367; Wed, 05 Jul 2017 08:55:09 -0700 (PDT) Original-Received: by 10.182.2.73 with HTTP; Wed, 5 Jul 2017 08:55:08 -0700 (PDT) In-Reply-To: <87a84jbq6x.fsf@wanadoo.es> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::230 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:113704 Archived-At: very interesting. LANC=3DC emacs really fix the problem. What is happening here? maybe this is a bug. On Tue, Jul 4, 2017 at 10:57 PM, =C3=93scar Fuentes wrote: > Filipe Silva writes: > > > I've set up my keyboard layout in arch with localectl set-x11-keymap us > > pc104 intl > > > > By default, in this layout, the ' is a dead character. It is called a > dead > > acute. In portuguese, we are used to compose the =C3=A7 char with ' + c= =3D =C3=A7 > when > > using international us-keyboard layouts. > > > > I don't know why, but by default linux distros come configured so that > when > > you type this combination ' + c=3D =C4=87, which is an invalid char in = Brazilian > > portuguese, and so I'm screwed. > > > > So I did this: > > > > - > > > > Editing the files: > > > > sudo vim /usr/lib/gtk-3.0/3.0.0/immodules.cache sudo vim > > /usr/lib/gtk-2.0/2.10.0/immodules.cache > > > > changing the line > > > > "cedilla" "Cedilla" "gtk20" "/usr/share/locale" > > "az:ca:co:fr:gv:oc:pt:sq:tr:wa" to "cedilla" "Cedilla" "gtk20" > > "/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa:en" > > - > > > > replaced "=C4=87" to "=C3=A7" and "=C4=86" to "=C3=87" on > > /usr/share/X11/locale/en_US.UTF-8/Compose > > > > sudo cp /usr/share/X11/locale/en_US.UTF-8/Compose > > /usr/share/X11/locale/en_US.UTF-8/Compose.bak sed 's/=C4=87/=C3=A7/g= ' < > > /usr/share/X11/locale/en_US.UTF-8/Compose | sed 's/=C4=86/=C3=87/g' = > Compose > sudo mv > > Compose /usr/share/X11/locale/en_US.UTF-8/Compose > > - > > > > add two lines on /etc/environment > > > > GTK_IM_MODULE=3Dcedilla QT_IM_MODULE=3Dcedilla > > - > > > > restart my computer. > > > > And all is working fine in firefox, chromium, scite, gvim or any other > gui > > tool, but no emacs. on emacs, ' + cinsist on producing =C4=87, despite = my > > efforts. > > > > > > So I ask you, how can I teach emacs to produce =C3=A7 and not =C4=87 in= this > scenario? > > > > > > thanks in advance. > > Curious. I have > > setxkbmap us_intl > > in my init scripts and have the opposite problem (not actually a problem > for me since in my languages =C3=A7 is not used). > > ' + c produces =C3=A7 in Emacs but =C4=87 elsewhere. > > BUT... > > if I start Emacs with -Q, then ' + c indeed produces as the other > applications =C4=87. > > After looking at my customizations, tried > > LANG=3DC emacs -Q > > and now ' + c gives =C3=A7. > > Hope this gives you some clues. > > Ubuntu 17.04 here. > > >