Mercurial > emacs
changeset 4613:eb2af4aa80e4
(internal_equal): All markers in no buffer are equal.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 14 Aug 1993 03:50:26 +0000 |
parents | 0c4a8158f062 |
children | 2c5557903994 |
files | src/fns.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/fns.c Sat Aug 14 03:45:08 1993 +0000 +++ b/src/fns.c Sat Aug 14 03:50:26 1993 +0000 @@ -870,9 +870,10 @@ } if (XTYPE (o1) == Lisp_Marker) { - return (XMARKER (o1)->buffer == XMARKER (o2)->buffer - && XMARKER (o1)->bufpos == XMARKER (o2)->bufpos) - ? Qt : Qnil; + return ((XMARKER (o1)->buffer == XMARKER (o2)->buffer + && (NILP (XMARKER (o1)->buffer) + || XMARKER (o1)->bufpos == XMARKER (o2)->bufpos)) + ? Qt : Qnil); } if (XTYPE (o1) == Lisp_Vector || XTYPE (o1) == Lisp_Compiled)