================================================================
Dear Bug Team!
I believe setenv, called interactively (as described in the Recent
keystrokes) section is broken when non-alphabetic characters are typed
into the mini-buffer to set an environment variable value. When such
keys are typed, I get the error message detailed in "Recent messages
(most recent first)" section:
Wrong type argument: vectorp, "perforce:1666"
Setting the target environment variable name through the mini-buffer
seems fine though.
I believe I know where the problem lies. So, I had a quick look through
CVS to see if it has already been fixed. The two lisp files involved in
the error have not changed between b23 and b24, so I guess it's a
current problem.
I believe the code in error is in the xemacs lisp library file,
process.el. Follows a snip starting from process.el:583:
;; Here finally we specify the args to call setenv with.
(list var (read-from-minibuffer (format "Set %s to value: " var)
nil nil nil 'setenv-history
(getenv var))))))
Note carefully the arguments to read-from-minibuffer. Follows a snip
starting from minibuf:345:
(defun read-from-minibuffer (prompt &optional initial-contents
keymap
readp
history
abbrev-table
default)
counting of the arguments:
(format...) -> prompt
nil -> initial-contents
nil -> keymap
nil -> readp
'setenv-history -> history
(getenv...) -> abbrev-table (I believe this is the root cause)
-> default (and it seems logical that the value of
(getebv var) should be the default)
I hope this helps... but I do have one further comment. Are you sure
about the rational of adding the setenv function to process.el? It used
to exists *solely* in env.el out of xemacs-base as far as I know.
Now I have it multiply defined. One rationale that plays out in my head
is that setenv is a pretty core operation, so that if your packages were
broken or unavailable, it should still find them out of the xemacs core
installation.
If my rationale is right, please confirm that setenv is left in
xemacs-base for backwards compatibility?
Regards,
Shaddy
PS: Please honour my reply-to.
================================================================
System Info to help track down your bug:
---------------------------------------
uname -a: CYGWIN_NT-5.1 vzell-de 1.5.19s(0.138/4/2) 20050929 12:58:53
i686 unknown unknown Cygwin
/usr/src/xemacs-21.5.23/configure '--srcdir=/usr/src/xemacs-21.5.23'
'--prefix=/usr' '--datadir=/usr/share' '--with-statedir=/var'
'--libdir=/usr/lib' '--infodir=/usr/share/xemacs-21.5-b23/info'
'--mandir=/usr/share/man/man1'
'--with-package-path=/usr/local/share/xemacs/site-packages:/usr/share/xemacs/site-packages:/usr/share/xemacs/xemacs-packages:/usr/share/xemacs/mule-packages'
'--enable-mule' '--with-msw=yes' '--enable-modules=no'
'--with-dragndrop=no' '--enable-bignum=gmp' '--with-athena=3d'
'CPPFLAGS='
XEmacs 21.5-b23 "daikon" configured for `i686-pc-cygwin'.
Compilation Environment and Installation Defaults:
Source code location: /usr/src/xemacs-21.5.23
Installation prefix: /usr
Operating system description file: `s/cygwin32.h'
Machine description file: `m/intel386.h'
Compiler version: gcc (GCC) 3.4.4 (cygming special)
(gdc 0.12, using dmd 0.125)
- GCC specs file: /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
- Compiler command: gcc -Wall -Wno-switch -Wundef
-Wsign-compare -Wno-char-subscripts -Wpacked -Wpointer-arith
-Wunused-parameter -g
libc version:
Relocating allocator for buffers: no
GNU version of malloc: yes
Window System:
Compiling in support for the Microsoft window system.
Compiling in support for the X window system:
- X Windows headers location: /usr/X11/include
- X Windows libraries location: /usr/X11R6/lib
- Handling WM_COMMAND properly.
Compiling in support for the Athena widget set:
- Athena headers location: X11/Xaw3d
- Athena library to link: Xaw3d
Using Lucid menubars.
Using Lucid scrollbars.
Using Athena dialog boxes.
Using Athena native widgets.
TTY:
Compiling in support for ncurses.
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 Berkeley database.
Compiling in support for LDAP.
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).
Compiling in support for XIM (X11R5+ I18N input method).
- Using raw Xlib to provide XIM support.
Mail:
Compiling in support for POP mail retrieval.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for more number types using the GNU MP library.
Using the new GC algorithms.
WARNING: ---------------------------------------------------------
WARNING: The new algorithms are experimental. They are enabled by
WARNING: default for this release. Use `--disable-kkcc' to
WARNING: turn it off.
WARNING: ---------------------------------------------------------
Using the new allocator.
WARNING: ---------------------------------------------------------
WARNING: The new allocator is experimental. It is enabled by
WARNING: default for this release. Use `--disable-mc-alloc' to
WARNING: turn it off.
WARNING: ---------------------------------------------------------
Using the new portable dumper.
Compiling in support for extra debugging code.
Compiling in support for runtime error checking.
WARNING: ---------------------------------------------------------
WARNING: XEmacs will run noticeably more slowly as a result.
WARNING: Error checking is on by default for XEmacs beta releases.
WARNING: ---------------------------------------------------------
Load-Path Lisp Shadows:
----------------------
(~/.xemacs21.modules/p4
/cygdrive/e/sw-xemacs21/xemacs-packages/lisp/prog-modes/p4
/cygdrive/e/sw-xemacs21/xemacs-packages/lisp/xemacs-base/regexp-opt
/usr/share/xemacs-21.5-b23/lisp/regexp-opt
/cygdrive/e/sw-xemacs21/xemacs-packages/lisp/xemacs-base/easy-mmode
/usr/share/xemacs-21.5-b23/lisp/easy-mmode
/cygdrive/e/sw-xemacs21/xemacs-packages/lisp/build/build-report
/usr/share/xemacs-21.5-b23/lisp/build-report)
Installed XEmacs Packages:
-------------------------
(xemacs-devel ver: 1.72 upstream: No-Upstream-Ver)
(xemacs-base ver: 2.0 upstream: No-Upstream-Ver)
(w3 ver: 1.31 upstream: 4.0pre47)
(vm ver: 7.22 upstream: 7.17)
(vc-cc ver: 1.22 upstream: No-Upstream-Ver)
(vc ver: 1.41 upstream: No-Upstream-Ver)
(textools ver: 1.15 upstream: No-Upstream-Ver)
(text-modes ver: 1.9 upstream: No-Upstream-Ver)
(texinfo ver: 1.3 upstream: No-Upstream-Ver)
(speedbar ver: 1.28 upstream: 0.14beta4)
(sh-script ver: 1.21 upstream: 2.0f)
(sgml ver: 1.11 upstream: No-Upstream-Ver)
(semantic ver: 1.19 upstream: 1.4.2)
(python-modes ver: 1.06 upstream: No-Upstream-Ver)
(psgml-dtds ver: 1.03 upstream: No-Upstream-Ver)
(psgml ver: 1.44 upstream: 1.3.1)
(ps-print ver: 1.11 upstream: 6.5.6)
(prog-modes ver: 2.06 upstream: No-Upstream-Ver)
(pgg ver: 1.06 upstream: 0.1)
(perl-modes ver: 1.08 upstream: No-Upstream-Ver)
(pcomplete ver: 1.04 upstream: 1.1.6)
(pcl-cvs ver: 1.66 upstream: R-2_9_9)
(os-utils ver: 1.36 upstream: No-Upstream-Ver)
(net-utils ver: 1.48 upstream: N/A)
(mmm-mode ver: 1.02 upstream: 0.4.7)
(mailcrypt ver: 2.14 upstream: 3.5.8)
(mail-lib ver: 1.75 upstream: No-Upstream-Ver)
(jde ver: 1.48 upstream: 2.3.2)
(ispell ver: 1.32 upstream: 3.6)
(ilisp ver: 1.33 upstream: 5.12.0)
(igrep ver: 1.14 upstream: 2.111)
(hm--html-menus ver: 1.23 upstream: 5.9)
(gnus ver: 1.87 upstream: 5.10.7)
(gnats ver: 1.17 upstream: 3.101)
(general-docs ver: 1.04 upstream: No-Upstream-Ver)
(fsf-compat ver: 1.15 upstream: No-Upstream-Ver)
(forms ver: 1.15 upstream: 2.37)
(eudc ver: 1.39 upstream: 1.32)
(eterm ver: 1.17 upstream: No-Upstream-Ver)
(eshell ver: 1.1 upstream: 2.4.1)
(escreen ver: 1.01 upstream: 1.16)
(emerge ver: 1.11 upstream: No-Upstream-Ver)
(emacs-wiki ver: 2.7 upstream: 2.70)
(elib ver: 1.11 upstream: 1.0)
(eieio ver: 1.05 upstream: 0.17)
(egg-its ver: 1.27 upstream: No-Upstream-Ver)
(efs ver: 1.33 upstream: 1.23)
(edt ver: 1.13 upstream: No-Upstream-Ver)
(edit-utils ver: 2.32 upstream: No-Upstream-Ver)
(ediff ver: 1.6 upstream: 2.75)
(edict ver: 1.16 upstream: 0.9.9)
(edebug ver: 1.21 upstream: No-Upstream-Ver)
(ecrypto ver: 0.2 upstream: 2.0)
(ecb ver: 1.22 upstream: 2.31)
(docbookide ver: 0.07000000000000001 upstream: 0.1)
(dired ver: 1.17 upstream: 7.13)
(dictionary ver: 1.16 upstream: 1.8)
(debug ver: 1.17 upstream: No-Upstream-Ver)
(crisp ver: 1.15 upstream: 1.34)
(cookie ver: 1.15 upstream: No-Upstream-Ver)
(clearcase ver: 1.1 upstream: /main/laptop/165)
(cc-mode ver: 1.45 upstream: 5.30.10)
(calendar ver: 1.23 upstream: No-Upstream-Ver)
(calc ver: 1.26 upstream: 2.02fX3)
(c-support ver: 1.22 upstream: No-Upstream-Ver)
(build ver: 1.14 upstream: 2.02)
(bbdb ver: 1.29 upstream: 2.34)
(auctex ver: 1.46 upstream: 11.55)
(apel ver: 1.32 upstream: 10.6)
(ada ver: 1.14 upstream: 2.27)
(Sun ver: 1.16 upstream: No-Upstream-Ver)
Features:
--------
(mail-abbrevs xemacsbug shadow sendmail rfc822 font-lock psvn cus-face
overlay p4 cc-styles cc-align cc-engine cc-vars cc-defs regexp-opt
autoinsert xemacs-devel-autoloads xemacs-base-autoloads w3-autoloads
vm-autoloads vc-cc-autoloads vc-autoloads textools-autoloads
text-modes-autoloads texinfo-autoloads speedbar-autoloads
sh-script-autoloads sgml-autoloads semantic-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
os-utils-autoloads net-utils-autoloads mmm-mode-autoloads
mailcrypt-autoloads mail-lib-autoloads jde-autoloads ispell-autoloads
ilisp-autoloads igrep-autoloads hm--html-menus-autoloads
gnus-autoloads gnats-autoloads general-docs-autoloads
fsf-compat-autoloads forms-autoloads eudc-autoloads eterm-autoloads
eshell-autoloads escreen-autoloads emerge-autoloads
emacs-wiki-autoloads elib-autoloads eieio-autoloads egg-its-autoloads
efs-autoloads edt-autoloads edit-utils-autoloads ediff-autoloads
edict-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 Sun-autoloads mule-autoloads
auto-autoloads loadhist rsz-minibuf auto-show fontl-hooks canna-leim
tibetan lao devanagari indian slovenian czech romanian ccl code-cmds
gutter-items menubar-items x-menubar mode-motion mouse behavior itimer
auto-save lisp-mode easymenu easy-mmode iso8859-1 page buff-menu
lib-complete cus-file derived newcomment env text-props frame obsolete
cus-start custom widget cl-extra cl cl-19 packages backquote
postgresqlv7 postgresql eldap unicode mswindows-scrollbars mswindows
lucid-scrollbars cut-buffer lucid-menubars athena-dialogs x
c-balloon-help tty-frames tty toolbar native-sound scrollbar
unix-processes multicast network-streams subprocesses bigfloat ratio
bignum number-types menu-accelerator-support menubar berkeley-db md5
xemacs xim mule gutter tiff png gif jpeg xface xpm xbm lisp-float-type
file-coding cygwin32 dialog devices window-system base64)
Recent keystrokes:
-----------------
RET M-x s e t e TAB RET P 4 P O R T RET l o c a l h
o s t " C-g M-x r e p o TAB r TAB e TAB RET
Recent messages (most recent first):
-----------------------------------
Auto save file for draft message exists; consider M-x mail-recover
Warning:
Defaulting to the GNU Emacs-derived `sendmail.el' mail client. This
facility,
while part of base XEmacs, is heinously underfeatured, and not going to get
better in the medium term. We include it so that bug reports work without
packages; we suggest that you choose and/or install one of the other mail
clients from packages if you're doing something other than M-x
report-xemacs-bug , or even if you are reporting bugs regularly.
To choose a package from those installed, click on "Options" ->
"Internet" -> "Compose Mail With ..." and decide on one from the
list. Gnus and VM are full-featured and have active user communities.
To disable this warning and stick with the old behavior, you can explicitly
initialize `mail-user-agent' to 'sendmail-user-agent .
Loading xemacsbug...done
Loading xemacsbug...
Making completion list...
Quit
Wrong type argument: vectorp, "perforce:1666"
Loading /cygdrive/d/home/shaddy/.emacsen.el...done
Loading cus-face...done
Loading cus-face...
Loading cc-styles...done
Loading cc-styles...
Loading autoinsert...done
Loading autoinsert...
Loading /cygdrive/d/home/shaddy/.emacsen.el...