[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About `char' in momentary-string-display

From: Kevin Rodgers
Subject: Re: About `char' in momentary-string-display
Date: Thu, 17 Oct 2013 07:17:20 -0600
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv: Gecko/20120306 Thunderbird/3.1.20

On 10/17/13 7:06 AM, Xue Fuqiao wrote:

In (info "(elisp) Temporary Displays"):

  -- Function: momentary-string-display string position&optional char
      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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]