all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* newbie elisp help ??
@ 2007-08-15 17:27 William Case
  2007-08-15 17:48 ` Lennart Borgman (gmail)
       [not found] ` <46C342F9.8070808@gmail.com>
  0 siblings, 2 replies; 11+ messages in thread
From: William Case @ 2007-08-15 17:27 UTC (permalink / raw)
  To: EMACS List

Hi;

I am trying to write a function that will insert a line of asterisks+
spaces across a buffer (as a section divider).  It was started as an
exercise and has become an exercise in futility.

I am working in the scratch pad using C-j to test the function as it is
being built.  I have:  (insert "* ").  It returns "* nil". Obviously I
don't want the "nil" to appear.  How do I get rid of it? 

More importantly to me, how do I get the (insert "* ") command to repeat
27 times to give me 54 characters across the buffer?  I know how to make
a recursive loop, but it seems to me this is a fairly common challenge
and there is a probably a function for repetition that I can't find.

I suppose I am asking for the programming equivalent of 'C-u n'.

'insert-char' allows for repeating but only one character at a time, not
two.

Any guidance would be appreciated.

-- 
Regards Bill

^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <mailman.4824.1187198869.32220.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2007-08-17 20:44 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-15 17:27 newbie elisp help ?? William Case
2007-08-15 17:48 ` Lennart Borgman (gmail)
2007-08-15 18:16   ` William Case
2007-08-15 18:24     ` Lennart Borgman (gmail)
     [not found] ` <46C342F9.8070808@gmail.com>
2007-08-15 19:07   ` William Case
     [not found] <mailman.4824.1187198869.32220.help-gnu-emacs@gnu.org>
2007-08-15 18:02 ` Pascal Bourguignon
2007-08-15 19:04   ` William Case
2007-08-17 20:44   ` Thien-Thi Nguyen
2007-08-15 20:08 ` Joel J. Adamson
2007-08-16  2:30   ` William Case
     [not found]   ` <mailman.4845.1187231410.32220.help-gnu-emacs@gnu.org>
2007-08-16 14:09     ` Joel J. Adamson

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.