From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matt Price Newsgroups: gmane.emacs.help,gmane.emacs.orgmode Subject: naming and/or directly addressing particular windows? Date: Sat, 1 Dec 2012 10:22:57 -0500 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1354375389 18391 80.91.229.3 (1 Dec 2012 15:23:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Dec 2012 15:23:09 +0000 (UTC) Cc: drain , Help-gnu-emacs@gnu.org, Org Mode To: Bastien Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 01 16:23:21 2012 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 1TeouX-0003XL-0i for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Dec 2012 16:23:21 +0100 Original-Received: from localhost ([::1]:57479 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeouL-00061g-Ac for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Dec 2012 10:23:09 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55711) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeouD-0005uz-Kn for Help-gnu-emacs@gnu.org; Sat, 01 Dec 2012 10:23:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TeouC-0007oD-Rg for Help-gnu-emacs@gnu.org; Sat, 01 Dec 2012 10:23:01 -0500 Original-Received: from mail-qa0-f48.google.com ([209.85.216.48]:60035) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeouB-0007nv-2C; Sat, 01 Dec 2012 10:22:59 -0500 Original-Received: by mail-qa0-f48.google.com with SMTP id l8so392584qaq.0 for ; Sat, 01 Dec 2012 07:22:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=KEVzY9DI2BAc3SPjb3wRcRZu1MuzyHGQXvDo81IXDyw=; b=P9nfCuyQOH0hujZytMh5AbvzbunC97Hh7XFxveTjmSlQ8yQ5XKNUGbk+isgAsU8sm9 IAO99AH54x7XzZKM7OpxU42ryAsOUWfV9i70tOn8hEHO6F7m7HikV5d9d9oYrRdfLkyx qrOQLNVU1KLUwC4Xk7EGTxxpuK0yjF9nLEXFjgfWiHiqFPaqFfmggPJ5WRCsNHXKP55A 8HKlTCzLyB8AD9FIq4f/UVJYB3Je3vQun+xXoc7gHkAyhng7G7fUb9rZCXFfKHrGw7O7 gQOfq2YWXwDaNvS6xC5y1vb47B0GWC3b/FDD2wHQiZywZcbJ3Ns+1PX8oESf6TpE9dRS el5Q== Original-Received: by 10.49.95.73 with SMTP id di9mr8476199qeb.37.1354375377300; Sat, 01 Dec 2012 07:22:57 -0800 (PST) Original-Received: by 10.49.132.169 with HTTP; Sat, 1 Dec 2012 07:22:57 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.216.48 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:87996 gmane.emacs.orgmode:62994 Archived-At: Hi, After the recent conversation about Scrivener (on help-gnu-emacs) I thought the very first step would be to write a simple function that would create a window layout and populate the windows with a set of buffers, then set mjor and minor modes for some of hte buffers. (After that I guess I will have to figure out how to write some very simple minor modes, or at least some functions that allow e.g. direct editing of org-mode properties on a selected node.) So, what I have so far is quite trivial but doesn't seem to work exactly as I expected: (delete-other-windows) (split-window-horizontally) (windmove-right) (split-window-horizontally) (enlarge-window-horizontally 20) (windmove-right) (split-window-vertically) Anyway presumably I'll fiddle with this and eventually it will work, but something better would be (set-window-name "outline") (split-named-window-horizontally-and-name-the-other-window "outline" "main") (split-named-window-horizontally-and-name-the-other-window "main" "metadata") (set-width-named-window "main" 60) and then write a function, bound to say Ctrl-Enter, open-node-as-indirect-buffer-in-named-window Anyway: is it possible to give/get a name for a window that persists long enough to be called in functions? Thanks, Matt