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?how_to_teach_emacs_that_=27_=2B_c_=3D_=C3=A7?= Date: Tue, 4 Jul 2017 22:25:52 -0300 Message-ID: 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 1499217995 15608 195.159.176.226 (5 Jul 2017 01:26:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 5 Jul 2017 01:26:35 +0000 (UTC) To: Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 05 03:26:29 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 1dSZ59-0003EU-Oi for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Jul 2017 03:26:19 +0200 Original-Received: from localhost ([::1]:43659 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSZ5F-0000Ew-1d for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Jul 2017 21:26:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSZ4m-0000Eq-1g for help-gnu-emacs@gnu.org; Tue, 04 Jul 2017 21:25:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSZ4k-0000Uk-PN for help-gnu-emacs@gnu.org; Tue, 04 Jul 2017 21:25:55 -0400 Original-Received: from mail-oi0-x234.google.com ([2607:f8b0:4003:c06::234]:36658) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSZ4k-0000Po-A0 for help-gnu-emacs@gnu.org; Tue, 04 Jul 2017 21:25:54 -0400 Original-Received: by mail-oi0-x234.google.com with SMTP id x187so56809724oig.3 for ; Tue, 04 Jul 2017 18:25:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=/GfrTOe1cqMBi93a6ggYMf1qiYMndGZbSMUkqZGD0qQ=; b=Xd/5MM8bHVjJ+H7Ra5TkFG4Y6HvRkZxCDjXC0ORfc+CCzPZB146nCgTs7o0QYPTZIO PXgjjAzcIQnXU15517ukYybqGzNUdx5+1tUIv5yR4jBiTDdZvA8A5pZFJBEcUcC45q0o uSP1B/+yf+TM8Gv5YLGdLzVTbHE23PqkBEY/RTUDWkwRbT+9rGCCR9/CPvRRL6TYd7uA +422oEoyr/msZQzNDqyrTVktBnY3QvbrJpVyXJDA/J319Yv0L3DORhI2WhXUV3a/h85o yR19E8m2xX+adYDfC3IU5XP0S8q/R3kNyNmPyA4qF26mpDMf8UnFdV4LgAdz7gv64P4U eCTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=/GfrTOe1cqMBi93a6ggYMf1qiYMndGZbSMUkqZGD0qQ=; b=V/OSUrruotK3JV/9Pqz0c0We+zgXdwL/6VLL6eylPaUtzsKirznFQW8zNwfh6rJf2M /m8QEaWMavoR7pkL7M7pLazjBZr8G/OOESZ6AK41DWqfRRggiA8ktfNYtUMFxqwyDBpb LeV1bvKGcYIrpQtp5h+aAVtlnVJAKDq7d4vStmQs/s1gTkZjfZs5TwIkCXwiBDvnaKgn 5BV5dGVtRpTgOc5cfd82OZoJCzKVWeyLujgfs89xvqB+RzURjMy8u3njYCgJz6Ri0kxU al/0Gr6KmVJrre7wtmjxUvUZS50NTx31tGxbXVYFgKxU8boaTfiC9aRUfJ8ArvrNXztk qOog== X-Gm-Message-State: AKS2vOxEN0OctQxIwCstj4ubWDPqqRlaM5WliT/lt9rpFIcLfk7WRJrI S1qU8izPk7eeu9toMTwAxckjnK4AeW24 X-Received: by 10.202.117.82 with SMTP id q79mr26747892oic.72.1499217953141; Tue, 04 Jul 2017 18:25:53 -0700 (PDT) Original-Received: by 10.182.2.73 with HTTP; Tue, 4 Jul 2017 18:25:52 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::234 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:113698 Archived-At: 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 Braz= ilian 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' > Co= mpose 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 thi= s scenario? thanks in advance.