GNU bug report logs - #32237
27.0.50; Function in before-change-functions is called with first argument greater than the second

Previous Next

Package: emacs;

Reported by: Michał Kondraciuk <k.michal <at> zoho.com>

Date: Sat, 21 Jul 2018 17:26:01 UTC

Severity: normal

Found in version 27.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32237 in the body.
You can then email your comments to 32237 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#32237; Package emacs. (Sat, 21 Jul 2018 17:26:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michał Kondraciuk <k.michal <at> zoho.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 21 Jul 2018 17:26:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michał Kondraciuk <k.michal <at> zoho.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50; Function in before-change-functions is called with first
 argument greater than the second
Date: Sat, 21 Jul 2018 18:39:26 +0200
If I eveluate the sexp below with M-: in emacs -Q, I get the message
"before change 4 1", which is unexpected.  The second argument should be
greater than the first one, according to the documentation.

(with-current-buffer "*scratch*"
  (erase-buffer)
  (insert "foo")
  (add-hook 'before-change-functions
            (lambda (beg end)
              (message "before change %d %d" beg end))
            nil t)
  (with-temp-buffer
    (insert "foo")
    (let ((temp (current-buffer)))
      (with-current-buffer "*scratch*"
        (replace-buffer-contents temp)))))


Repository revision: 2c242cb1a2956ecfa894d0110b837d4ecc43a69c





Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 21 Jul 2018 18:07:02 GMT) Full text and rfc822 format available.

Notification sent to Michał Kondraciuk <k.michal <at> zoho.com>:
bug acknowledged by developer. (Sat, 21 Jul 2018 18:07:02 GMT) Full text and rfc822 format available.

Message #10 received at 32237-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Michał Kondraciuk <k.michal <at> zoho.com>
Cc: 32237-done <at> debbugs.gnu.org
Subject: Re: bug#32237: 27.0.50;
 Function in before-change-functions is called with first argument
 greater than the second
Date: Sat, 21 Jul 2018 21:06:50 +0300
> From: Michał Kondraciuk <k.michal <at> zoho.com>
> Date: Sat, 21 Jul 2018 18:39:26 +0200
> 
> If I eveluate the sexp below with M-: in emacs -Q, I get the message
> "before change 4 1", which is unexpected.  The second argument should be
> greater than the first one, according to the documentation.

Thanks, fixed on the emacs-26 branch.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 19 Aug 2018 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 20 days ago.

Previous Next


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