================================================================
Dear Bug Team!
I wanted to comment a region with `comment-region'. Unfortunatley I got
that error:
Signaling: (wrong-type-argument number-char-or-marker-p nil)
1-(nil)
(aref str (1- (match-end 1)))
(make-string n (aref str (1- ...)))
(if multi (make-string n (aref str ...)))
(when multi (make-string n (aref str ...)))
(concat lpad s (when multi (make-string n ...)) rpad)
(if (not (symbolp n)) (concat lpad s (when multi ...) rpad) (concat (mapconcat ... lpad
"") (regexp-quote s) (when multi "+") (mapconcat ... rpad
"")))
(let ((s ...) (lpad ...) (rpad ...) (multi ...)) (if (not ...) (concat lpad s ... rpad)
(concat ... ... ... ...)))
(progn (string-match "\\`\\s-*\\(.*?\\)\\s-*\\'" str) (let (... ... ...
...) (if ... ... ...)))
(if (and (stringp str) (not ...)) (progn (string-match
"\\`\\s-*\\(.*?\\)\\s-*\\'" str) (let ... ...)))
(when (and (stringp str) (not ...)) (string-match
"\\`\\s-*\\(.*?\\)\\s-*\\'" str) (let (... ... ... ...) (if ... ... ...)))
comment-padright(";" 0)
comment-region(321 456 nil)
call-interactively(comment-region)
I am not sure if it has to do with the use of `match-end'. That error
happens in a Lisp buffer as well as in a eg. C buffer. As a workaround I
set `comment-quote-nested' nil
,----[ C-h v comment-quote-nested RET ]
| `comment-quote-nested' is a variable declared in Lisp.
| -- loaded from "/usr/src/cvs/xemacs-21.5/lisp/newcomment.elc"
|
| Value: t
|
| Documentation:
| Non-nil if nested comments should be quoted.
| This should be locally set by each major mode if needed.
|
`----
Why is that variable not buffer-local if it should be set by each major
mode?
================================================================
System Info to help track down your bug:
---------------------------------------
uname -a: CYGWIN_ME-4.90 windoof 1.3.22(0.78/3/2) 2003-03-18 09:20 i686 unknown unknown
Cygwin
./configure '--use-kkcc' '--pdump' '--with-site-lisp=yes'
'--with-x11=no' '--with-mule=yes' '--error-checking=none'
'--site-includes=/usr/include/libpng/'
'--package-path=/usr/local/lib/xemacs/xemacs-packages/:/usr/local/lib/xemacs/site-packages/:/usr/local/lib/xemacs/mule-packages/'
XEmacs 21.5-b12 "carrot" configured for `i686-pc-cygwin'.
Compilation / Installation:
Source code location: /usr/src/cvs/xemacs-21.5
Installation prefix: /usr/local
Additional header files: /usr/include/libpng/
Operating system description file: `s/cygwin32.h'
Machine description file: `m/intel386.h'
Compiler: gcc
-I/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../include/noX
-I/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../include/noX -Wall -Wno-switch -Winline
-Wmissing-prototypes -Wsign-compare -Wundef -Wstrict-prototypes -Wpacked -Wshadow
-Wmissing-declarations -Wpointer-arith -g -O3
Relocating allocator for buffers: no
GNU version of malloc: yes
Window System:
Compiling in support for the Microsoft window system.
Using MS-Windows menubars.
Using MS-Windows scrollbars.
Using MS-Windows dialog boxes.
Using MS-Windows native widgets.
Compiling in support for Drag'n'Drop (EXPERIMENTAL).
- Drag'n'Drop prototype: msw.
TTY:
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.
Compiling in support for X-Face message headers.
Sound:
Compiling in support for sound (native).
Databases:
Compiling in support for GNU DBM.
Compiling in support for PostgreSQL.
- Using PostgreSQL header file: libpq-fe.h
- Using PostgreSQL V7 bindings.
Internationalization:
Compiling in support for Mule (multi-lingual Emacs).
Mail:
Compiling in support for POP mail retrieval.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Using the new GC algorithms.
Using the new portable dumper.
Compiling in support for extra debugging code.
Load-Path Lisp Shadows:
----------------------
(/usr/local/lib/xemacs/xemacs-packages/lisp/tex-site
/usr/local/lib/xemacs/xemacs-packages/lisp/auctex/tex-site
/d/ognus/lib/xemacs/site-packages/lisp/gnus/sha1-el
/usr/local/lib/xemacs/xemacs-packages/lisp/ecrypto/sha1-el
/d/ognus/lib/xemacs/site-packages/lisp/gnus/hex-util
/usr/local/lib/xemacs/xemacs-packages/lisp/ecrypto/hex-util
/usr/local/lib/xemacs/xemacs-packages/lisp/eieio/eieio
/usr/local/lib/xemacs/xemacs-packages/lisp/jde/eieio
/usr/local/lib/xemacs/xemacs-packages/lisp/eieio/eieio-custom
/usr/local/lib/xemacs/xemacs-packages/lisp/jde/eieio-custom
/usr/local/lib/xemacs/xemacs-packages/lisp/eieio/eieio-comp
/usr/local/lib/xemacs/xemacs-packages/lisp/jde/eieio-comp
/d/ognus/lib/xemacs/site-packages/lisp/gnus/starttls
/usr/local/lib/xemacs/xemacs-packages/lisp/mail-lib/starttls
/d/ognus/lib/xemacs/site-packages/lisp/gnus/rfc2104
/usr/local/lib/xemacs/xemacs-packages/lisp/mail-lib/rfc2104
/d/ognus/lib/xemacs/site-packages/lisp/gnus/pop3
/usr/local/lib/xemacs/xemacs-packages/lisp/mail-lib/pop3
/d/ognus/lib/xemacs/site-packages/lisp/gnus/netrc
/usr/local/lib/xemacs/xemacs-packages/lisp/mail-lib/netrc
/d/ognus/lib/xemacs/site-packages/lisp/gnus/pgg
/usr/local/lib/xemacs/xemacs-packages/lisp/pgg/pgg
/d/ognus/lib/xemacs/site-packages/lisp/gnus/pgg-pgp5
/usr/local/lib/xemacs/xemacs-packages/lisp/pgg/pgg-pgp5
/d/ognus/lib/xemacs/site-packages/lisp/gnus/pgg-pgp
/usr/local/lib/xemacs/xemacs-packages/lisp/pgg/pgg-pgp
/d/ognus/lib/xemacs/site-packages/lisp/gnus/pgg-parse
/usr/local/lib/xemacs/xemacs-packages/lisp/pgg/pgg-parse
/d/ognus/lib/xemacs/site-packages/lisp/gnus/pgg-gpg
/usr/local/lib/xemacs/xemacs-packages/lisp/pgg/pgg-gpg
/d/ognus/lib/xemacs/site-packages/lisp/gnus/pgg-def
/usr/local/lib/xemacs/xemacs-packages/lisp/pgg/pgg-def
/usr/local/lib/xemacs/xemacs-packages/lisp/ps-print/ps-print
/usr/local/lib/xemacs/xemacs-packages/lisp/ps-print-nomule/ps-print
/d/ognus/lib/xemacs/site-packages/lisp/gnus/sieve
/usr/local/lib/xemacs/xemacs-packages/lisp/sieve/sieve
/d/ognus/lib/xemacs/site-packages/lisp/gnus/sieve-mode
/usr/local/lib/xemacs/xemacs-packages/lisp/sieve/sieve-mode
/d/ognus/lib/xemacs/site-packages/lisp/gnus/sieve-manage
/usr/local/lib/xemacs/xemacs-packages/lisp/sieve/sieve-manage
/usr/local/lib/xemacs/xemacs-packages/lisp/vc/vc
/usr/local/lib/xemacs/xemacs-packages/lisp/vc-cc/vc
/usr/local/lib/xemacs/xemacs-packages/lisp/vc/vc-hooks
/usr/local/lib/xemacs/xemacs-packages/lisp/vc-cc/vc-hooks
/usr/local/lib/xemacs/xemacs-packages/lisp/vc-cc/tq
/usr/local/lib/xemacs/xemacs-packages/lisp/xemacs-base/tq
/usr/local/lib/xemacs/mule-packages/lisp/mule-base/viet-util
/usr/src/cvs/xemacs-21.5/lisp/mule/viet-util
/usr/local/lib/xemacs/mule-packages/lisp/mule-base/cyril-util
/usr/src/cvs/xemacs-21.5/lisp/mule/cyril-util
/usr/local/lib/xemacs/mule-packages/lisp/mule-base/china-util
/usr/src/cvs/xemacs-21.5/lisp/mule/china-util
/usr/local/lib/xemacs/mule-packages/lisp/mule-base/ethio-util
/usr/src/cvs/xemacs-21.5/lisp/mule/ethio-util
/usr/local/lib/xemacs/mule-packages/lisp/mule-base/japan-util
/usr/src/cvs/xemacs-21.5/lisp/mule/japan-util
/usr/local/lib/xemacs/mule-packages/lisp/mule-base/korea-util
/usr/src/cvs/xemacs-21.5/lisp/mule/korea-util
/usr/local/lib/xemacs/xemacs-packages/lisp/build/build-report
/usr/src/cvs/xemacs-21.5/lisp/build-report
/usr/local/lib/xemacs/mule-packages/lisp/mule-ucs/unicode
/usr/src/cvs/xemacs-21.5/lisp/unicode)
Installed XEmacs Packages:
-------------------------
((mule-ucs:version 1.04 :type regular)
(mule-base :version 1.42 :type regular)
(lookup :version 1.1 :type regular)
(locale :version 1.2 :type regular)
(leim :version 1.19 :type regular)
(latin-unity :version 1.07 :type regular)
(zenirc :version 1.13 :type regular)
(xslt-process :version 1.11 :type regular)
(xemacs-devel :version 1.52 :type single-file)
(xemacs-base :version 1.75 :type regular)
(w3 :version 1.28 :type regular)
(vm :version 1.25 :type regular)
(viper :version 1.35 :type regular)
(view-process :version 1.1 :type regular)
(vhdl :version 1.11 :type regular)
(vc-cc :version 1.14 :type regular)
(vc :version 1.37 :type regular)
(tramp :version 1.12 :type regular)
(tpu :version 1.11 :type regular)
(tooltalk :version 1.12 :type regular)
(time :version 1.12 :type regular)
(textools :version 1.14 :type regular)
(text-modes :version 1.6 :type single-file)
(texinfo :version 1.23 :type regular)
(supercite :version 1.16 :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.09 :type regular)
(slider :version 1.13 :type regular)
(sieve :version 1.07 :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.12 :type regular)
(rmail :version 1.12 :type regular)
(reftex :version 1.28 :type regular)
(python-modes :version 1.02 :type single-file)
(psgml-dtds :version 1.02 :type regular)
(psgml :version 1.4 :type regular)
(ps-print-nomule :version 1.03 :type regular)
(ps-print :version 1.08 :type regular)
(prog-modes
:version
1
.72
:type
single-file)
(pgg :version 1.02 :type regular)
(perl-modes :version 1.02 :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.3 :type single-file)
(net-utils :version 1.31 :type single-file)
(mmm-mode :version 1.0 :type regular)
(misc-games :version 1.16 :type single-file)
(mine :version 1.13 :type regular)
(mh-e :version 1.13 :type regular)
(mew :version 1.17 :type regular)
(mailcrypt :version 2.12 :type regular)
(mail-lib :version 1.57 :type regular)
(jde :version 1.23 :type regular)
(ispell :version 1.24 :type regular)
(ilisp :version 1.31 :type regular)
(igrep :version 1.1 :type regular)
(idlwave :version 1.27 :type regular)
(ibuffer :version 1.08 :type regular)
(hm--html-menus :version 1.2 :type regular)
(gnats :version 1.15 :type regular)
(games :version 1.13 :type regular)
(fsf-compat :version 1.12 :type single-file)
(frame-icon :version 1.09 :type regular)
(forms :version 1.12 :type regular)
(footnote :version 1.15 :type regular)
(eudc :version 1.36 :type regular)
(eterm :version 1.13 :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)
(eicq :version 1.02 :type regular)
(efs :version 1.29 :type regular)
(edt :version 1.1 :type regular)
(edit-utils :version 2.0 :type single-file)
(ediff :version 1.46 :type regular)
(edebug :version 1.17 :type regular)
(ecrypto :version 0.12 :type regular)
(ecb :version 1.06 :type regular)
(dired :version 1.13 :type regular)
(dictionary :version 1.11 :type regular)
(debug :version 1.16 :type regular)
(crisp :version 1.11 :type regular)
(cookie :version 1.14 :type regular)
(clearcase :version 1.04 :type regular)
(cc-mode :version 1.33 :type regular)
(calendar :version 1.19 :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.21 :type regular)
(auctex :version 1.35 :type regular)
(apel :version 1.26 :type regular)
(ada :version 1.09 :type regular)
(Sun :version 1.12 :type regular))
Features:
--------
(xemacsbug shadow cl-specs edebug find-func debug view-less view
hyper-apropos dabbrev bookmark pp smtpmail hamster-mode sha1-el
executable hex-util mytc overlay footno enum bbdb-hooks gnus-fun sort
gnus-cite smiley gnus-agent gnus-srvr nnvirtual gnus-bcklg gnus-dup
gnus-async func-menu gnus-score score-mode gnus-ml gnus-msg gnus-topic
nndoc gnus-cache nnfolder pop3 byte-optimize bytecomp byte-compile nnml
nndraft nnmh efs-cu bbdb-gnus gnus-art mm-uu mm-view gnus-sum gnus-group
gnus-undo nnmail mail-source format-spec bbdb-snarf mail-extr bbdb-com
nntp nnoo random-sig hamster-functions spam-stat gnus-start gnus-spec
gnus-int gnus-range message mml mml-sec mml-smime smime dig mml1991
mml2015 pgg pgg-parse pgg-def mm-decode mm-bodies mm-encode mailcap lpr
mail-parse rfc2045 rfc2231 rfc2047 qp ietf-drums mail-abbrevs sendmail
rfc822 mailheader canlock gnus-win gnus gnus-ems gnus-xmas messagexmas
gnus-util netrc time-date parse-time nnheader nnheaderxm mail-utils
mm-util mail-prsvr wid-edit font disp-table face-list color-theme paren
mic-paren timer recent-files edmacro iswitchb ibuffer big-menubar
vc-hooks tex-site scroll-in-place filladapt completer python-comint-mode
common-lisp clisp-indent myscheme cmuscheme comint ring scheme
ilisp-scheme-easy-menu privategnus bbdb timezone hooks keybindings
charset privatefunctions develock advice advice-preload font-lock
gnus-load cus-load boxquote rect time-stamp latin-unity-tables
latin-unity-latin10 latin-unity-latin9 latin-unity-latin8
latin-unity-latin7 latin-unity-vars latin-unity info cus-face
mule-ucs-autoloads mule-base-autoloads lookup-autoloads locale-autoloads
leim-autoloads latin-unity-autoloads zenirc-autoloads
xslt-process-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 time-autoloads textools-autoloads
text-modes-autoloads texinfo-autoloads supercite-autoloads
strokes-autoloads speedbar-autoloads sounds-wav-autoloads
sounds-au-autoloads slider-autoloads sieve-autoloads sh-script-autoloads
sgml-autoloads semantic-autoloads scheme-autoloads sasl-autoloads
rmail-autoloads reftex-autoloads python-modes-autoloads
psgml-dtds-autoloads psgml-autoloads ps-print-nomule-autoloads
ps-print-autoloads prog-modes-autoloads pgg-autoloads
perl-modes-autoloads pcomplete-autoloads pcl-cvs-autoloads pc-autoloads
os-utils-autoloads net-utils-autoloads mmm-mode-autoloads
misc-games-autoloads mine-autoloads mh-e-autoloads mew-autoloads
mailcrypt-autoloads mail-lib-autoloads jde-autoloads ispell-autoloads
ilisp-autoloads igrep-autoloads idlwave-autoloads ibuffer-autoloads
hm--html-menus-autoloads gnats-autoloads games-autoloads
fsf-compat-autoloads frame-icon-autoloads forms-autoloads
footnote-autoloads eudc-autoloads eterm-autoloads eshell-autoloads
emerge-autoloads elib-autoloads eieio-autoloads eicq-autoloads
efs-autoloads edt-autoloads edit-utils-autoloads ediff-autoloads
edebug-autoloads ecrypto-autoloads ecb-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 Sun-autoloads mule-autoloads auto-autoloads
loadhist rsz-minibuf auto-show fontl-hooks tibetan lao devanagari indian
slovenian czech romanian ccl code-cmds gutter-items menubar-items
x-menubar dragdrop mode-motion mouse behavior itimer auto-save lisp-mode
easymenu iso8859-1 page buff-menu lib-complete cus-file derived
newcomment env text-props frame obsolete cus-start custom widget
cl-extra mini-cl cl cl-19 packages backquote postgresqlv7 postgresql
unicode mswindows-scrollbars mswindows tty-frames tty toolbar
native-sound scrollbar unix-processes multicast network-streams
subprocesses menu-accelerator-support menubar dbm md5 xemacs mule gutter
tiff png gif jpeg xface xpm xbm lisp-float-type file-coding dde cygwin32
dragdrop-api dialog devices window-system base64)
Recent keystrokes:
-----------------
down down down down down right right right right right
right right right q C-h a b u g RET down down down
down down down down down down down down down down down
down down down down down down down down down down down
down down down down down down down down down down down
down next next next next next next down down down down
down down down down down down down down down down down
right right right right right down RET RET BS q M-x
r e p o r t - x e TAB RET
Recent messages (most recent first):
-----------------------------------
Loading xemacsbug...done
Loading xemacsbug...
Quit
Making completion list...
Generating summary...done
Generating summary...
Scoring...done
Scoring...
Scoring...done
Scoring...
Fetching headers for nnml+private:Xemacs-beta-Mailingliste...done
Fetching headers for nnml+private:Xemacs-beta-Mailingliste...
Retrieving newsgroup: nnml+private:Xemacs-beta-Mailingliste...
Opening nntp server on 127.0.0.1...done
Opening nntp server on 127.0.0.1...
nil
t
nil
nil
nil
bye
Karl
--
He took his vorpal sword in hand:
Long time the manxome foe he sought--
So rested he by the Tumtum tree,
And stood awhile in thought. "Lewis Carroll" "Jabberwocky"
Show replies by date
|--==> "KP" == Karl Pflästerer <sigurd(a)12move.de> writes:
KP> I wanted to comment a region with `comment-region'. Unfortunatley
KP> I got
Fixed in 21.5.13
--
|---<Steve Youngs>---------------<GnuPG KeyID: 10D5C9C5>---|
| XEmacs - The only _______ you'll ever need. |
| Fill in the blank, yes, it's THAT good! |
|------------------------------------<youngs(a)xemacs.org>---|