diff options
| author | Karl Heuer | 1994-08-23 23:00:56 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-08-23 23:00:56 +0000 |
| commit | 3d94e94328f4a83af28465687c7531a12a6fb53e (patch) | |
| tree | 2c58701c3abe48d89172fa0b52fcddcc5b016615 /src | |
| parent | aba05ae4b20d1fcf44cded072364c0f636a56959 (diff) | |
| download | emacs-3d94e94328f4a83af28465687c7531a12a6fb53e.tar.gz emacs-3d94e94328f4a83af28465687c7531a12a6fb53e.zip | |
(pos_tab_offset): Don't trigger point-motion hooks.
Diffstat (limited to 'src')
| -rw-r--r-- | src/indent.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/indent.c b/src/indent.c index 5e09526e6c8..e90bc403288 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -721,15 +721,15 @@ pos_tab_offset (w, pos) | |||
| 721 | struct window *w; | 721 | struct window *w; |
| 722 | register int pos; | 722 | register int pos; |
| 723 | { | 723 | { |
| 724 | int opoint = point; | 724 | int opoint = PT; |
| 725 | int col; | 725 | int col; |
| 726 | int width = window_internal_width (w) - 1; | 726 | int width = window_internal_width (w) - 1; |
| 727 | 727 | ||
| 728 | if (pos == BEGV || FETCH_CHAR (pos - 1) == '\n') | 728 | if (pos == BEGV || FETCH_CHAR (pos - 1) == '\n') |
| 729 | return 0; | 729 | return 0; |
| 730 | SET_PT (pos); | 730 | TEMP_SET_PT (pos); |
| 731 | col = current_column (); | 731 | col = current_column (); |
| 732 | SET_PT (opoint); | 732 | TEMP_SET_PT (opoint); |
| 733 | return col - (col % width); | 733 | return col - (col % width); |
| 734 | } | 734 | } |
| 735 | 735 | ||