From: Barry Margolin <barmar@alum.mit.edu>
Subject: Re: Problems with global-set-key
Date: Fri, 22 Apr 2005 09:34:55 -0400 [thread overview]
Message-ID: <barmar-A655DE.09345522042005@comcast.dca.giganews.com> (raw)
In-Reply-To: d4afei$a6u$1@news.net.uni-c.dk
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1648 bytes --]
In article <d4afei$a6u$1@news.net.uni-c.dk>, JS <d44sf@44ada.com>
wrote:
> In my .emacs file I have made this:
>
> (global-set-key "\C-z" 'shell)
>
> And it works fine when I restart emacs.
>
>
>
>
> But when I do this:
>
> (global-set-key "\M-a" 'comment-dwim)
>
> I get this error when I restart:
>
>
>
>
> An error has occurred while loading `/home/johs/.emacs':
>
> Symbol's function definition is void: global-set-key
>
> To ensure normal operation, you should investigate the cause
> of the error in your initialization file and remove it. Start
> Emacs with the `--debug-init' option to view a complete error
> backtrace
> Loading view...done
>
> ------------------------
>
> I have then tried to start emacs like this: emacs --debug-init and then I
> get this:
>
> Debugger entered--Lisp error: (void-function global-set-key )
It looks to me like there's a strange character in your file after
'global-set-key', so it's trying to find a function named
global-set-key<strangechar>. Notice the space before the close-paren --
that's not normal. Normally Emacs Lisp will escape space characters in
symbol names, so I suspect it's an international character that happens
to look like space.
> (global-set-key "á" (quote comment-dwim))
> eval-buffer(#<buffer *load*> nil "~/.emacs" nil t)
> load-with-code-conversion("/home/johs/.emacs" "~/.emacs" t t)
> load("~/.emacs" t t)
> #[nil "
> ----------------------------
>
>
> Why is it not possible to write the second statement?
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
prev parent reply other threads:[~2005-04-22 13:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-22 9:18 Problems with global-set-key JS
2005-04-22 9:33 ` Peter Dyballa
[not found] ` <mailman.2557.1114162497.2895.help-gnu-emacs@gnu.org>
2005-04-22 9:57 ` JS
2005-04-22 10:54 ` Peter Dyballa
[not found] ` <mailman.2582.1114167378.2895.help-gnu-emacs@gnu.org>
2005-04-22 11:07 ` JS
2005-04-22 10:31 ` Tim X
2005-04-22 13:34 ` Barry Margolin [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=barmar-A655DE.09345522042005@comcast.dca.giganews.com \
--to=barmar@alum.mit.edu \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).