From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dr Rainer Woitok Newsgroups: gmane.emacs.help Subject: Re: Inserting at particular buffer position Date: Sun, 4 Dec 2022 16:52:00 +0100 Message-ID: <25484.49696.452473.920014@tux.local> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24075"; mail-complaints-to="usenet@ciao.gmane.io" Cc: To: Heime Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 04 16:52:52 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p1rIR-00062H-F0 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Dec 2022 16:52:51 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p1rHk-0004CQ-Rw; Sun, 04 Dec 2022 10:52:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p1rHi-0004CF-U9 for help-gnu-emacs@gnu.org; Sun, 04 Dec 2022 10:52:06 -0500 Original-Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p1rHh-0002bF-FD for help-gnu-emacs@gnu.org; Sun, 04 Dec 2022 10:52:06 -0500 Original-Received: by mail-ej1-x62f.google.com with SMTP id gu23so22382092ejb.10 for ; Sun, 04 Dec 2022 07:52:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:in-reply-to:subject:cc:to:date:message-id :content-transfer-encoding:mime-version:from:from:to:cc:subject:date :message-id:reply-to; bh=EvzbJfZtbq7c/fd3ODCAhLa81ia1toCqUEd1wPDrNZc=; b=njNx9g+tv2iXkrgDctxGtLKWO477z+CY+c3hnfAilN6aBAdKNq1wpmaBzWz3XX0Tq8 vG+O2ZWEXUTtKuDoggDmeZvhkVG4Btmwa3DbrUtIsUGzG6lKEfp+7qpoMeAPGtpJsyIY SdPM02xL+nehfToAZH1vwPa3dElqmE1e4D1RsXwfx1N08vZWm+sLulU5Wxsp8FE7zmn8 wzAHqq5pOXkgDJNINahHSPOFMHJhBfhjzdfIiH6dZtoYu6jzRpO23eCrpXzQ52KLHu3K XLO9GOuUWZJk3t6KusRQcnyHtchYJcwITCzPK4EpdKP20tC+E39TSomvLloOYIHiF+QT SQ+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:subject:cc:to:date:message-id :content-transfer-encoding:mime-version:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=EvzbJfZtbq7c/fd3ODCAhLa81ia1toCqUEd1wPDrNZc=; b=rCyyJQiWI1tTpnr7hGNs2J+B6H9EQPqXO8tTIZcg1aNzsiOsFGkEjymHLLQXDuIm7Q I37CLp8aWLFR2oMGtYA0gdERa+PPidVIZIBIw+OOUUPCn7HDeJnFmTFV5mMB8x47WyXt EdktYpqxzDNt+NkrVmbPx/XaDNB7WiTkiag93KvBnD27Hcnb6QOF9jhukK8arordwkUh cVBHAWRQcF1gw39XBgnpbOONJpHij82iiZ0c2L4T6GYGx2Muz3GOmZ4MLfZJSOgK5kIt GOKob/nL+8OP0FmAOksJNp5CFXAVm0O4y1p0Hs3e0StO/d/tzObDa1Fb92M3CqXbtg+L gCVg== X-Gm-Message-State: ANoB5pm3cAhlnVUvL/4gx4XK1IhHI94pMFKAHR3XW5yiX+3AxYQ/zF/I 7SVPJvUKsNpjq8IKGdqGjCA= X-Google-Smtp-Source: AA0mqf6WIwawKHfRYK54yNVweX4xNit3kSysDJeI/tH+6PE2KHYreEZy0+bRLi4t/PC9VYwmiT3/JA== X-Received: by 2002:a17:906:2692:b0:789:d492:89f5 with SMTP id t18-20020a170906269200b00789d49289f5mr69407805ejc.103.1670169123258; Sun, 04 Dec 2022 07:52:03 -0800 (PST) Original-Received: from gmail.com (p200300df071dd6df9ce247e2d398a4e7.dip0.t-ipconnect.de. [2003:df:71d:d6df:9ce2:47e2:d398:a4e7]) by smtp.gmail.com with ESMTPSA id sa22-20020a170906edb600b0073d7ab84375sm5328242ejb.92.2022.12.04.07.52.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Dec 2022 07:52:02 -0800 (PST) X-Google-Original-From: Dr Rainer Woitok In-Reply-To: Msg of 2022-12-04 16:21:41 +0300 from bugs@gnu.support X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta34) "kale" XEmacs Lucid (x86_64-pc-linux) Received-SPF: pass client-ip=2a00:1450:4864:20::62f; envelope-from=rainer.woitok@gmail.com; helo=mail-ej1-x62f.google.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.258, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141360 Archived-At: On Sunday, 2022-12-04 16:21:41 +0300, Jean Louis wrote: > * Heime [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