unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [cezar@mixandgo.ro: skeleton bug]
@ 2007-08-17 20:17 Richard Stallman
  0 siblings, 0 replies; 11+ messages in thread
From: Richard Stallman @ 2007-08-17 20:17 UTC (permalink / raw)
  To: emacs-devel

Would someone please DTRT, then ack?

------- Start of forwarded message -------
X-Spam-Status: No, score=1.8 required=5.0 tests=NO_REAL_NAME,
	RCVD_IN_SORBS_WEB,SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY 
	autolearn=no version=3.1.0
To: bug-gnu-emacs@gnu.org
From: cezar@mixandgo.ro
Date: Fri, 17 Aug 2007 14:36:29 +0300
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: skeleton bug


Hello,

  I have created a small skeleton which should insert a html list in this form :

<ul>
  <li>
  </li>
</ul>

  The skeleton looks like this : 

(define-skeleton test-skeleton
  "This is a small doc for the skeleton."
  ""                                    ;no prompt
  > "<ul>"
  \n > "<li>"
  \n > _
  \n > -1 "</li>"
  \n > "</ul>"
  \n)

  but it does not work ! The error I get follows:

Debugger entered--Lisp error: (error "Lisp nesting exceeds `max-lisp-eval-depth'")
  skeleton-internal-1(-1 t nil)
  skeleton-internal-1(-1 t nil)
  [.. a lot more of these .. ]
  skeleton-internal-1(-1 t nil)
  skeleton-internal-1(-1 t nil)
  skeleton-internal-1(-1 nil nil)
  byte-code("=c2\b@=c3	#=87" [skeleton recursive skeleton-internal-1 nil] 4)
  skeleton-internal-list(("" > "<ul>" n > "<li>" n > _ n > -1 "</li>" n > "</ul>" n) nil)
  (let nil (skeleton-internal-list skeleton str))
  eval((let nil (skeleton-internal-list skeleton str)))
  skeleton-insert(("" > "<ul>" n > "<li>" n > _ n > -1 "</li>" n > "</ul>" n) nil nil)
  skeleton-proxy-new(("" > "<ul>" n > "<li>" n > _ n > -1 "</li>" n > "</ul>" n) nil nil)
  test-skeleton(nil nil)
  call-interactively(test-skeleton)
  execute-extended-command(nil)
  call-interactively(execute-extended-command)

In GNU Emacs 23.0.0.1 (i686-pc-linux-gnu, GTK+ Version 2.10.12)
 of 2007-06-12 on myhost
Windowing system distributor `The X.Org Foundation', version 11.0.70200000
configured using `configure  '--enable-font-backend' '--with-xft' '--with-freetype' '--with-gtk' '--with-prefix=/opt''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: C
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.utf8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-compression-mode: t
  line-number-mode: t




_______________________________________________
bug-gnu-emacs mailing list
bug-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs
------- End of forwarded message -------

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

* [cezar@mixandgo.ro: skeleton bug]
@ 2007-08-25  4:07 Richard Stallman
  2007-08-25 16:46 ` Chong Yidong
  2007-08-25 19:52 ` Glenn Morris
  0 siblings, 2 replies; 11+ messages in thread
From: Richard Stallman @ 2007-08-25  4:07 UTC (permalink / raw)
  To: emacs-devel

[I sent this message a week ago but did not get a response.]

Would someone please DTRT, then ack?

------- Start of forwarded message -------
X-Spam-Status: No, score=1.8 required=5.0 tests=NO_REAL_NAME,
	RCVD_IN_SORBS_WEB,SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY 
	autolearn=no version=3.1.0
To: bug-gnu-emacs@gnu.org
From: cezar@mixandgo.ro
Date: Fri, 17 Aug 2007 14:36:29 +0300
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: skeleton bug


Hello,

  I have created a small skeleton which should insert a html list in this form :

<ul>
  <li>
  </li>
</ul>

  The skeleton looks like this : 

(define-skeleton test-skeleton
  "This is a small doc for the skeleton."
  ""                                    ;no prompt
  > "<ul>"
  \n > "<li>"
  \n > _
  \n > -1 "</li>"
  \n > "</ul>"
  \n)

  but it does not work ! The error I get follows:

