From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.help Subject: Re: Setting size of frame Date: Wed, 12 Jul 2023 14:47:07 +0200 Message-ID: <87a5w170vo.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37008"; mail-complaints-to="usenet@ciao.gmane.io" Cc: To: uzibalqa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 12 14:48:37 2023 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 1qJZGm-0009Qb-E3 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 12 Jul 2023 14:48:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qJZG4-000524-9y; Wed, 12 Jul 2023 08:47:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qJZFn-00051Y-Qb for help-gnu-emacs@gnu.org; Wed, 12 Jul 2023 08:47:37 -0400 Original-Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qJZFe-0002pb-0J for help-gnu-emacs@gnu.org; Wed, 12 Jul 2023 08:47:33 -0400 Original-Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3fb4146e8deso83279835e9.0 for ; Wed, 12 Jul 2023 05:47:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689166031; x=1691758031; h=mime-version:message-id:date:gmane-reply-to-list:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=xn5Tmf6rqllxIF6VKC89cyBW8TTNA2aEpVe7bvvQuCo=; b=qh3qWMi6qklFa1AYpxYHKkdMyZ9I109R2nW4dFcX2WqZvLmc4MFIGkq03RRE/9tSJs kxGyQjXBCFdfI8EI9T1u7D+rrGinYsXleO040srNs3fgK8zSLicmNfptG3RVxilEj5Nw 9/tugb3W/VVbKBsGx3AaW/QpWNq79nVkcqCtGvUaX9w5JHipxyJH4KT1rpp34Zr2TaRg JvTFbq3cwcZLNWdG6g78YRqaP+3vmGeg9gM4XzR46ldYqeHlULTnlWEegl5dg9DIWl/G /j4KUkUuB2Q0q9fs2UtjMSMRYr5mSL51jGXvmVTE8VPcvS/XOlFCmb/a8ExQHpM0KCmc +nRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689166031; x=1691758031; h=mime-version:message-id:date:gmane-reply-to-list:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xn5Tmf6rqllxIF6VKC89cyBW8TTNA2aEpVe7bvvQuCo=; b=dnsCK8iyV0LlAQCM8ljmEaNKuX1vKaKxnqq1R++4LFeWx/Fkv13XlNAlIriGoLAT7l i6ch07CGT9MByQd1PxoKdNPtii1jHgmolKMFs5EoTpU+Gk20ZxlpAmhFor79QRny653j EGo2Kc9Fe7yzCPge9j3700ndo5HHshbOIldYQnh4m6dyK4R+j3O2nhg+0UD/MFrzP8D7 YDvLN5ITLpGQgWeTYOC2KTYHErg95lcR4Yvz1JO7Rp5YgZpONZi1Oh0S8wUAIr6EunAZ MOxsVbOSM13IFV0X5N5NXZf2CpyPDCGo2JpPMsZuNC+U88UzrC/in21P9lc2JYE6lTPO qRUw== X-Gm-Message-State: ABy/qLY0h0Z5V7Ug01+EsnGA3ld3J0ihXIdggrQB9wgG4iLe+Mcr4Osi ugT7HXxWAgT/osuK5C4m04FFm1anbz4= X-Google-Smtp-Source: APBJJlGZb+tJvUAnNLkJTRNUk7izMn/s0UUt8YzmJXGCRRPjhdGBDE9C1mFI2jp4FBqbmkIJkdVDcA== X-Received: by 2002:a05:600c:2105:b0:3fc:3e1:7105 with SMTP id u5-20020a05600c210500b003fc03e17105mr16013833wml.24.1689166030502; Wed, 12 Jul 2023 05:47:10 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:db25:fa85:4e92:d960]) by smtp.gmail.com with ESMTPSA id b16-20020a5d5510000000b0031417b0d338sm5012995wrv.87.2023.07.12.05.47.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jul 2023 05:47:09 -0700 (PDT) In-Reply-To: (uzibalqa@proton.me's message of "Wed, 12 Jul 2023 11:05:40 +0000") Gmane-Reply-To-List: yes Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=rpluim@gmail.com; helo=mail-wm1-x336.google.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, FREEMAIL_FROM=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-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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144246 Archived-At: >>>>> On Wed, 12 Jul 2023 11:05:40 +0000, uzibalqa said: uzibalqa> I want to set the size of a frame by calling a function. uzibalqa> Although I have seen the following, I am not sure whether using add-to-list is uzibalqa> the appropriate choice. I only want the changes to happen in the working frame. uzibalqa> (add-to-list 'default-frame-alist '(width . 90)) uzibalqa> (add-to-list 'default-frame-alist '(height . 40)) That modifies the default frame geometry, which will get applied to new frames. To change the size of an existing frame, use: (modify-frame-parameters nil '((width . 90) (height . 40))) Robert --