From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: Some annoying behaviours Date: Fri, 22 Feb 2008 08:35:12 +0100 Message-ID: <87ve4h8mvj.fsf@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203665747 15095 80.91.229.12 (22 Feb 2008 07:35:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Feb 2008 07:35:47 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Joe Fineman Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 22 08:36:10 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JSSS2-0005VK-Ap for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Feb 2008 08:36:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSSRX-0002ba-1n for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Feb 2008 02:35:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JSSRC-0002am-FC for help-gnu-emacs@gnu.org; Fri, 22 Feb 2008 02:35:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JSSRB-0002aM-E3 for help-gnu-emacs@gnu.org; Fri, 22 Feb 2008 02:35:17 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSSRB-0002aJ-7u for help-gnu-emacs@gnu.org; Fri, 22 Feb 2008 02:35:17 -0500 Original-Received: from fg-out-1718.google.com ([72.14.220.155]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JSSRA-00020y-Ms for help-gnu-emacs@gnu.org; Fri, 22 Feb 2008 02:35:17 -0500 Original-Received: by fg-out-1718.google.com with SMTP id d23so1553840fga.30 for ; Thu, 21 Feb 2008 23:35:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references:face:date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=1vymGUiyGzGZloPjF1NMd8BgIfeMmtludYIi2+EZVQ8=; b=eWuEqNmDUtdQMwNdq/yTu6TxAn+T1CIB47kb1T0qdUEWdGCAAEtWBFImJ/DjCzEbuz4p1M06J/pzKafuLhtHlLD4Kv2PmQCpDd1OPMflkx+3a7knt6HbmUAj0OJ34ovM+3qSu547bc6opzTQii3RBwXD7+Dlws3w9datVg/ils8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:face:date:in-reply-to:message-id:user-agent:mime-version:content-type; b=lc9vmQrJAOUWKZZY1F3lxY4T/8sOzpsjMRGUW4pDnfpwu5jVjr0NGuRNrtUkR9N8dn9J5XcHnCz3f/p62XDYRuOM1aKSp9AlneTupFvWRdZ+0PegvwvzuQ/E3IweHig6+l3O+492lxrzAJN2B3jDfb1zfJIo/j+x16aY95OWLME= Original-Received: by 10.86.50.8 with SMTP id x8mr10449012fgx.61.1203665715696; Thu, 21 Feb 2008 23:35:15 -0800 (PST) Original-Received: from laptop ( [77.197.77.154]) by mx.google.com with ESMTPS id 4sm911635fge.3.2008.02.21.23.35.14 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 21 Feb 2008 23:35:14 -0800 (PST) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEUHAwJfJRBxTStaVVUq QleXMROlTymlaEzRTR/FRCfb1LmsjGQqBf0nAAAACXBIWXMAAAsSAAALEgHS3X78AAAB+ElEQVQ4 y3VTPW/bQAw9Jorno5pzGmSxDCQBuhkpumSpIaFzrgAdaZQBSejWNkiEIFMHIeetLiBDWjtqbIB0 6J8rz0Xhj5w5mDDf8ZF8pIT4b96WX1kkdlgUvXcDXrQrJwqXKXBTXm1meOFbi5wH/q20gaOySP9B 4cUT//qoHgfs937TsPhs44fh4dhS4WvznX2hATC3wEnXPQ0sEJsf7DJku+aU8Zuu+2nJR7Gphehl ZGaUPwbD4Z+u+2WrB4lZCHHQNmamVfHwPL25uAwCTmGqqRCJMUYL6OfBVEbjDyoQQsVmLsTEmIpf gfQRPC5cSCD7VEA708shMPDCCFK6tRy2OUXLMcWeZMXhDj5xnNYVyS3u59A3TYVrcci1lDCZcput 3tDwiP+fGlYNcVN0vP8a9DPpWAdqQFd8/91o6Fpfr6wnKB1r7yXtXIp9xymcaXx1OXIcCpI/xHLw EoCizcjOtt0anLV1XNMAfDwfbVAp3mVSfQNCzNO1BFQUk2pSJNKx+bICTokrKNLimHh581VKSvyU uLJqqao+roCxBGahK15dQrTRGRzXlsNPar01SsxbnU3KO9we0QKV0i+0h6QxJkWH9KpZXpRDrqzV 7o8Nd8QP+IKcwKS+fhg4gXZx7wL4jJOFi4uVb1JnHFXuvDhE7W4X18/5L9gPfl3mJR3tAAAAGnpU WHRKUEVHLUNvbG9yc3BhY2UAAHjaMwIAADMAMxEWfmMAAAAnelRYdEpQRUctU2FtcGxpbmctZmFj dG9ycwAAeNozqjDSMawwBGEAEYMC6WQPG2IAAAAASUVORK5CYII= In-Reply-To: (Joe Fineman's message of "Fri, 22 Feb 2008 04:25:57 GMT") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:51761 Archived-At: Joe Fineman writes: > Pete Axon writes: > >>> The first one is about the 'completion' window which doesn't close >>> automatically once it's no more needed. I know I can switch to this >>> window and close it but it would be really nice to make this auto. >> >> There is no need to switch to the other window, simply type `C-x 1' >> and it maximizes the window you are in. > > That works if you had only one window on the screen to begin with. If > you had more than one (the usual case with me), the pop-up buffer > commandeers an adjacent one. I suppose C-x4 b would get the original > buffer back, but then you would be in it instead of the one you were > working in. Fortunately, I usually have a brief command that sets up > all the windows for the job I am doing. > > Also, I have a utility that saves the current window setup in case I > expect to screw it up: > > (defun interruption () > "Prepare to restore the existing state of the screen." > (interactive) > (if buffer-file-name > (save-buffer)) > (save-window-excursion > (recursive-edit)) > (if buffer-file-name > (save-buffer)) > ) > > It is bound to a function key. Do you know winner-mode ? When you have many windows open, do M-x winner-mode, then come back to a single window (C-x 1) and then run M-x winner-undo ==> C-c left come-back to the single window ==>C-c right (winner-redo) -- A + Thierry Pub key: http://pgp.mit.edu