From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mickey Ferguson via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: [External] : programmatically make window full length but not change width Date: Mon, 1 Aug 2022 10:26:11 -0700 Message-ID: References: Reply-To: Mickey Ferguson Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35175"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "Help-Gnu-Emacs (help-gnu-emacs@gnu.org)" To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 01 19:32:29 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oIZHI-0008vp-6K for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 01 Aug 2022 19:32:28 +0200 Original-Received: from localhost ([::1]:35492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oIZHH-0005J3-3f for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 01 Aug 2022 13:32:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32824) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIZBV-0001XB-C3 for help-gnu-emacs@gnu.org; Mon, 01 Aug 2022 13:26:29 -0400 Original-Received: from mx0b-0019e102.pphosted.com ([67.231.157.237]:43532) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIZBS-0008Jx-Tb for help-gnu-emacs@gnu.org; Mon, 01 Aug 2022 13:26:28 -0400 Original-Received: from pps.filterd (m0074417.ppops.net [127.0.0.1]) by mx0b-0019e102.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 271GfuVL006541 for ; Mon, 1 Aug 2022 17:26:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=motorolasolutions.com; h=mime-version : references : in-reply-to : from : date : message-id : subject : to : cc : content-type; s=PPS--2020-03-17; bh=risnQQnQKxnexYd4ZOw/c4RqgZcRZcLM2ZaISGGf5oQ=; b=LhlpDgGhgLNsE4SMEtdRzxO9ZLwJXTaO+Q+n/EiN+NofJ6KTAaQmTMWPueH1hihG0U6A xGgnIIaeF3TbO3Z3g8WxaE1AlG/CAoDDwPFWeUs81uv2/cV51Tc0DLKew6rh/W1x2J8n Iv6x1RrngpcGKcXuUHsHSEXFqK7swxBdiA5libEdMMjSr4MmzgWmd85hMtjPqHdLdxpb VDj+bIxqKByBzL5G0MJT7/B/evKVAR6c1UPN2h2UII7tRVao0j2mbrXUztboNmaJHeuc J3LSC8AJEZ2Ossigzm+LdzH1HDBYxnfkLx0MmyvrzZOUDOVv/RGG1Ned77Qjb+/kV8td Nw== Original-Received: from mail-vk1-f198.google.com (mail-vk1-f198.google.com [209.85.221.198]) by mx0b-0019e102.pphosted.com (PPS) with ESMTPS id 3hpjk1g8us-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK) for ; Mon, 01 Aug 2022 17:26:24 +0000 Original-Received: by mail-vk1-f198.google.com with SMTP id r74-20020a1f2b4d000000b003760d8dc0a7so4039424vkr.20 for ; Mon, 01 Aug 2022 10:26:24 -0700 (PDT) X-Gm-Message-State: AJIora89/gSHCJwWI8/OpjOcIu4L/3nC5RDPAFdZqh1EO7iVXTSnC9ER m3om9AKI7pIHl+BX/hXOIFao4vVFg18Nie7hI7yIHiPmcu/95ev/CGR8Kpz5Noz6pX1Mi2511fw rvVPphR/s8UyHYRzLvaEVBS7/qcFwZgMg X-Received: by 2002:a1f:ac50:0:b0:375:f4d4:9ace with SMTP id v77-20020a1fac50000000b00375f4d49acemr6380075vke.36.1659374782913; Mon, 01 Aug 2022 10:26:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u4mVuYQ9FE4eXXwZnaBcVH62mzDmC7C8k8f05buqMHV7sFo6OBm3LdSInGPGmUKuk19uH6djitIK1yLPCe9xg= X-Received: by 2002:a1f:ac50:0:b0:375:f4d4:9ace with SMTP id v77-20020a1fac50000000b00375f4d49acemr6380067vke.36.1659374782508; Mon, 01 Aug 2022 10:26:22 -0700 (PDT) In-Reply-To: X-Proofpoint-GUID: fll86b7CDs4M6rjG1aPWUSvA3qegupNp X-Proofpoint-ORIG-GUID: fll86b7CDs4M6rjG1aPWUSvA3qegupNp X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 bulkscore=0 lowpriorityscore=0 phishscore=0 adultscore=0 malwarescore=0 clxscore=1015 suspectscore=0 impostorscore=0 mlxlogscore=999 spamscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2208010086 Received-SPF: pass client-ip=67.231.157.237; envelope-from=prvs=221265a30b=mickey.ferguson@motorolasolutions.com; helo=mx0b-0019e102.pphosted.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:138728 Archived-At: Thank you, Drew. After downloading the frame-cmds.el, I also needed frame-fns.el to allow things to compile. One other tweak I needed, since my windows toolbar is at the bottom of the screen, I needed to add: (setq window-mgr-title-bar-pixel-height '175) This made it size correctly on my laptop. However, if I connect to my remote desktop computer, using either VNC or Remote Desktop Connection, then that sizing is incorrect. It seemed to be around 60 for that computer. Oh, and each of these computers have a 1920x1080 display setting, if that makes any difference. Is this a setting that needs to be set individually for each computer? If so, that's getting outside of what I would know how to do, since my goal is to have a single .emacs file for all of the computers where I work. Maybe it would be a registry setting or environment variable, for which I could easily have each computer have its own customized setting, and then the .emacs would get that env var or reg value on startup? I do appreciate the timely and quality help you provide. *Mickey Ferguson* On Fri, Jul 29, 2022 at 6:03 PM Drew Adams wrote: > > I just want the simplest way to make my window full length - > > something I could put in my .emacs or code into a function > > that can be bound to a keyboard operation. > > Not sure what you're asking. And I think maybe > you mean Emacs "frame" when you say "window". > > Anyway, maybe something like this is what you're > looking for: > > maximize-frame-vertically is an interactive compiled > Lisp function in =E2=80=98frame-cmds.el=E2=80=99. > > (maximize-frame-vertically &optional FRAME) > > Maximize selected frame vertically. > > > https://urldefense.proofpoint.com/v2/url?u=3Dhttps-3A__www.emacswiki.org_= emacs_download_frame-2Dcmds.el&d=3DDwIGaQ&c=3Dq3cDpHe1hF8lXU5EFjNM_C93KOmcB= XCBnhee2v6PYlc&r=3DUnDOGxolu249_JBsoh3j9MMwtRmzwiw3bhtcIBr6iLhRqxrssOAsmBCh= 1HfDYPjU&m=3DbOJv4lpOoGb_VDN2Etcsph94Gte8uw7M_f3We2NOF4uCSh96-u4GIgmhl6qziQ= EU&s=3D8DSGyi15cZSMz35GLxwcetFaWG-WymMslW83_1BIheM&e=3D > > --=20 *For more information on how and why we collect your personal=20 information, please visit our Privacy Policy=20 .*