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: Re: About `char' in momentary-string-display Date: Fri, 18 Oct 2013 15:51:25 +0800 Message-ID: References: <526044A6.80602@gmx.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1382082702 24594 80.91.229.3 (18 Oct 2013 07:51:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Oct 2013 07:51:42 +0000 (UTC) Cc: help-gnu-emacs To: =?UTF-8?Q?Kai_Gro=C3=9Fjohann?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 18 09:51:45 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 1VX4qW-00069f-5H for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Oct 2013 09:51:44 +0200 Original-Received: from localhost ([::1]:56173 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VX4qV-0002B2-NY for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Oct 2013 03:51:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41859) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VX4qG-00028B-Ql for help-gnu-emacs@gnu.org; Fri, 18 Oct 2013 03:51:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VX4qE-0006Tt-V9 for help-gnu-emacs@gnu.org; Fri, 18 Oct 2013 03:51:28 -0400 Original-Received: from mail-ie0-x22f.google.com ([2607:f8b0:4001:c03::22f]:42803) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VX4qE-0006Tk-PM for help-gnu-emacs@gnu.org; Fri, 18 Oct 2013 03:51:26 -0400 Original-Received: by mail-ie0-f175.google.com with SMTP id aq17so5714153iec.6 for ; Fri, 18 Oct 2013 00:51:26 -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=HdixqdjgmMLPFMrbYstbM3aNQQZmPsNW3N0vMkj839g=; b=TLmKqE9m1QIvOFCpSMqQkX20+TVDfnZMALL6s76w4HZulDCjYPvhSQcwuvPG1ZEgRM flfMLhx2hUep99T01VC/ykMAamTf4rLcOsmjurYWXseXaYnWxOVhSsogpMyEkit46Oz/ FOuq2wiR9yZntmC6JNXRL2y0ZOQu8GpW44PQDoVLRFRmMhemzSOTQHEEfB7w7VdJBcmk 7LJLM2iOnEFOadKWsLHhLDLT7yc0XZOTLo6A58FKnp2YH9WJtii3rXfXJsn6hxahI7+C J30esBmBJhvou4gxYLUtXxf8POX+G3y7MJwUIX2rzUzrX/slb7QJRygclaRbzFEhTyfm xDug== X-Received: by 10.50.16.106 with SMTP id f10mr1058741igd.51.1382082685947; Fri, 18 Oct 2013 00:51:25 -0700 (PDT) Original-Received: by 10.42.133.72 with HTTP; Fri, 18 Oct 2013 00:51:25 -0700 (PDT) In-Reply-To: <526044A6.80602@gmx.net> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::22f 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:94077 Archived-At: On Fri, Oct 18, 2013 at 4:12 AM, Kai Gro=C3=9Fjohann wrote: > Xue Fuqiao wrote: >> I tried evaluating =E2=80=98(momentary-string-display "foo" 1)=E2=80=99 = in the *scratch* >> buffer and typed =E2=80=98C-f=E2=80=99, but 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). Thanks. But in fact I didn't use eval-print-last-sexp (which is bound to C-j in lisp-interaction-mode by default). I was using eval-last-sexp (C-x C-e). I also tried =E2=80=98load=E2=80=99 and =E2=80=98eval-expressio= n=E2=80=99, but neither of them worked as I expected. Maybe we are using different versions of Emacs? I'm using 24.3.50 (114635 eliz@gnu.org-20131012090021-bau450cmd6gk61ag) on Ubuntu 13.04. --=20 Best regards, Xue Fuqiao. http://www.gnu.org/software/emacs/