From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Marcin Borkowski <mbork@wmi.amu.edu.pl>
Newsgroups: gmane.emacs.help
Subject: Using backward-char non-interactively
Date: Tue, 31 Dec 2013 14:58:43 +0100
Organization: WMI UAM
Message-ID: <20131231145843.661d4304@aga-netbook>
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Trace: ger.gmane.org 1388498659 2742 80.91.229.3 (31 Dec 2013 14:04:19 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 31 Dec 2013 14:04:19 +0000 (UTC)
To: GNU Emacs users list <help-gnu-emacs@gnu.org>
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 31 15:04:26 2013
Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>
Envelope-to: geh-help-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1Vxzvl-0007TN-5m
	for geh-help-gnu-emacs@m.gmane.org; Tue, 31 Dec 2013 15:04:25 +0100
Original-Received: from localhost ([::1]:33818 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1Vxzvk-0000C3-F5
	for geh-help-gnu-emacs@m.gmane.org; Tue, 31 Dec 2013 09:04:24 -0500
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44586)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mbork@wmi.amu.edu.pl>) id 1VxzqK-0004zB-Ue
	for help-gnu-emacs@gnu.org; Tue, 31 Dec 2013 08:58:49 -0500
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mbork@wmi.amu.edu.pl>) id 1VxzqJ-0006cP-UY
	for help-gnu-emacs@gnu.org; Tue, 31 Dec 2013 08:58:48 -0500
Original-Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:51312)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mbork@wmi.amu.edu.pl>) id 1VxzqJ-0006c7-Nx
	for help-gnu-emacs@gnu.org; Tue, 31 Dec 2013 08:58:47 -0500
Original-Received: from localhost (localhost [127.0.0.1])
	by msg.wmi.amu.edu.pl (Postfix) with ESMTP id CDEAF6B6CD
	for <help-gnu-emacs@gnu.org>; Tue, 31 Dec 2013 14:58:44 +0100 (CET)
Original-Received: from msg.wmi.amu.edu.pl ([127.0.0.1])
	by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id m73Jfd0tGnIB for <help-gnu-emacs@gnu.org>;
	Tue, 31 Dec 2013 14:58:44 +0100 (CET)
Original-Received: from aga-netbook (unknown [IPv6:2001:808:114:6:11f:67b6:b394:21c4])
	by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id A3D166B6C9
	for <help-gnu-emacs@gnu.org>; Tue, 31 Dec 2013 14:58:44 +0100 (CET)
X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.17; i686-pc-linux-gnu)
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
	(bad octet value).
X-Received-From: 2001:808:114:2::50
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 <help-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/help-gnu-emacs>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=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:95213
Archived-At: <http://permalink.gmane.org/gmane.emacs.help/95213>

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.)

TIA,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University