help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: .emacs poser


From: Doug Lewan
Subject: RE: .emacs poser
Date: Tue, 17 Dec 2013 15:24:49 +0000

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      @\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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]