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

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

Re: Dedicated buffer with buttons that show messages in a central displa


From: Emanuel Berg
Subject: Re: Dedicated buffer with buttons that show messages in a central display area
Date: Tue, 15 Nov 2022 01:54:06 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Jean Louis wrote:

> 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))

Problematic, you can use gamegrid for this

M-x tetris RET

>   (goto-char (point-at-bol))

It's called `line-beginning-position' now ...

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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