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

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

Re: Inserting at particular buffer position


From: Eli Zaretskii
Subject: Re: Inserting at particular buffer position
Date: Sun, 04 Dec 2022 12:01:49 +0200

> Date: Sun, 04 Dec 2022 08:04:03 +0000
> From: Heime <heimeborgia@protonmail.com>
> Cc: help-gnu-emacs@gnu.org
> 
> ------- Original Message -------
> On Sunday, December 4th, 2022 at 7:24 AM, Eli Zaretskii <eliz@gnu.org> wrote:
> 
> 
> > > Date: Sun, 04 Dec 2022 01:12:52 +0000
> > > From: Heime heimeborgia@protonmail.com
> > > 
> > > The function "insert", inserts characters into the current buffer, at 
> > > point, moving point forward.
> > > But how can I insert at a particular position (row column).
> > 
> > 
> > You need to move point there first. For example, with goto-char (if you
> > know the buffer position), or with forward-line followed by move-to-column
> > (of you know the line and column).
> 
> A problem that I encounter is that if the position (row col) is not available,
> point does not switch to the correct position.

What do you mean by "position not available"?

How do you compute that position's row and column, if it isn't available?



reply via email to

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