unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* utf-8 elisp problem
       [not found]                   ` <424e2e1c0804280931n5df0caecm253774b81038c523@mail.gmail.com>
@ 2008-04-28 17:05                     ` Lennart Borgman (gmail)
  2008-04-28 18:09                       ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Lennart Borgman (gmail) @ 2008-04-28 17:05 UTC (permalink / raw)
  To: mike yao, Seraphees, Emacs Devel

[-- Attachment #1: Type: text/plain, Size: 1324 bytes --]

Thanks mike, that made it clear that this problem is over my head. I am 
not sure if this is a bug or not. I am sending this on Emacs devel where 
I am sure there a people who understand this better than me.

So the problem is this:

- When mike or Shaowei loads the attached file they get the error below.
- When I do it I get no error.

Can someone please explain what is happening? I think mike has some more 
information about utf-8 environment, see below.


----------------
Subject: Re: error on nxhtml version higher than 1.03
mike yao wrote:
> I have ran your code, there is same message:
> Debugger entered--Lisp error: (invalid-read-syntax "] in a list")
>   eval-buffer()  ; Reading at buffer position 103
>   call-interactively(eval-buffer nil nil)
> 
> I also found that ran with emacs -Q, can't read the '«' character in 
> utf8-problem.el file, but in utf-8 enviroment, it can
> 
> On Tue, Apr 29, 2008 at 12:14 AM, Lennart Borgman (gmail) 
> <lennart.borgman@gmail.com <mailto:lennart.borgman@gmail.com>> wrote:
> 
>     Thanks Shaowei, this helped me (though it was not exactly what I meant).
> 
>     Can you try to load the attached file with
> 
>      M-x load-file
> 
>     Before loading it please do
> 
>      M-: (setq debug-on-error t)
> 
>     If you get an error trace back please send it to me.

[-- Attachment #2: utf8-problem.el --]
[-- Type: text/plain, Size: 115 bytes --]


(defvar utf8-problem
  "\\(?:^\\|[[:space:]]\\)\\(?:href\\|src\\)[[:space:]]*=[[:space:]]*\"\\([^<«\"]*\\)\"")

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

* Re: utf-8 elisp problem
  2008-04-28 17:05                     ` utf-8 elisp problem Lennart Borgman (gmail)
@ 2008-04-28 18:09                       ` Stefan Monnier
  2008-04-28 18:53                         ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2008-04-28 18:09 UTC (permalink / raw)
  To: Lennart Borgman (gmail); +Cc: Seraphees, mike yao, Emacs Devel

> Thanks mike, that made it clear that this problem is over my
> head. I am not sure if this is a bug or not.  I am sending this on
> Emacs devel where I am sure there a people who understand this better
> than me.

The file uses non-ascii chars without specifying which encoding is used,
so the result depends on the user's environment.


        Stefan




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

* Re: utf-8 elisp problem
  2008-04-28 18:09                       ` Stefan Monnier
@ 2008-04-28 18:53                         ` Lennart Borgman (gmail)
  0 siblings, 0 replies; 3+ messages in thread
From: Lennart Borgman (gmail) @ 2008-04-28 18:53 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Seraphees, mike yao, Emacs Devel

[-- Attachment #1: Type: text/plain, Size: 556 bytes --]

Stefan Monnier wrote:
>> Thanks mike, that made it clear that this problem is over my
>> head. I am not sure if this is a bug or not.  I am sending this on
>> Emacs devel where I am sure there a people who understand this better
>> than me.
> 
> The file uses non-ascii chars without specifying which encoding is used,
> so the result depends on the user's environment.

Thanks Stefan.

Mike, could you please try the attached file where I believe I have 
specified the coding correctly?

--

Would it be good to specify coding systems in all elisp files?

[-- Attachment #2: utf8-problem.el --]
[-- Type: text/plain, Size: 159 bytes --]


(defvar utf8-problem
  "\\(?:^\\|[[:space:]]\\)\\(?:href\\|src\\)[[:space:]]*=[[:space:]]*\"\\([^<«\"]*\\)\"")

;; Local Variables:
;; coding: utf-8
;; End:

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

end of thread, other threads:[~2008-04-28 18:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <cda1dc92-1fb4-4eb9-8d7b-f3dd1f2ec7e5@24g2000hsh.googlegroups.com>
     [not found] ` <4811a586-7b25-405b-8970-5aeff5ee0774@q1g2000prf.googlegroups.com>
     [not found]   ` <481183C3.70102@gmail.com>
     [not found]     ` <ba2332470804250040v79e2bc41n911c8b3ebb71c860@mail.gmail.com>
     [not found]       ` <4811FE4B.7010802@gmail.com>
     [not found]         ` <424e2e1c0804270151s39158899t4659d4a9a53e24c4@mail.gmail.com>
     [not found]           ` <ba2332470804271829g6df65ce7od302da493894c1b7@mail.gmail.com>
     [not found]             ` <48156EA6.1020806@gmail.com>
     [not found]               ` <ba2332470804272352k27546a87g23d59a70b5ffa25f@mail.gmail.com>
     [not found]                 ` <4815F7E1.1080307@gmail.com>
     [not found]                   ` <424e2e1c0804280931n5df0caecm253774b81038c523@mail.gmail.com>
2008-04-28 17:05                     ` utf-8 elisp problem Lennart Borgman (gmail)
2008-04-28 18:09                       ` Stefan Monnier
2008-04-28 18:53                         ` Lennart Borgman (gmail)

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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