|
From: | Jean Louis |
Subject: | Re: Dedicated buffer with buttons that show messages in a central display area |
Date: | Sun, 13 Nov 2022 18:42:40 +0300 |
User-agent: | Mutt/2.2.7+37 (a90f69b) (2022-09-02) |
* Heime <heimeborgia@protonmail.com> [2022-11-13 13:02]: > Would you give me an example of how to place a button at a specified buffer > position? How would you specify it? You may use function `goto-char' as linear movement. You could as well use `goto-line' and then (goto-char (point-at-bol)) and after `forward-char' to go to some column of the text, this reminds me as coordinate with X and Y. (defun goto-x-y (x y) "Goto to line X, char Y." (goto-line x) (goto-char (point-at-bol)) (forward-char y)) (goto-x-y 10 20) -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/
[Prev in Thread] | Current Thread | [Next in Thread] |