[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Elisp help

From: Barry Margolin
Subject: Re: Elisp help
Date: Sat, 13 Oct 2007 22:40:31 -0400
User-agent: MT-NewsWatcher/3.5.2 (PPC Mac OS X)

In article <address@hidden>,
 address@hidden (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, address@hidden
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 ***

reply via email to

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