From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: michael-franzese@gmx.com Newsgroups: gmane.emacs.help Subject: Re: Inserting some text in a working buffer Date: Sat, 8 May 2021 10:22:20 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39926"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: michael-franzese@gmx.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 08 10:22:53 2021 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 1lfIEf-000AGE-KT for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 08 May 2021 10:22:53 +0200 Original-Received: from localhost ([::1]:40600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfIEe-0002QJ-Ng for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 08 May 2021 04:22:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfIEC-0002Pv-75 for help-gnu-emacs@gnu.org; Sat, 08 May 2021 04:22:24 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:49319) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfIEA-0002e1-DD for help-gnu-emacs@gnu.org; Sat, 08 May 2021 04:22:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620462140; bh=X+e7TK7m1G4QmyY8q//LVkGWVYCR0A9aM9cFfydLgto=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=P+K7MDcGHoxPJ3FU+j/3pXMKkkAqRHnVM2nS/diY1kxQ5aQJspQq4mARcuObxLVx+ Z3MNT4aysRFJHmZDuoQFNobCi3doSTGLvfZpBwUNbCYgD9ylCjtHKunRX5sTWgRXya RtS/7R7tFURS/2e77UNU6iieYZGnczDAzdrYdorc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs15.server.lan [172.19.170.183]) (via HTTP); Sat, 8 May 2021 10:22:20 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:xKx/l/mHzPj9PIqLb6IguBiNkpK5KM4UEtxNMvAUHIusC1qZiFbKR50ISzMp6eeB4fgo0 X+kaYiBChfSzGo1D6BhNXDb2hScQ04lFDq5lIw3kuYeNv9unvZa9tuoaGxqOwh6VfwgbWzP6ax2f UyTY7IvIZNPAjo8JHINDroHat//f7iRXgjUc7CAMKOVHd5vmr2BBUzSLgQP/ijMcbA9CAMDk8f5u lKLjc24Jg9NKH9Q2nOWPxF8+OOpW/5jBHUb1lYneJo3WGYixzg7AVgwjqCbNEMKyk8WTfNcYyYfG vc= X-UI-Out-Filterresults: notjunk:1;V03:K0:G3FiN8lx1Ts=:SZmUxT5tKBw1PJNTZ58G0Q Hl5tx19zulBWfelZZ5J1pTESZ9LDLIbS09jk4FLRu4thoEHPa+SmL4thztBoknjMVqYDzh01G QftyXwMXCxkZvfr87Ot+mGuov0PR81eAg0Sy5u4eWlMxFPwV/rgI+cyNPvnw4ocFfGoVbBfsP 5t85UFd+4W0PlsqFrWwXb2hQbg1QCIaTYgTgFg/zBejnj9qxpqFBw2P8GC4iTpenbx4oZzeEZ 1wlImOhMTPBlQAbTJuG9XnIz35j/WJrqRWQCp5JHQ5chx1GDz4dot/aG6bWCt9VRPBwM4xK5D ThNW/pOiQeisgCVSGk8ZNkgNYLJsXx5vF7k+KrSx7KO4fLufLI+rh1lU3rUjhB9EFYpcBOs5j tAlLgYvRdTJ9kiDU1G2MwluyPRwFuzV78Rv/xBIOsLacI7Aahl5wCQ4Ztr3xPJgfqBP4j6Gjg eZBAKphunDyeXFChdloWwX3lr0ARy1eizWalFuppSb904yTem3ojZl94xpDzqEF4NPu/s0Al4 GLyNXqptGw8ItgWsE8dW6njzLep1DvXQ+BY2rOJcCSC+dq9a2QZaM5T9kTu8dVjwbTZun5mh6 Jj5A9QmP0TonaOfeUhVmuk5pF53CtbIGeQ84JehPO/1AvU20E1N9zNfq+GRaNZa1o3rreXbvI gdEHBl8lrXglDYi/h1t6rk3BgJBG5MCpCkxtlooffm2Iv9bRTsStculI+oJPbuin5Bzy7DtD3 9HJqb6EE8DSMYlLIQIbI6FLrQDKI9Voh1VwQX8GC3FQ5dPhdn6Bt/UNKhXrWfzorrkYs/bdb Received-SPF: pass client-ip=212.227.15.15; envelope-from=michael-franzese@gmx.com; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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.23 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" Xref: news.gmane.io gmane.emacs.help:129561 Archived-At: Have done this to write to the working buffer. But if there is not enough= space till the end of the buffer, continuing to call "insert-text" will not inse= rt. (defun insert-text (text) "Inserts text frem beginning of line located at cursor point." (interactive) (with-current-buffer (buffer-name) (goto-char (point)) (insert text) (next-line)) ) > Sent: Saturday, May 08, 2021 at 6:28 PM > From: michael-franzese@gmx.com > To: "Help Gnu Emacs" > Subject: Inserting some text in a working buffer > > Is it possible to insert some text in a working buffer starting flom the > beginning of the line. > > > >