🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #87214

[19.27] inconsistent behaviour of delete-frame depending on -iconic

#87214
From: Michael Hohmuth
Date: Tue, 04 Oct 1994 14:22
34 lines
1942 bytes
In GNU Emacs 19.27.1 (mips-dec-ultrix4, X toolkit) of Mon Sep 19 1994
on ite101.inf.tu-dresden.de:

(See also <199410041310.AA06606@irs.inf.tu-dresden.de> for a related
bug report.)

I am using the following server-visit-hook:

    (add-hook 'server-visit-hook 
              (lambda () 
                (setq server-window (new-frame '((minibuffer . t))))))

This assignes a newly created frame to server-window whenever visiting
a file for the emacs server.

Problem:

After finishing editing a file for an `emacsclient' with
"(server-edit)", trying to delete the frame with "(delete-frame)" does
not succeed if `emacs' had been started with "emacs -iconic" and its
icon hasn't been popped up yet; the minibuffer says "Attempt to delete
the sole visible or iconified frame".  However, if the Emacs icon has
already been deiconified at least one time, or `emacs' had been run
without "-iconic", then this will not happen.

I don't know which behaviour is more correct.  I have been working
around this with running "(delete-frame nil t)" instead which will
always delete the current frame, no matter whether it is the sole
visible frame.

Michael
-- 
Email: hohmuth@inf.tu-dresden.de
WWW:   http://www.inf.tu-dresden.de/~mh1/
Technical Details
Message-ID: <199410041416.AA07070@irs.inf.tu-dresden.de>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!inf.tu-dresden.DE!hohmuth

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,e05c6c9ea0efd758,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-10-04 07:24:05 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!inf.tu-dresden.DE!hohmuth
From: hohmuth@inf.tu-dresden.DE (Michael Hohmuth)
Newsgroups: gnu.emacs.bug
Subject: [19.27] inconsistent behaviour of delete-frame depending on -iconic
Date: 4 Oct 1994 10:22:42 -0400
Organization: GNUs Not Usenet
Lines: 34
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <199410041416.AA07070@irs.inf.tu-dresden.de>