🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #87271

window configuration not restored after completions

#87271
From: Marc Auslander
Date: Fri, 07 Oct 1994 19:49
24 lines
1746 bytes
In GNU Emacs 19.27.1 (rs6000-ibm-aix3.2.5) of Fri Sep 16 1994 on marc.watson.ibm.com

If I use a completions buffer, such as for lisp-complete-symbol, in a
full frame window, the frame is split to hold the completion buffer.
After I select the completion, the completion buffer disappears, but
the frame remains split.

The following advice "fixes" the problem for the normal path.  It
could be done more directly, I suspect, in the base code.

(defadvice completion-setup-function (before jmv-completion activate)
  "save window configuration for later restore"
  (make-local-variable 'completion-window-configuration)
  (setq completion-window-configuration (current-window-configuration)))

(defadvice mouse-choose-completion (after jmv-completion activate)
  "restore window configuration after completion"
  (if completion-window-configuration
      (set-window-configuration completion-window-configuration))
  (setq completion-window-configuration nil))



Marc Auslander   <marc@watson.ibm.com>   914 784-6699  (Tieline 863 Fax x6306)
Technical Details
Message-ID: <9410071945.AA29207@marc.watson.ibm.com>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!watson.ibm.com!marc

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,65052f98c77600aa,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-10-08 08:49:50 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!watson.ibm.com!marc
From: marc@watson.ibm.com (Marc Auslander)
Newsgroups: gnu.emacs.bug
Subject: window configuration not restored after completions
Date: 7 Oct 1994 15:49:16 -0400
Organization: GNUs Not Usenet
Lines: 24
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <9410071945.AA29207@marc.watson.ibm.com>
Reply-To: marc@watson.ibm.com