help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inserting some text in a working buffer


From: michael-franzese
Subject: Re: Inserting some text in a working buffer
Date: Sat, 8 May 2021 10:22:20 +0200

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 insert.

(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" <help-gnu-emacs@gnu.org>
> 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.
>
>
>
>



reply via email to

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