From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Hansen Newsgroups: gmane.emacs.devel Subject: print functions does not run after-change-functions Date: Mon, 17 Apr 2006 00:30:31 +0200 Message-ID: <4442C587.8070907@soem.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------030900030702080802090405" X-Trace: sea.gmane.org 1145226660 16273 80.91.229.2 (16 Apr 2006 22:31:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 16 Apr 2006 22:31:00 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 17 00:30:58 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FVFla-0007Ux-Eb for ged-emacs-devel@m.gmane.org; Mon, 17 Apr 2006 00:30:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FVFlZ-0003LP-Uq for ged-emacs-devel@m.gmane.org; Sun, 16 Apr 2006 18:30:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FVFlO-0003LF-He for emacs-devel@gnu.org; Sun, 16 Apr 2006 18:30:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FVFlL-0003L3-QL for emacs-devel@gnu.org; Sun, 16 Apr 2006 18:30:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FVFlL-0003L0-Lm for emacs-devel@gnu.org; Sun, 16 Apr 2006 18:30:35 -0400 Original-Received: from [212.99.225.245] (helo=odin.broadcom.dk) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FVFlr-0004Aa-KD for emacs-devel@gnu.org; Sun, 16 Apr 2006 18:31:07 -0400 Original-Received: from pppoe3-ves.broadcom.dk ([212.99.255.42] helo=[10.17.1.133]) by odin.broadcom.dk with esmtp (Exim 4.24; FreeBSD) id 1FVFka-000Kfd-DY for emacs-devel@gnu.org; Mon, 17 Apr 2006 00:29:48 +0200 User-Agent: Debian Thunderbird 1.0.2 (X11/20051002) X-Accept-Language: en-us, en Original-To: emacs-devel@gnu.org 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:52927 Archived-At: This is a multi-part message in MIME format. --------------030900030702080802090405 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit All printing functions (prin1, princ and so on) run before-change-functions but not after-change-functions. I believe the attached patch fixes the bug. Objections? --------------030900030702080802090405 Content-Type: text/x-patch; name="print.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="print.diff" *** print.c.~1.222.~ 2006-04-14 23:39:25.000000000 +0200 --- print.c 2006-04-17 00:28:46.209670812 +0200 *************** *** 275,280 **** --- 275,281 ---- else \ insert_1_both (print_buffer, print_buffer_pos, \ print_buffer_pos_byte, 0, 1, 0); \ + signal_after_change (PT - print_buffer_pos, 0, print_buffer_pos);\ } \ if (free_print_buffer) \ { \ --------------030900030702080802090405 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --------------030900030702080802090405--