unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* error: Non-hex digit used for Unicode escape
@ 2009-05-09  9:49 Charlie Turner
  2009-05-09 12:28 ` Charlie Turner
       [not found] ` <mailman.6898.1241882736.31690.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: Charlie Turner @ 2009-05-09  9:49 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

Running Windows Vista 64 bit, service pack 1
GNU Emacs 22.2.1 (i386-mingw-nt6.0.6001)

I get the above error message in my *Messages* buffer on startup. Here
is the version I get when I run "runemacs.exe --debug-init":

Debugger entered--Lisp error: (error "Non-hex digit used for Unicode escape")
  eval-buffer(#<buffer  *load*> nil
"c:/Users/Charles/.emacs.d/init.el" nil t)  ; Reading at buffer
position 46
  load-with-code-conversion("c:/Users/Charles/.emacs.d/init.el"
"c:/Users/Charles/.emacs.d/init.el" t t)
  load("c:/Users/Charles/.emacs.d/init" t t)
  #[nil "\bพ

Contents of c:/Users/Charles/.emacs.d/init.el

(server-start)
(setq default-directory "C:\Users\Charles")
(setq inhibit-startup-message t)
(fset 'yes-or-no-p 'y-or-n-p)
(setq make-backup-files nil)

Thank you for your time.

Regards,

-- 
Charlie Turner.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: error: Non-hex digit used for Unicode escape
  2009-05-09  9:49 error: Non-hex digit used for Unicode escape Charlie Turner
@ 2009-05-09 12:28 ` Charlie Turner
       [not found] ` <mailman.6898.1241882736.31690.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 3+ messages in thread
From: Charlie Turner @ 2009-05-09 12:28 UTC (permalink / raw)
  To: help-gnu-emacs

It's the line (setq default-directory "C:\Users\Charles") thats
causing the problem. (cd "C:\Users\Charles") raised the same error
too.

2009/5/9 Charlie Turner <charlie.h.turner@googlemail.com>:
> Hello,
>
> Running Windows Vista 64 bit, service pack 1
> GNU Emacs 22.2.1 (i386-mingw-nt6.0.6001)
>
> I get the above error message in my *Messages* buffer on startup. Here
> is the version I get when I run "runemacs.exe --debug-init":
>
> Debugger entered--Lisp error: (error "Non-hex digit used for Unicode escape")
>  eval-buffer(#<buffer  *load*> nil
> "c:/Users/Charles/.emacs.d/init.el" nil t)  ; Reading at buffer
> position 46
>  load-with-code-conversion("c:/Users/Charles/.emacs.d/init.el"
> "c:/Users/Charles/.emacs.d/init.el" t t)
>  load("c:/Users/Charles/.emacs.d/init" t t)
>  #[nil " พ
>
> Contents of c:/Users/Charles/.emacs.d/init.el
>
> (server-start)
> (setq default-directory "C:\Users\Charles")
> (setq inhibit-startup-message t)
> (fset 'yes-or-no-p 'y-or-n-p)
> (setq make-backup-files nil)
>
> Thank you for your time.
>
> Regards,
>
> --
> Charlie Turner.
>



-- 
Charlie Turner.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: error: Non-hex digit used for Unicode escape
       [not found] ` <mailman.6898.1241882736.31690.help-gnu-emacs@gnu.org>
@ 2009-05-10  7:34   ` Anselm Helbig
  0 siblings, 0 replies; 3+ messages in thread
From: Anselm Helbig @ 2009-05-10  7:34 UTC (permalink / raw)
  To: help-gnu-emacs

Hi!

> It's the line (setq default-directory "C:\Users\Charles") thats
> causing the problem. (cd "C:\Users\Charles") raised the same error
> too.

You have to escape backslashes in strings like this:

  (cd "C:\\Users\\Charles")

See (info "(emacs) Init Syntax") for some more hints. 

Regards, 

Anselm


-- 
Anselm Helbig 
mailto:anselm.helbig+news2009@googlemail.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-05-10  7:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-09  9:49 error: Non-hex digit used for Unicode escape Charlie Turner
2009-05-09 12:28 ` Charlie Turner
     [not found] ` <mailman.6898.1241882736.31690.help-gnu-emacs@gnu.org>
2009-05-10  7:34   ` Anselm Helbig

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).