================================================================
Dear Bug Team!
I found a very annoying bug with indenting C files.
The bug occurs under the following circumstances
- tested with fresh created user without any (x)emacs specific config
files
- load a *.c file
- M-x font-lock-mode
- mark an area and press C-x n n to activate the narrow mode
- delete any whitespace character in front of a line, so that the
indenting is incorrect
- try to re-indent the line with TAB
- this results in an error like
"Wrong type argument: number-char-or-marker-p, (48809 . 48816)"
(look at the bottom of the automatically generated info)
- I could not reproduce this without the font-lock-mode
- the backtrace of "Debug on Error" is:
-------------backtrace------------------
Signaling: (wrong-type-argument number-char-or-marker-p (48809 . 48816))
c-parse-state()
c-guess-basic-syntax()
c-indent-line()
#<compiled-function nil "...(3)" [indent-line-function] 1 953668 nil>()
c-indent-command(1)
call-interactively(c-indent-command)
----------------------------------------
regards,
christian
================================================================
System Info to help track down your bug:
---------------------------------------
uname -a: Linux 2.4.22 #3 SMP Sun Sep 21 15:48:01 CEST 2003 i686 unknown unknown
GNU/Linux
./configure '--prefix=/usr'
'--infopath=/usr/local/info:/usr/info:/opt/info'
'--archlibdir=${prefix}/lib/xemacs-21.4.14'
'--docdir=${prefix}/lib/xemacs-21.4.14' '--datadir=${prefix}/share'
'--infodir=${datadir}/info' '--mandir=${datadir}/man/man1'
'--package-path=~/.xemacs/packages::${prefix}/share/xemacs/site-packages:${prefix}/share/xemacs-21.4.14/packages:${prefix}/share/xemacs-21.4.14/mule-packages'
'--cflags=$RPM_OPT_FLAGS -fno-strict-aliasing' '--with-athena=3d'
'--with-menubars=lucid' '--with-scrollbars=lucid'
'--with-dialogs=lucid' '--with-widgets=lucid' '--dynamic=yes'
'--with-ipv6-cname=no' '--with-mule' '--use-regex-malloc=no'
XEmacs 21.4.14 "Reasonable Discussion" configured for `i686-pc-linux'.
Compilation / Installation:
Source code location: /usr/src/RPM/BUILD/xemacs-21.4.14
Installation prefix: /usr
Operating system description file: `s/linux.h'
Machine description file: `m/intel386.h'
Compiler: gcc -O2 -fomit-frame-pointer -pipe -march=i586
-mcpu=athlon -fno-strict-aliasing
Relocating allocator for buffers: no
GNU version of malloc: yes
- Using Doug Lea's new malloc from the GNU C Library.
Window System:
Compiling in support for the X window system:
- X Windows headers location: /usr/X11R6/include
- X Windows libraries location: /usr/X11R6/lib
- Handling WM_COMMAND properly.
Compiling in support for Motif.
*WARNING* Many versions of Motif are buggy, requiring workarounds.
You are likely to experience slow redisplay.
You may need to install vendor patches to Motif.
See PROBLEMS for more information.
Using Lucid menubars.
Using Lucid scrollbars.
Using Motif dialog boxes.
Using Motif native widgets.
TTY:
Compiling in support for ncurses.
Compiling in support for GPM (General Purpose Mouse).
Images:
Compiling in support for GIF images (builtin).
Compiling in support for XPM images.
Compiling in support for PNG images.
Compiling in support for JPEG images.
Compiling in support for TIFF images.
Sound:
Compiling in support for sound (native).
Databases:
Compiling in support for Berkeley database.
Compiling in support for LDAP.
Internationalization:
Compiling in support for Mule (multi-lingual Emacs).
Compiling in support for XIM (X11R5+ I18N input method).
- Using Motif to provide XIM support.
Mail:
Compiling in support for "dot-locking" mail spool file locking method.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for dynamic shared object modules.
WARNING: -----------------------------------------------------------
Using alloca to allocate the failure stack.
It may be impossible to detect stack exhaustion, and you will crash.
Do NOT use this build of XEmacs for ordinary work.
WARNING: -----------------------------------------------------------
Using the new portable dumper.
Load-Path Lisp Shadows:
----------------------
(/usr/share/xemacs/site-packages/lisp/gnus/sha1-el
/usr/share/xemacs-21.4.14/packages/lisp/ecrypto/sha1-el
/usr/share/xemacs/site-packages/lisp/gnus/hex-util
/usr/share/xemacs-21.4.14/packages/lisp/ecrypto/hex-util
/usr/share/xemacs/site-packages/lisp/gnus/starttls
/usr/share/xemacs-21.4.14/packages/lisp/mail-lib/starttls
/usr/share/xemacs/site-packages/lisp/gnus/rfc2104
/usr/share/xemacs-21.4.14/packages/lisp/mail-lib/rfc2104
/usr/share/xemacs/site-packages/lisp/gnus/pop3
/usr/share/xemacs-21.4.14/packages/lisp/mail-lib/pop3
/usr/share/xemacs/site-packages/lisp/gnus/netrc
/usr/share/xemacs-21.4.14/packages/lisp/mail-lib/netrc
/usr/share/xemacs/site-packages/lisp/gnus/tls
/usr/share/xemacs-21.4.14/packages/lisp/mail-lib/tls
/usr/share/xemacs/site-packages/lisp/gnus/dns
/usr/share/xemacs-21.4.14/packages/lisp/net-utils/dns
/usr/share/xemacs/site-packages/lisp/gnus/dig
/usr/share/xemacs-21.4.14/packages/lisp/net-utils/dig
/usr/share/xemacs/site-packages/lisp/gnus/pgg
/usr/share/xemacs-21.4.14/packages/lisp/pgg/pgg
/usr/share/xemacs/site-packages/lisp/gnus/pgg-pgp5
/usr/share/xemacs-21.4.14/packages/lisp/pgg/pgg-pgp5
/usr/share/xemacs/site-packages/lisp/gnus/pgg-pgp
/usr/share/xemacs-21.4.14/packages/lisp/pgg/pgg-pgp
/usr/share/xemacs/site-packages/lisp/gnus/pgg-parse
/usr/share/xemacs-21.4.14/packages/lisp/pgg/pgg-parse
/usr/share/xemacs/site-packages/lisp/gnus/pgg-gpg
/usr/share/xemacs-21.4.14/packages/lisp/pgg/pgg-gpg
/usr/share/xemacs/site-packages/lisp/gnus/pgg-def
/usr/share/xemacs-21.4.14/packages/lisp/pgg/pgg-def
/usr/share/xemacs/site-packages/lisp/local/autoconf-mode
/usr/share/xemacs-21.4.14/packages/lisp/prog-modes/autoconf-mode
/usr/share/xemacs/site-packages/lisp/gnus/sieve
/usr/share/xemacs-21.4.14/packages/lisp/sieve/sieve
/usr/share/xemacs/site-packages/lisp/gnus/sieve-mode
/usr/share/xemacs-21.4.14/packages/lisp/sieve/sieve-mode
/usr/share/xemacs/site-packages/lisp/gnus/sieve-manage
/usr/share/xemacs-21.4.14/packages/lisp/sieve/sieve-manage
/usr/share/xemacs/site-packages/lisp/local/po-mode
/usr/share/xemacs-21.4.14/packages/lisp/text-modes/po-mode
/usr/share/xemacs/site-packages/lisp/local/po-compat
/usr/share/xemacs-21.4.14/packages/lisp/text-modes/po-compat
/usr/share/xemacs-21.4.14/packages/lisp/build/build-report
/usr/share/xemacs-21.4.14/lisp/build-report)
Installed XEmacs Packages:
-------------------------
((skk:version 1.23 :type regular)
(mule-ucs :version 1.04 :type regular)
(mule-base :version 1.43 :type regular)
(lookup :version 1.13 :type regular)
(locale :version 1.2 :type regular)
(leim :version 1.21 :type regular)
(latin-unity :version 1.07 :type regular)
(egg-its :version 1.26 :type regular)
(edict :version 1.15 :type regular)
(zenirc :version 1.13 :type regular)
(xslt-process :version 1.11 :type regular)
(xslide :version 1.08 :type regular)
(xemacs-devel :version 1.58 :type single-file)
(xemacs-base :version 1.78 :type regular)
(w3 :version 1.28 :type regular)
(vm :version 7.14 :type regular)
(viper :version 1.36 :type regular)
(view-process :version 1.12 :type regular)
(vhdl :version 1.17 :type regular)
(vc-cc :version 1.21 :type regular)
(vc :version 1.37 :type regular)
(tramp :version 1.16 :type regular)
(tpu :version 1.12 :type regular)
(tooltalk :version 1.13 :type regular)
(tm :version 1.36 :type regular)
(time :version 1.13 :type regular)
(textools :version 1.14 :type regular)
(text-modes :version 1.63 :type single-file)
(texinfo :version 1.24 :type regular)
(supercite :version 1.19 :type regular)
(strokes :version 1.08 :type regular)
(speedbar :version 1.26 :type regular)
(sounds-wav :version 1.1 :type regular)
(sounds-au :version 1.1 :type regular)
(sml-mode :version 0.09 :type regular)
(slider :version 1.13 :type regular)
(sieve :version 1.13 :type regular)
(sh-script :version 1.17 :type regular)
(sgml :version 1.08 :type regular)
(semantic :version 1.17 :type regular)
(scheme :version 1.13 :type regular)
(sasl :version 1.13 :type regular)
(ruby-modes :version 1.01 :type regular)
(rmail :version 1.13 :type regular)
(reftex :version 1.3 :type regular)
(python-modes :version 1.02 :type single-file)
(psgml-dtds :version 1.02 :type regular)
(psgml :version 1.41 :type regular)
(ps-print :version 1.08 :type regular)
(prog-modes
:version
1
.83
:type
single-file)
(pgg :version 1.03 :type regular)
(perl-modes :version 1.04 :type single-file)
(pcomplete :version 1.02 :type regular)
(pcl-cvs :version 1.64 :type regular)
(pc :version 1.25 :type single-file)
(os-utils :version 1.32 :type single-file)
(oo-browser :version 1.03 :type regular)
(ocaml :version 0.04 :type regular)
(net-utils :version 1.32 :type single-file)
(mmm-mode :version 1.0 :type regular)
(misc-games :version 1.16 :type single-file)
(mine :version 1.14 :type regular)
(mh-e :version 1.23 :type regular)
(mew :version 1.17 :type regular)
(mailcrypt :version 2.12 :type regular)
(mail-lib :version 1.6 :type regular)
(liece :version 1.12 :type regular)
(jde :version 1.45 :type regular)
(ispell :version 1.24 :type regular)
(ilisp :version 1.32 :type regular)
(igrep :version 1.1 :type regular)
(idlwave :version 1.3 :type regular)
(ibuffer :version 1.08 :type regular)
(hyperbole :version 1.12 :type regular)
(hm--html-menus :version 1.21 :type regular)
(haskell-mode :version 1.05 :type regular)
(gnats :version 1.15 :type regular)
(games :version 1.14 :type regular)
(fsf-compat :version 1.12 :type single-file)
(frame-icon :version 1.09 :type regular)
(fortran-modes :version 1.02 :type single-file)
(forms :version 1.14 :type regular)
(footnote :version 1.15 :type regular)
(eudc :version 1.38 :type regular)
(eterm :version 1.13 :type regular)
(ess :version 1.04 :type regular)
(eshell :version 1.05 :type regular)
(emerge :version 1.09 :type regular)
(elib :version 1.1 :type single-file)
(eieio :version 1.04 :type regular)
(efs :version 1.29 :type regular)
(edt :version 1.12 :type regular)
(edit-utils :version 2.07 :type single-file)
(ediff :version 1.47 :type regular)
(edebug :version 1.18 :type regular)
(ecrypto :version 0.13 :type regular)
(ecb :version 1.1 :type regular)
(docbookide :version 0.06 :type regular)
(dired :version 1.13 :type regular)
(dictionary :version 1.12 :type regular)
(debug :version 1.16 :type regular)
(crisp :version 1.12 :type regular)
(cookie :version 1.14 :type regular)
(clearcase :version 1.06 :type regular)
(cc-mode :version 1.39 :type regular)
(calendar :version 1.21 :type regular)
(calc :version 1.23 :type regular)
(c-support :version 1.16 :type single-file)
(build :version 1.1 :type regular)
(bbdb :version 1.23 :type regular)
(auctex :version 1.35 :type regular)
(apel :version 1.26 :type regular)
(ada :version 1.13 :type regular))
Installed Modules:
-----------------
Features:
--------
(mail-abbrevs xemacsbug shadow sendmail rfc822 cc-fonts font-lock
cus-face view-less view novice cc-mode cc-menus cc-cmds cc-styles
cc-align cc-engine cc-vars cc-defs regexp-opt efs-cu skk-autoloads
mule-ucs-autoloads mule-base-autoloads lookup-autoloads
locale-autoloads leim-autoloads latin-unity-autoloads
egg-its-autoloads edict-autoloads zenirc-autoloads
xslt-process-autoloads xslide-autoloads xemacs-devel-autoloads
xemacs-base-autoloads w3-autoloads vm-autoloads viper-autoloads
view-process-autoloads vhdl-autoloads vc-cc-autoloads vc-autoloads
tramp-autoloads tpu-autoloads tooltalk-autoloads tm-autoloads
time-autoloads textools-autoloads text-modes-autoloads
texinfo-autoloads supercite-autoloads strokes-autoloads
speedbar-autoloads sounds-wav-autoloads sounds-au-autoloads
sml-mode-autoloads slider-autoloads sieve-autoloads
sh-script-autoloads sgml-autoloads semantic-autoloads scheme-autoloads
sasl-autoloads ruby-modes-autoloads rmail-autoloads reftex-autoloads
python-modes-autoloads psgml-dtds-autoloads psgml-autoloads
ps-print-autoloads prog-modes-autoloads pgg-autoloads
perl-modes-autoloads pcomplete-autoloads pcl-cvs-autoloads
pc-autoloads os-utils-autoloads oo-browser-autoloads ocaml-autoloads
net-utils-autoloads mmm-mode-autoloads misc-games-autoloads
mine-autoloads mh-e-autoloads mew-autoloads mailcrypt-autoloads
mail-lib-autoloads liece-autoloads jde-autoloads
xemacs-21.4.14-autoloads ilisp-autoloads igrep-autoloads
idlwave-autoloads ibuffer-autoloads hyperbole-autoloads
hm--html-menus-autoloads haskell-mode-autoloads gnats-autoloads
games-autoloads fsf-compat-autoloads frame-icon-autoloads
fortran-modes-autoloads forms-autoloads footnote-autoloads
eudc-autoloads eterm-autoloads ess-autoloads eshell-autoloads
emerge-autoloads elib-autoloads eieio-autoloads efs-autoloads
edt-autoloads edit-utils-autoloads ediff-autoloads edebug-autoloads
ecrypto-autoloads ecb-autoloads docbookide-autoloads dired-autoloads
dictionary-autoloads debug-autoloads crisp-autoloads cookie-autoloads
clearcase-autoloads cc-mode-autoloads calendar-autoloads
calc-autoloads c-support-autoloads build-autoloads bbdb-autoloads
auctex-autoloads apel-autoloads ada-autoloads lisp-autoloads loadhist
auto-show fontl-hooks x-iso8859-1 slovenian czech romanian ccl
mule-help code-cmds gutter-items menubar-items x-menubar mode-motion
mouse itimer auto-save lisp-mode easymenu iso8859-1 page buff-menu
lib-complete cus-file derived frame text-props obsolete cus-start
custom widget cl-extra mini-cl cl cl-19 packages backquote
very-early-lisp file-coding mule lucid-scrollbars cut-buffer
lucid-menubars motif-dialogs x c-balloon-help tty-frames tty toolbar
native-sound scrollbar unix-processes multicast network-streams
subprocesses modules menu-accelerator-support menubar berkeley-db md5
xemacs xim gutter tiff png gif jpeg xpm xbm lisp-float-type linux
dialog devices window-system base64)
Recent keystrokes:
-----------------
down TAB down down TAB down TAB down TAB down TAB down
TAB down down TAB down TAB down TAB TAB TAB down TAB
down TAB C-home TAB down TAB down down TAB down TAB
down TAB down TAB down TAB down TAB down TAB down TAB
down TAB down TAB down TAB down TAB down TAB down TAB
down TAB down TAB down TAB down M-x r e p TAB
o TAB r TAB x e m TAB RET
Recent messages (most recent first):
-----------------------------------
Loading xemacsbug...done
Loading xemacsbug...
Making completion list...
Making completion list...
Making completion list...
Making completion list...
Wrong type argument: number-char-or-marker-p, (48809 . 48816)
Wrong type argument: number-char-or-marker-p, (48809 . 48816)
Wrong type argument: number-char-or-marker-p, (48809 . 48816)
Wrong type argument: number-char-or-marker-p, (48809 . 48816)
Wrong type argument: number-char-or-marker-p, (48809 . 48816)
Wrong type argument: number-char-or-marker-p, (48809 . 48816)
Wrong type argument: number-char-or-marker-p, (48809 . 48816)
Wrong type argument: number-char-or-marker-p, (48809 . 48816)
Wrong type argument: number-char-or-marker-p, (48809 . 48816)
Wrong type argument: number-char-or-marker-p, (48809 . 48816)
Wrong type argument: number-char-or-marker-p, (48809 . 48816)
Wrong type argument: number-char-or-marker-p, (48809 . 48816)
Wrong type argument: number-char-or-marker-p, (48809 . 48816)