* Inserting n instances (multiple) of the same character
@ 2009-09-17 12:57 Nordlöw
2009-09-17 13:04 ` Joost Kremers
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Nordlöw @ 2009-09-17 12:57 UTC (permalink / raw
To: help-gnu-emacs
Is there a specific way to insert n number of characters, in my case
space?
Thanks in advance,
Per Nordlöw
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Inserting n instances (multiple) of the same character
2009-09-17 12:57 Inserting n instances (multiple) of the same character Nordlöw
@ 2009-09-17 13:04 ` Joost Kremers
2009-09-18 8:17 ` Nordlöw
2009-09-17 13:05 ` Teemu Likonen
2009-09-17 13:05 ` Benjamin Andresen
2 siblings, 1 reply; 6+ messages in thread
From: Joost Kremers @ 2009-09-17 13:04 UTC (permalink / raw
To: help-gnu-emacs
Nordlöw wrote:
> Is there a specific way to insert n number of characters, in my case
> space?
(insert (make-string 5 ?\s))
see:
(info "(elisp) Creating Strings")
HTH
--
Joost Kremers joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Inserting n instances (multiple) of the same character
2009-09-17 12:57 Inserting n instances (multiple) of the same character Nordlöw
2009-09-17 13:04 ` Joost Kremers
@ 2009-09-17 13:05 ` Teemu Likonen
2009-09-17 13:05 ` Benjamin Andresen
2 siblings, 0 replies; 6+ messages in thread
From: Teemu Likonen @ 2009-09-17 13:05 UTC (permalink / raw
To: help-gnu-emacs
On 2009-09-17 05:57 (-0700), Nordlöw wrote:
> Is there a specific way to insert n number of characters, in my case
> space?
Yes, use a numeric prefix argument: C-u <n> <character>
So, if n is 10 and character is "a" you could type:
C-u 10 a
M-1 0 a
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Inserting n instances (multiple) of the same character
2009-09-17 12:57 Inserting n instances (multiple) of the same character Nordlöw
2009-09-17 13:04 ` Joost Kremers
2009-09-17 13:05 ` Teemu Likonen
@ 2009-09-17 13:05 ` Benjamin Andresen
2009-10-12 3:43 ` David Combs
2 siblings, 1 reply; 6+ messages in thread
From: Benjamin Andresen @ 2009-09-17 13:05 UTC (permalink / raw
To: help-gnu-emacs
Nordlöw <per.nordlow@gmail.com> writes:
> Is there a specific way to insert n number of characters, in my case
> space?
C-u 10 SPC
or
M-1 M-0 SPC
are ways to do that.
> Thanks in advance,
> Per Nordlöw
br,
benny
P.S. For those kind of questions. (Short and succinct) it's a good idea
to ask them in #emacs on irc.freenode.org, you'll mostly get help
instantaneous.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Inserting n instances (multiple) of the same character
2009-09-17 13:04 ` Joost Kremers
@ 2009-09-18 8:17 ` Nordlöw
0 siblings, 0 replies; 6+ messages in thread
From: Nordlöw @ 2009-09-18 8:17 UTC (permalink / raw
To: help-gnu-emacs
On Sep 17, 3:04 pm, Joost Kremers <joostkrem...@yahoo.com> wrote:
> Nordlöw wrote:
> > Is there a specific way to insert n number of characters, in my case
> > space?
>
> (insert (make-string 5 ?\s))
>
> see:
>
> (info "(elisp) Creating Strings")
>
> HTH
>
> --
> Joost Kremers joostkrem...@yahoo.com
> Selbst in die Unterwelt dringt durch Spalten Licht
> EN:SiS(9)
Great!
Thanks,
Per Nordlöw
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Inserting n instances (multiple) of the same character
2009-09-17 13:05 ` Benjamin Andresen
@ 2009-10-12 3:43 ` David Combs
0 siblings, 0 replies; 6+ messages in thread
From: David Combs @ 2009-10-12 3:43 UTC (permalink / raw
To: help-gnu-emacs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 334 bytes --]
In article <871vm590w9.fsf@in-ulm.de>,
Benjamin Andresen <benny@in-ulm.de> wrote:
>Nordlöw <per.nordlow@gmail.com> writes:
>
>> Is there a specific way to insert n number of characters, in my case
>> space?
>
>C-u 10 SPC
>or
>M-1 M-0 SPC <<<<============== NEW TO ME! (but yes it sure works!)
>
>are ways to do that.
David
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-10-12 3:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-17 12:57 Inserting n instances (multiple) of the same character Nordlöw
2009-09-17 13:04 ` Joost Kremers
2009-09-18 8:17 ` Nordlöw
2009-09-17 13:05 ` Teemu Likonen
2009-09-17 13:05 ` Benjamin Andresen
2009-10-12 3:43 ` David Combs
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.