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: Emanuel Berg
Subject: Re: Inserting some text in a working buffer
Date: Sun, 09 May 2021 06:11:21 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

michael-franzese wrote:

> Thank you Emanuel, glad you found the post amusing.
>
> Apart further into giggles, I would like to insert the text
> starting from the current point to column position 62.
> But with the following code, the text is bei= ng inserted
> before (point) rather than at (point).

(defun insert-char-to-col (char col)
  "Insert CHAR to COL."
  (interactive "cchar: \nncol: ")
  (let*((len (- col (current-column)))
        (str (make-string len char)) )
    (insert str) ))

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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