From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xue Fuqiao Newsgroups: gmane.emacs.help Subject: About a programming tip Date: Thu, 21 Feb 2013 09:51:12 +0800 Organization: The Church of Emacs Message-ID: <20130221095112.1c8466f4687368f36805ea40@gmail.com> 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 1361411492 25660 80.91.229.3 (21 Feb 2013 01:51:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Feb 2013 01:51:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 21 02:51:53 2013 Return-path: 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 ) id 1U8LKC-0000X0-JQ for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Feb 2013 02:51:52 +0100 Original-Received: from localhost ([::1]:38176 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8LJs-0002WC-Cv for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Feb 2013 20:51:32 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8LJh-0002Lh-No for help-gnu-emacs@gnu.org; Wed, 20 Feb 2013 20:51:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8LJe-0005vS-Uy for help-gnu-emacs@gnu.org; Wed, 20 Feb 2013 20:51:21 -0500 Original-Received: from mail-pa0-f51.google.com ([209.85.220.51]:56934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8LJe-0005ut-OQ for help-gnu-emacs@gnu.org; Wed, 20 Feb 2013 20:51:18 -0500 Original-Received: by mail-pa0-f51.google.com with SMTP id hz1so4394015pad.10 for ; Wed, 20 Feb 2013 17:51:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:subject:message-id:organization:x-mailer :mime-version:content-type:content-transfer-encoding; bh=lLJ75tpWHOKAzFSN+RqbJ+Iljv4PbugbStrmogbUGkA=; b=gPw/TqX2kT3cl41QP15dkyPbs8sssCLN9mospETCtfLHSaatm+VTYAogBaXiWah/bQ qaGtwSeZNAmBiGoo0DSfST4g1+QUPqO/TiHT8EyAF+lM7kMSDQEpFgJS7EGxB4WKYoNb oeahqNeU+FgdHim2HWoxlCqmJr9bmLgHrfrU0o3soD1u4G3GlS4MrHRgtvQYHqAo/A7D T8ayPyedQW4FPrCt1ogLuUniaflt6Nn+b5M/c4FRpU5Xo6e+PhVqM+1fj4bpgTffzPrn uxgCCVCFC2HbN869HBSvfLwCjQG5KCyxlb8fAQ22b52hBUs+aInz2favkklfSxjD8/ye 5p+A== X-Received: by 10.66.184.208 with SMTP id ew16mr57180128pac.19.1361411476727; Wed, 20 Feb 2013 17:51:16 -0800 (PST) Original-Received: from Emacs ([219.224.52.162]) by mx.google.com with ESMTPS id bi8sm113029636pab.15.2013.02.20.17.51.14 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Feb 2013 17:51:15 -0800 (PST) X-Mailer: Sylpheed 3.2.0 (GTK+ 2.24.13; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.220.51 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:89204 Archived-At: In (info "(elisp) Programming Tips"): * In `interactive', if you use a Lisp expression to produce a list of arguments, don't try to provide the "correct" default values for region or position arguments. [...] You do not need to take such precautions when you use interactive specs `d', `m' and `r', because they make special arrangements to recompute the argument values on repetition of the command. I'm confused with these two sentences. The first sentence says that "don't try to provide the 'correct' default values for region or position arguments", but the second sentence says that "you don't need to take such precautions when you use interactive specs `d', `m' and `r'". IIRC the specs `d', `m' and `r' are "region or position arguments". Where do I understand wrong, or is it a bug? Thanks. -- Best regards, Xue Fuqiao. http://www.emacswiki.org/emacs/XueFuqiao