From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lister Account Newsgroups: gmane.emacs.help Subject: Re: conditional text insertion Date: Tue, 19 Jul 2011 10:40:06 -0700 Message-ID: References: <4E25313A.3080405@dogan.se> <87livu9yg8.fsf@mean.albasani.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016364c723540971904a86f9b2d X-Trace: dough.gmane.org 1311099553 16965 80.91.229.12 (19 Jul 2011 18:19:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 19 Jul 2011 18:19:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 19 20:19:09 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QjEsu-00042K-So for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Jul 2011 20:19:09 +0200 Original-Received: from localhost ([::1]:49422 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjEso-0004a6-GA for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Jul 2011 14:19:02 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjEHF-000467-U5 for help-gnu-emacs@gnu.org; Tue, 19 Jul 2011 13:40:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QjEHB-0003Cj-8n for help-gnu-emacs@gnu.org; Tue, 19 Jul 2011 13:40:13 -0400 Original-Received: from mail-ew0-f41.google.com ([209.85.215.41]:38369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjEH9-0003BB-Ng for help-gnu-emacs@gnu.org; Tue, 19 Jul 2011 13:40:08 -0400 Original-Received: by ewy9 with SMTP id 9so160092ewy.0 for ; Tue, 19 Jul 2011 10:40:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=7YjXTMuZVxFR9+piATp+12vmeBh/7VFMHG3QvEs9GJQ=; b=g3e5k7JFIJNDIhXgiMAfViKRfhzp3GcigyPhSI/UOtn2y+MMWudQkKwenjAM2weV7X YrEsEgKoC+cukfg/ezcM1+xRTuet/7vUOMN66onburyfSptUFEOYN86J19GW36+KSzsf jsUG4PF0O5R+kY5fgpZxWwa5hbuDVWZw5U0LI= Original-Received: by 10.14.10.83 with SMTP id 59mr2925536eeu.154.1311097206379; Tue, 19 Jul 2011 10:40:06 -0700 (PDT) Original-Received: by 10.14.119.202 with HTTP; Tue, 19 Jul 2011 10:40:06 -0700 (PDT) In-Reply-To: <87livu9yg8.fsf@mean.albasani.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.215.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81681 Archived-At: --0016364c723540971904a86f9b2d Content-Type: text/plain; charset=ISO-8859-1 It's funny you should say that. I made a note to myself this morning: "Learn how to use the help system better" :) Your advice is not being taken lightly. On Tue, Jul 19, 2011 at 7:02 AM, Memnon Anon < gegendosenfleisch@googlemail.com> wrote: > Hi Lister, > Lister Account writes: > > > I updated line 3 above because I was getting the error "Wrong Number > > of Arguments". A little googling led me to the solution. > > Google works of course, but it is *really* faster to get used > to emacs self documenting facilities. > > In this case, I used `C-h f' move-end-of-line: > > ,---- > | move-end-of-line is an interactive compiled Lisp function in > | `simple.el'. > | > | It is bound to C-e, . > | > | (move-end-of-line ARG) > | > | For more information check the manuals. > | > ! Move point to end of current line as displayed. > ! With argument ARG not nil or 1, move forward ARG - 1 lines first. > | If point reaches the beginning or end of buffer, it stops there. > | > | To ignore the effects of the `intangible' text or overlay > | property, bind `inhibit-point-motion-hooks' to t. > | If there is an image in the current line, this function > | disregards newlines that are part of the text on which the image > | rests. > `---- > > So we need an arg, (move-end-of-line nil) should do. > > What is the advantage of this approach to google? > > a) Faster: Its all there, already. I can type `C-h f' faster > than my browser starts up. > b) Up to date: There is lots of stuff on the net, but > believe it or not, emacs changes. The build in > documentation is always uptodate, or at least > up to the date you are using now. > c) See the source: With a single on "in `simple.el', you > get the source of the function. If you want to learn > elisp, just go and browse ;). > > Well, there are other benefits, but those seem to me the most potent > ones. > > hth > Memnon > > P.S: (info "(emacs) Help Summary") <--- C-x C-e here > is a good starting point. > > > --0016364c723540971904a86f9b2d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable It's funny you should say that.=A0 I made a note to myself this morning= :=A0

"Learn how to use the help system better"

:)=

Your advice is not being taken lightly.

On Tue, Jul 19, 2011 at 7:02 AM, Memnon Anon <gegendosenfleisch@googlemail.c= om> wrote:
Hi Lister,
Lister Account <lister345@gmail.com> writes:

> I updated line 3 above because I was getting the error "Wrong Num= ber
> of Arguments".=A0 A little googling led me to the solution.

Google works of course, but it is *really* faster to get used
to emacs self documenting facilities.

In this case, I used `C-h f' move-end-of-line:

,----
| move-end-of-line is an interactive compiled Lisp function in
| `simple.el'.
|
| It is bound to C-e, <end>.
|
| (move-end-of-line ARG)
|
| For more information check the manuals.
|
! Move point to end of current line as displayed.
! With argument ARG not nil or 1, move forward ARG - 1 lines first.
| If point reaches the beginning or end of buffer, it stops there.
|
| To ignore the effects of the `intangible' text or overlay
| property, bind `inhibit-point-motion-hooks' to t.
| If there is an image in the current line, this function
| disregards newlines that are part of the text on which the image
| rests.
`----

So we need an arg, (move-end-of-line nil) should do.

What is the advantage of this approach to google?

a) Faster: Its all there, already. I can type `C-h f' faster
=A0 =A0 =A0 =A0 =A0 than my browser starts up.
b) Up to date: There is lots of stuff on the net, but
=A0 =A0 =A0 =A0 =A0 believe it or not, emacs changes. The build in
=A0 =A0 =A0 =A0 =A0 documentation is always uptodate, or at least
=A0 =A0 =A0 =A0 =A0 up to the date you are using now.
c) See the source: With a single <ret> on "in `simple.el', y= ou
=A0 =A0 =A0 =A0 =A0 get the source of the function. If you want to learn =A0 =A0 =A0 =A0 =A0 elisp, just go and browse ;).

Well, there are other benefits, but those seem to me the most potent
ones.

hth
Memnon

P.S: (info "(emacs) Help Summary") <--- C-x C-e here
=A0 =A0 is a good starting point.



--0016364c723540971904a86f9b2d--