[Top][All Lists]

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

About the value of `last-abbrev-text'

From: Xue Fuqiao
Subject: About the value of `last-abbrev-text'
Date: Fri, 28 Feb 2014 21:05:36 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)


I'm twiddling with abbrev.el now.  The doc string of `last-abbrev-text' says:

  The exact text of the last abbrev expanded.
  It is nil if the abbrev has already been unexpanded.

I didn't see the expected value of this variable.  Here's my experiment:

1. emacs -Q
2. Evaluate the following expressions:
--8<---------------cut here---------------start------------->8---
;; Clear existing value
(clear-abbrev-table global-abbrev-table)

  '(("ge" "GNU Emacs")))

;; Turn on abbrev-mode globally
(setq-default abbrev-mode t)
--8<---------------cut here---------------end--------------->8---
3. Type `g e SPC', `GNU Emacs ' appeared;
4. The value of `last-abbrev-text' became `#("ge" 0 2 (fontified t))',
   but what I expected was "GNU Emacs".

FYI I'm using Emacs 24.3.50 (current trunk) on Ubuntu 13.10.  I've
searched the FAQ/web/archives, but didn't get anything that looked
promising.  Can anyone point me in the right direction?

reply via email to

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