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: Programmatically setting the frame size and position Date: Wed, 19 Nov 2014 18:46:05 -0800 (PST) Message-ID: <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 1416451826 23958 80.91.229.3 (20 Nov 2014 02:50:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Nov 2014 02:50:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 20 03:50:19 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 1XrHp4-0001Al-PH for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Nov 2014 03:50:18 +0100 Original-Received: from localhost ([::1]:33270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrHp4-0000rk-7I for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Nov 2014 21:50:18 -0500 X-Received: by 10.66.224.68 with SMTP id ra4mr82835207pac.0.1416451566878; Wed, 19 Nov 2014 18:46:06 -0800 (PST) X-Received: by 10.50.112.67 with SMTP id io3mr590098igb.14.1416451566695; Wed, 19 Nov 2014 18:46:06 -0800 (PST) Original-Path: usenet.stanford.edu!h15no4020866igd.0!news-out.google.com!w7ni66qay.0!nntp.google.com!h15no4020859igd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=159.117.1.11; posting-account=SVVH0AoAAABplEQzMkIR3gU7a0gK8IuF Original-NNTP-Posting-Host: 159.117.1.11 User-Agent: G2/1.0 Injection-Date: Thu, 20 Nov 2014 02:46:06 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:208782 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:101062 Archived-At: 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.