* Re: Elisp help
[not found] <1i5xqw1.1d7snli1fy5m8zN%zozette.milane@gmail.com>
@ 2007-10-13 20:54 ` David Kastrup
2007-10-14 2:40 ` Barry Margolin
2007-10-14 14:58 ` Xah Lee
2 siblings, 0 replies; 3+ messages in thread
From: David Kastrup @ 2007-10-13 20:54 UTC (permalink / raw)
To: help-gnu-emacs
zozette.milane@gmail.com (frederic) writes:
> Could anybody kelp me?
> I would like to write something like:
>
> if (I'am at the beginning of buffer)
> then (add a newline)
> else (do nothing)
>
> How are these lines writed in Elisp ?
(when (bobp) (newline))
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Elisp help
[not found] <1i5xqw1.1d7snli1fy5m8zN%zozette.milane@gmail.com>
2007-10-13 20:54 ` Elisp help David Kastrup
@ 2007-10-14 2:40 ` Barry Margolin
2007-10-14 14:58 ` Xah Lee
2 siblings, 0 replies; 3+ messages in thread
From: Barry Margolin @ 2007-10-14 2:40 UTC (permalink / raw)
To: help-gnu-emacs
In article <1i5xqw1.1d7snli1fy5m8zN%zozette.milane@gmail.com>,
zozette.milane@gmail.com (frederic) wrote:
> Could anybody kelp me?
> I would like to write something like:
>
> if (I'am at the beginning of buffer)
> then (add a newline)
> else (do nothing)
>
> How are these lines writed in Elisp ?
>
> frederic
(if (= (point) (point-min))
(insert "\n"))
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Elisp help
[not found] <1i5xqw1.1d7snli1fy5m8zN%zozette.milane@gmail.com>
2007-10-13 20:54 ` Elisp help David Kastrup
2007-10-14 2:40 ` Barry Margolin
@ 2007-10-14 14:58 ` Xah Lee
2 siblings, 0 replies; 3+ messages in thread
From: Xah Lee @ 2007-10-14 14:58 UTC (permalink / raw)
To: help-gnu-emacs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 452 bytes --]
On Oct 13, 9:53 am, zozette.mil...@gmail.com (frederic) wrote:
> Could anybody kelp me?
> I would like to write something like:
>
> if (I'am at the beginning of buffer)
> then (add a newline)
> else (do nothing)
See
· Elisp Language Basics
http://xahlee.org/emacs/elisp_basics.html
· Simple Elisp Grab Bag!
http://xahlee.org/emacs/elisp_examples.html
what you want is shown above.
Xah
xah@xahlee.org
http://xahlee.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-10-14 14:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1i5xqw1.1d7snli1fy5m8zN%zozette.milane@gmail.com>
2007-10-13 20:54 ` Elisp help David Kastrup
2007-10-14 2:40 ` Barry Margolin
2007-10-14 14:58 ` Xah Lee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).