all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Doug Lewan <dougl@shubertticketing.com>
To: "B. T. Raven" <btraven@nihilo.net>,
	"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: .emacs poser
Date: Tue, 17 Dec 2013 15:24:49 +0000	[thread overview]
Message-ID: <155DEC68569B714B86C2C7075F5EDA9852FDC6CD@DAKIYA1.pegasus.local> (raw)
In-Reply-To: <l8o4810c5m@news1.newsguy.com>

I'm surprised that there's only one mention of input methods and so much about composing characters, which is, as you point out, a little clumsy.

It's easy to extend an input method with new rules. I frequently use the latin-1-prefix mode for a handful of special characters that I use. The lisp to add my rules looks like this:

(setq default-input-method "latin-1-prefix")
(let ((quail-setup-buf (get-buffer-create "*Quail setup*")))
  (save-excursion (set-buffer quail-setup-buf)
		  (toggle-input-method)
		  ;; MAINTENANCE Look for SYMBOLS
		  (quail-defrule ":A" ?∀)
		  (quail-defrule ":E" ?∃)
		  (quail-defrule ":e" ?∈)
                                     ...))

I also notice this comment near that code:
;; This seems rather a bit of a hack.
That was my sense long ago; I don't know if that's really a fair sentiment anymore.

I hope this helps.

,Douglas
Douglas Lewan
Shubert Ticketing
(201) 489-8600 ext 224

Statistics: The science of figuring out exactly how wrong you probably are.


-----Original Message-----
From: help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org [mailto:help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org] On Behalf Of B. T. Raven
Sent: Monday, 2013 December 16 19:01
To: help-gnu-emacs@gnu.org
Subject: .emacs poser

In my emacs I have these global-set-key forms:

....

