unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Heime <heimeborgia@protonmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Inserting at particular buffer position
Date: Sun, 04 Dec 2022 11:16:47 +0000	[thread overview]
Message-ID: <pjb4O58wc7Koahzsds4DsfDVcNhZ9v5GivUu0d0q3UBO4FtC2KOzyrwv4ooGLzCCiJo1Az9FfTYMpdvxNRqJAiurd7i9tveMbr1_dkfCvQ8=@protonmail.com> (raw)
In-Reply-To: <83mt83bi7m.fsf@gnu.org>

------- 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	other threads:[~2022-12-04 11:16 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-04  1:12 Inserting at particular buffer position Heime
2022-12-04  7:24 ` Eli Zaretskii
2022-12-04  8:04   ` Heime
2022-12-04 10:01     ` Eli Zaretskii
2022-12-04 11:16       ` Heime [this message]
2022-12-04 11:49         ` Eli Zaretskii
2022-12-04 12:10           ` Eli Zaretskii
2022-12-04 12:27           ` Heime
2022-12-04 12:38             ` Eli Zaretskii
2022-12-04 13:22     ` Jean Louis
2022-12-04 13:52       ` Heime
2022-12-04 14:11         ` Jean Louis
2022-12-04 13:30     ` Jean Louis
2022-12-05  6:21       ` Heime
2022-12-05 18:59         ` Jean Louis
2022-12-04 13:21 ` Jean Louis
2022-12-04 15:52   ` Dr Rainer Woitok
2022-12-04 20:04     ` Heime

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='pjb4O58wc7Koahzsds4DsfDVcNhZ9v5GivUu0d0q3UBO4FtC2KOzyrwv4ooGLzCCiJo1Az9FfTYMpdvxNRqJAiurd7i9tveMbr1_dkfCvQ8=@protonmail.com' \
    --to=heimeborgia@protonmail.com \
    --cc=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).