From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?S2FpIEdyb8Ofam9oYW5u?= Newsgroups: gmane.emacs.help Subject: Re: About `char' in momentary-string-display Date: Thu, 17 Oct 2013 22:12:22 +0200 Message-ID: <526044A6.80602@gmx.net> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1382040710 19580 80.91.229.3 (17 Oct 2013 20:11:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Oct 2013 20:11:50 +0000 (UTC) Cc: help-gnu-emacs To: Xue Fuqiao Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 17 22:11:54 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 1VWtvF-00042C-OM for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Oct 2013 22:11:53 +0200 Original-Received: from localhost ([::1]:54081 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWtvF-0001AH-8K for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Oct 2013 16:11:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWtuv-0001A8-IL for help-gnu-emacs@gnu.org; Thu, 17 Oct 2013 16:11:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VWtuo-0007vt-8T for help-gnu-emacs@gnu.org; Thu, 17 Oct 2013 16:11:33 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:64576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWtun-0007vl-W8 for help-gnu-emacs@gnu.org; Thu, 17 Oct 2013 16:11:26 -0400 Original-Received: from marcie.lan ([188.100.165.77]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0M6O1v-1Vw1Rf0isN-00yOAe for ; Thu, 17 Oct 2013 22:11:24 +0200 User-Agent: Postbox 3.0.8 (Macintosh/20130427) Original-Newsgroups: gmane.emacs.help In-Reply-To: X-Provags-ID: V03:K0:buCx0B9yJvmA9rme64UASUe5g/txSz6+1M0qXqbyuC8KDuE6+PT eOLpPqBqTTsSuUultZfNwoojKny//7useKVzReq3PoCz4mtWE8HFa1bxKJvAyDeUSAn/crv g6ThfX1sSmFLS1hkZgvHsfV8ORvhan5j9StWG9FcRxmFMNrcVIAyAw8E+gUNpeGqx0tCdwt uCe3fid7x60ftQafy0GOA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.17.20 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:94065 Archived-At: Xue Fuqiao wrote: > I tried evaluating ‘(momentary-string-display "foo" 1)’ in the *scratch* > buffer and typed ‘C-f’, but the point didn't move forward. I think it's related to evaluation in the *scratch* buffer. Try typing M-: and then eval the expession there -- it works as advertised. But how exactly the *scratch* buffer makes it fail, I'm not sure. I tried to eval (previous-line 3) in the scratch buffer, and it dutifully went up some lines before inserting "nil" (the return value). Kai