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 14:10:46 +0200

> Date: Sun, 04 Dec 2022 13:49:39 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> 
> > Date: Sun, 04 Dec 2022 11:16:47 +0000
> > From: Heime <heimeborgia@protonmail.com>
> > Cc: help-gnu-emacs@gnu.org
> > 
> > > > 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.
> 
> Insert enough newlines where you lack lines, and insert enough SPC
> characters to have the column you want.

Also, the function move-to-column can optionally insert SPC characters if
the line is shorter than the column to which you want to get.



reply via email to

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