diff options
| author | Stefan Monnier | 2002-11-03 10:59:18 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2002-11-03 10:59:18 +0000 |
| commit | 538f9462d654682b08f2165de12885dc97e4234a (patch) | |
| tree | a867d0976d2403b851b05d2358b18eaf7bc74390 /src | |
| parent | 3a6607a22416905277b0938b722d1a08845e8f7d (diff) | |
| download | emacs-538f9462d654682b08f2165de12885dc97e4234a.tar.gz emacs-538f9462d654682b08f2165de12885dc97e4234a.zip | |
(get_pos_property): Don't hardcode Qfield.
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/editfns.c b/src/editfns.c index 7fb203c854b..d814f9f857c 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -394,7 +394,7 @@ overlays_around (pos, vec, len) | |||
| 394 | If OBJECT is a window, then that window's buffer is used, but | 394 | If OBJECT is a window, then that window's buffer is used, but |
| 395 | window-specific overlays are considered only if they are associated | 395 | window-specific overlays are considered only if they are associated |
| 396 | with OBJECT. */ | 396 | with OBJECT. */ |
| 397 | static Lisp_Object | 397 | Lisp_Object |
| 398 | get_pos_property (position, prop, object) | 398 | get_pos_property (position, prop, object) |
| 399 | Lisp_Object position, object; | 399 | Lisp_Object position, object; |
| 400 | register Lisp_Object prop; | 400 | register Lisp_Object prop; |
| @@ -460,12 +460,12 @@ get_pos_property (position, prop, object) | |||
| 460 | } | 460 | } |
| 461 | 461 | ||
| 462 | { /* Now check the text-properties. */ | 462 | { /* Now check the text-properties. */ |
| 463 | int stickiness = text_property_stickiness (Qfield, position); | 463 | int stickiness = text_property_stickiness (prop, position); |
| 464 | if (stickiness > 0) | 464 | if (stickiness > 0) |
| 465 | return Fget_text_property (position, Qfield, Qnil); | 465 | return Fget_text_property (position, prop, Qnil); |
| 466 | else if (stickiness < 0 && XINT (position) > BEGV) | 466 | else if (stickiness < 0 && XINT (position) > BEGV) |
| 467 | return Fget_text_property (make_number (XINT (position) - 1), | 467 | return Fget_text_property (make_number (XINT (position) - 1), |
| 468 | Qfield, Qnil); | 468 | prop, Qnil); |
| 469 | else | 469 | else |
| 470 | return Qnil; | 470 | return Qnil; |
| 471 | } | 471 | } |