Debugger entered--Lisp error: (error "Lisp nesting exceeds `max-lisp-eval-depth'")
  skeleton-internal-1(-1 t nil)
  skeleton-internal-1(-1 t nil)
  [.. a lot more of these .. ]
  skeleton-internal-1(-1 t nil)
  skeleton-internal-1(-1 t nil)
  skeleton-internal-1(-1 nil nil)
  byte-code("=c2\b@=c3	#=87" [skeleton recursive skeleton-internal-1 nil] 4)
  skeleton-internal-list(("" > "<ul>" n > "<li>" n > _ n > -1 "</li>" n > "</ul>" n) nil)
  (let nil (skeleton-internal-list skeleton str))
  eval((let nil (skeleton-internal-list skeleton str)))
  skeleton-insert(("" > "<ul>" n > "<li>" n > _ n > -1 "</li>" n > "</ul>" n) nil nil)
  skeleton-proxy-new(("" > "<ul>" n > "<li>" n > _ n > -1 "</li>" n > "</ul>" n) nil nil)
  test-skeleton(nil nil)
  call-interactively(test-skeleton)
  execute-extended-command(nil)
  call-interactively(execute-extended-command)

In GNU Emacs 23.0.0.1 (i686-pc-linux-gnu, GTK+ Version 2.10.12)
 of 2007-06-12 on myhost
Windowing system distributor `The X.Org Foundation', version 11.0.70200000
configured using `configure  '--enable-font-backend' '--with-xft' '--with-freetype' '--with-gtk' '--with-prefix=/opt''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: C
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.utf8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-compression-mode: t
  line-number-mode: t




_______________________________________________
bug-gnu-emacs mailing list
bug-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs
------- End of forwarded message -------

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

* Re: [cezar@mixandgo.ro: skeleton bug]
  2007-08-25  4:07 Richard Stallman
@ 2007-08-25 16:46 ` Chong Yidong
  2007-08-26 14:56   ` Richard Stallman
  2007-08-25 19:52 ` Glenn Morris
  1 sibling, 1 reply; 11+ messages in thread
From: Chong Yidong @ 2007-08-25 16:46 UTC (permalink / raw)
  To: rms; +Cc: cezar, emacs-devel

Richard Stallman <rms@gnu.org> writes:

>   I have created a small skeleton which should insert a html list in
>   this form ... The skeleton looks like this :
>
> (define-skeleton test-skeleton
>   "This is a small doc for the skeleton."
>   ""                                    ;no prompt
>   > "<ul>"
>   \n > "<li>"
>   \n > _
>   \n > -1 "</li>"
>   \n > "</ul>"
>   \n)
>
>   but it does not work ! The error I get follows:
>
> Debugger entered--Lisp error: (error "Lisp nesting exceeds `max-lisp-eval-depth'")
>   skeleton-internal-1(-1 t nil)
>   ....
>   call-interactively(test-skeleton)
>   execute-extended-command(nil)
>   call-interactively(execute-extended-command)
>
> In GNU Emacs 23.0.0.1 (i686-pc-linux-gnu, GTK+ Version 2.10.12)
>  of 2007-06-12 on myhost


I can't reproduce this on the Emacs 22 branch or trunk --- maybe it is
specific to the unicode-2 branch.

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

* Re: [cezar@mixandgo.ro: skeleton bug]
  2007-08-25  4:07 Richard Stallman
  2007-08-25 16:46 ` Chong Yidong
@ 2007-08-25 19:52 ` Glenn Morris
  1 sibling, 0 replies; 11+ messages in thread
From: Glenn Morris @ 2007-08-25 19:52 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

Richard Stallman wrote:

> [I sent this message a week ago but did not get a response.]
>
> Would someone please DTRT, then ack?

I can't reproduce this in either Emacs 22 or cvs trunk. Note that this
report seems to be about unicode-2 branch (so was sent to the wrong
address).

> From: cezar@mixandgo.ro
> Subject: skeleton bug
> To: bug-gnu-emacs@gnu.org
> Date: Fri, 17 Aug 2007 14:36:29 +0300
[...]
> In GNU Emacs 23.0.0.1 (i686-pc-linux-gnu, GTK+ Version 2.10.12)

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

