From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tatsu Takamaro Newsgroups: gmane.emacs.help Subject: Re: [External] : Q3 - how to delete by words, not cut? --- about Q4 - the bottom edge of Emacs doesn't stick to the taskba Date: Sat, 21 Dec 2024 05:02:57 +0300 Message-ID: <7628b4a4-bc17-fabd-5260-f1af87beb439@gmail.com> References: <53671653-5c61-334b-c638-c70bdada6cd5@gmail.com> <45329ea1-7976-9dae-120f-3ddb23384a45@gmail.com> <0484167b-e189-9d97-7513-355d1b3c96f1@gmail.com> <0004b28d-9f74-bc89-45db-d4a286d2a81a@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="331"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.1 To: Drew Adams , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 21 03:03:51 2024 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 1tOoqN-000AXQ-8x for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 21 Dec 2024 03:03:51 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOoph-0007d0-CH; Fri, 20 Dec 2024 21:03:09 -0500 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 1tOopf-0007cr-NL for help-gnu-emacs@gnu.org; Fri, 20 Dec 2024 21:03:07 -0500 Original-Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tOopd-0001j1-Ok for help-gnu-emacs@gnu.org; Fri, 20 Dec 2024 21:03:07 -0500 Original-Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-436202dd730so18219505e9.2 for ; Fri, 20 Dec 2024 18:03:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734746581; x=1735351381; darn=gnu.org; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=MJidmMeE0599RnRonyL89su6Bnny9wRYP3ToSoFjY4s=; b=XE3ktwJg7hlW1Hml/lOpxOp7IKP57+TZmO4BRCVn2RhJMHWG8oz6X2SnYrRfAF8uXe HHsUQYm3U39YNcVFpjSFJjhIMFQ+EApcC3Y/GQ652xIYDg8sFCAsxoRIdnJnR18h9gA4 6xovSIE1ODkUIQLbg9uoxpH31dP7fERbm0yQGJjU+x8NrL1CIdLz34Aj6thylISwMYLU YDWQacsFNpcpIVV5onssabNAky6DVrMg/H+JQlGEoOk4TdQISfMfe6uns/cbjavlR8dc 3VmkXWY3tToSvTWEZXzFSUOJ36PyJf+V8FKQYEkQtsQh6gSyI0kj0TJYe7gRHn+Zk7vA Lsqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734746581; x=1735351381; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=MJidmMeE0599RnRonyL89su6Bnny9wRYP3ToSoFjY4s=; b=UWvBN2ibbTDZFFlyTmriKVT1UwuKJsImkut+dinTv6SWGaJ9Uhzxyg5N2nIxsyT3iQ plCrWghiIG6n8TpVMoRhQzAPjYek98LXtE0e/ou7I1/iFsXEHfnTxOobDAppHOD1hjtk BON79T5dN6iJGZHo7xeIJ/SwLpXJGD3d0b+89FJ7KZLdy6SNgqo7M/olwQI4wst40cRv 1pv0xJt1DE/sdC4uzvS2HsmucB3o9glSg3ylsjTgo3aXCTEfHSnoOrH2LGIBtjTAm3nd 0zBsxhteAqAGwkbST0Bj1f9eNcyX3WZrELIBUxZu2r4NpGzvS3PY39c+DFNbc+Dlg6j9 n5NQ== X-Forwarded-Encrypted: i=1; AJvYcCU59kXEYj6UWUhc3+Ifbi3R3DKh4j1AUeTNN8wbF3u05RchtAdTqM0epxV2XijwN/9kU4gFazhPKS1H4BkGYg==@gnu.org X-Gm-Message-State: AOJu0YwyoX3OfRbtnu9Xh4gKTT6XwAU98mKj9vb3zNNOr0EQ+LQIO7Qw n/OjP7ma2N2gKM5WqZM0KE2STMyctrze9ZRDIRFWhBxDmoFgGIRSTtlZiw== X-Gm-Gg: ASbGncu+QYvOKcSXM7xg9zBeKCMebPEenq9mGB3HsGgnWF+YhITT3GpS/pKsmKO3voC xwCnErgMoGYSiQ1/HrMYEylfVUQvgLZtldUCXWXajHEXKQrlJKO5z1A0d4nVFwhFuKROS0KwdeS aPxSFV/mO/KOSZ+GtPcPoPhwKNUJxBxpB1zRv98e48FM03MIj81YR8jQoAG483MH9r2dleo6P5h NmSCnv0SJMQnZmYxBUlPrIqQ064n0jAuzDuL8AaB4HurprIuS4W3xWtG5G71p3YWjfpZOyrKncB yyD+NkJd5VRNjcmoTRzGbie8wXgBGQPvQSFa7Wuge/dG8cS98JBU X-Google-Smtp-Source: AGHT+IHgh9pL1vpg1+VNwMl0K2/U1+PwWB/1rJ2fsWRWHfmZdYf8piNXEQAh/3L/kFoiJtQBVEZ1xw== X-Received: by 2002:a05:600c:1c28:b0:434:f953:eed with SMTP id 5b1f17b1804b1-43668b78d06mr45312265e9.30.1734746580384; Fri, 20 Dec 2024 18:03:00 -0800 (PST) Original-Received: from [192.168.1.120] (broadband-37-110-24-126.ip.moscow.rt.ru. [37.110.24.126]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4365c08afcbsm71773455e9.21.2024.12.20.18.02.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 Dec 2024 18:02:58 -0800 (PST) Content-Language: ru In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=tatsu.takamaro@gmail.com; helo=mail-wm1-x32e.google.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 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, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=0.1, NICE_REPLY_A=-0.363, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148900 Archived-At: Thank you. Too complicated for now, but I save it for future use. I'll turn to the question after moving to Debian. пт, 20.12.2024 18:34, Drew Adams пишет: > > You can see all threads here: > > https://mail.gnu.org/archive/html/help-gnu-emacs/2024-12/ > > For your Q4: > > 1. https://mail.gnu.org/archive/html/help-gnu-emacs/2024-12/msg00329.html > > 2. https://mail.gnu.org/archive/html/help-gnu-emacs/2024-12/msg00332.html > > 3. https://mail.gnu.org/archive/html/help-gnu-emacs/2024-12/msg00337.html > > 4. https://mail.gnu.org/archive/html/help-gnu-emacs/2024-12/msg00340.html > > *From:* Tatsu Takamaro *Sent:* Thursday, December 19, 2024 6:18 PM > > I did answer that.  IMO, it's not super-straightforward.  As I said (Eli didn't agree), Emacs doesn't know about a Windows task bar.  (The task bar can be in different places and have different sizes.  AFAIK, you need to access the registry to find out its details.) > > Unless someone gives you a simpler approach, maybe take a look at `frame-cmds.el' and `oneonone.el' for info about how I, at least, position/resize frames so their bottoms are on the task bar. > > https://www.emacswiki.org/emacs/download/frame-cmds.el > > https://www.emacswiki.org/emacs/download/oneonone.el > >  I didn't get the mail with Q4 at all, nor in the Trash bin, don't > know why ... > > And what about Linux? Next year I plan to migrate to Debian, with > Wayland. Will I have the same matter there? > > Dunno. The same general approaches apply. The code I cited is relevant > for any platform, in principle. > > For now I just calculate the height in characters by the hit-and-miss > method. But I'll have to do it on every new machine or monitor, so > it's better to have a way out. > > Maybe, setting in percents. The height of a taskbar is 60 px for my 4k > (ultraHD) monitor, so it's 60 out of 2160 px, or 2,(7)% (~2,8%) of a > screen height. Thus, an Emacs'es height may be 99,97% of the screen's. > But I'm afraid the size may differ. So what about Debian? >