help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [External] : Q3 - how to delete by words, not cut? --- about Q4 - th


From: Tatsu Takamaro
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
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.1

   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-<left>" #'tt-delword-backward
         "C-S-<right>" #'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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]