all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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 12:01:49 +0200	[thread overview]
Message-ID: <83mt83bi7m.fsf@gnu.org> (raw)
In-Reply-To: <qeavqLgS0FD6MvgfnZplG-szm5hy712Tzn1qlw7evP1OMXseyC4EsmMAHctkKD6hnL5ZgFrPnevEmdN0CcNgUGIsZkoZEicZoGVVheY9I2k=@protonmail.com> (message from Heime on Sun, 04 Dec 2022 08:04:03 +0000)

> 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	other threads:[~2022-12-04 10:01 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 [this message]
2022-12-04 11:16       ` Heime
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

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

  git send-email \
    --in-reply-to=83mt83bi7m.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.