From: Dr Rainer Woitok <rainer.woitok@gmail.com>
To: Heime <heimeborgia@protonmail.com>
Cc: <help-gnu-emacs@gnu.org>
Subject: Re: Inserting at particular buffer position
Date: Sun, 4 Dec 2022 16:52:00 +0100 [thread overview]
Message-ID: <25484.49696.452473.920014@tux.local> (raw)
In-Reply-To: Msg <Y4ye5f7KJd5PbVY5@protected.localdomain> of 2022-12-04 16:21:41 +0300 from bugs@gnu.support
On Sunday, 2022-12-04 16:21:41 +0300, Jean Louis wrote:
> * 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))
Heime,
a week or so ago you flabbergasted me (and probably others) with your
claim that programming is neither engineering nor science, but rather
sports. This claim made me gasp at first, but gradually I am getting
your point. While what makes up the Art of Programming can be looked-up
in Donald Knuth's book, what makes up the Sports of Programming can be
looked-up in your mails: just stubbornly nag people with sometimes very
imprecise questions, assumptions and allegations, and sooner or later
good-natured people like Jean Louis and plenty of others fall victim to
your tactics and start writing you the programmes you need.
You have meanwhile got so many code snippets to solve your problems that
with a little additional manual reading, thinking, testing and adapting
your programme(s) should almost be working.
I take this as a Proof of Concept that programming is sports. Congratu-
lations :-)
Sincerely,
Rainer
next prev parent reply other threads:[~2022-12-04 15:52 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
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 [this message]
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=25484.49696.452473.920014@tux.local \
--to=rainer.woitok@gmail.com \
--cc=heimeborgia@protonmail.com \
--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).