From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dale Snell Newsgroups: gmane.emacs.help Subject: Re: .emacs poser Date: Mon, 16 Dec 2013 17:48:11 -0800 Organization: Organization? Me? ROFL!! Message-ID: <20131216174811.208d86e6@zothique> References: Reply-To: ddsnell@frontier.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 1387244919 19977 80.91.229.3 (17 Dec 2013 01:48:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Dec 2013 01:48:39 +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 Dec 17 02:48:45 2013 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 1Vsjm9-0002yu-AR for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Dec 2013 02:48:45 +0100 Original-Received: from localhost ([::1]:59282 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vsjm8-0005iK-Jd for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Dec 2013 20:48:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vsjlo-0005bb-Lj for help-gnu-emacs@gnu.org; Mon, 16 Dec 2013 20:48:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vsjlh-0002NS-Dg for help-gnu-emacs@gnu.org; Mon, 16 Dec 2013 20:48:24 -0500 Original-Received: from filter01.roch.ny.frontiernet.net ([66.133.183.226]:42961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vsjlh-0002N5-9n for help-gnu-emacs@gnu.org; Mon, 16 Dec 2013 20:48:17 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by filter01.roch.ny.frontiernet.net (Postfix) with ESMTP id 1F7A71041EF for ; Tue, 17 Dec 2013 01:48:16 +0000 (UTC) Original-Received: from relay03.roch.ny.frontiernet.net ([66.133.182.166]) by localhost (filter01.roch.ny.frontiernet.net [66.133.183.226]) (amavisd-new, port 10024) with LMTP id j1WYdDIsRE+C for ; Tue, 17 Dec 2013 01:48:13 +0000 (UTC) X-Originating-IP: [50.39.124.220] X-Previous-IP: 50.39.124.220 Original-Received: from zothique (50-39-124-220.bvtn.or.frontiernet.net [50.39.124.220]) by relay03.roch.ny.frontiernet.net (Postfix) with ESMTPA id E69FF23B32 for ; Tue, 17 Dec 2013 01:48:10 +0000 (UTC) In-Reply-To: X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.22; x86_64-redhat-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 66.133.183.226 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:95030 Archived-At: On Mon, 16 Dec 2013 18:01:02 -0600 "B. T. Raven" wrote: > In my emacs I have these global-set-key forms: >=20 > .... >=20 > (global-set-key "\C-cg" (lambda () (interactive) (insert ?=C2=B0 ))) > (global-set-key "\C-ch" (lambda () (interactive) (insert ?=C2=B7))) > (global-set-key "\C-c-" (lambda () (interactive) (insert ?=E2=80=94 ))) > (global-set-key "\C-cI" (lambda () (interactive) (insert ?=E2=80=BD > ))) ;; ;; ;; capital eye interrobang > (global-set-key "\C-cL" (lambda () (interactive) (insert ?=C2=A3 ))) > (global-set-key "\C-cm" (lambda () (interactive) (insert ?=CB=89))) > ;;(global-set-key "\C-cM" (lambda () (interactive) (insert ?=CC=84=E2= =9C=A0))) > (global-set-key "\C-cp" (lambda () (interactive) (insert ?=C2=B6 ))) > (global-set-key "\C-cr" (lambda () (interactive) (insert ?=C2=AE ))) > (global-set-key "\C-cs" (lambda () (interactive) (insert ?=C2=A7 ))) > (global-set-key "\C-ci" (lambda() (interactive) (insert > (format-time-string "%a %Y ..... >=20 > These and many others work fine (in w32 native v. 23.3) but any > attempt to evaluate "\C-cM" (capital M) truncates the rest of > the .emacs and wakes the Debugger: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D%<---------- SNIP! ---------->%=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=20 I don't know why this isn't working for you, I'm an E-Lisp tyro. Still, it looks to me like you're re-inventing the wheel. Rather than pulling your hair out over this, try using iso-transl.elc (comes with Emacs) or perhaps typopunct.el (not part of Emacs proper). Check EmacsWiki for information on both of them. Both can be extended to add such characters as Registered =C2=AE and the Maltese Cross =E2=9C=A0. ("C-= x 8 * R" and "C-x 8 * M", respectively, using iso-transl. I added both those characters myself. It's very easy.) Hope this helps. --Dale -- "Text processing has made it possible to right-justify any idea, even one which cannot be justified on any other grounds." -- J. Finnegan, USC.