Dear Bug Team!
When I put the cursor at the end of this lisp code and run M-x
eval-last-sexp, it says, "b".
(progn
(string-match "\\(a\\)" "a")
(string-match "\\(a\\)" "b")
(match-string 1 "b"))
The info documentation for match-string says, "This function returns,
as a string, the text matched in the last search or match operation.
...if that subexpression didn't match anything, the value is `nil'"
The quote says it looks at the *last* operation. The last operation
in the above lisp code is the last call to string-match. That
particular call didn't match anything. The quote above says that in
that case, the value is nil. Therefore I think that match-string
should return nil, and since progn returns whatever the last
expression returns, then I think the overall return value of the
entire lisp code above should be nil. But instead it returns "b".
================================================================
System Info to help track down your bug:
---------------------------------------
uname -a: Linux
reliant.ca.metsci.com 2.2.9 #2 SMP Mon May 17 11:53:40 PDT 1999 i686
unknown
./configure '--prefix=/reliant/bjacob/xemacs'
XEmacs 21.1.12 "Channel Islands" configured for `i686-pc-linux'.
Where should the build process find the source code? /reliant/bjacob/xemacs-21.1.12
What installation prefix should install use? /reliant/bjacob/xemacs
What operating system and machine description files should XEmacs use?
`s/linux.h' and `m/intel386.h'
What compiler should XEmacs be built with? gcc -g -O3 -Wall -Wno-switch
Should XEmacs use the GNU version of malloc? yes
(Using Doug Lea's new malloc from the GNU C Library.)
Should XEmacs use the relocating allocator for buffers? yes
What window system should XEmacs use? x11
Where do we find X Windows header files? /usr/X11R6/include
Where do we find X Windows libraries? /usr/X11R6/lib
Compiling in support for XAUTH.
Compiling in support for XPM images.
Compiling in support for PNG image handling.
Compiling in support for (builtin) GIF image handling.
Compiling in support for JPEG image handling.
Compiling in support for TIFF image handling.
Compiling in support for X-Face message headers.
Compiling in native sound support.
Compiling in support for Berkeley DB.
Compiling in support for ncurses.
Compiling in support for GPM (General Purpose Mouse).
Compiling in support for proper session-management.
Using Lucid menubars.
Using Lucid scrollbars.
Using Athena dialog boxes.
Compiling in DLL support.
movemail will use "dot-locking" for locking mail spool files.
Using Lisp_Objects with minimal tagbits.
Load-Path Lisp Shadows:
----------------------
(/disk/tmp/bjacob/xemacs/lib/xemacs/xemacs-packages/lisp/vc/vc
/disk/tmp/bjacob/xemacs/lib/xemacs/xemacs-packages/lisp/vc-cc/vc
/disk/tmp/bjacob/xemacs/lib/xemacs/xemacs-packages/lisp/vc/vc-hooks
/disk/tmp/bjacob/xemacs/lib/xemacs/xemacs-packages/lisp/vc-cc/vc-hooks
/disk/tmp/bjacob/xemacs/lib/xemacs/xemacs-packages/lisp/xemacs-base/xpm-button
/disk/tmp/bjacob/xemacs/lib/xemacs-21.1.12/lisp/xpm-button)
Installed XEmacs Packages:
-------------------------
((zenirc:version 1.08 :type regular)
(xemacs-devel :version 1.29 :type single-file)
(xemacs-base :version 1.44 :type regular)
(w3 :version 1.16 :type regular)
(vm :version 6.96 :type regular)
(viper :version 1.21 :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.24 :type regular)
(tpu :version 1.11 :type regular)
(tooltalk :version 1.12 :type regular)
(tm :version 1.24 :type regular)
(time :version 1.1 :type regular)
(textools :version 1.11 :type regular)
(text-modes :version 1.27 :type single-file)
(texinfo :version 1.19 :type regular)
(supercite :version 1.16 :type regular)
(strokes :version 1.07 :type regular)
(speedbar :version 1.17 :type regular)
(sounds-wav :version 1.09 :type regular)
(sounds-au :version 1.09 :type regular)
(slider :version 1.12 :type regular)
(sh-script :version 1.12 :type regular)
(sgml :version 1.07 :type regular)
(semantic :version 1.02 :type regular)
(scheme :version 1.1 :type regular)
(rmail :version 1.11 :type regular)
(reftex :version 1.21 :type regular)
(psgml :version 1.2 :type regular)
(ps-print-nomule :version 1.03 :type regular)
(prog-modes
:version
1
.3
:type
single-file)
(pcl-cvs :version 1.5 :type regular)
(pc :version 1.18 :type single-file)
(os-utils :version 1.24 :type single-file)
(net-utils :version 1.27 :type single-file)
(misc-games :version 1.14 :type single-file)
(mine :version 1.13 :type regular)
(mh-e :version 1.12 :type regular)
(mew :version 1.11 :type regular)
(mailcrypt :version 2.05 :type regular)
(mail-lib :version 1.31 :type regular)
(jde :version 1.23 :type regular)
(ispell :version 1.2 :type regular)
(ilisp :version 1.13 :type regular)
(igrep :version 1.07 :type regular)
(idlwave :version 1.22 :type regular)
(hm--html-menus :version 1.15 :type regular)
(gnus :version 1.51 :type regular)
(gnats :version 1.11 :type regular)
(games :version 1.12 :type regular)
(fsf-compat :version 1.07 :type single-file)
(frame-icon :version 1.08 :type regular)
(forms :version 1.12 :type regular)
(footnote :version 1.12 :type regular)
(eudc :version 1.32 :type regular)
(eterm :version 1.12 :type regular)
(emerge :version 1.08 :type regular)
(elib :version 1.07 :type single-file)
(eicq :version 1.02 :type regular)
(efs :version 1.21 :type regular)
(edt :version 1.1 :type regular)
(edit-utils :version 1.53 :type single-file)
(ediff :version 1.26 :type regular)
(edebug :version 1.11 :type regular)
(dired :version 1.08 :type regular)
(debug :version 1.12 :type regular)
(crisp :version 1.11 :type regular)
(cookie :version 1.12 :type regular)
(cc-mode :version 1.21 :type regular)
(calendar :version 1.15 :type regular)
(calc :version 1.13 :type regular)
(c-support :version 1.15 :type single-file)
(bbdb :version 1.1 :type regular)
(auctex :version 1.22 :type regular)
(apel :version 1.19 :type regular)
(ada :version 1.09 :type regular)
(Sun :version 1.12 :type regular))
Features:
--------
(xemacsbug shadow cc-mode cc-cmds cc-align cc-engine cc-langs
cc-styles cc-vars cc-menus imenu cc-defs package-ui package-get
package-admin config info vm-menu vm-reply vm-misc vm-mouse vm-window
add-log ediff-merg ediff-diff ediff-tbar ediff-wind ediff-help
ediff-util ediff-mult ediff-init ediff view-less view lazy-shot ispell
savehist vm-autoload vm-vars vm-startup vm-version vm atomic-extents
tex-site mail-abbrevs sendmail efs-cu paren blink-paren rsz-minibuf vc
ring vc-hooks font-lock cus-face advice advice-preload gnuserv
zenirc-autoloads xemacs-devel-autoloads xemacs-base-autoloads
w3-autoloads vm-autoloads viper-autoloads view-process-autoloads
vhdl-autoloads vc-cc-autoloads vc-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 slider-autoloads sh-script-autoloads
sgml-autoloads semantic-autoloads scheme-autoloads rmail-autoloads
reftex-autoloads psgml-autoloads ps-print-nomule-autoloads
prog-modes-autoloads pcl-cvs-autoloads pc-autoloads os-utils-autoloads
net-utils-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
hm--html-menus-autoloads gnus-autoloads gnats-autoloads
games-autoloads fsf-compat-autoloads frame-icon-autoloads
forms-autoloads footnote-autoloads eudc-autoloads eterm-autoloads
emerge-autoloads elib-autoloads eicq-autoloads efs-autoloads
edt-autoloads edit-utils-autoloads ediff-autoloads edebug-autoloads
dired-autoloads debug-autoloads crisp-autoloads cookie-autoloads
cc-mode-autoloads calendar-autoloads calc-autoloads
c-support-autoloads bbdb-autoloads auctex-autoloads apel-autoloads
ada-autoloads Sun-autoloads Standard-autoloads loadhist auto-show
fontl-hooks x-iso8859-1 menubar-items x-menubar mouse mode-motion
itimer auto-save lisp-mode easymenu iso8859-1 page buff-menu
lib-complete help-nomule derived frame text-props cus-start custom
widget cl-extra mini-cl cl cl-19 packages backquote very-early-lisp
lucid-scrollbars cut-buffer lucid-menubars xface athena-dialogs x
tty-frames tty toolbar native-sound scrollbar unix-processes multicast
network-streams subprocesses menubar berkeley-db md5 xemacs tiff png
gif jpeg xpm lisp-float-type linux dialog devices window-system
c-balloon-help)
Recent keystrokes:
-----------------
s TAB t - p TAB a TAB RET C-s n e t left M-< C-s c
c right C-\ v c c TAB TAB TAB RET q C-x C-f BS BS BS
BS BS BS BS BS BS BS BS BS BS BS BS BS BS BS BS BS
BS BS BS BS BS BS BS BS BS BS BS BS BS BS BS BS BS
BS BS BS BS BS BS BS BS BS BS BS BS BS BS BS ~ / t
. C RET C-\ l C-x 0 C-\ v c c TAB TAB C-g misc-use
r
Recent messages (most recent first):
-----------------------------------
Loading xemacsbug...done
Quit
Loading xemacsbug...
Making completion list...
Loading cc-mode...done
Loading cc-mode...
Creating package list ...
Updated package-get database
Got 80 package-get database entries
Loading package-ui...done
Loading package-ui...
Making completion list...
Making completion list...
nil
jb
Wrote /sumatra/bjacob/backup/work_home_common_files_cvs_module/.emacs
3
jb
Wrote /sumatra/bjacob/backup/work_home_common_files_cvs_module/.emacs
1