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, 17 Jul 2007 11:06:01 -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 1184684976 24005 80.91.229.12 (17 Jul 2007 15:09:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 17 Jul 2007 15:09:36 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 17 17:09:35 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 1IAog8-0002f6-Uh for ged-emacs-devel@m.gmane.org; Tue, 17 Jul 2007 17:09:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IAog8-0001jn-AR for ged-emacs-devel@m.gmane.org; Tue, 17 Jul 2007 11:09:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IAobp-000729-HT for emacs-devel@gnu.org; Tue, 17 Jul 2007 11:05:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IAobm-000703-Tc for emacs-devel@gnu.org; Tue, 17 Jul 2007 11:05:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IAobm-0006zt-J1 for emacs-devel@gnu.org; Tue, 17 Jul 2007 11:05:02 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IAobl-0004UD-SI for emacs-devel@gnu.org; Tue, 17 Jul 2007 11:05:02 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IAocj-0007KD-8X; Tue, 17 Jul 2007 11:06:01 -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:74990 Archived-At: 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 -------