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

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



  reply	other threads:[~2022-12-04 11:49 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
2022-12-04 11:49         ` Eli Zaretskii [this message]
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=83edtfbd7w.fsf@gnu.org \
    --to=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).