diff options
| author | Glenn Morris | 2009-01-09 04:55:50 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-01-09 04:55:50 +0000 |
| commit | 0f69e911dc3d3782f3632ff72d256f1773fa76c3 (patch) | |
| tree | e6b132764703e0628129c4f604d12647a97a3208 | |
| parent | 8989a9203f73473569ddf83e505a846609def407 (diff) | |
| download | emacs-0f69e911dc3d3782f3632ff72d256f1773fa76c3.tar.gz emacs-0f69e911dc3d3782f3632ff72d256f1773fa76c3.zip | |
Replace last-input-char with last-input-event.
| -rw-r--r-- | lisp/mh-e/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/mh-e/mh-letter.el | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index 06b8244ea4e..969d91112f3 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2009-01-09 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * mh-letter.el: Replace last-input-char with last-input-event. | ||
| 4 | |||
| 1 | 2008-08-18 Bill Wohler <wohler@newt.com> | 5 | 2008-08-18 Bill Wohler <wohler@newt.com> |
| 2 | 6 | ||
| 3 | Release MH-E version 8.1. | 7 | Release MH-E version 8.1. |
diff --git a/lisp/mh-e/mh-letter.el b/lisp/mh-e/mh-letter.el index dc90066099c..45f8c3d08bf 100644 --- a/lisp/mh-e/mh-letter.el +++ b/lisp/mh-e/mh-letter.el | |||
| @@ -617,7 +617,7 @@ a copy of the draft." | |||
| 617 | mh-default-folder-for-message-function))) | 617 | mh-default-folder-for-message-function))) |
| 618 | "") | 618 | "") |
| 619 | t))) | 619 | t))) |
| 620 | (let ((last-input-char ?\C-f)) | 620 | (let ((last-input-event ?\C-f)) |
| 621 | (expand-abbrev) | 621 | (expand-abbrev) |
| 622 | (save-excursion | 622 | (save-excursion |
| 623 | (mh-to-field) | 623 | (mh-to-field) |
| @@ -647,10 +647,10 @@ Create the field if it does not exist. | |||
| 647 | Set the mark to point before moving." | 647 | Set the mark to point before moving." |
| 648 | (interactive) | 648 | (interactive) |
| 649 | (expand-abbrev) | 649 | (expand-abbrev) |
| 650 | (let ((target (cdr (or (assoc (char-to-string (logior last-input-char ?`)) | 650 | (let ((target (cdr (or (assoc (char-to-string (logior last-input-event ?`)) |
| 651 | mh-to-field-choices) | 651 | mh-to-field-choices) |
| 652 | ;; also look for a char for version 4 compat | 652 | ;; also look for a char for version 4 compat |
| 653 | (assoc (logior last-input-char ?`) | 653 | (assoc (logior last-input-event ?`) |
| 654 | mh-to-field-choices)))) | 654 | mh-to-field-choices)))) |
| 655 | (case-fold-search t)) | 655 | (case-fold-search t)) |
| 656 | (push-mark) | 656 | (push-mark) |
| @@ -658,7 +658,7 @@ Set the mark to point before moving." | |||
| 658 | (let ((eol (point))) | 658 | (let ((eol (point))) |
| 659 | (skip-chars-backward " \t") | 659 | (skip-chars-backward " \t") |
| 660 | (delete-region (point) eol)) | 660 | (delete-region (point) eol)) |
| 661 | (if (and (not (eq (logior last-input-char ?`) ?s)) | 661 | (if (and (not (eq (logior last-input-event ?`) ?s)) |
| 662 | (save-excursion | 662 | (save-excursion |
| 663 | (backward-char 1) | 663 | (backward-char 1) |
| 664 | (not (looking-at "[:,]")))) | 664 | (not (looking-at "[:,]")))) |