From: Barry Margolin <barmar@alum.mit.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: Using backward-char non-interactively
Date: Tue, 31 Dec 2013 09:56:15 -0500 [thread overview]
Message-ID: <barmar-551F13.09561531122013@news.eternal-september.org> (raw)
In-Reply-To: mailman.10751.1388498331.10748.help-gnu-emacs@gnu.org
In article <mailman.10751.1388498331.10748.help-gnu-emacs@gnu.org>,
Marcin Borkowski <mbork@wmi.amu.edu.pl> wrote:
> Hi,
>
> is it ok to use backward-char in elisp programs assuming that I did
> check that I'm not at beginning of buffer? Or is it better to use
> (goto-char (1- point)) or something like that? Or maybe it doesn't
> matter? ("Better" may be in terms of style, speed, or side effects,
> like cluttering the *Messages* buffer.)
Most command functions are OK to use in programs. The handful that
shouldn't say something in their documentation string, usually with a
pointer to an alternative function that's better.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
next parent reply other threads:[~2013-12-31 14:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.10751.1388498331.10748.help-gnu-emacs@gnu.org>
2013-12-31 14:56 ` Barry Margolin [this message]
2013-12-31 17:55 ` Using backward-char non-interactively Emanuel Berg
2013-12-31 13:58 Marcin Borkowski
2013-12-31 18:10 ` Andreas Röhler
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=barmar-551F13.09561531122013@news.eternal-september.org \
--to=barmar@alum.mit.edu \
--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.