Mercurial > emacs
view msdos/sigaction.c @ 58054:b40b27d0c034
Fixed this bug:
** Mouse-face overlay bleeds into header line
From: Stephen Berman <Stephen.Berman@gmx.net>
Date: Thu, 21 Oct 2004 18:11:01 +0200
Mouse-face overlays bleed into the header line when the beginning of
the overlay is above (point-min). To reproduce:
1. Start Emacs with -q -no-site-file.
2. In *scratch* eval
(progn (setq ov (make-overlay 66 92))
(overlay-put ov 'mouse-face 'highlight)
(setq header-line-format "test"))
3. Drag the mouse over the string "evaluation.\n;; If you want" and
notice the highlighting of only this string.
4. Now click on the down arrow in the scroll bar until the line
beginning ";; If you want" is directly below the header line.
5. Drag the mouse over ";; If you want" and notice that not only it
but also the header line are highlighted.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Mon, 08 Nov 2004 22:30:00 +0000 |
parents | 695cf19ef79e |
children | 60ed74508594 375f2633d815 |
line wrap: on
line source
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ #include <signal.h> #include <errno.h> int sigaction(int _sig, const struct sigaction *_act, struct sigaction *_oact) { int retval = 0; if (_oact) { void (*installed_sig)(int) = signal (_sig, SIG_IGN); /* FIXME */ if (installed_sig == SIG_ERR) { retval = -1; errno = EINVAL; } else signal (_sig, installed_sig); _oact->sa_handler = installed_sig; retval = sigemptyset (&_oact->sa_mask); _oact->sa_flags = 0; } if (_act) { if (signal (_sig, _act->sa_handler) == SIG_ERR) { retval = -1; errno = EINVAL; } } return 0; } /* arch-tag: 39526405-3d3a-44fe-af28-82a515e0c8e8 (do not change this comment) */