Skip to main content
clarification
Link
NickD
  • 33.6k
  • 3
  • 30
  • 47

How to insert character or word NthN times in a buffer or file?

How to inputinsert character or word Nth timetimes in a buffer or file?

Just curious to know how to do this, since i already know in other languages (bash, etc).

I know how to inputinsert a character in elisp, just not sure on how to do it when it's done nth time (in succession) in elisp.

Here an example:

Basically, inserting (in file or buffer) the character X, 10 times.

XXXXXXXXXX something like that.

How to input character or word Nth time in a buffer or file?

Just curious to know how to do this, since i already know in other languages (bash, etc).

I know how to input character in elisp, just not sure on how to do it when it's done nth time (in succession) in elisp.

Here an example:

Basically, inserting (in file or buffer) the character X, 10 times.

XXXXXXXXXX something like that.

How to insert character or word Nth times in a buffer or file?

Just curious to know how to do this, since i already know in other languages (bash, etc).

I know how to insert a character in elisp, just not sure on how to do it when it's done nth time (in succession) in elisp.

Here an example:

Basically, inserting (in file or buffer) the character X, 10 times.

XXXXXXXXXX something like that.

edited tags; edited tags
Link
Drew
  • 79.1k
  • 10
  • 123
  • 257
added 111 characters in body
Source Link
Loading
Source Link
Loading