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: Fri, 20 Dec 2024 05:18:29 +0300 Message-ID: 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="18071"; 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 Fri Dec 20 03:19:11 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 1tOSbf-0004Zd-7v for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 20 Dec 2024 03:19:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOSbA-0006nd-Eb; Thu, 19 Dec 2024 21:18:40 -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 1tOSb7-0006nG-SN for help-gnu-emacs@gnu.org; Thu, 19 Dec 2024 21:18:37 -0500 Original-Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tOSb5-0001s9-JY for help-gnu-emacs@gnu.org; Thu, 19 Dec 2024 21:18:37 -0500 Original-Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-38789e5b6a7so769869f8f.1 for ; Thu, 19 Dec 2024 18:18:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734661113; x=1735265913; 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=5AnmdHC9bdcWhgWnsEm2p/qdLiWcJVnQZfFhwrO3T6E=; b=QiPjQmMO620wHoD8Rwr8K4kkgO4A+LXuPfdlSr+/UvST3ec0XLNZfkr2iKzmZQrTTe PfmdUDJ+MDbe0DVehWmGJgCCsR27n+nlRpIzxzgW54lHkST0wY21zt1GiRjrWc3lg31P C5gkzeLorFSCeNKWMV2e+QCNKxzafeHEp8snNKWT7bm9OFaU2oXsBrP4xJj0FuI/GDUv 38fguP/jJIwvoOkREz2E/HmqAclbEb5js2w91ryyljETHf7ry7ShsaUN9M0WqXtqEJq/ soFl5gSdszGnZT5qA+H8sxDQz8GvbOdnc7lJK1OwNjUqcsxWnMRUu/ZQrHqNFiB05MTD JsWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734661113; x=1735265913; 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=5AnmdHC9bdcWhgWnsEm2p/qdLiWcJVnQZfFhwrO3T6E=; b=uA/YAaEwkF65/dsZTkbQ8ZSl2FJabwybZDhz9BUVzVXtV49j1XU5xA6y+23QB+f0AH oPbVHLhWUC4TO2+b24pE9W7cck2zYDRsWRALhPNNjXMVCOx5wfsxBvqvRP2l8FgySjsw 8OWUCtelXeaVBEljtaq9+6rUwSUltQlf1c6wTDG5zW9+5KJVuGXU/UV9Fu4vBiQL87e5 nMfSCe1wCGkBU/0hmsafH9L92qBeE2LypfxngbHjN4eYUiMdD6ef4eI6/ZyNOTx/XHKw hx2tzN5u8wkz+rNxM/aAnzJo0ZieYsywmcameuiY/VRWssIU3BArbLaJOBa/SeJlzOKp FgUg== X-Forwarded-Encrypted: i=1; AJvYcCUJQdNn7xsb+a/GdMSK4sTgCh6tq6wLocF/F1cX14wkApIAUdQC5VoLZiWr9R2PGC528yt7SeYyErrtJJ0PlQ==@gnu.org X-Gm-Message-State: AOJu0YxQS1JyWPlceYE7MjCKjfv7dlwBTsGyAe5PD6aScDFJC60PnCuI 8erRy1brSGiCgeKwneCHmXZbKbTpH25H67AAfwV0hDNHbbnX0/9aF49tDA== X-Gm-Gg: ASbGncu2VfTPFZU1UstG2yl9oVquBANJatENi69CgkEmdt/iuENBmhGs1OyhD5wxbw/ O1kh/7HWVfrJsqK12UDHGjYlJcVrLXAdoAOnPXlSzw4USX2Ih1uvpwW+9FitcByaGZi928uIkEn 3PTfuca1siaAot5h/rtoXzEDbYGFqWLpHKEWUdmjv+giuwKa1ddJcLZNR+mk637SXTbUERkuBdk DUOHZe9UjNqyOwT7WP9vX6g1wNH40VuZn38kzjIugpbtUCbPAIvAG6UCZGue8BB2n3OoFItFB0Y UrnEMBr51EdC74SmIMbEIxfWznBvDA0beIZGxrHaVKp7CmGAsYzr X-Google-Smtp-Source: AGHT+IE96R9lxeICT54URfk3veqnSM2/7+yn93Qb6CrVbVKLsEW9LOlMzVWQa8y90gPWnO+zLZ0RXg== X-Received: by 2002:a05:6000:4007:b0:382:4926:98fa with SMTP id ffacd0b85a97d-38a223f5c46mr1013273f8f.40.1734661113082; Thu, 19 Dec 2024 18:18:33 -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 ffacd0b85a97d-38a1c84ca21sm2852027f8f.63.2024.12.19.18.18.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Dec 2024 18:18:31 -0800 (PST) Content-Language: ru In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=tatsu.takamaro@gmail.com; helo=mail-wr1-x436.google.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 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, NICE_REPLY_A=-2.107, 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:148886 Archived-At: 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? 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? пт, 20.12.2024 4:38, Drew Adams пишет: > From: Tatsu Takamaro Sent: Thursday, December 19, 2024 4:19 PM > >> Got it! Just needed to use a function name that I defined in the first line of "defun..." > "C-S-" #'tt-delword-backward > "C-S-" #'tt-delword-forward > >> So easy! I entangled myself trying to find out "some way to bind a whole piece of code to a key". >> >>> You need to read up on `interactive'. >> Yes, you're right. The word "interactive" played a trick on me first. English is not my native and the docs could be tricky sometimes. I learned Lisp (it was Scheme (script fu), a dialect of Lisp to create plugins for GIMP) many years ago, rather unusual language and that's what makes it interesting. > You're doing fine. It takes time to find one's way around these things. A few things, in particular, are a bit complicated (key bindings, menus, font-lock, display-buffer-alist,...). > >> Thanks for your patience in explaining! I'm grateful to you and to all who has been answering! > You're welcome. > >> So, now there is only one question stays unanswered. I posted it under title "Q4 - the bottom edge of Emacs doesn't stick to the taskbar", no answers for now. > 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 >