all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lister Account <lister345@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: conditional text insertion
Date: Tue, 19 Jul 2011 10:40:06 -0700	[thread overview]
Message-ID: <CAPj0jr-Z3px4FXX=CraA3hyB+djSNMut89dUxi_2hjjxxBGQpA@mail.gmail.com> (raw)
In-Reply-To: <87livu9yg8.fsf@mean.albasani.net>

[-- Attachment #1: Type: text/plain, Size: 2071 bytes --]

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 <lister345@gmail.com> 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, <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
>           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 <ret> 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.
>
>
>

[-- Attachment #2: Type: text/html, Size: 2732 bytes --]

  reply	other threads:[~2011-07-19 17:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-19  5:47 conditional text insertion Lister Account
2011-07-19  7:24 ` Deniz Dogan
2011-07-19  8:54   ` Lister Account
2011-07-19  9:57     ` Lister Account
2011-07-19 14:02       ` Memnon Anon
2011-07-19 17:40         ` Lister Account [this message]
2011-07-19 10:02     ` Deniz Dogan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPj0jr-Z3px4FXX=CraA3hyB+djSNMut89dUxi_2hjjxxBGQpA@mail.gmail.com' \
    --to=lister345@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.