================================================================
Dear Bug Team!
I don't know what set of changes introduced the problem, but I noticed
recently that when I visit a longish Python file it takes a long while for
XEmacs to settle down. It quickly scans the entire buffer for syntax
highlighting purposes but then it goes into a long cycle of flashing the
watch cursor while it thinks about and computes something. I enabled
debug-on-quit and killed it the next time that happened. It appeared to be
doing some function menu initialization. I reloaded the file
(find-alternate-file) and let it complete this time then looked at the
Functions menu (which I had never paid any attention to before). It had the
docstring from the start of the file listed as the first "function".
Hmmm...
At any rate, here's what I did to reveal the problem:
(add-hook 'find-file-hooks 'fume-setup-buffer)
(add-hook 'Manual-mode-hook 'turn-on-fume-mode)
Restart XEmacs, then visit a largish Python file. My candidate was the
os.py module in my Python sandbox. The Subversion trunk version currently
starts with this (indented here to highlight it):
r"""OS routines for Mac, NT, or Posix depending on what system
we're on.
This exports:
- all functions from posix, nt, os2, or ce, e.g. unlink, stat, etc.
- os.path is one of the modules posixpath, or ntpath
- os.name is 'posix', 'nt', 'os2', 'ce' or
'riscos'
- os.curdir is a string representing the current directory ('.' or
':')
- os.pardir is a string representing the parent directory ('..' or
'::')
- os.sep is the (or a most common) pathname separator ('/' or ':' or
'\\')
- os.extsep is the extension separator ('.' or '/')
- os.altsep is the alternate pathname separator (None or '/')
- os.pathsep is the component separator used in $PATH etc
- os.linesep is the line separator in text files ('\r' or '\n' or
'\r\n')
- os.defpath is the default search path for executables
- os.devnull is the file path of the null device ('/dev/null', etc.)
Programs that import and use 'os' stand a better chance of being
portable between different platforms. Of course, they must then
only use functions that are defined by all platforms (e.g., unlink
and opendir), and leave all pathname manipulation to os.path
(e.g., split and join).
"""
#'
import sys, errno
_names = sys.builtin_module_names
# Note: more names are added to __all__ later.
__all__ = ["altsep", "curdir", "pardir",
"sep", "extsep", "pathsep", "linesep",
"defpath", "name", "path",
"devnull",
"SEEK_SET", "SEEK_CUR", "SEEK_END"]
I wonder if fume mode gets confused by Python's docstrings. I'm using the
just-released version 5.0.0 of python-mode. I checked it into the
xemacs-packages CVS repo yesterday, so it should soon be available for
everyone (or you can grab it from Launchpad:
https://launchpad.net/python-mode
--
Skip Montanaro - skip(a)pobox.com -
http://smontanaro.dyndns.org/
================================================================
System Info to help track down your bug:
---------------------------------------
uname -a: Darwin montanaro-dyndns-org.local 9.2.0 Darwin Kernel Version 9.2.0: Tue Feb 5
16:13:22 PST 2008; root:xnu-1228.3.13~1/RELEASE_I386 i386
./configure '--prefix=/Users/skip/local' '--with-optimization'
'--without-error-checking' 'LDFLAGS=-L/opt/local/lib'
'CPPFLAGS=-I/opt/local/include' '--with-jpeg'
XEmacs 21.5-b28 "fuki" configured for `i686-apple-darwin9.2.0'.
Compilation Environment and Installation Defaults:
Source code location: /Users/skip/src/xemacs-21.5.28
Installation prefix: /Users/skip/local
Operating system description file: `s/darwin.h'
Not using any machine description file
Compiler version: i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc.
build 5465)
- GCC specs file: specs.
- Compiler command: gcc -Wall -Wno-switch -Wundef -Wsign-compare
-Wno-char-subscripts -Wpacked -Wpointer-arith -Wunused-parameter -g -O3
libc version:
Relocating allocator for buffers: no
GNU version of malloc: no
- The GNU allocators don't work with this system configuration.
Window System:
Compiling in support for the X window system:
- X Windows headers location: /usr/X11/include
- X Windows libraries location: /usr/X11/lib
- Handling WM_COMMAND properly.
Compiling in support for the Athena widget set:
- Athena headers location: X11/Xaw
- Athena library to link: Xaw
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.
Sound:
Databases:
Compiling in support for Berkeley database.
Compiling in support for GNU DBM.
Compiling in support for LDAP.
Internationalization:
Mail:
Compiling in support for "file" mail spool file locking method.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for dynamic shared object modules.
Using the new GC mark algorithms (KKCC).
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 portable dumper.
Dumping into executable.
Compiling in support for extra debugging code.
Load-Path Lisp Shadows:
----------------------
(/Users/skip/emacs/pymacs /Users/skip/local/lib/xemacs/site-lisp/pymacs
/Users/skip/emacs/po-mode /Users/skip/local/lib/xemacs/site-lisp/po-mode
/Users/skip/emacs/macedit
/Users/skip/local/lib/xemacs/xemacs-packages/lisp/calc/macedit
/Users/skip/emacs/pdb
/Users/skip/local/lib/xemacs/xemacs-packages/lisp/debug/pdb
/Users/skip/emacs/tempo
/Users/skip/local/lib/xemacs/xemacs-packages/lisp/edit-utils/tempo
/Users/skip/emacs/python-mode
/Users/skip/local/lib/xemacs/xemacs-packages/lisp/python-modes/python-mode
/Users/skip/local/lib/xemacs/xemacs-packages/lisp/cedet-common/working
/Users/skip/local/lib/xemacs/xemacs-packages/lisp/semantic/working
/Users/skip/local/lib/xemacs/xemacs-packages/lisp/cedet-common/sformat
/Users/skip/local/lib/xemacs/xemacs-packages/lisp/semantic/sformat
/Users/skip/emacs/slider
/Users/skip/local/lib/xemacs/xemacs-packages/lisp/slider/slider
/Users/skip/emacs/po-mode
/Users/skip/local/lib/xemacs/xemacs-packages/lisp/text-modes/po-mode
/Users/skip/local/lib/xemacs/site-lisp/po-compat
/Users/skip/local/lib/xemacs/xemacs-packages/lisp/text-modes/po-compat
/Users/skip/emacs/vm-sort
/Users/skip/local/lib/xemacs/xemacs-packages/lisp/vm/vm-sort
/Users/skip/emacs/imenu
/Users/skip/local/lib/xemacs/xemacs-packages/lisp/xemacs-base/imenu
/Users/skip/emacs/ffap
/Users/skip/local/lib/xemacs/xemacs-packages/lisp/xemacs-base/ffap
/Users/skip/local/lib/xemacs/xemacs-packages/lisp/xemacs-base/regexp-opt
/Users/skip/local/lib/xemacs-21.5-b28/lisp/regexp-opt
/Users/skip/emacs/isearch-mode
/Users/skip/local/lib/xemacs-21.5-b28/lisp/isearch-mode
/Users/skip/local/lib/xemacs/xemacs-packages/lisp/xemacs-base/easy-mmode
/Users/skip/local/lib/xemacs-21.5-b28/lisp/easy-mmode
/Users/skip/local/lib/xemacs/xemacs-packages/lisp/build/build-report
/Users/skip/local/lib/xemacs-21.5-b28/lisp/build-report)
Internationalization Settings:
-------------------------
Installed XEmacs Packages:
-------------------------
(zenirc ver: 1.16 upstream: 2.112)
(xwem ver: 1.22 upstream: lg(a)xwem.org--2005/xwem--main--2.1--versionfix-1)
(xslt-process ver: 1.12 upstream: 1.2.1)
(xslide ver: 1.09 upstream: 0.2.2)
(xlib ver: 1.14 upstream: lg(a)xwem.org--2005/xlib--main--2.1--version-0)
(xemacs-devel ver: 1.78 upstream: No-Upstream-Ver)
(xemacs-base ver: 2.17 upstream: No-Upstream-Ver)
(x-symbol ver: 1.1 upstream: 4.5.1)
(w3 ver: 1.34 upstream: 4.0pre47)
(vm ver: 7.26 upstream: 7.19)
(viper ver: 1.63 upstream: 3.09)
(view-process ver: 1.13 upstream: 2.4)
(vhdl ver: 1.22 upstream: 3.33.12)
(vc ver: 1.45 upstream: No-Upstream-Ver)
(tramp ver: 1.4 upstream: 2.0.56)
(tpu ver: 1.14 upstream: 4.2X)
(tm ver: 1.38 upstream: No-Upstream-Ver)
(time ver: 1.14 upstream: 1.17)
(textools ver: 1.15 upstream: No-Upstream-Ver)
(text-modes ver: 1.95 upstream: No-Upstream-Ver)
(texinfo ver: 1.3 upstream: No-Upstream-Ver)
(supercite ver: 1.21 upstream: 3.55x3)
(strokes ver: 1.1 upstream: No-Upstream-Ver)
(speedbar ver: 1.29 upstream: 1.0pre4)
(slider ver: 1.15 upstream: 0.3x1)
(sieve ver: 1.18 upstream: No-Upstream-Ver)
(sh-script ver: 1.24 upstream: 2.0f)
(sgml ver: 1.11 upstream: No-Upstream-Ver)
(semantic ver: 1.2 upstream: 1.4.4)
(scheme ver: 1.17 upstream: No-Upstream-Ver)
(ruby-modes ver: 1.02 upstream: 1.6.8)
(rmail ver: 1.14 upstream: No-Upstream-Ver)
(riece ver: 1.23 upstream: 3.1.2)
(reftex ver: 1.34 upstream: 4.21)
(re-builder ver: 1.05 upstream: 1.20)
(python-modes ver: 1.1 upstream: 426)
(psgml ver: 1.45 upstream: 1.3.2)
(ps-print ver: 1.12 upstream: 6.5.6)
(prog-modes ver: 2.16 upstream: No-Upstream-Ver)
(pgg ver: 1.06 upstream: 0.1)
(perl-modes ver: 1.14 upstream: No-Upstream-Ver)
(pcomplete ver: 1.04 upstream: 1.1.6)
(pcl-cvs ver: 1.68 upstream: R-2_9_9)
(pc ver: 1.28 upstream: No-Upstream-Ver)
(os-utils ver: 1.4 upstream: No-Upstream-Ver)
(oo-browser ver: 1.05 upstream: 4.08)
(ocaml ver: 0.06 upstream: 3.06)
(net-utils ver: 1.56 upstream: N/A)
(mine ver: 1.16 upstream: 1.9)
(mh-e ver: 1.31 upstream: 7.4.2)
(mew ver: 1.19 upstream: 1.94.2)
(mailcrypt ver: 2.14 upstream: 3.5.8)
(mail-lib ver: 1.79 upstream: No-Upstream-Ver)
(liece ver: 1.15 upstream: 1.4.9)
(jde ver: 1.51 upstream: 2.3.5.1)
(ispell ver: 1.32 upstream: 3.6)
(ilisp ver: 1.34 upstream: 5.12.0)
(igrep ver: 1.16 upstream: 2.111)
(idlwave ver: 1.32 upstream: 5.1)
(ibuffer ver: 1.09 upstream: No-Upstream-Ver)
(hyperbole ver: 1.17 upstream: 5.0)
(hm--html-menus ver: 1.24 upstream: 5.9)
(haskell-mode ver: 1.11 upstream: 2.1)
(guided-tour ver: 0.52 upstream: No-Upstream-Ver)
(gnus ver: 1.93 upstream: 5.10.8)
(gnats ver: 1.17 upstream: 3.101)
(games ver: 1.17 upstream: 1.04)
(fsf-compat ver: 1.17 upstream: No-Upstream-Ver)
(fortran-modes ver: 1.05 upstream: No-Upstream-Ver)
(forms ver: 1.15 upstream: 2.37)
(footnote ver: 1.16 upstream: 0.18x)
(eudc ver: 1.4 upstream: 1.32)
(eterm ver: 1.17 upstream: No-Upstream-Ver)
(ess ver: 1.16 upstream: 5.2.7)
(eshell ver: 1.12 upstream: 2.4.1)
(escreen ver: 1.01 upstream: 1.16)
(emerge ver: 1.11 upstream: No-Upstream-Ver)
(eieio ver: 1.06 upstream: 1.0pre4)
(efs ver: 1.34 upstream: 1.24)
(edt ver: 1.14 upstream: No-Upstream-Ver)
(edit-utils ver: 2.38 upstream: No-Upstream-Ver)
(ediff ver: 1.75 upstream: 2.75)
(edebug ver: 1.22 upstream: No-Upstream-Ver)
(ede ver: 1.0 upstream: 1.0pre4)
(ecrypto ver: 0.2 upstream: 2.0)
(ecb ver: 1.22 upstream: 2.31)
(easypg ver: 1.02 upstream: 0.0.16)
(docbookide ver: 0.08 upstream: 0.1)
(dired ver: 1.19 upstream: 7.16)
(dictionary ver: 1.16 upstream: 1.8)
(debug ver: 1.18 upstream: No-Upstream-Ver)
(cookie ver: 1.15 upstream: No-Upstream-Ver)
(cogre ver: 1.0 upstream: 0.5)
(clearcase ver: 1.1 upstream: /main/laptop/165)
(cedet-common ver: 1.01 upstream: 1.0pre4)
(calendar ver: 1.36 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.32 upstream: 2.35)
(auctex ver: 1.48 upstream: 11.55)
(apel ver: 1.33 upstream: 10.6)
(ada ver: 1.14 upstream: 2.27)
Installed Modules:
-----------------
Features:
--------
(mail-abbrevs vm-menu vm-reply vm-misc vm-summary vm-mouse vm-window
vm-delete vm-autoload vm-vars highlight-headers vm-version vm vm-startup
xemacsbug shadow sendmail find-func python-mode info-look overlay info
ansi-color compile lazy-lock guided-tour paren blink-paren gnuserv efs-dired
dired-faces dired-xemacs dired font-lock cus-face complete mailcrypt rfc822
timezone supercite mail-extr regi filladapt edmacro tramp-smb tramp
regexp-opt executable advice advice-preload shell password format-spec
timer-funcs trampver efs-x19.15 efs-fnh efs-ovwrt efs-cu efs-netrc efs-defun
comint ring efs zenirc-autoloads xwem-autoloads xslt-process-autoloads
xslide-autoloads xlib-autoloads xetla-autoloads xemacs-devel-autoloads
xemacs-base-autoloads x-symbol-autoloads w3-autoloads vm-autoloads
viper-autoloads view-process-autoloads vhdl-autoloads vc-autoloads
tramp-autoloads tpu-autoloads tm-autoloads time-autoloads textools-autoloads
text-modes-autoloads texinfo-autoloads supercite-autoloads strokes-autoloads
speedbar-autoloads slider-autoloads sieve-autoloads sh-script-autoloads
sgml-autoloads semantic-autoloads scheme-autoloads ruby-modes-autoloads
rmail-autoloads riece-autoloads reftex-autoloads re-builder-autoloads
python-modes-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 misc-games-autoloads mine-autoloads
mh-e-autoloads mew-autoloads mailcrypt-autoloads mail-lib-autoloads
liece-autoloads jde-autoloads ispell-autoloads ilisp-autoloads
igrep-autoloads idlwave-autoloads ibuffer-autoloads hyperbole-autoloads
hm--html-menus-autoloads haskell-mode-autoloads guided-tour-autoloads
gnus-autoloads gnats-autoloads games-autoloads fsf-compat-autoloads
fortran-modes-autoloads forms-autoloads footnote-autoloads eudc-autoloads
eterm-autoloads ess-autoloads eshell-autoloads escreen-autoloads
erc-autoloads emerge-autoloads eieio-autoloads efs-autoloads edt-autoloads
edit-utils-autoloads ediff-autoloads edebug-autoloads ecrypto-autoloads
ecb-autoloads easypg-autoloads docbookide-autoloads dired-autoloads
dictionary-autoloads debug-autoloads cookie-autoloads cogre-autoloads
clearcase-autoloads cedet-common-autoloads cc-mode-autoloads
calendar-autoloads calc-autoloads c-support-autoloads build-autoloads
bbdb-autoloads auctex-autoloads apel-autoloads ada-autoloads
modules-autoloads auto-autoloads auto-show fontl-hooks 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 loadhist cus-file derived newcomment rsz-minibuf env text-props
frame obsolete cus-start custom widget cl-extra cl cl-19 packages backquote
unicode lucid-scrollbars cut-buffer lucid-menubars athena-dialogs x
c-balloon-help tty-frames tty toolbar scrollbar unix-processes multicast
network-streams subprocesses modules menu-accelerator-support menubar
berkeley-db dbm md5 xemacs gutter tiff png gif jpeg xpm xbm lisp-float-type
file-coding darwin dialog devices window-system base64)
Recent keystrokes:
-----------------
C-x C-f s r c / p y t h o n / t r u n k TAB L i b /
o s . p y RET C-x 1 ESC x f i n d - f u n c TAB RET
f u m e - m o d e RET ESC < C-v C-v C-v C-v M-x r e
p o TAB r TAB x e TAB RET
Recent messages (most recent first):
-----------------------------------
Parsing /Users/skip/.mailrc... done
Parsing /Users/skip/.mailrc...
Loading mail-abbrevs...done
Loading mail-abbrevs...
Loading vm-menu...done
Loading vm-menu...
Loading vm-reply...done
Loading vm-reply...
Loading vm-misc...done
Loading vm-misc...
Loading vm-summary...done
Loading vm-summary...
Loading vm-mouse...done
Loading vm-mouse...
Loading vm-window...done
Loading vm-window...
Loading vm-startup...done
Loading vm-startup...
Loading xemacsbug...done
Loading xemacsbug...
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta