all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* error on nxhtml version higher than 1.03
@ 2008-04-24  2:58 Seraphees
  2008-04-24 18:14 ` Lennart Borgman (gmail)
       [not found] ` <mailman.10783.1209060891.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 7+ messages in thread
From: Seraphees @ 2008-04-24  2:58 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I found that there are always error on nxhtml version higher than
1.03, including the latest nxhtml-1.27-080423-00_23_13.

I also have tried many emacs version, including the latest emacs-from-
cvs-080419 and Emacs-23-CvsU080419-EmacsW32-1.57, but the error still
exists

my config only contains one sentence:

(load "~/my-lisp/site-lisp/nxml/autostart.el")

on version nxhtml-1.27-080423-00_23_13, the error is

Assertion failed: (html-site-dir-contains site-root path-in-site), c:/
temp, c:/temp/in/hej.html

on most other version, the error is related to mumamo, for example, in
nxhtml-1.27-080326-14_13_01, error message is :

mumamo-turn-on-actions: Invalid read syntax: "] in a list"
Toggling hs-minor-mode off; better pass an explicit argument.

the complete error message is :
mumamo-turn-on-actions: Invalid read syntax: "] in a list"
** In buffer test.php
  backtrace()
  (let ((standard-output standard-output)) (backtrace))
  (let ((standard-output ...)) (let (...) (backtrace)) (with-current-
buffer standard-output (prog1 ... ...)))
  (with-output-to-string (backtrace))
  (let ((format-string2 ...) (bt ...)) (mumamo-message-with-face
(concat ... "
" ... bt) (quote highlight)) (apply (quote message) format-string2
lwarn-type args) (run-with-idle-timer 1 nil (quote mumamo-show-report-
message)) (when mumamo-display-error-stop (apply ... format-string2
lwarn-type args)))
  mumamo-display-error(mumamo-turn-on-actions "%s" "Invalid read
syntax: \"] in a list\"")
  (condition-case err (progn (m
umamo-msgfntfy "mumamo-turn-on-actions") (unless mumamo-current-chunk-
family ...) (if ... ... ... ... ... ... ... ... ... ... ... ...))
(quit) (error (mumamo-display-error ... "%s" ...)))
  mumamo-turn-on-actions()
  nxhtml-mumamo()
  set-auto-mode-0(nxhtml-mumamo nil)
  set-auto-mode()
  normal-mode(t)
  after-find-file(nil t)
  find-file-noselect-1(#<buffer test.php> "c:/wamp/www/php/test.php"
nil nil "c:/wamp/www/php/test.php" ((4608 0 . 37279) 160482204))
  find-file-noselect("c:/wamp/www/php/test.php")
  desktop-restore-file-buffer("c:/wamp/www/php/test.php" "test.php"
nil)
  #[nil "\b	\236A\206\b

only in nxhtml version 1.03, there are no errors, is there anyone can
help me?


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

* Re: error on nxhtml version higher than 1.03
  2008-04-24  2:58 error on nxhtml version higher than 1.03 Seraphees
@ 2008-04-24 18:14 ` Lennart Borgman (gmail)
       [not found] ` <mailman.10783.1209060891.18990.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 7+ messages in thread
From: Lennart Borgman (gmail) @ 2008-04-24 18:14 UTC (permalink / raw)
  To: Seraphees; +Cc: help-gnu-emacs

Hi Seraphees,

Thanks for the bug report.

> my config only contains one sentence:
> 
> (load "~/my-lisp/site-lisp/nxml/autostart.el")

That is how it should look.

> on version nxhtml-1.27-080423-00_23_13, the error is
> 
> Assertion failed: (html-site-dir-contains site-root path-in-site), c:/
> temp, c:/temp/in/hej.html

Can you try commenting out that assertion in html-site.el?

What OS are you using?





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

* Re: error on nxhtml version higher than 1.03
       [not found] ` <mailman.10783.1209060891.18990.help-gnu-emacs@gnu.org>
@ 2008-04-25  1:57   ` Seraphees
  2008-04-25  7:09     ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 7+ messages in thread
From: Seraphees @ 2008-04-25  1:57 UTC (permalink / raw)
  To: help-gnu-emacs

Thank you for your reply, my OS is XP Home edition sp2,

I have try to commenting out that assertion, and I can load nxhtml
without error, but when I open a php or html file, I still got the
mumamo error, like the following:

mumamo-turn-on-actions: Invalid read syntax: "] in a list"
** In buffer BuddyController.php
  backtrace()
  (let ((standard-output standard-output)) (backtrace))
  (let ((standard-output ...)) (let (...) (backtrace)) (with-current-
buffer standard-output (prog1 ... ...)))
  (with-output-to-string (backtrace))
  (let ((format-string2 ...) (bt ...)) (mumamo-message-with-face
(concat ... "
" ... bt) (quote highlight)) (apply (quote message) format-string2
lwarn-type args) (run-with-idle-timer 1 nil (quote mumamo-show-report-
message)) (when mumamo-display-error-stop (setq font-lock-mode nil)
(when ... ...) (when ... ...) (apply ... format-string2 lwarn-type
args)))
  mumamo-display-error(mumamo-turn-on-actions "%s" "Invalid read
syntax: \"] in a list\"")
  (condition-case err (progn (mumamo-msgfntfy "mumamo-turn-on-
actions") (unless mumamo-current-chunk-family ...)
(if ... ... ... ... ... ... ... ... ... ... ... ...)) (quit) (error
(mumamo-display-error ... "%s" ...)))
  mumamo-turn-on-actions()
  nxhtml-mumamo()
  set-auto-mode-0(nxhtml-mumamo nil)
  set-auto-mode()
  normal-mode(t)
  after-find-file(nil t)
  find-file-noselect-1(#<buffer BuddyController.php> "/
ftp:apache@10.11.24.40:/data/apache/www/vhost/im/app/controllers/
BuddyController.php" nil nil "/ftp:apache@10.11.24.40:/data/apache/www/
vhost/im/app/controllers/BuddyController.php" (3 -1))
  find-file-noselect("/ftp:apache@10.11.24.40:/data/apache/www/vhost/
im/app/controllers/BuddyController.php" nil nil nil)
  find-file("/ftp:apache@10.11.24.40:/data/apache/www/vhost/im/app/
controllers/BuddyController.php")
  (if (or default-dirname (re-search-forward "^  d" eol t)) (let (...)
(find-alternate-file name) (if ... ...)) (find-file name))
  (let ((eol ...)) (beginning-of-line) (if (or default-dirname ...)
(let ... ... ...) (find-file name)))
  (progn (end-of-line) (let (...) (beginning-of-line)
(if ... ... ...)))
  (unwind-protect (progn (end-of-line) (let ... ... ...)) (set-match-
data save-match-data-internal (quote evaporate)))
  (let ((save-match-data-internal ...)) (unwind-protect
(progn ... ...) (set-match-data save-match-data-internal ...)))
  (save-match-data (end-of-line) (let (...) (beginning-of-line)
(if ... ... ...)))
  (save-excursion (save-match-data (end-of-line) (let ... ... ...)))
  (let ((name ...)) (save-excursion (save-match-data ... ...)))
  joc-dired-single-buffer()
  call-interactively(joc-dired-single-buffer nil nil)

It seems like the error is on nxhtml.el, this file has not loaded
correctly, when I use load-file to load nxhtml.el manually, I got the
error message:

load-with-code-conversion: Invalid read syntax: "] in a list"

and I couldn't use functions like nxhtml-version, could you please
solve the problem, big thanks!




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

* Re: error on nxhtml version higher than 1.03
  2008-04-25  1:57   ` Seraphees
@ 2008-04-25  7:09     ` Lennart Borgman (gmail)
       [not found]       ` <ba2332470804250040v79e2bc41n911c8b3ebb71c860@mail.gmail.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Lennart Borgman (gmail) @ 2008-04-25  7:09 UTC (permalink / raw)
  To: Seraphees; +Cc: help-gnu-emacs

Seraphees wrote:
> Thank you for your reply, my OS is XP Home edition sp2,
> 
> I have try to commenting out that assertion, and I can load nxhtml
> without error, but when I open a php or html file, I still got the
> mumamo error, like the following:
> 
> mumamo-turn-on-actions: Invalid read syntax: "] in a list"
> ** In buffer BuddyController.php
>   backtrace()
>   (let ((standard-output standard-output)) (backtrace))


Please download the latest beta from

   http://ourcomments.org/Emacs/DL/elisp/nxhtml/beta/

and try again. If the problem is still there then try starting with

   emacs -Q

and then just load nXhtml as you do now in your .emacs




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

* 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; 7+ 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] 7+ 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; 7+ 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] 7+ 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; 7+ 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] 7+ messages in thread

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

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-24  2:58 error on nxhtml version higher than 1.03 Seraphees
2008-04-24 18:14 ` Lennart Borgman (gmail)
     [not found] ` <mailman.10783.1209060891.18990.help-gnu-emacs@gnu.org>
2008-04-25  1:57   ` Seraphees
2008-04-25  7:09     ` Lennart Borgman (gmail)
     [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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.