diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/subr.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index d93ffa7150b..39a9caa3106 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -731,11 +731,11 @@ and `event-end' functions." | |||
| 731 | (defun posn-set-point (position) | 731 | (defun posn-set-point (position) |
| 732 | "Move point to POSITION. | 732 | "Move point to POSITION. |
| 733 | Select the corresponding window as well." | 733 | Select the corresponding window as well." |
| 734 | (if (not (windowp (posn-window posn))) | 734 | (if (not (windowp (posn-window position))) |
| 735 | (error "Position not in text area of window")) | 735 | (error "Position not in text area of window")) |
| 736 | (select-window (posn-window posn)) | 736 | (select-window (posn-window position)) |
| 737 | (if (numberp (posn-point posn)) | 737 | (if (numberp (posn-point position)) |
| 738 | (goto-char (posn-point posn)))) | 738 | (goto-char (posn-point position)))) |
| 739 | 739 | ||
| 740 | (defsubst posn-x-y (position) | 740 | (defsubst posn-x-y (position) |
| 741 | "Return the x and y coordinates in POSITION. | 741 | "Return the x and y coordinates in POSITION. |