From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: About `char' in momentary-string-display Date: Thu, 17 Oct 2013 07:17:20 -0600 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1382015849 28584 80.91.229.3 (17 Oct 2013 13:17:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Oct 2013 13:17:29 +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 Oct 17 15:17:32 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 1VWnSF-0004GH-J1 for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Oct 2013 15:17:31 +0200 Original-Received: from localhost ([::1]:52216 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWnSB-0004fK-Ux for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Oct 2013 09:17:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60242) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWnRv-0004f4-68 for help-gnu-emacs@gnu.org; Thu, 17 Oct 2013 09:17:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VWnRn-0005cI-Sj for help-gnu-emacs@gnu.org; Thu, 17 Oct 2013 09:17:11 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:35088) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWnRn-0005c9-LP for help-gnu-emacs@gnu.org; Thu, 17 Oct 2013 09:17:03 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VWnRn-000415-5D for help-gnu-emacs@gnu.org; Thu, 17 Oct 2013 15:17:03 +0200 Original-Received: from 97-122-176-111.hlrn.qwest.net ([97.122.176.111]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Oct 2013 15:17:03 +0200 Original-Received: from kevin.d.rodgers by 97-122-176-111.hlrn.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Oct 2013 15:17:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 97-122-176-111.hlrn.qwest.net User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:94055 Archived-At: On 10/17/13 7:06 AM, Xue Fuqiao wrote: > Hi, > > 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 ‘(momentary-string-display "foo" 1)’ in the *scratch* > buffer and typed ‘C-f’, but the point didn't move forward. Instead, a > ‘[6]’ is echoed in the *Messages* buffer. I don't know what the ‘[6]’ > 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? What happens if you specify C-f as CHAR: (momentary-string-display "foo" 1 ?\C-f) -- Kevin Rodgers Denver, Colorado, USA