From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: [n_schumacher@web.de: modification hooks called only once in c-mode] Date: Tue, 31 Jul 2007 16:22:24 -0400 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1185913233 1500 80.91.229.12 (31 Jul 2007 20:20:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jul 2007 20:20:33 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 31 22:20:27 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IFyCZ-0001p6-LO for ged-emacs-devel@m.gmane.org; Tue, 31 Jul 2007 22:20:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IFyCZ-000221-20 for ged-emacs-devel@m.gmane.org; Tue, 31 Jul 2007 16:20:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IFyCP-0001y9-M1 for emacs-devel@gnu.org; Tue, 31 Jul 2007 16:20:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IFyCP-0001xg-0F for emacs-devel@gnu.org; Tue, 31 Jul 2007 16:20:09 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IFyCO-0001xV-HZ for emacs-devel@gnu.org; Tue, 31 Jul 2007 16:20:08 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IFyCO-0002en-6B for emacs-devel@gnu.org; Tue, 31 Jul 2007 16:20:08 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IFyEa-0001mr-48; Tue, 31 Jul 2007 16:22:24 -0400 X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:75867 Archived-At: [I sent this message twice but did not get a response.] Would someone please DTRT, then ack? If the fix is simple enough, it should be installed in Emacs 22. ------- Start of forwarded message ------- X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY autolearn=failed version=3.1.0 To: bug-gnu-emacs@gnu.org From: Nikolaj Schumacher Date: Mon, 16 Jul 2007 23:13:53 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: modification hooks called only once in c-mode Hello, occasionally modification hooks seem to be called only once in c-mode (and derivatives). This happens in both released and CVS version of Emacs 22, but not in Emacs 21. To reproduce, evaluate the following: (defun test-bug-hook (overlay afterp beg end &optional r) (message "%s hook called" (if afterp "after" "before"))) (defun test-bug () (let ((beg (point)) ov) (insert "foobar") (setq ov (make-overlay beg (point))) (overlay-put ov 'face 'highlight) (overlay-put ov 'insert-in-front-hooks '(test-bug-hook)))) 1) Create a new buffer in fundamental-mode, evaluate (test-bug), and insert a char before the overlay. Result: before hook called after hook called 1) Create a new buffer in c-mode, evaluate (test-bug), and insert a char before the overlay. Result: before hook called The hook is never called after the change. In GNU Emacs 22.1.1 (i386-apple-darwin8.10.1, Carbon Version 1.6.0) of 2007-07-16 on wednesday Windowing system distributor `Apple Inc.', version 10.4.10 configured using `configure '--prefix=/Applications/Emacs.app/Contents/Resources' '--with-carbon' '--without-x' '--libexecdir=/Applications/Emacs.app/Contents/MacOS/libexec' 'CFLAGS=-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -DUSE_ATSUI -O2'' regards, Nikolaj Schumacher _______________________________________________ bug-gnu-emacs mailing list bug-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs ------- End of forwarded message -------