The following message is a courtesy copy of an article
that has been posted to comp.emacs.xemacs as well.
>>>> "Alan" == Alan Wehmann
<wehmann(a)fnal.gov> writes:
Alan> After installing
Alan> XEmacs 21.4 (patch 8) "Honest Recruiter (Windows [3])" [Lucid]
Alan> (i586-pc-win32) of Sun Jun 16 2002 on TSUNAMI
Alan> I had an error occur when I invoked Info (C-h i). With
Hi Alan,
Please use
Help->Send Bug Report...
or
M-x report-emacs-bug
as suggested in
http://www.xemacs.org/Debug/index.html
This will tell us enough about your XEmacs installation so that we
should be able to help you.
If XEmacs does not build or start up, please send any version and
configuration information you have to xemacs-beta(a)xemacs.org with any
mailer as plain text (MIME attachments are OK, please don't send HTML
mail).
Alan> "debug-on-error" set to "t" I got the following
backtrace. In the
Alan> backtrace output I've used "fill-paragraph-or-region" on the
long
Alan> lines. I've also replaced the control character "^_" with the
two
Alan> characters and replaced control characters with xxx in the line
Alan> starting with (byte-code.
Alan> -------------------------
Alan> Signaling: (search-failed "^_")
Alan> search-forward("^_")
Alan> byte-code("..." [Info-dir-newer-info-files dir-full-contents
Alan> buffer-read-only dir-section-contents mark next-section nil
Alan> search-forward "^_" re-search-forward "^\\* Menu:.*$" t
"^\\* " 0 throw
Alan> done Info-parse-dir-entries "^[^* ].*:[ ]*$" mapcar
Alan> #<compiled-function (file) "...(67)" [dir-full-contents
Alan> not-first-section dir-entry file file-dir-entry dir-section-contents
Alan> assoc file-name-sans-extension file-name-nondirectory
Alan> Info-extract-dir-entry-from dummy capitalize ":"
Alan> Info-no-description-string] 5> Info-dump-dir-entries
Alan> not-first-section] 4)
Alan> Info-rebuild-dir("c:\\Program
Files\\XEmacs\\XEmacs-21.4.8\\info\\dir")
Alan> Info-maybe-update-dir("c:\\Program
Files\\XEmacs\\XEmacs-21.4.8\\info\\dir")
Alan> Info-insert-dir()
Alan> Info-find-file-node("c:\\PROGRAM
Alan> FILES\\XEMACS\\XEMACS-21.4.8\\info\\dir" "top" nil nil nil)
Alan> Info-find-node("dir" "top")
Alan> Info-directory()
Alan> #<compiled-function (&optional file) "...(82)"
Alan> [command-line-args-left command-line-args Info-standalone file p
Alan> string-match "^-[fe]" "info" t 3 "^-" 2 nil
(...) Info-goto-node "("
Alan> ")" get-buffer "*info*" switch-to-buffer
Info-directory] 5
Alan> ("c:\\PROGRAM FILES\\XEMACS\\XEMACS-21.4.8\\lisp\\info.elc" .
9547)
Alan> (byte-code "xxx" [current-prefix-arg read-file-name "Info
Alan> file name: " nil t] 5)>()
Alan> call-interactively(info)
Alan> -------------------------
Alan> My cure was to modify the function 'Info-rebuild-dir'. Here
Alan> is "diff" output on two files, "lisp-fix" containing the
Alan> modified "Info-rebuild-dir" and "info-extract.el"
containing
Alan> the unmodified version.
Alan, your patch is reversed.
Please provide patches produced with
diff -u old-file new-file
Why did you have to add the (widen) call?
What problem is it fixing?
Making search-forward not throw an error looks good to me.
Best regards,
Adrian
Alan> -------------------------
Alan> u:\elisp\lisp-fix>diff -c info-fix.el
Alan> /cygdrive/d/Temporary/misc/info-extract.el
Alan> diff -c info-fix.el /cygdrive/d/Temporary/misc/info-extract.el
Alan> *** info-fix.el Sat Aug 3 09:59:40 2002
Alan> --- /cygdrive/d/Temporary/misc/info-extract.el Mon Aug 5 12:08:48 2002
Alan> ***************
Alan> *** 32,40 ****
Alan> (message "Rebuilding %s..." file))
Alan> (catch 'done
Alan> (setq buffer-read-only nil)
Alan> - (widen)
Alan> (goto-char (point-min))
Alan> ! (unless (and (search-forward "\^_" nil t)
Alan> (re-search-forward "^\\* Menu:.*$" nil t)
Alan> (setq mark (and (re-search-forward "^\\* " nil t)
Alan> (match-beginning 0))))
Alan> --- 32,39 ----
Alan> (message "Rebuilding %s..." file))
Alan> (catch 'done
Alan> (setq buffer-read-only nil)
Alan> (goto-char (point-min))
Alan> ! (unless (and (search-forward "\^_")
Alan> (re-search-forward "^\\* Menu:.*$" nil t)
Alan> (setq mark (and (re-search-forward "^\\* " nil t)
Alan> (match-beginning 0))))
Alan> -------------------------
Alan> This may have been fixed in later versions of XEmacs, but this was the
Alan> latest binary version for win32 that was offered.
Alan> --
Alan> Alan Wehmann
Alan> wehmann(a)fnal.gov
--
Adrian Aichner
mailto:adrianï¼ xemacs.org
http://www.xemacs.org/