unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* before-change-functions called twice at yank
@ 2006-04-10 22:37 Lars Hansen
  2006-04-11  6:58 ` martin rudalics
  2006-04-15 18:57 ` Bugs in remove-list-of-text-properties and a patch [WAS: before-change-functions called twice at yank] Lars Hansen
  0 siblings, 2 replies; 8+ messages in thread
From: Lars Hansen @ 2006-04-10 22:37 UTC (permalink / raw)


Do emacs -q and evaluate

(progn
  (add-hook 'before-change-functions
            (lambda (b e)
              (message "before-change: '%s'" (buffer-substring b e))) nil t)
  (add-hook 'after-change-functions
            (lambda (b e l)
              (message "after-change: '%s'" (buffer-substring b e))) nil t))


in the *scratch* buffer. If you press the letter a, the message buffer
will get

before-change: ''
after-change: 'a'

as expected. Now yank the string "foo". Then the message buffer gets

before-change: ''
after-change: 'foo'
before-change: 'foo'

This seems as a bug to me. Am I missing something?

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-04-20 11:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-10 22:37 before-change-functions called twice at yank Lars Hansen
2006-04-11  6:58 ` martin rudalics
2006-04-11  7:23   ` Lars Hansen
2006-04-15 18:57 ` Bugs in remove-list-of-text-properties and a patch [WAS: before-change-functions called twice at yank] Lars Hansen
2006-04-17  0:56   ` Richard Stallman
2006-04-17  8:51     ` Lars Hansen
     [not found]     ` <44435682.4050409@soem.dk>
2006-04-18  1:42       ` Richard Stallman
2006-04-20 11:46         ` Lars Hansen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).