From: Luc Teirlinck <teirllm@dms.auburn.edu>
Subject: last-abbrev-location
Date: Mon, 23 Feb 2004 22:37:53 -0600 (CST) [thread overview]
Message-ID: <200402240437.i1O4brQ20503@raven.dms.auburn.edu> (raw)
Unlike `abbrev-start-location', which is a marker,
`last-abbrev-location' is just a buffer position, an integer. Is
there a reason for this? It seems to cause problems.
Do `emacs -q'. Define an abbrev `exp' expanding to `expansion'.
In the *scratch* buffer type exp in the following position (no
trailing whitespace):
;; This buffer is for notes you don't want to save, and for Lisp evaluation.
;; If you want to create a file, visit that file with C-x C-f,
;; then enter the text in that file's own buffer.
exp
Then expand exp. Go to the previous line and type 12345:
;; This buffer is for notes you don't want to save, and for Lisp evaluation.
;; If you want to create a file, visit that file with C-x C-f,
;; then enter the text in that file's own buffer.
12345
expansion
M-x unexpand-abbrev results in:
;; This buffer is for notes you don't want to save, and for Lisp evaluation.
;; If you want to create a file, visit that file with C-x C-f,
;; then enter the text in that file's own buffer.
1expnsion
This does not seem right and I have the impression that if
`last-abbrev-location' were a marker instead of an integer, one would
get:
;; This buffer is for notes you don't want to save, and for Lisp
evaluation.
;; If you want to create a file, visit that file with C-x C-f,
;; then enter the text in that file's own buffer.
12345
exp
It would seem from the docstring of `unexpand-abbrev' that it is still
supposed to work orrectly after some minor editing of the type
described above:
Undo the expansion of the last abbrev that expanded.
This differs from ordinary undo in that other editing done since then
is not undone.
Sincerely,
Luc.
next reply other threads:[~2004-02-24 4:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-24 4:37 Luc Teirlinck [this message]
2004-02-24 14:19 ` last-abbrev-location Luc Teirlinck
2004-02-25 13:23 ` last-abbrev-location Richard Stallman
2004-02-26 2:17 ` last-abbrev-location Luc Teirlinck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200402240437.i1O4brQ20503@raven.dms.auburn.edu \
--to=teirllm@dms.auburn.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.