🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #87709

bug in xlmenu.c, 19.25

#87709
From: Tom Tromey
Date: Sat, 03 Sep 1994 05:44
56 lines
2721 bytes
Emacs 19.25.  Sun Sparc 1 running SunOS 4.1.3.
MIT X11R5.  Compiled with --with-x-toolkit.

I tried to run the following code:

================================================================
;;; From: dgilbert@pci.on.CA (David Gilbert)

;;; This cool function should allow us to move our emacs windos from
;;; machine to machine.
(defun X-move-me (server)
  "move the emacs from the current machine to the specified machine"
  (interactive "sEnter Display :\n")
  (setq X-move-config (current-frame-configuration))
  (x-close-current-connection)
  (x-open-connection server)
  (setq default-minibuffer-frame
        (setq frame-initial-frame
              (new-frame initial-frame-alist)))
  (display-buffer (get-buffer-create "*scratch*"))
  (insert (format "%s" (current-frame-configuration)))
  (write-file "/home/other/dgilbert/tmp/temp")
;  (set-frame-configuration current-frame-configuration)
  (print "Hi Mom!")
  (redraw-display))

(X-move-me ":0.0")
================================================================

When I run this code, Emacs dies with the following error:

X protocol error: BadFont (invalid Font parameter) on protocol request 55


I then ran Emacs under the debugger.  I set a breakpoint where Emacs
makes a new X connection and XSynchronize there (incidientally it
would be handy to have some global variable I could set that would
make Emacs do this for me).

I found that Emacs was dying on line 888 of xlwmenu.c:

  mw->menu.foreground_gc = XtGetGC ((Widget)mw,
				    GCFont | GCForeground | GCBackground,
				    &xgcv);


Beyond this, I am not certain what the bug might be.  I speculate that
Emacs is caching information about the font that it is not allowed to
cache across server connections, but I have not checked this (I think
this could be the case because Emacs did this in the non-Xt case a few
releases ago.  I have not checked since then).

Tom
---
tromey@busco.lanl.gov             Member, League for Programming Freedom
"`Nova heat moving in,' dig?" -- Robert Anton Wilson
Technical Details
Message-ID: <9409030542.AA12282@busco.lanl.gov>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!uunet!cs.utexas.edu!math.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!busco.lanl.gov!tromey

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,25eff0855bc2ebab,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-09-02 22:59:00 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!uunet!cs.utexas.edu!math.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!busco.lanl.gov!tromey
From: tromey@busco.lanl.gov (Tom Tromey)
Newsgroups: gnu.emacs.bug
Subject: bug in xlmenu.c, 19.25
Date: 3 Sep 1994 01:44:10 -0400
Organization: GNUs Not Usenet
Lines: 56
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <9409030542.AA12282@busco.lanl.gov>