From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Davin Pearson Newsgroups: gmane.emacs.help Subject: Re: Programmatically setting the frame size and position Date: Sun, 30 Nov 2014 17:03:03 -0800 (PST) Message-ID: References: <11d97ae3-a07f-440f-970d-cfebbe9a5026@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1417395929 9108 80.91.229.3 (1 Dec 2014 01:05:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Dec 2014 01:05:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 01 02:05:21 2014 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 1XvFQX-0006aL-JX for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Dec 2014 02:05:21 +0100 Original-Received: from localhost ([::1]:52349 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvFQX-00027v-53 for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Nov 2014 20:05:21 -0500 X-Received: by 10.66.192.42 with SMTP id hd10mr15684987pac.26.1417395784400; Sun, 30 Nov 2014 17:03:04 -0800 (PST) X-Received: by 10.51.17.104 with SMTP id gd8mr574610igd.11.1417395784246; Sun, 30 Nov 2014 17:03:04 -0800 (PST) Original-Path: usenet.stanford.edu!h15no11044919igd.0!news-out.google.com!d20ni1426igz.0!nntp.google.com!h15no11044916igd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: <11d97ae3-a07f-440f-970d-cfebbe9a5026@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=203.86.204.187; posting-account=SVVH0AoAAABplEQzMkIR3gU7a0gK8IuF Original-NNTP-Posting-Host: 203.86.204.187 User-Agent: G2/1.0 Injection-Date: Mon, 01 Dec 2014 01:03:04 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:209060 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:101339 Archived-At: On Thursday, November 20, 2014 3:46:08 PM UTC+13, Davin Pearson wrote: > I would like to know how you go about setting the > size and position of a given frame using Elisp instead > of the mouse. > > I am interested in using the speedbar.el but it currently > appears in a maximised state. > > I don't want to use the mouse to resize and reposition > the frames so that they sit beside each other every > time I start speedbar.el > > Here is the Elisp code that I have written (based on the built in > Emacs manual) but doesn't work. > > (progn > (setq fc (current-frame-configuration)) > (setq w (assq 'width (cadadr fc)) > (setcdr w 20) > (set-frame-configuration fc)) > > What code do I need to write to get it to work? > > Please advise me as I am stuck at the moment. Thanks for your help. I personally prefer to use Emacs windows rather than frames as windows are easier to manipulate.