From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: .emacs poser Date: Tue, 17 Dec 2013 00:41:47 -0700 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1387266008 25080 80.91.229.3 (17 Dec 2013 07:40:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Dec 2013 07:40:08 +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 08:40:14 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 1VspGD-0002HW-Uj for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Dec 2013 08:40:10 +0100 Original-Received: from localhost ([::1]:60032 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VspGD-00074K-Ej for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Dec 2013 02:40:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VspFw-0006vB-7h for help-gnu-emacs@gnu.org; Tue, 17 Dec 2013 02:39:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VspFo-0007Sv-Uz for help-gnu-emacs@gnu.org; Tue, 17 Dec 2013 02:39:52 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:38740) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VspFo-0007Sq-OF for help-gnu-emacs@gnu.org; Tue, 17 Dec 2013 02:39:44 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VspFn-0001u5-Lk for help-gnu-emacs@gnu.org; Tue, 17 Dec 2013 08:39:43 +0100 Original-Received: from 70-59-41-30.hlrn.qwest.net ([70.59.41.30]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 Dec 2013 08:39:43 +0100 Original-Received: from kevin.d.rodgers by 70-59-41-30.hlrn.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 Dec 2013 08:39:43 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 58 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 70-59-41-30.hlrn.qwest.net User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:95042 Archived-At: On 12/16/13 5:01 PM, B. T. Raven wrote: > 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(#) > 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. There is some other character between "?" and "✠" on that line. BTW, instead of including the character literally, you could use a representation that doesn't rely the file encoding (and leave the literal character in a comment): (global-set-key "\C-cM" (lambda () (interactive) (insert ?\x2720))) ; U+2720 = ✠ or put the literal character in a doc string that you can access with `C-h k' (M-x describe-key) or `C-h d' (M-x apropos-documentation): (global-set-key "\C-cM" (lambda () "Insert U+2720 = \"✠\"." (interactive) (insert ?\x2720))) -- Kevin Rodgers Denver, Colorado, USA