[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mail-abbrev-end-of-buffer apparently does nothing
From: |
Richard Stallman |
Subject: |
Re: mail-abbrev-end-of-buffer apparently does nothing |
Date: |
Fri, 27 Apr 2007 02:00:06 -0400 |
Apparently mail-abbrev-end-of-buffer does nothing special: it jumps to
the end of buffer but does not expand the abbreviation.
The code tries to expand:
(defun mail-abbrev-end-of-buffer (&optional arg)
"Expand any mail abbrev, then move point to end of buffer.
Leave mark at previous position.
With arg N, put point N/10 of the way from the true end.
Don't use this command in Lisp programs!
\(goto-char (point-max)) is faster and avoids clobbering the mark."
(interactive "P")
(if (looking-at "[ \t]*\n") (expand-abbrev))
Why doesn't it work for you?