emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#32237: closed (27.0.50; Function in before-change-


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#32237: closed (27.0.50; Function in before-change-functions is called with first argument greater than the second)
Date: Sat, 21 Jul 2018 18:07:02 +0000

Your message dated Sat, 21 Jul 2018 21:06:50 +0300
with message-id <address@hidden>
and subject line Re: bug#32237: 27.0.50; Function in before-change-functions is 
called with first argument greater than the second
has caused the debbugs.gnu.org bug report #32237,
regarding 27.0.50; Function in before-change-functions is called with first 
argument greater than the second
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
32237: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=32237
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- 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 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
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




--- End Message ---
--- Begin Message --- 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 <address@hidden>
> 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.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]