diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/editfns.c b/src/editfns.c index e12e39e82f1..037c00d3c8b 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -324,10 +324,13 @@ save_excursion_restore (info) | |||
| 324 | 324 | ||
| 325 | tem1 = current_buffer->mark_active; | 325 | tem1 = current_buffer->mark_active; |
| 326 | current_buffer->mark_active = Fcdr (tem); | 326 | current_buffer->mark_active = Fcdr (tem); |
| 327 | if (! NILP (current_buffer->mark_active)) | 327 | if (!NILP (Vrun_hooks)) |
| 328 | call1 (Vrun_hooks, intern ("activate-mark-hook")); | 328 | { |
| 329 | else if (! NILP (tem1)) | 329 | if (! NILP (current_buffer->mark_active)) |
| 330 | call1 (Vrun_hooks, intern ("deactivate-mark-hook")); | 330 | call1 (Vrun_hooks, intern ("activate-mark-hook")); |
| 331 | else if (! NILP (tem1)) | ||
| 332 | call1 (Vrun_hooks, intern ("deactivate-mark-hook")); | ||
| 333 | } | ||
| 331 | return Qnil; | 334 | return Qnil; |
| 332 | } | 335 | } |
| 333 | 336 | ||