🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #2106

Re: auto-raise vs auto-focus

#2106
From: Anthony Mutiso
Date: Thu, 14 Mar 1991 11:58
27 lines
1893 bytes
I thought I should add my contribution to auto-raise issue. I have
redefined the select-screen function to read the auto-raise variable
as nil, t, 0, or 1. A value of t will auto-raise the screen and the
minibuffer. A value of 1 will only auto-raise the minibuffer. Since I
use twm and gwm as my window managers I leave window auto-raising to
them. If I want auto-raising I can turn it on and off at the window
manager level, while still retaining auto-raise control for the
minibuffer. This I can have some epoch windows auto-raise and some
not, all in the same epoch session. 

Here is the new select-screen, throw it in your .emacs <- epoch
startup.

Anthony
--
(defun select-screen (&optional scr)
  (interactive)
  (epoch::select-screen scr)
  (and auto-raise-screen
       (or (eq t auto-raise-screen) (eq 0 auto-raise-screen))
       (epoch::raise-screen 0))
  (and auto-raise-screen
       (or (eq t auto-raise-screen) (eq 1 auto-raise-screen))
       (raise-screen))
  (run-hooks '*select-screen-hook*))
--
Anthony Mutiso (anthony@cs.ualberta.ca)                Life-motto: Logic Rules.
Technical Details
Message-ID: <ANTHONY.91Mar14115850@so-baptiste.cs.UAlberta.CA>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!van-bc!ubc-cs!alberta!anthony
References: <125485@uunet.UU.NET>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc7ee,834ed3e4a8d5ac50
X-Google-Attributes: gidfc7ee,public
X-Google-ArrivalTime: 1991-03-16 12:58:19 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!van-bc!ubc-cs!alberta!anthony
From: anthony@cs.UAlberta.CA (Anthony Mutiso)
Newsgroups: gnu.epoch.misc
Subject: Re: auto-raise vs auto-focus
Message-ID: <ANTHONY.91Mar14115850@so-baptiste.cs.UAlberta.CA>
Date: 14 Mar 91 11:58:50 GMT
References: <125485@uunet.UU.NET>
Sender: news@cs.UAlberta.CA
Distribution: gnu
Organization: Computing Science, U. of Alberta. Edmonton, Alberta. CANADA
Lines: 27
In-Reply-To: ebersman@uunet.UU.NET's message of 13 Mar 91 15:18:48 GMT
X-Zippy: Hmmm..  a CRIPPLED ACCOUNTANT with a FALAFEL sandwich is HIT
 by a TROLLEY-CAR..