From: "Michał Kondraciuk" <k.michal@zoho.com>
To: 32237@debbugs.gnu.org
Subject: bug#32237: 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 [thread overview]
Message-ID: <503f92da-ee58-ceaa-2dab-a5216bd18e7e@zoho.com> (raw)
In-Reply-To: <e7f6d39c-e41f-5c0b-146d-90dfe9b71ae7@zoho.com>
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
next prev parent reply other threads:[~2018-07-21 16:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-02 16:15 bug#32038: 27.0.50; Emacs hangs when using :propertize mode line construct and not providing a property value Michał Kondraciuk
2018-07-03 1:24 ` Jonathan Kyle Mitchell
2018-07-03 4:46 ` Jonathan Kyle Mitchell
2018-07-04 3:12 ` Jonathan Kyle Mitchell
2018-07-04 15:07 ` Eli Zaretskii
2018-07-05 4:14 ` Jonathan Kyle Mitchell
2018-07-14 11:30 ` Eli Zaretskii
2018-07-15 17:21 ` Jonathan Kyle Mitchell
2018-07-21 16:39 ` Michał Kondraciuk [this message]
2018-07-21 18:06 ` bug#32237: 27.0.50; Function in before-change-functions is called with first argument greater than the second Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=503f92da-ee58-ceaa-2dab-a5216bd18e7e@zoho.com \
--to=k.michal@zoho.com \
--cc=32237@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.