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: Heime
Subject: Re: Dedicated buffer with buttons that show messages in a central display area
Date: Tue, 15 Nov 2022 19:39:10 +0000

------- Original Message -------
On Tuesday, November 15th, 2022 at 12:54 AM, Emanuel Berg <incal@dataswamp.org> 
wrote:


> 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))
 
This does not work when buffer does not have position (x,y) as whitespace.

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