unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* autoinsert emacs lisp header
@ 2007-12-21  2:37 Ye Wenbin
  2007-12-21  7:42 ` martin rudalics
  0 siblings, 1 reply; 6+ messages in thread
From: Ye Wenbin @ 2007-12-21  2:37 UTC (permalink / raw)
  To: emacs-pretest-bug

Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing  
list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:


The minibuffer-help-form for emacs lisp header in auto-insert-alist
seem format with wrong format-string. The format-string is:

(format "%10.0s:  %s" (car x) (cdr x))

which gives only whitespace.

By the way, if you use autoinsert for emacs lisp file, update
skeleton to newest version, there is a bug for "-N" skeleton element.

---
If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
     `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/home/ywb/local/share/emacs/23.0.0/etc/DEBUG for instructions.


In GNU Emacs 23.0.0.1 (i686-pc-linux-gnu, GTK+ Version 2.8.20)
  of 2007-04-28 on ywb-laptop
Windowing system distributor `The X.Org Foundation', version 11.0.70200000
configured using `configure  '--with-xpm' '--with-jpeg' '--with-tiff'  
'--with-gif' '--with-png' '--prefix=/home/ywb/local'  
'--with-x-toolkit=gtk' '--enable-font-backend''

Important settings:
   value of $LC_ALL: nil
   value of $LC_COLLATE: nil
   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: zh_CN.UTF-8
   value of $XMODIFIERS: @im=fcitx
   locale-coding-system: utf-8-unix
   default-enable-multibyte-characters: t

Major mode: Dired by name

Minor modes in effect:
   auto-insert-mode: t
   msb-mode: t
   keep-end-mode: t
   shell-dirtrack-mode: t
   desktop-save-mode: t
   icomplete-mode: t
   partial-completion-mode: t
   auto-image-file-mode: t
   show-paren-mode: t
   tooltip-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
   column-number-mode: t
   line-number-mode: t
   transient-mark-mode: t

Recent input:
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n
C-n C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-n C-v C-n C-n C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-n C-n C-n C-n M-v C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-n C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-v C-v C-v C-v C-v M-v M-v M-v M-v
M-v M-v C-v C-s e l " C-s C-n C-v C-s m a <backspace>
<backspace> e a m <backspace> <backspace> m a c C-n
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-x k <return> y M-x r e p o r SPC e <tab>
<return>

Recent messages:
Wrote  
/home/ywb/downloads/cvs.savannah.gnu.org/emacs-unicode/lisp/skeleton.elc
Mark set
Mark saved where search started
Mark set
Mark saved where search started [2 times]
byte-compile  
/home/ywb/downloads/cvs.savannah.gnu.org/emacs-unicode/lisp/autoinsert.el(y  
or n)
Showing all blocks ... done
Compiling  
/home/ywb/downloads/cvs.savannah.gnu.org/emacs-unicode/lisp/autoinsert.el...done
Wrote  
/home/ywb/downloads/cvs.savannah.gnu.org/emacs-unicode/lisp/autoinsert.elc
Loading emacsbug...done

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

* Re: autoinsert emacs lisp header
  2007-12-21  2:37 autoinsert emacs lisp header Ye Wenbin
@ 2007-12-21  7:42 ` martin rudalics
  2007-12-21  7:56   ` Ye Wenbin
  0 siblings, 1 reply; 6+ messages in thread
From: martin rudalics @ 2007-12-21  7:42 UTC (permalink / raw)
  To: Ye Wenbin; +Cc: emacs-pretest-bug

Thanks for reporting.

> The minibuffer-help-form for emacs lisp header in auto-insert-alist
> seem format with wrong format-string. The format-string is:
> 
> (format "%10.0s:  %s" (car x) (cdr x))
> 
> which gives only whitespace.

Indeed.  Does

(format "%12s:  %s" (car x) (cdr x))

give the desired format?

> By the way, if you use autoinsert for emacs lisp file, update
> skeleton to newest version, there is a bug for "-N" skeleton element.

Could you please be a bit more specific?

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

* Re: autoinsert emacs lisp header
  2007-12-21  7:42 ` martin rudalics
@ 2007-12-21  7:56   ` Ye Wenbin
  2007-12-21  9:07     ` martin rudalics
  2007-12-21  9:15     ` martin rudalics
  0 siblings, 2 replies; 6+ messages in thread
