diff options
| author | Glenn Morris | 2009-03-12 06:23:35 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-03-12 06:23:35 +0000 |
| commit | 1fa1ea7dec9b226818418bc06b18e232c2b219da (patch) | |
| tree | 5aa7c78025ed9269eebd7affe532976ef740479e | |
| parent | a9f586142a53670ebbe034b97619822102afc2de (diff) | |
| download | emacs-1fa1ea7dec9b226818418bc06b18e232c2b219da.tar.gz emacs-1fa1ea7dec9b226818418bc06b18e232c2b219da.zip | |
(mail-abbrev-next-line, mail-abbrev-end-of-buffer): Doc fixes.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mail/mailabbrev.el | 33 |
2 files changed, 15 insertions, 23 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index daead11a8d4..6f7ed27306a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-03-12 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * mail/mailabbrev.el (mail-abbrev-next-line) | ||
| 4 | (mail-abbrev-end-of-buffer): Doc fixes. | ||
| 5 | |||
| 1 | 2009-03-11 Jason Rumney <jasonr@gnu.org> | 6 | 2009-03-11 Jason Rumney <jasonr@gnu.org> |
| 2 | 7 | ||
| 3 | * term/w32-win.el (w32-initialize-window-system): Don't override | 8 | * term/w32-win.el (w32-initialize-window-system): Don't override |
diff --git a/lisp/mail/mailabbrev.el b/lisp/mail/mailabbrev.el index 7e2d62da05c..b0d77217dcb 100644 --- a/lisp/mail/mailabbrev.el +++ b/lisp/mail/mailabbrev.el | |||
| @@ -592,39 +592,26 @@ of a mail alias. The value is set up, buffer-local, when first needed.") | |||
| 592 | alias)))))) | 592 | alias)))))) |
| 593 | 593 | ||
| 594 | (defun mail-abbrev-next-line (&optional arg) | 594 | (defun mail-abbrev-next-line (&optional arg) |
| 595 | "Expand any mail abbrev, then move cursor vertically down ARG lines. | 595 | "Expand a mail abbrev before point, then move vertically down ARG lines. |
| 596 | If there is no character in the target line exactly under the current column, | 596 | This only expands an abbrev (if one is present) if called with |
| 597 | the cursor is positioned after the character in that line which spans this | 597 | point at the end of a line, or on whitespace before the end of a line. |
| 598 | column, or at the end of the line if it is not long enough. | 598 | |
| 599 | If there is no line in the buffer after this one, | 599 | In terms of line motion, this behaves like `next-line', which see." |
| 600 | a newline character is inserted to create a line | ||
| 601 | and the cursor moves to that line. | ||
| 602 | |||
| 603 | The command \\[set-goal-column] can be used to create | ||
| 604 | a semipermanent goal column to which this command always moves. | ||
| 605 | Then it does not try to move vertically. This goal column is stored | ||
| 606 | in `goal-column', which is nil when there is none. | ||
| 607 | |||
| 608 | If you are thinking of using this in a Lisp program, consider | ||
| 609 | using `forward-line' instead. It is usually easier to use | ||
| 610 | and more reliable (no dependence on goal column, etc.)." | ||
| 611 | (interactive "p") | 600 | (interactive "p") |
| 612 | (if (looking-at "[ \t]*\n") (expand-abbrev)) | 601 | (if (looking-at "[ \t]*\n") (expand-abbrev)) |
| 613 | (setq this-command 'next-line) | 602 | (setq this-command 'next-line) |
| 614 | (with-no-warnings (next-line arg))) | 603 | (with-no-warnings (next-line arg))) |
| 615 | 604 | ||
| 616 | (defun mail-abbrev-end-of-buffer (&optional arg) | 605 | (defun mail-abbrev-end-of-buffer (&optional arg) |
| 617 | "Expand any mail abbrev, then move point to end of buffer. | 606 | "Expand a mail abbrev before point, then move to the end of the buffer. |
| 618 | Leave mark at previous position. | 607 | This only expands an abbrev (if one is present) if called with |
| 619 | With arg N, put point N/10 of the way from the true end. | 608 | point at the end of a line, or on whitespace before the end of a line. |
| 620 | 609 | ||
| 621 | Don't use this command in Lisp programs! | 610 | In other respects, this behaves like `end-of-buffer', which see." |
| 622 | \(goto-char (point-max)) is faster and avoids clobbering the mark." | ||
| 623 | (interactive "P") | 611 | (interactive "P") |
| 624 | (if (looking-at "[ \t]*\n") (expand-abbrev)) | 612 | (if (looking-at "[ \t]*\n") (expand-abbrev)) |
| 625 | (setq this-command 'end-of-buffer) | 613 | (setq this-command 'end-of-buffer) |
| 626 | (with-no-warnings | 614 | (with-no-warnings (end-of-buffer arg))) |
| 627 | (end-of-buffer arg))) | ||
| 628 | 615 | ||
| 629 | (eval-after-load "sendmail" | 616 | (eval-after-load "sendmail" |
| 630 | '(progn | 617 | '(progn |