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: Heime
Subject: Re: Inserting at particular buffer position
Date: Sun, 04 Dec 2022 11:16:47 +0000

------- Original Message -------
On Sunday, December 4th, 2022 at 10:01 AM, Eli Zaretskii <eliz@gnu.org> wrote:


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

Suppose I insert in the current buffer, to a line larger than the greatest line
where the cursor can go.  Nothing gets printed after that.  And if I try to 
print
to a column which is larger than available whitespace, things do not get 
printed.



reply via email to

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