GNU bug report logs - #28527
unexpected behaviour of char-after if argument is marker that don't point to the current buffer

Previous Next

Package: emacs;

Reported by: Fritz Stelzer <brotzeitmacher <at> gmail.com>

Date: Wed, 20 Sep 2017 15:26:02 UTC

Severity: normal

Tags: notabug

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Fritz Stelzer <brotzeitmacher <at> gmail.com>
To: 28527 <at> debbugs.gnu.org
Subject: bug#28527: unexpected behaviour of char-after if argument is marker that don't point to the current buffer
Date: Wed, 20 Sep 2017 15:29:07 +0200
[Message part 1 (text/plain, inline)]
When the argument for char-after is a marker, the function gets bytepos
from the buffer the marker is pointing to by calling marker_byte_position.
But then pos_byte is compared to BEGV_BYTE and ZV_BYTE that use the current
buffer. At the end of the function, pos_byte is passed to FETCH_CHAR, which
also operates on the current buffer.
[Message part 2 (text/html, inline)]

This bug report was last modified 5 years and 272 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.