================================================================
Dear Bug Team!
If I invoke XEmacs 21.4.12 with the command
xemacs -q -l .emacs.lite -nw
with the file ".emacs.lite" consisting of
-----------------------------------------------------------------
(add-hook 'text-mode-hook (function (lambda ()
(goto-char (point-min))
(search-forward "\n\^_" nil t)
(narrow-to-region
(point) (point-max)))))
-----------------------------------------------------------------
then do M-x toggle-debug-on-error, and then invoke C-h i, I get the
following *Backtrace*
-----------------------------------------------------------------
Signaling: (search-failed "")
search-forward("")
byte-code("..." [Info-dir-newer-info-files dir-full-contents buffer-read-only
dir-section-contents mark next-section nil search-forward "" re-search-forward
"^\\* Menu:.*$" t "^\\* " 0 throw done Info-parse-dir-entries
"^[^* ].*:[ ]*$" mapcar #<compiled-function (file) "...(67)"
[dir-full-contents not-first-section dir-entry file file-dir-entry dir-section-contents
assoc file-name-sans-extension file-name-nondirectory Info-extract-dir-entry-from dummy
capitalize ":" Info-no-description-string] 5> Info-dump-dir-entries
not-first-section] 4)
Info-rebuild-dir("/afs/fnal.gov/files/tww/live/5.2/@sys/xemacs214/in...
Info-maybe-update-dir("/afs/fnal.gov/files/tww/live/5.2/@sys/xemacs2...
Info-insert-dir()
Info-find-file-node("/opt/TWWfsw/xemacs214/info/dir" "top" nil nil
nil)
Info-find-node("dir" "top")
Info-directory()
#<compiled-function (&optional file) "...(82)" [command-line-args-left
command-line-args Info-standalone file p string-match "^-[fe]" "info"
t 3 "^-" 2 nil (...) Info-goto-node "(" ")" get-buffer
"*info*" switch-to-buffer Info-directory] 5
("/opt/TWWfsw/xemacs214/lib/xemacs-21.4.12/lisp/info.elc" . 9567) (byte-code
"ÁÂÃÄ$C" [current-prefix-arg read-file-name "Info file name: "
nil t] 5)>()
call-interactively(info)
-----------------------------------------------------------------
My suggested solution is the following patch:
diff -u info.el $SCR/wehmann/info.el
--- info.el Tue Aug 20
06:34:47 2002
+++ /usr/scratch/sect1/wehmann/info.el Sat Dec 13 15:16:56 2003
@@ -1262,8 +1262,9 @@
(message "Rebuilding %s..." file))
(catch 'done
(setq buffer-read-only nil)
+ (widen)
(goto-char (point-min))
- (unless (and (search-forward "\^_")
+ (unless (and (search-forward "\^_" nil t)
(re-search-forward "^\\* Menu:.*$" nil t)
(setq mark (and (re-search-forward "^\\* " nil t)
(match-beginning 0))))
-----------------------------------------------------------------
I discussed this on newsgroup "comp.emacs.xemac" with Adrian Aichner
on August 5 & 6, 2002. He suggested a bug report. That was with
XEmacs 21.4.8. Now that I encounter the same thing with XEmacs
21.4.12 I am motivated to make the bug report.
The text-mode-hook addition I picked up somewhere as a device to hide
"-*-text-*-" at the start of some of my files that aren't put into
text-mode by having ".txt" or the like in their file names (i.e. by
use of "auto-mode-alist").
================================================================
System Info to help track down your bug:
---------------------------------------
uname -a: SunOS gax 5.8 Generic_108528-16 sun4u sparc SUNW,Ultra-2
./configure '--cflags=-mr -Qn -xO2 -xtarget=generic -xarch=v8'
'--compiler=cc' '--dynamic=yes' '--with-pop' '--with-mule'
'--with-database=berkdb' '--with-site-lisp=yes'
'--with-menubars=lucid' '--with-scrollbars=lucid'
'--error-checking=none' '--debug=no' '--memory-usage-stats=no'
'--without-modules' '--with-sound=none'
'--infodir=/opt/TWWfsw/xemacs214/info'
'--infopath=/opt/info:/opt/TWWfsw/info:/usr/local/info:/usr/info:/opt/TWWfsw/xemacs214p/packages/info:/opt/TWWfsw/xemacs214p/xemacs-packages/info'
'--site-prefixes=/opt/TWWfsw/ncurses5 /opt/TWWfsw/xpm /opt/TWWfsw/jpeg
/opt/TWWfsw/libtiff35 /opt/TWWfsw/libpng12 /opt/TWWfsw/zlib11 /opt/TWWfsw/libdb31'
'--site-runtime-libraries=/opt/TWWfsw/ncurses5/lib /opt/TWWfsw/xpm/lib
/opt/TWWfsw/jpeg/lib /opt/TWWfsw/libtiff35/lib /opt/TWWfsw/libpng12/lib
/opt/TWWfsw/zlib11/lib /opt/TWWfsw/libdb31/lib /usr/dt/lib /usr/openwin/lib'
'--package-path=~/.xemacs::/opt/TWWfsw/xemacs214/lib/xemacs-21.4.12/mule-packages:/opt/TWWfsw/xemacs214/lib/xemacs
XEmacs 21.4.12 "Portable Code" configured for `sparc-sun-solaris2.8'.
Compilation / Installation:
Source code location: /opt/build/xemacs-21.4.12
Installation prefix: /opt/TWWfsw/xemacs214
Additional prefixes: /opt/TWWfsw/ncurses5 /opt/TWWfsw/xpm /opt/TWWfsw/jpeg
/opt/TWWfsw/libtiff35 /opt/TWWfsw/libpng12 /opt/TWWfsw/zlib11 /opt/TWWfsw/libdb31
Runtime library search path:
/opt/TWWfsw/ncurses5/lib:/opt/TWWfsw/xpm/lib:/opt/TWWfsw/jpeg/lib:/opt/TWWfsw/libtiff35/lib:/opt/TWWfsw/libpng12/lib:/opt/TWWfsw/zlib11/lib:/opt/TWWfsw/libdb31/lib:/usr/dt/lib:/usr/openwin/lib
Operating system description file: `s/sol2.h'
Machine description file: `m/sparc.h'
Compiler: cc -mr -Qn -xO2 -xtarget=generic -xarch=v8
Relocating allocator for buffers: yes
GNU version of malloc: yes
Window System:
Compiling in support for the X window system:
- X Windows headers location: /usr/dt/include /usr/openwin/include
- X Windows libraries location: /usr/dt/lib /usr/openwin/lib
- Handling WM_COMMAND properly.
Using Lucid menubars.
Using Lucid scrollbars.
Using Motif dialog boxes.
Using Motif native widgets.
Compiling in support for Drag'n'Drop (EXPERIMENTAL).
- Drag'n'Drop prototype: CDE.
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.
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 POP mail retrieval.
Compiling in support for "dot-locking" mail spool file locking method.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for ToolTalk.
Load-Path Lisp Shadows:
----------------------
(/opt/TWWfsw/xemacs214p/packages/lisp/auctex/texmathp
/opt/TWWfsw/xemacs214p/xemacs-packages/lisp/auctex/texmathp
/opt/TWWfsw/xemacs214p/packages/lisp/auctex/tex-site
/opt/TWWfsw/xemacs214p/xemacs-packages/lisp/auctex/tex-site
/opt/TWWfsw/xemacs214p/packages/lisp/auctex/tex-mik
/opt/TWWfsw/xemacs214p/xemacs-packages/lisp/auctex/tex-mik
/opt/TWWfsw/xemacs214p/packages/lisp/auctex/tex-info
/opt/TWWfsw/xemacs214p/xemacs-packages/lisp/auctex/tex-info
/opt/TWWfsw/xemacs214p/packages/lisp/auctex/tex-buf
/opt/TWWfsw/xemacs214p/xemacs-packages/lisp/auctex/tex-buf
/opt/TWWfsw/xemacs214p/packages/lisp/auctex/multi-prompt
/opt/TWWfsw/xemacs214p/xemacs-packages/lisp/auctex/multi-prompt
/opt/TWWfsw/xemacs214p/packages/lisp/auctex/latex
/opt/TWWfsw/xemacs214p/xemacs-packages/lisp/auctex/latex
/opt/TWWfsw/xemacs214p/packages/lisp/auctex/font-latex
/opt/TWWfsw/xemacs214p/xemacs-packages/lisp/auctex/font-latex
/opt/TWWfsw/xemacs214p/packages/lisp/auctex/auc-old
/opt/TWWfsw/xemacs214p/xemacs-packages/lisp/auctex/auc-old
/opt/TWWfsw/xemacs214p/packages/lisp/auctex/tex
/opt/TWWfsw/xemacs214p/xemacs-packages/lisp/auctex/tex
/opt/TWWfsw/xemacs214p/packages/lisp/clearcase/clearcase
/opt/TWWfsw/xemacs214p/xemacs-packages/lisp/clearcase/clearcase
/opt/TWWfsw/xemacs214p/packages/lisp/vhdl/vhdl-mode
/opt/TWWfsw/xemacs214p/xemacs-packages/lisp/vhdl/vhdl-mode
/opt/TWWfsw/xemacs214p/packages/lisp/clearcase/tq
/opt/TWWfsw/xemacs214p/xemacs-packages/lisp/xemacs-base/tq
/opt/TWWfsw/xemacs214p/xemacs-packages/lisp/build/build-report
/opt/TWWfsw/xemacs214/lib/xemacs-21.4.12/lisp/build-report)
Installed XEmacs Packages:
-------------------------
((zenirc:version 1.13 :type regular)
(xslt-process :version 1.11 :type regular)
(xslide :version 1.04 :type regular)
(xemacs-devel :version 1.5 :type single-file)
(xemacs-base :version 1.75 :type regular)
(w3 :version 1.28 :type regular)
(vm :version 7.07 :type regular)
(viper :version 1.35 :type regular)
(view-process :version 1.12 :type regular)
(vhdl :version 1.16 :type regular)
(vc-cc :version 1.21 :type regular)
(vc :version 1.35 :type regular)
(tramp :version 1.11 :type regular)
(tpu :version 1.12 :type regular)
(tooltalk :version 1.13 :type regular)
(tm :version 1.35 :type regular)
(time :version 1.12 :type regular)
(textools :version 1.14 :type regular)
(text-modes :version 1.58 :type single-file)
(texinfo :version 1.23 :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.07000000000000001 :type regular)
(slider :version 1.13 :type regular)
(sieve :version 1.11 :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)
(ruby-modes :version 1.01 :type regular)
(rmail :version 1.13 :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.38 :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.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.3 :type single-file)
(ocaml :version 0.04 :type regular)
(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.14 :type regular)
(mh-e :version 1.17 :type regular)
(mew :version 1.17 :type regular)
(mailcrypt :version 2.12 :type regular)
(mail-lib :version 1.56 :type regular)
(liece :version 1.1 :type regular)
(jde :version 1.43 :type regular)
(ispell :version 1.24 :type regular)
(ilisp :version 1.29 :type regular)
(igrep :version 1.1 :type regular)
(idlwave :version 1.28 :type regular)
(ibuffer :version 1.08 :type regular)
(hm--html-menus :version 1.18 :type regular)
(haskell-mode :version 1.05 :type regular)
(gnus :version 1.65 :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)
(fortran-modes :version 1.02 :type single-file)
(forms :version 1.14 :type regular)
(footnote :version 1.15 :type regular)
(eudc :version 1.37 :type regular)
(eterm :version 1.13 :type regular)
(ess :version 1.03 :type regular)
(eshell :version 1.04 :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 1.98 :type single-file)
(ediff :version 1.46 :type regular)
(edebug :version 1.15 :type regular)
(ecrypto :version 0.12 :type regular)
(ecb :version 1.01 :type regular)
(docbookide :version 0.06 :type regular)
(dired :version 1.13 :type regular)
(dictionary :version 1.11 :type regular)
(debug :version 1.16 :type regular)
(crisp :version 1.12 :type regular)
(cookie :version 1.14 :type regular)
(clearcase :version 1.04 :type regular)
(cc-mode :version 1.32 :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.33 :type regular)
(apel :version 1.26 :type regular)
(ada :version 1.13 :type regular))
Features:
--------
(mail-abbrevs xemacsbug shadow sendmail rfc822 info debug view-less
view hyper-apropos cus-face efs-cu 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 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 ispell-autoloads ilisp-autoloads igrep-autoloads
idlwave-autoloads ibuffer-autoloads hm--html-menus-autoloads
haskell-mode-autoloads gnus-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 dragdrop 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 tooltalk file-coding mule lucid-scrollbars cut-buffer
lucid-menubars motif-dialogs x c-balloon-help tty-frames tty toolbar
scrollbar unix-processes multicast network-streams subprocesses
menu-accelerator-support menubar berkeley-db md5 xemacs xim gutter
tiff png gif jpeg xpm xbm cde lisp-float-type usg-unix-v dragdrop-api
dialog devices window-system base64)
Recent keystrokes:
-----------------
C-f C-f C-h v RET q ESC x t o g g l e - d e b u g -
o n - e r r o r RET C-h i C-x h C-x C-f ~ / e m a c
s / i n f o _ b a c k t r a c e . t x t RET C-y ESC
y C-x C-b n BS C-x o ESC O B RET C-x h ESC w C-x o
C-y ESC < C-x C-s ESC x r e p o r t - x e TAB RET
Recent messages (most recent first):
-----------------------------------
Parsing /afs/fnal.gov/files/home/room3/wehmann/mail_rmail/em_mail_addr... done
Parsing /afs/fnal.gov/files/home/room3/wehmann/mail_rmail/em_mail_addr...
Parsing /afs/fnal.gov/files/home/room3/wehmann/.mailrc...
Loading xemacsbug...done
Loading xemacsbug...
Wrote /afs/fnal.gov/files/home/room3/wehmann/emacs/info_backtrace.txt
Previous command was not a yank
Kill ring is empty
(New file)
Entering debugger...
Rebuilding temporary /afs/fnal.gov/files/tww/live/5.2/@sys/xemacs214/info/dir...
Note: file is write protected
Creating temporary dir in /usr/local/info/...done
File not found and directory write-protected
Creating temporary dir in /usr/local/info/...
Creating temporary dir in
/afs/fnal.gov/files/tww/live/5.2/@sys/xemacs214p/packages/info/...done
File not found and directory write-protected
Creating temporary dir in
/afs/fnal.gov/files/tww/live/5.2/@sys/xemacs214p/packages/info/...
Composing main Info directory...
Creating temporary dir in
/afs/fnal.gov/files/tww/live/5.2/@sys/xemacs214p/xemacs-packages/info/...done
--
Alan Wehmann
wehmann(a)fnal.gov
Fermilab
(630) 840-4692
(630) 840-6039 (fax)
snail-mail: M.S. 220
PO Box 500, zip 60510-0500