* Re: [cezar@mixandgo.ro: skeleton bug]
  2007-08-25 16:46 ` Chong Yidong
@ 2007-08-26 14:56   ` Richard Stallman
  0 siblings, 0 replies; 11+ messages in thread
From: Richard Stallman @ 2007-08-26 14:56 UTC (permalink / raw)
  To: Chong Yidong; +Cc: cezar, emacs-devel

    I can't reproduce this on the Emacs 22 branch or trunk --- maybe it is
    specific to the unicode-2 branch.

Thanks.  I asked Handa to work on it.

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

* Re: [cezar@mixandgo.ro: skeleton bug]
       [not found] <E1IRriB-0006Rk-ES@fencepost.gnu.org>
@ 2007-09-03  2:31 ` Kenichi Handa
  2007-09-03 18:25   ` Richard Stallman
  0 siblings, 1 reply; 11+ messages in thread
From: Kenichi Handa @ 2007-09-03  2:31 UTC (permalink / raw)
  To: rms; +Cc: cezar, emacs-devel

In article <E1IRriB-0006Rk-ES@fencepost.gnu.org>, Richard Stallman <rms@gnu.org> writes:

> ------- Start of forwarded message -------
> To: bug-gnu-emacs@gnu.org
> From: cezar@mixandgo.ro
> Date: Fri, 17 Aug 2007 14:36:29 +0300
> Subject: skeleton bug

[...]
>   The skeleton looks like this : 

> (define-skeleton test-skeleton
>   "This is a small doc for the skeleton."
>   ""                                    ;no prompt
> "<ul>"
>   \n > "<li>"
>   \n > _
>   \n > -1 "</li>"
>   \n > "</ul>"
>   \n)

>   but it does not work ! The error I get follows:

> Debugger entered--Lisp error: (error "Lisp nesting exceeds `max-lisp-eval-depth'")

I found that this is because of the following incompatible
change in emacs-unicode-2.

Emacs-22: (char-or-string-p -1) => t
Emacs-23: (char-or-string-p -1) => nil

According to the function name, I think it should return nil
on -1.

Which do you think is better?

(1) Revert the change of char-or-string-p.

(2) Keep char-or-string-p as is in emacs-unicode-2,
    make a new function integer-or-string-p, and check all
    occurrences of char-or-string-p in *.el files.

FYI, char-or-string-p is used only in 8 places.

---
Kenichi Handa
handa@m17n.org

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

* Re: [cezar@mixandgo.ro: skeleton bug]
  2007-09-03  2:31 ` [cezar@mixandgo.ro: skeleton bug] Kenichi Handa
@ 2007-09-03 18:25   ` Richard Stallman
  2007-09-03 21:22     ` Stefan Monnier
  0 siblings, 1 reply; 11+ messages in thread
From: Richard Stallman @ 2007-09-03 18:25 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: cezar, emacs-devel

    I found that this is because of the following incompatible
    change in emacs-unicode-2.

    Emacs-22: (char-or-string-p -1) => t
    Emacs-23: (char-or-string-p -1) => nil

    According to the function name, I think it should return nil
    on -1.

    Which do you think is better?

    (1) Revert the change of char-or-string-p.

    (2) Keep char-or-string-p as is in emacs-unicode-2,
	make a new function integer-or-string-p, and check all
	occurrences of char-or-string-p in *.el files.

I think we should keep the changed behavior of char-or-string-p,
which fits with its name, and check all 8 callers.

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

* Re: [cezar@mixandgo.ro: skeleton bug]
  2007-09-03 18:25   ` Richard Stallman
@ 2007-09-03 21:22     ` Stefan Monnier
  2007-09-07  2:33       ` Kenichi Handa
  0 siblings, 1 reply; 11+ messages in thread
From: Stefan Monnier @ 2007-09-03 21:22 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel, cezar, Kenichi Handa

>     I found that this is because of the following incompatible
>     change in emacs-unicode-2.

>     Emacs-22: (char-or-string-p -1) => t
>     Emacs-23: (char-or-string-p -1) => nil

>     According to the function name, I think it should return nil
>     on -1.

>     Which do you think is better?

>     (1) Revert the change of char-or-string-p.

>     (2) Keep char-or-string-p as is in emacs-unicode-2,
> 	make a new function integer-or-string-p, and check all
> 	occurrences of char-or-string-p in *.el files.

> I think we should keep the changed behavior of char-or-string-p,
> which fits with its name, and check all 8 callers.

Agreed,


        Stefan

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

* Re: [cezar@mixandgo.ro: skeleton bug]
  2007-09-03 21:22     ` Stefan Monnier
@ 2007-09-07  2:33       ` Kenichi Handa
  2007-09-07  4:04         ` Stefan Monnier
  2007-09-07 19:53         ` Richard Stallman
  0 siblings, 2 replies; 11+ messages in thread
From: Kenichi Handa @ 2007-09-07  2:33 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: cezar, rms, emacs-devel

In article <jwvbqcj78bg.fsf-monnier+emacs@gnu.org>, Stefan Monnier <monnier@iro.umontreal.ca> writes:

> >     I found that this is because of the following incompatible
> >     change in emacs-unicode-2.

> >     Emacs-22: (char-or-string-p -1) => t
> >     Emacs-23: (char-or-string-p -1) => nil

> >     According to the function name, I think it should return nil
> >     on -1.

> >     Which do you think is better?

> >     (1) Revert the change of char-or-string-p.

> >     (2) Keep char-or-string-p as is in emacs-unicode-2,
> > 	make a new function integer-or-string-p, and check all
> > 	occurrences of char-or-string-p in *.el files.

> > I think we should keep the changed behavior of char-or-string-p,
> > which fits with its name, and check all 8 callers.

> Agreed,

Ok.  It was only skeleton.el that has a problem, and I fixed
it.  I didn't create integer-or-string-p because it seems
that the function is not that useful.  In skeleton.el, I
simply used the combination of integerp and stringp.

---
Kenichi Handa
handa@m17n.org

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

* Re: [cezar@mixandgo.ro: skeleton bug]
  2007-09-07  2:33       ` Kenichi Handa
@ 2007-09-07  4:04         ` Stefan Monnier
  2007-09-07 19:53         ` Richard Stallman
  1 sibling, 0 replies; 11+ messages in thread
From: Stefan Monnier @ 2007-09-07  4:04 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: cezar, rms, emacs-devel

>> > I think we should keep the changed behavior of char-or-string-p,
>> > which fits with its name, and check all 8 callers.

>> Agreed,

> Ok.  It was only skeleton.el that has a problem, and I fixed
> it.  I didn't create integer-or-string-p because it seems
> that the function is not that useful.  In skeleton.el, I
> simply used the combination of integerp and stringp.

Great, thank you,


        Stefan

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

* Re: [cezar@mixandgo.ro: skeleton bug]
  2007-09-07  2:33       ` Kenichi Handa
  2007-09-07  4:04         ` Stefan Monnier
@ 2007-09-07 19:53         ` Richard Stallman
  1 sibling, 0 replies; 11+ messages in thread
From: Richard Stallman @ 2007-09-07 19:53 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: cezar, monnier, emacs-devel

    Ok.  It was only skeleton.el that has a problem, and I fixed
    it.  I didn't create integer-or-string-p because it seems
    that the function is not that useful.  In skeleton.el, I
    simply used the combination of integerp and stringp.

That sounds right.  Thanks.

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

end of thread, other threads:[~2007-09-07 19:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1IRriB-0006Rk-ES@fencepost.gnu.org>
2007-09-03  2:31 ` [cezar@mixandgo.ro: skeleton bug] Kenichi Handa
2007-09-03 18:25   ` Richard Stallman
2007-09-03 21:22     ` Stefan Monnier
2007-09-07  2:33       ` Kenichi Handa
2007-09-07  4:04         ` Stefan Monnier
2007-09-07 19:53         ` Richard Stallman
2007-08-25  4:07 Richard Stallman
2007-08-25 16:46 ` Chong Yidong
2007-08-26 14:56   ` Richard Stallman
2007-08-25 19:52 ` Glenn Morris
  -- strict thread matches above, loose matches on Subject: below --
2007-08-17 20:17 Richard Stallman

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