From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: source liu Newsgroups: gmane.emacs.help Subject: Re: problem repeat entry for a number Date: Wed, 14 Mar 2012 16:46:13 +0800 Message-ID: References: <87pqcp0yec.fsf@mithlond.arda> <874ntzh5zu.fsf@gnuvola.org> <87vcmffp6t.fsf@gnuvola.org> <87mx7mqda4.fsf@gnuvola.org> <874ntskcch.fsf@gnuvola.org> <871uovtznz.fsf@gnuvola.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1331714799 7819 80.91.229.3 (14 Mar 2012 08:46:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 14 Mar 2012 08:46:39 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Thien-Thi Nguyen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 14 09:46:39 2012 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 1S7jqv-0004Rl-FZ for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Mar 2012 09:46:37 +0100 Original-Received: from localhost ([::1]:36827 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7jqs-0006LO-Jt for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Mar 2012 04:46:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7jqj-0006KY-2f for help-gnu-emacs@gnu.org; Wed, 14 Mar 2012 04:46:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7jqa-0005Bn-PK for help-gnu-emacs@gnu.org; Wed, 14 Mar 2012 04:46:24 -0400 Original-Received: from mail-yw0-f41.google.com ([209.85.213.41]:56535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7jqa-0005BU-Iw for help-gnu-emacs@gnu.org; Wed, 14 Mar 2012 04:46:16 -0400 Original-Received: by yhr47 with SMTP id 47so1838538yhr.0 for ; Wed, 14 Mar 2012 01:46:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=gI3pW8eCv6uSMGpd1TeSiJvSnWmqJsMJqIzaIYK2xiQ=; b=YTfvm/RP7Xvn95rK6Dx/B+oCw0KFESAj9k4Rsgze4GaD9BRz/QdLaDFDGJtxZQcTxV mWsXffc49jjsgQce1/l+yRR86D8+/5Uwhkrz2sdR9GyRDxenrsxJFCscLjgiJk47MEzP 9mZxgiaqhRo1l0EEy4sHVh81e1YYFfOqZqbjdrElB2FqTbc9SuNngrtQuPl2qSW6VfHr 4GQdabAwYholXPlOLdj8cO4iemLvSt0LFfNiDYpwslrb8k9yX3yIphCh8/yPsq+KU0s9 VBW7tdtuHGaDORba4wzKd89gP2iG3z8wdPzClOHISoZC+rDJMIGPxLOj9YpX6JSVggsm UZZA== Original-Received: by 10.68.129.70 with SMTP id nu6mr2348984pbb.89.1331714773180; Wed, 14 Mar 2012 01:46:13 -0700 (PDT) Original-Received: by 10.143.58.4 with HTTP; Wed, 14 Mar 2012 01:46:13 -0700 (PDT) In-Reply-To: <871uovtznz.fsf@gnuvola.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.213.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:84026 Archived-At: > =A0(defun p-try (&optional arg) > =A0 "Show ARG in the echo area, as by (interactive \"p\")." > =A0 (interactive "p") > =A0 (message "arg is: %S" arg)) > > =A0(defun P-try (&optional arg) > =A0 "Show ARG in the echo area, as by (interactive \"P\")." > =A0 (interactive "P") > =A0 (message "arg is: %S" arg)) > > =A0(global-set-key [(shift return)] 'p-try) > =A0(global-set-key [(meta =A0return)] 'P-try) > > If you evaluate these forms in *scratch*, you can try the > following experiments: > > 1. S-RET > 2. C-u S-RET > 3. C-u - S-RET > 4. C-u - C-u S-RET > (and so on) Interesting example, maybe i could start my survey of elisp from here. Here 4th cases the 2nd C -u serves as mutiple by 4. Right? > C-u is a way to supply qualified numerical information, and not > only numerical. =A0Perhaps someone who knows its history can explain > how it evolved to its present functionality. Got it. no more questions on this topic for now. > I am a student of Emacs. You are modest! > Thanks for the opportunity to spew. =A0:-D did it feel more purify of yourself after spew? :-D --=20 Liu An Institution of modern physics, Shanghai, China