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:44:17 +0800 Message-ID: References: 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 1382082268 19502 80.91.229.3 (18 Oct 2013 07:44:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Oct 2013 07:44:28 +0000 (UTC) Cc: help-gnu-emacs To: Kevin Rodgers Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 18 09:44:33 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 1VX4jZ-0001rK-GC for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Oct 2013 09:44:33 +0200 Original-Received: from localhost ([::1]:56151 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VX4jX-0000EY-0x for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Oct 2013 03:44:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39992) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VX4jM-0000EB-8l for help-gnu-emacs@gnu.org; Fri, 18 Oct 2013 03:44:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VX4jK-0003rd-VT for help-gnu-emacs@gnu.org; Fri, 18 Oct 2013 03:44:20 -0400 Original-Received: from mail-ie0-x22a.google.com ([2607:f8b0:4001:c03::22a]:43793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VX4jK-0003rX-Qa for help-gnu-emacs@gnu.org; Fri, 18 Oct 2013 03:44:18 -0400 Original-Received: by mail-ie0-f170.google.com with SMTP id at1so6086672iec.29 for ; Fri, 18 Oct 2013 00:44:18 -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=MCssdza+06pzK37bRfZH4rpnc3Ea6fIIdJdv21ielSY=; b=ZrLM3vNGK6QLBFa3kOhPZM+F9g5Bnx/krE331G0qRMFKpxh0CXIY69wxmZxxRpQRyt KfkEQKp7frN7yq0TY1N0mbZUw6qqVrbeveh2kUkJs4/OQYRHIjZJdInljOdOd7WdxVQi /eybE5jxe2tU489QnTjXq2Cb+RSFulaS+DpWhZmHtx8uYtcI94a9ORC0VkNieUv6E81I Jfhc67wLZzVLlTZCWGSqPuo3u/WalOT2bnSH8fK2kQeNtX3tQO1cD3S+rDbV0mTy7c1J 8TbN34CxG7QsDeR0v5PtSUBZRWmC6+p3woZfZjNrOnpyO0aklrtfucNsrdVvuIx6vL8k osfA== X-Received: by 10.42.215.80 with SMTP id hd16mr906745icb.17.1382082258035; Fri, 18 Oct 2013 00:44:18 -0700 (PDT) Original-Received: by 10.42.133.72 with HTTP; Fri, 18 Oct 2013 00:44:17 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::22a 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:94075 Archived-At: On Thu, Oct 17, 2013 at 9:17 PM, Kevin Rodgers wrote: > On 10/17/13 7:06 AM, Xue Fuqiao wrote: >> In (info "(elisp) Temporary Displays"): >> >> -- Function: momentary-string-display string position&optional char >> >> message >> [...] >> Thus, typing CHAR will simply remove the string from the display, >> while typing (say) `C-f' will remove the string from the display >> and later (presumably) move point forward. The argument CHAR is a >> space by default. >> >> 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 the point didn't move forwar= d. Instead, a >> =E2=80=98[6]=E2=80=99 is echoed in the *Messages* buffer. I don't know = what the =E2=80=98[6]=E2=80=99 >> stands for, but the codepoint for ^F is #x6 (ACK). So I think there may >> be a link between them. >> >> But anyway, why didn't the point move forward (the point wasn't at eob)? >> Can anyone point me in the right direction? > > CHAR defaults to SPC, but you typed C-f. What happens if you type SPC? Thanks for your attention. If I type SPC, Emacs (as expected) ignores it. But what I'm asking is about the case when CHAR =E2=89=A0 the-characte= r-i-press. > What happens if you specify C-f as CHAR: > (momentary-string-display "foo" 1 ?\C-f) It doesn't make sense, I think. Emacs will simply remove "foo" from the display, and ignore the "C-f". It is the same as pressing SPC with =E2=80=98(momentary-string-display "foo" 1)=E2=80=99. --=20 Best regards, Xue Fuqiao. http://www.gnu.org/software/emacs/