From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: WalterGR Newsgroups: gmane.emacs.help Subject: Re: How to set window size in .emacs and have that size respected? Date: Tue, 13 Jan 2009 08:24:55 -0800 (PST) Organization: http://groups.google.com Message-ID: <44992162-29e4-48ed-8610-4e94d9fc8edc@x16g2000prn.googlegroups.com> References: <49f67ade-3c42-407d-9f5e-6220568036fc@o4g2000pra.googlegroups.com> <55314adf-7e68-460a-92c5-ff97b5b8cae5@v39g2000pro.googlegroups.com> <9510acb6-f545-4f3c-8935-633b7b0fee69@w1g2000prk.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1231874412 16941 80.91.229.12 (13 Jan 2009 19:20:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Jan 2009 19:20:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 13 20:21:24 2009 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 1LMopD-00007p-V1 for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Jan 2009 20:21:20 +0100 Original-Received: from localhost ([127.0.0.1]:39276 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LMonx-0005Z4-HF for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Jan 2009 14:20:01 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!x16g2000prn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: 75.45.102.12 Original-X-Trace: posting.google.com 1231863895 21554 127.0.0.1 (13 Jan 2009 16:24:55 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 13 Jan 2009 16:24:55 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: x16g2000prn.googlegroups.com; posting-host=75.45.102.12; posting-account=Ut0WDQoAAABFlcXayfIPT8oJUeTymM4u User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5 (.NET CLR 3.5.30729), gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:165975 X-Mailman-Approved-At: Tue, 13 Jan 2009 14:17:22 -0500 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:61306 Archived-At: On Jan 13, 8:17=A0am, WalterGR wrote: > Oh, I get it now... =A0Your message led me to the right Google > incantation, and I found > > http://osdir.com/ml/emacs.bugs/2002-11/msg00143.html > > which suggests "This is a known problem, but nobody knows how to fix > it." =A0[snip] ...which doesn't seem to be true. I solved the problem satisfactorily by adapting a solution from [1]: (defun maximize-window-vertically () (interactive) (x-send-client-message nil 0 nil "_NET_WM_STATE" 32 '(2 "_NET_WM_STATE_MAXIMIZED_VERT" 0))) (maximize-window-vertically) Thanks, Walter [1] http://ubuntuforums.org/showthread.php?t=3D782196