emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Killing a frame sometimes kills emacs


From: Tassilo Horn
Subject: Re: Killing a frame sometimes kills emacs
Date: 2011年11月18日 10:38:39 +0100
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.91 (gnu/linux)

Stefan Monnier <address@hidden> writes:
Hi Stefan,
> To avoid the risk of reaching 0 via wrap-around (yes, I know that
> creating a billion frames in the life of a single session is unlikely,
> but still), you could do:
>
> /* If needed, delete the terminal that this frame was on.
> (This must be done after the frame is killed.) */
> terminal->reference_count--;
> #ifdef USE_GTK
> /* ... (Use C-style not C++ style comments) ... */
> if (terminal->reference_count == 0 && terminal->type == output_x_window)
> terminal->reference_count = 1;
> #endif
> if (terminal->reference_count == 0)
> {
> Lisp_Object tmp;
I liked this version best and it's committed now.
Bye,
Tassilo
-- 
(What the world needs (I think) is not
 (a Lisp (with fewer parentheses))
 but (an English (with more.)))
Brian Hayes, http://tinyurl.com/3y9l2kf

reply via email to

[Prev in Thread] Current Thread [Next in Thread]

AltStyle によって変換されたページ (->オリジナル) /