(global-set-key "\C-cg" (lambda () (interactive) (insert  ?° )))
(global-set-key "\C-ch" (lambda () (interactive)  (insert  ?·)))
(global-set-key "\C-c-" (lambda () (interactive)  (insert  ?— )))
(global-set-key "\C-cI" (lambda () (interactive)  (insert  ?‽ ))) ;; ;;
;; capital eye interrobang
(global-set-key "\C-cL" (lambda () (interactive)  (insert  ?£ )))
(global-set-key "\C-cm" (lambda () (interactive)  (insert  ?ˉ)))
;;(global-set-key "\C-cM" (lambda () (interactive)  (insert  ?̄✠)))
(global-set-key "\C-cp" (lambda () (interactive) (insert  ?¶ )))
(global-set-key "\C-cr" (lambda () (interactive)  (insert  ?® )))
(global-set-key "\C-cs" (lambda () (interactive) (insert  ?§ )))
(global-set-key "\C-ci" (lambda() (interactive) (insert
(format-time-string "%a %Y .....

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:

Debugger entered--Lisp error: (invalid-read-syntax "?")
  read(#<buffer .emacs>)
  preceding-sexp()
  eval-last-sexp-1(nil)
  eval-last-sexp(nil)
  call-interactively(eval-last-sexp nil nil)
  recursive-edit()
  byte-code("\306\x10	@\307=\203! ......

the glyph shown is the Maltese cross but any character after the ? fails
to work in the same way. Other capitals are distinguished, just not
upper case M.

Does any of you have any idea whats going on here. With just that line
commented out the .emacs loads with no problem.

Thanks,

Ed

  parent reply	other threads:[~2013-12-17 15:24 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-17  0:01 .emacs poser B. T. Raven
2013-12-17  0:36 ` Emanuel Berg
2013-12-17  1:48 ` Dale Snell
2013-12-17  2:46   ` Drew Adams
     [not found] ` <mailman.9443.1387244913.10748.help-gnu-emacs@gnu.org>
2013-12-17  2:03   ` Emanuel Berg
2013-12-17  2:58     ` Dale Snell
2013-12-17  5:53       ` Jambunathan K
     [not found]     ` <mailman.9453.1387249112.10748.help-gnu-emacs@gnu.org>
2013-12-17  3:16       ` Emanuel Berg
2013-12-17  5:32         ` Dale Snell
2013-12-17  6:27         ` Tilman Ahr
2013-12-17 16:42           ` Emanuel Berg
2013-12-18  2:25             ` Tilman Ahr
2013-12-18 21:17               ` Emanuel Berg
2013-12-18  3:01             ` Yuri Khan
     [not found]             ` <mailman.9542.1387335681.10748.help-gnu-emacs@gnu.org>
2013-12-18 21:23               ` Emanuel Berg
2013-12-19  1:13                 ` Yuri Khan
     [not found]                 ` <mailman.9626.1387415627.10748.help-gnu-emacs@gnu.org>
2013-12-20  1:40                   ` Emanuel Berg
     [not found]         ` <mailman.9460.1387258387.10748.help-gnu-emacs@gnu.org>
2013-12-17 16:17           ` Emanuel Berg
2013-12-17 17:36             ` Dale Snell
     [not found]             ` <mailman.9507.1387301817.10748.help-gnu-emacs@gnu.org>
2013-12-17 17:41               ` Emanuel Berg
2013-12-17  3:06 ` Yuri Khan
2013-12-17 15:17   ` Drew Adams
2013-12-18  1:38     ` Yuri Khan
2013-12-17  7:41 ` Kevin Rodgers
2013-12-17 15:24 ` Doug Lewan [this message]
     [not found] ` <mailman.9465.1387266001.10748.help-gnu-emacs@gnu.org>
2013-12-17 15:40   ` Sebastien Vauban
2013-12-17 16:29     ` Drew Adams
2013-12-17 16:49     ` Emanuel Berg
2013-12-17 18:20     ` Eli Zaretskii
     [not found] ` <mailman.9492.1387293902.10748.help-gnu-emacs@gnu.org>
2013-12-17 17:14   ` Emanuel Berg
2013-12-17 17:16   ` Emanuel Berg
2013-12-17 19:04     ` Doug Lewan
     [not found]     ` <mailman.9512.1387307070.10748.help-gnu-emacs@gnu.org>
2013-12-17 22:42       ` Emanuel Berg
2013-12-17 23:35         ` Doug Lewan
2013-12-17 21:15   ` Joost Kremers
2013-12-17 22:44     ` Emanuel Berg
2013-12-17 23:25       ` Emanuel Berg
2013-12-18  3:22     ` Jambunathan K
     [not found]     ` <mailman.9544.1387337046.10748.help-gnu-emacs@gnu.org>
2013-12-18 21:42       ` Emanuel Berg
     [not found]         ` <mailman.9628.1387418319.10748.help-gnu-emacs@gnu.org>
2013-12-19  2:52           ` Emanuel Berg
2013-12-19  3:00             ` Emanuel Berg
2013-12-20  5:31             ` Jambunathan K
2013-12-20  5:38               ` Jambunathan K
     [not found]             ` <mailman.9724.1387517532.10748.help-gnu-emacs@gnu.org>
2013-12-20 17:52               ` Emanuel Berg
2013-12-27  6:00                 ` B. T. Raven
2013-12-27 14:12                   ` Yuri Khan
2013-12-27 16:11                     ` Drew Adams
     [not found]                     ` <mailman.10526.1388160732.10748.help-gnu-emacs@gnu.org>
2013-12-29 22:17                       ` B. T. Raven
2013-12-29 23:48                         ` Drew Adams
2013-12-20  1:52         ` Jambunathan K
2013-12-19 22:24       ` Joost Kremers
2013-12-19 23:16         ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=155DEC68569B714B86C2C7075F5EDA9852FDC6CD@DAKIYA1.pegasus.local \
    --to=dougl@shubertticketing.com \
    --cc=btraven@nihilo.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.