diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 8b3fc8ea654..4e4f54f1d3d 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -2824,10 +2824,10 @@ handle_single_display_prop (it, prop, object, position, | |||
| 2824 | object where the property was found, and `buffer-position' | 2824 | object where the property was found, and `buffer-position' |
| 2825 | to the current position in the buffer. */ | 2825 | to the current position in the buffer. */ |
| 2826 | specbind (Qobject, object); | 2826 | specbind (Qobject, object); |
| 2827 | specbind (Qposition, CHARPOS (*position)); | 2827 | specbind (Qposition, make_number (CHARPOS (*position))); |
| 2828 | specbind (Qbuffer_position, (STRINGP (object) | 2828 | specbind (Qbuffer_position, |
| 2829 | ? make_number (IT_CHARPOS (*it)) | 2829 | make_number (STRINGP (object) |
| 2830 | : make_number (CHARPOS (*position)))); | 2830 | ? IT_CHARPOS (*it) : CHARPOS (*position))); |
| 2831 | GCPRO1 (form); | 2831 | GCPRO1 (form); |
| 2832 | form = safe_eval (form); | 2832 | form = safe_eval (form); |
| 2833 | UNGCPRO; | 2833 | UNGCPRO; |