From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hikaru Ichijyo Newsgroups: gmane.emacs.help Subject: Re: launch a program in an arbitrary frame Date: Sat, 18 Jul 2015 18:51:42 -0500 Organization: UN Spacy Message-ID: <8xxwpxxc9dd.fsf@village.keycorner.org> References: <8xxwpxyducd.fsf@village.keycorner.org> <8xxr3o5ea34.fsf@village.keycorner.org> <8xxegk5dt1t.fsf@village.keycorner.org> <87vbdhqdl8.fsf@nl106-137-147.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1437263737 30421 80.91.229.3 (18 Jul 2015 23:55:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Jul 2015 23:55:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 19 01:55:36 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZGbx9-0001Zr-74 for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Jul 2015 01:55:35 +0200 Original-Received: from localhost ([::1]:50144 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGbx8-0005l9-NI for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Jul 2015 19:55:34 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!news.astraweb.com!border6.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:qdyCcQ2qx/aS9RuxbZqaXvzetBI= Original-Lines: 38 Original-NNTP-Posting-Host: 85229271.news.astraweb.com Original-X-Trace: DXC=]_:`08S8^8dF1iA^=`ZUjbL?0kYOcDh@j\LfROTNE>L`JDRdd]WTY9jki>@a>bjailo=EIjJ5b; Wc3K:9^o4aV8aC3^ZD3SSZ_`[bi15Kd^OWc Original-Xref: usenet.stanford.edu gnu.emacs.help:213543 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105829 Archived-At: Emanuel Berg writes: > Here is how you do it. > > With this, save the window configuration with `C-x m', > and store it with `C-x l'. When you show an article > from the *Summary* buffer, it'll save automatically so > you just have to restore it when you are done reading > articles. Unless you load it, it doesn't save again. > > (defvar *do-save-new* t) > > (defun save-win-conf () > (interactive) > (when *do-save-new* > (window-configuration-to-register ?0) )) > > (defun load-win-conf () > (interactive) > (setq *do-save-new* t) > (jump-to-register ?0) ) > > (global-set-key "\C-xm" 'save-win-conf) > (global-set-key "\C-xl" 'load-win-conf) > > (defun gnus-summary-show-article-save-win-conf () > (interactive) > (save-win-conf) > (setq *do-save-new* nil) > (call-interactively 'gnus-summary-show-article) ) Thanks! -- He that would make his own liberty secure must guard even his enemy from oppression; for if he violates this duty, he establishes a precedent that will reach to himself. --Thomas Paine