I have never been able to get xemacs 21.5.9beta to work properly. I am now running 10.2.8 with the August gcc3.3 updater on a slot loading imac DV 400 MHz machine. When I attempt to load *.c, *.cpp, and *.h files into xemacs, currently I am trying to use v21.5.9-14, the editor crashes. i do not have this problem with emacs21, bbedit or xemacs-21.4.9-3, the stable version in the 10.2 tree. Some playing with the files has determined that if I change a "name.cpp" file which Apple flags in the finder as a c++ source code file to a unix "name" file (no .cpp file suffix) that I can load it in xemacs. I can then make a minor change in the file, save it as a "name.cpp" file and turn on syntax highlighting and edit as I want. However after I save it and leave xemacs, I can no longer open the name.cpp file again without crashing xemacs! Does anybody have any ideas? Is there some environmental variable I am not setting or some other thing I should be tweaking in xemacs? I am at a loss over this, and I can not find any documentation to help me. I sure would appreciate any help or ideas.
Here is the error code file when I try to load a .cpp file that crashes xemacs:
_XF86BigfontQueryFont: could not attach shm segment
Fatal error (11).
Your files have been auto-saved.
Use `M-x recover-session' to recover them.
If you have access to the PROBLEMS file that came with your
version of XEmacs, please check to see if your crash is described
there, as there may be a workaround available.
Otherwise, please report this bug by running the send-pr
script included with XEmacs, or selecting `Send Bug Report'
from the help menu.
As a last resort send ordinary email to [EMAIL PROTECTED]'.
*MAKE SURE* to include the information in the command
M-x describe-installation.
If at all possible, *please* try to obtain a C stack backtrace;
it will help us immensely in determining what went wrong.
To do this, locate the core file that was produced as a result
of this crash (it's usually called `core' and is located in the
directory in which you started the editor, or maybe in your home
directory), and type
gdb /sw/bin/xemacs core
then type `where' when the debugger prompt comes up.
(If you don't have GDB on your system, you might have DBX,
or XDB, or SDB. A similar procedure should work for all of
these. Ask your system administrator if you need more help.)
Lisp backtrace follows:
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
string-match("bind (\\(?:.* \\)?__call_trapping_errors_arg__\\(?:.* \\)?)[ \n]*\\(?:(lambda \\|#<compiled-function \\)(__call_trapping_errors_arg__).*\n\\(\\(?:.\\|\n\\)*\\)$" " backtrace(nil t)\n # bind (standard-output)\n # (unwind-protect ...)\n # bind (handler-arg-name)\n backtrace-in-condition-handler-eliminating-handler(__call_trapping_errors_arg__)\n # bind (errstr __call_trapping_errors_arg__)\n #<compiled-function (__call_trapping_errors_arg__) \"...(17)\" [__call_trapping_errors_arg__ errstr error-message-string lwarn file-mode-spec warning \"Error in %s: %s\\n\\nBacktrace follows:\\n\\n%s\" \"File mode specification\" backtrace-in-condition-handler-eliminating-handler] 8>((error \"Undefined style: \"))\n signal(error (\"Undefined style: \"))\n # bind (args datum)\n cerror(\"Undefined style: %s\" \"\")\n apply(cerror \"Undefined style: %s\" \"\")\n # bind (args datum)\n error(\"Undefined style: %s\" \"\")\n # bind (basestyles style)\n c-get-style-variables(\"\" nil)\n # bind (dont-override stylename)\n c-set-style(\"\" t)\n # bind (style)\n c-common-init()\n c++-mode()\n # bind (alist mode name keep-going)\n # (unwind-protect ...)\n # bind (just-from-file-name)\n set-auto-mode()\n #<compiled-function nil \"...(5)\" [set-auto-mode t] 1>()\n # (unwind-protect ...)\n call-with-condition-handler(#<compiled-function (__call_trapping_errors_arg__) \"...(17)\" [__call_trapping_errors_arg__ errstr error-message-string lwarn file-mode-spec warning \"Error in %s: %s\\n\\nBacktrace follows:\\n\\n%s\" \"File mode specification\" backtrace-in-condition-handler-eliminating-handler] 8> #<compiled-function nil \"...(5)\" [set-auto-mode t] 1>)\n # (condition-case ... . ((error)))\n # bind (find-file)\n normal-mode(t)\n # bind (nomodes after-find-file-from-revert-buffer noauto warn error)\n after-find-file(nil t)\n byte-code(\"...\" [buffer-file-number number truename buffer-file-truename buf buffer-file-name set-buffer-major-mode erase-buffer nil (byte-code \"��� �\\\"���� �\\\"�\" [rawfile filename insert-file-contents-literally t insert-file-contents] 3) ((file-error (byte-code \"�\\n!���\\n!�����\\nD\\\"��������!���Ç\" [rawfile error filename file-exists-p file-readable-p signal file-error \"File is not readable\" t run-hook-with-args-until-success find-file-not-found-hooks] 4))) abbreviate-file-name file-name-directory make-local-variable backup-inhibited t after-find-file find-file-use-truenames default-directory backup-enable-predicate rawfile error nowarn] 3)\n # (condition-case ... . ((t (byte-code \"�!�� @ A\\\"�\" [buf data kill-buffer signal] 3))))\n # (unwind-protect ...)\n # bind (error number truename buf rawfile nowarn filename)\n find-file-noselect(\"/Users/garykols/Macdev/cs2000/ps8/srms.cpp\")\n # bind (codesys filename)\n default-dir-real-find-file(\"/Users/garykols/Macdev/cs2000/ps8/srms.cpp\")\n # bind (coding-system file)\n #<compiled-function (file &optional coding-system) \"...(4)\" [file default-dir-real-find-file] 2 \"Edit file FILENAME.\\nSwitch to a buffer visiting file FILENAME, creating one if none already\\nexists. Optional second argument specifies the coding system to use when\\ndecoding the file. Interactively, with a prefix argument, you will be\\nprompted for the coding system.\\n\\nIf you do not explicitly specify a coding system, the coding system\\nis determined as follows:\\n\\n1. `coding-system-for-read', if non-nil. (This is used by Lisp programs to\\n temporarily set an overriding coding system and should almost never\\n apply here in `find-file'.)\\n2. The result of `insert-file-contents-pre-hook', if non-nil. (This is a\\n complex interface for handling special cases.)\\n3. The matching value for this filename from `file-coding-system-alist',\\n if any. (This lets you specify the coding system to be used for\\n files with particular extensions, names, etc.)\\n4. `buffer-file-coding-system-for-read', if non-nil. (This is the global\\n default -- normally `undecided', so the built-in auto-detection\\n mechanism can do its thing.)\\n5. The coding system 'raw-text.\\n\\nSee `insert-file-contents' for more details about how the process of\\ndetermining the coding system works.\\n\\nNote: This function has been modified to work with default-dir.\" (list (expand-file-name (read-file-name \"Find file: \" (default-directory))))>(\"/Users/garykols/Macdev/cs2000/ps8/srms.cpp\")\n call-interactively(find-file)\n #<compiled-function nil \"...(4)\" [toolbar-open-function call-interactively] 2 nil nil>()\n call-interactively(toolbar-open)\n # bind (callback button event)\n release-and-activate-toolbar-button(#<buttonup-event button1up>)\n # bind (command-debug-status)\n call-interactively(release-and-activate-toolbar-button)\n # (condition-case ... . error)\n # (catch top-level ...)\n")
# (unwind-protect ...)
# bind (match-data bt handler-arg-name)
backtrace-in-condition-handler-eliminating-handler(__call_trapping_errors_arg__)
# bind (errstr __call_trapping_errors_arg__)
#<compiled-function (__call_trapping_errors_arg__) "...(17)" [__call_trapping_errors_arg__ errstr error-message-string lwarn file-mode-spec warning "Error in %s: %s\n\nBacktrace follows:\n\n%s" "File mode specification" backtrace-in-condition-handler-eliminating-handler] 8>((error "Undefined style: "))
signal(error ("Undefined style: "))
# bind (args datum)
cerror("Undefined style: %s" "")
apply(cerror "Undefined style: %s" "")
# bind (args datum)
error("Undefined style: %s" "")
# bind (basestyles style)
c-get-style-variables("" nil)
# bind (dont-override stylename)
c-set-style("" t)
# bind (style)
c-common-init()
c++-mode()
# bind (alist mode name keep-going)
# (unwind-protect ...)
# bind (just-from-file-name)
set-auto-mode()
#<compiled-function nil "...(5)" [set-auto-mode t] 1>()
# (unwind-protect ...)
call-with-condition-handler(#<compiled-function (__call_trapping_errors_arg__) "...(17)" [__call_trapping_errors_arg__ errstr error-message-string lwarn file-mode-spec warning "Error in %s: %s\n\nBacktrace follows:\n\n%s" "File mode specification" backtrace-in-condition-handler-eliminating-handler] 8> #<compiled-function nil "...(5)" [set-auto-mode t] 1>)
# (condition-case ... . ((error)))
# bind (find-file)
normal-mode(t)
# bind (nomodes after-find-file-from-revert-buffer noauto warn error)
after-find-file(nil t)
byte-code("..." [buffer-file-number number truename buffer-file-truename buf buffer-file-name set-buffer-major-mode erase-buffer nil (byte-code "��� �\"���� �\"�" [rawfile filename insert-file-contents-literally t insert-file-contents] 3) ((file-error (byte-code "�\n!���\n!�����\nD\"��������!���Ç" [rawfile error filename file-exists-p file-readable-p signal file-error "File is not readable" t run-hook-with-args-until-success find-file-not-found-hooks] 4))) abbreviate-file-name file-name-directory make-local-variable backup-inhibited t after-find-file find-file-use-truenames default-directory backup-enable-predicate rawfile error nowarn] 3)
# (condition-case ... . ((t (byte-code "�!�� @ A\"�" [buf data kill-buffer signal] 3))))
# (unwind-protect ...)
# bind (error number truename buf rawfile nowarn filename)
find-file-noselect("/Users/garykols/Macdev/cs2000/ps8/srms.cpp")
# bind (codesys filename)
default-dir-real-find-file("/Users/garykols/Macdev/cs2000/ps8/srms.cpp")
# bind (coding-system file)
#<compiled-function (file &optional coding-system) "...(4)" [file default-dir-real-find-file] 2 "Edit file FILENAME.\nSwitch to a buffer visiting file FILENAME, creating one if none already\nexists. Optional second argument specifies the coding system to use when\ndecoding the file. Interactively, with a prefix argument, you will be\nprompted for the coding system.\n\nIf you do not explicitly specify a coding system, the coding system\nis determined as follows:\n\n1. `coding-system-for-read', if non-nil. (This is used by Lisp programs to\n temporarily set an overriding coding system and should almost never\n apply here in `find-file'.)\n2. The result of `insert-file-contents-pre-hook', if non-nil. (This is a\n complex interface for handling special cases.)\n3. The matching value for this filename from `file-coding-system-alist',\n if any. (This lets you specify the coding system to be used for\n files with particular extensions, names, etc.)\n4. `buffer-file-coding-system-for-read', if non-nil. (This is the global\n default -- normally `undecided', so the built-in auto-detection\n mechanism can do its thing.)\n5. The coding system 'raw-text.\n\nSee `insert-file-contents' for more details about how the process of\ndetermining the coding system works.\n\nNote: This function has been modified to work with default-dir." (list (expand-file-name (read-file-name "Find file: " (default-directory))))>("/Users/garykols/Macdev/cs2000/ps8/srms.cpp")
call-interactively(find-file)
#<compiled-function nil "...(4)" [toolbar-open-function call-interactively] 2 nil nil>()
call-interactively(toolbar-open)
# bind (callback button event)
release-and-activate-toolbar-button(#<buttonup-event button1up>)
# bind (command-debug-status)
call-interactively(release-and-activate-toolbar-button)
# (condition-case ... . error)
# (catch top-level ...)
