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: Jean Louis
Subject: Re: Inserting at particular buffer position
Date: Sun, 4 Dec 2022 16:21:41 +0300
User-agent: Mutt/2.2.9+50 (c79959e) (2022-11-21)

* Heime <heimeborgia@protonmail.com> [2022-12-04 04:14]:
> 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).

I have Deja Vu.

(defun goto-x-y (x y)
  "Goto to line X, char Y."
  (goto-line x)
  (goto-char (point-at-bol))
  (forward-char y))


-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



reply via email to

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