From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Newsgroups: gmane.emacs.help Subject: Re: global-set-key, error: Invalid modifier in string Date: Fri, 17 Aug 2007 15:20:53 -0000 Organization: http://groups.google.com Message-ID: <1187364053.751956.181150@22g2000hsm.googlegroups.com> References: <1187327326.366474.138940@o80g2000hse.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1187365307 16360 80.91.229.12 (17 Aug 2007 15:41:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 17 Aug 2007 15:41:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 17 17:41:44 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IM3xF-0006ee-1K for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Aug 2007 17:41:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IM3xE-0003R0-KB for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Aug 2007 11:41:40 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!postnews.google.com!22g2000hsm.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: 72.1.159.253 Original-X-Trace: posting.google.com 1187364054 26837 127.0.0.1 (17 Aug 2007 15:20:54 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 17 Aug 2007 15:20:54 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20061201 Firefox/2.0.0.6 (Ubuntu-feisty),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: 22g2000hsm.googlegroups.com; posting-host=72.1.159.253; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Original-Xref: shelby.stanford.edu gnu.emacs.help:151065 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:46639 Archived-At: On Aug 17, 6:13 am, bojohan+n...@dd.chalmers.se (Johan Bockg=E5rd) wrote: > John writes: > > Seems like some of the Alt keys are working, but the ones with "\C-" > > in them are causing the error. > > Strings can't contain non-ASCII control characters. Use (kbd "C-.") or > [?\C-.] etc instead. > I'm not familiar with the differences between ascii and non-ascii ctrl characters, but using kbd fixed the problem. :) (Note: I swapped around the C-<> and M-<> keys from what's shown above.) I'm giving these new key combos a try for a little while. Using M-v for page up has always seemed out of place wrt the rest of the Emacs key bindings. And M-n / M-p seems to make perfect sense for backward-/forward-paragraph. Thanks Johan! ---John