From: Jean Louis <bugs@gnu.support>
To: Heime <heimeborgia@protonmail.com>
Cc: Heime via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Re: Dedicated buffer with buttons that show messages in a central display area
Date: Sun, 13 Nov 2022 18:42:40 +0300 [thread overview]
Message-ID: <Y3EQcDcTbPt9JDo1@protected.localdomain> (raw)
In-Reply-To: <LzwTO8fIP-axrDtGhjUzoX5vexSMuL1Nq7ycHwjtJWYiNG0pf-wyXHvCEJjHqWFfo_nuKgvozheRSG4yAGUYDimdijt7ADYgALbSz2kjPqM=@protonmail.com>
* 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/
next prev parent reply other threads:[~2022-11-13 15:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-11 14:33 Dedicated buffer with buttons that show messages in a central display area Heime
2022-11-11 15:15 ` Emanuel Berg
2022-11-11 18:38 ` Jean Louis
2022-11-12 7:58 ` Heime
2022-11-12 8:31 ` Jean Louis
2022-11-13 10:02 ` Heime
2022-11-13 15:42 ` Jean Louis [this message]
2022-11-15 0:54 ` Emanuel Berg
2022-11-15 19:39 ` Heime
2022-11-13 11:26 ` Emanuel Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y3EQcDcTbPt9JDo1@protected.localdomain \
--to=bugs@gnu.support \
--cc=heimeborgia@protonmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).