From: Ye Wenbin @ 2007-12-21  7:56 UTC (permalink / raw)
  To: emacs-pretest-bug@gnu.org; +Cc: martin rudalics

On Fri, 21 Dec 2007 15:42:09 +0800, martin rudalics <rudalics@gmx.at>  
wrote:

>> By the way, if you use autoinsert for emacs lisp file, update
>> skeleton to newest version, there is a bug for "-N" skeleton element.
>  Could you please be a bit more specific?
>
I mean, the skeleton.el I used has bug for -N element.
skeleton-internal-1 use char-or-string-p to capture element string, char,  
and integer.
But negative number is not a char, so char-or-string-p return nil.
When use auto-insert for emacs lisp header, a error "Lisp nesting exceeds  
max-lisp-eval-depth"
will raise.

I checked the cvs version of skeleton, the bug is fixed now.

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

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

* Re: autoinsert emacs lisp header
  2007-12-21  7:56   ` Ye Wenbin
@ 2007-12-21  9:07     ` martin rudalics
  2007-12-21  9:17       ` Ye Wenbin
  2007-12-21  9:15     ` martin rudalics
  1 sibling, 1 reply; 6+ messages in thread
From: martin rudalics @ 2007-12-21  9:07 UTC (permalink / raw)
  To: Ye Wenbin; +Cc: emacs-pretest-bug@gnu.org

> But negative number is not a char, so char-or-string-p return nil.

(char-or-string-p -2) returns t, hence the first branch of that
conditional should be taken.  Could you check why it doesn't for you?

> When use auto-insert for emacs lisp header, a error "Lisp nesting 
> exceeds  max-lisp-eval-depth"
> will raise.

Could you try to debug skeleton-internal-1?

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

* Re: autoinsert emacs lisp header
  2007-12-21  7:56   ` Ye Wenbin
  2007-12-21  9:07     ` martin rudalics
@ 2007-12-21  9:15     ` martin rudalics
  1 sibling, 0 replies; 6+ messages in thread
From: martin rudalics @ 2007-12-21  9:15 UTC (permalink / raw)
  To: Ye Wenbin; +Cc: emacs-pretest-bug@gnu.org

> I mean, the skeleton.el I used has bug for -N element.
> skeleton-internal-1 use char-or-string-p to capture element string, 
> char,  and integer.
> But negative number is not a char, so char-or-string-p return nil.
> When use auto-insert for emacs lisp header, a error "Lisp nesting 
> exceeds  max-lisp-eval-depth"
> will raise.
> 
> I checked the cvs version of skeleton, the bug is fixed now.
> 

Sorry, I forgot that this has been changed for the Unicode branch.
The bug is explained here

http://lists.gnu.org/archive/html/emacs-devel/2007-09/msg00105.html

and seems to have been fixed :-)

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

* Re: autoinsert emacs lisp header
  2007-12-21  9:07     ` martin rudalics
@ 2007-12-21  9:17       ` Ye Wenbin
  0 siblings, 0 replies; 6+ messages in thread
From: Ye Wenbin @ 2007-12-21  9:17 UTC (permalink / raw)
  To: emacs-pretest-bug@gnu.org; +Cc: martin rudalics

On Fri, 21 Dec 2007 17:07:29 +0800, martin rudalics <rudalics@gmx.at>  
wrote:

>> But negative number is not a char, so char-or-string-p return nil.
>
> (char-or-string-p -2) returns t, hence the first branch of that
> conditional should be taken.  Could you check why it doesn't for you?
>
>> When use auto-insert for emacs lisp header, a error "Lisp nesting  
>> exceeds  max-lisp-eval-depth"
>> will raise.
>
> Could you try to debug skeleton-internal-1?
>
Sorry, maybe I use emacs-23, that the reason we got different result.

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

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

end of thread, other threads:[~2007-12-21  9:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-21  2:37 autoinsert emacs lisp header Ye Wenbin
2007-12-21  7:42 ` martin rudalics
2007-12-21  7:56   ` Ye Wenbin
2007-12-21  9:07     ` martin rudalics
2007-12-21  9:17       ` Ye Wenbin
2007-12-21  9:15     ` martin rudalics

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