From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Werner LEMBERG Newsgroups: gmane.emacs.bugs Subject: bug#8108: 24.0.50; debugging pre-write-conversion in define-coding-system Date: Thu, 24 Feb 2011 08:40:58 +0100 (CET) Message-ID: <20110224.084058.453347781.wl@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1298535999 29347 80.91.229.12 (24 Feb 2011 08:26:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Feb 2011 08:26:39 +0000 (UTC) To: 8108@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 24 09:26:34 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PsWWu-0004vj-DY for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Feb 2011 09:26:33 +0100 Original-Received: from localhost ([127.0.0.1]:35302 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsWQd-0003RE-8Z for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Feb 2011 03:20:03 -0500 Original-Received: from [140.186.70.92] (port=48400 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsWGv-0000sZ-KK for bug-gnu-emacs@gnu.org; Thu, 24 Feb 2011 03:10:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PsWDj-0007uB-DP for bug-gnu-emacs@gnu.org; Thu, 24 Feb 2011 03:06:49 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41157) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PsWDj-0007u1-Bt for bug-gnu-emacs@gnu.org; Thu, 24 Feb 2011 03:06:43 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PsVpq-0004ga-JI; Thu, 24 Feb 2011 02:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Werner LEMBERG Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Feb 2011 07:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8108 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.129853327717958 (code B ref -1); Thu, 24 Feb 2011 07:42:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Feb 2011 07:41:17 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PsVp6-0004fb-JY for submit@debbugs.gnu.org; Thu, 24 Feb 2011 02:41:16 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PsVp4-0004fO-1P for submit@debbugs.gnu.org; Thu, 24 Feb 2011 02:41:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PsVoy-00040A-2e for submit@debbugs.gnu.org; Thu, 24 Feb 2011 02:41:09 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:34259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PsVoy-000405-04 for submit@debbugs.gnu.org; Thu, 24 Feb 2011 02:41:08 -0500 Original-Received: from [140.186.70.92] (port=46416 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsVow-0006LT-Ku for bug-gnu-emacs@gnu.org; Thu, 24 Feb 2011 02:41:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PsVov-0003zf-3H for bug-gnu-emacs@gnu.org; Thu, 24 Feb 2011 02:41:06 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:40493) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PsVou-0003zO-L4 for bug-gnu-emacs@gnu.org; Thu, 24 Feb 2011 02:41:05 -0500 Original-Received: (qmail invoked by alias); 24 Feb 2011 07:41:02 -0000 Original-Received: from 178-191-190-73.adsl.highway.telekom.at (EHLO localhost) [178.191.190.73] by mail.gmx.net (mp050) with SMTP; 24 Feb 2011 08:41:02 +0100 X-Authenticated: #54312696 X-Provags-ID: V01U2FsdGVkX1/8GMYcRZv89JMoOFFyH1/NedQW+MNsVslBID0eWZ YLrX9K1ZzN/OKv X-Mailer: Mew version 6.3.50 on Emacs 24.0.50.1 / Mule 6.0 (HANACHIRUSATO) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 24 Feb 2011 02:42:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:44334 Archived-At: ---------------------------------------------------------------------- I'm updating my cjk-enc.el package (part of the CJK bundle for LaTeX) to replace make-coding-system with define-coding-system. However, I can't debug it. In previous Emacs versions, I've instrumented the function used for the pre-write-conversion hook, and the debugger correctly stops there. However, with a recent Emacs (bzr version 103411 from today) this no longer works. Is this a bug? Am I missing something? Here's an example, defining an encoding called `foo-coding'. Trying to instrument `foo-encode', then saving an arbitrary test file with `foo-coding', the debugger doesn't get invoked. (define-coding-system 'foo-coding "Coding-system foo" :mnemonic ?c :coding-type 'emacs-mule :charset-list '(ascii) :pre-write-conversion 'foo-encode) (defun foo-encode (from to) (insert "foo")) ---------------------------------------------------------------------- In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.22.1) of 2011-02-24 on linux-nvf0.site Windowing system distributor `The X.Org Foundation', version 11.0.10903000 configured using `configure 'MAKEINFO=/usr/bin/makeinfo'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: de_DE.UTF-8 value of $XMODIFIERS: @im=none locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Summary Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t transient-mark-mode: t Recent input: M-x m e w d d SPC d d x i d x M-x e m a c s - v e g B a C-r e m a c s C-r C-a M-x e m a c s - b C-g b u f b u g C-g M-x e m a c s - C-g M-x b u g C-g M-x r e p o r t Recent messages: Refiling and deleting...done GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.22.1) of 2011-02-24 on linux-nvf0.site Scanning +Backup...done Mark saved where search started Quit [2 times] Making completion list... Quit Making completion list... Quit Making completion list... Load-path shadows: None found. Features: (shadow emacsbug url-util url-parse auth-source eieio byte-opt bytecomp byte-compile assoc gnus-util time-date password-cache url-vars mm-util mail-prsvr multi-isearch pp mew-varsx mew-unix cal-menu calendar cal-loaddefs mew-auth mew-config mew-imap2 mew-imap mew-nntp2 mew-nntp mew-pop mew-smtp mew-ssl mew-ssh mew-net mew-highlight mew-sort mew-fib mew-ext mew-refile mew-demo mew-attach mew-draft mew-message mew-thread mew-virtual mew-summary4 mew-summary3 mew-summary2 mew-summary mew-search mew-pick mew-passwd mew-scan mew-syntax mew-bq mew-smime mew-pgp mew-header mew-exec mew-mark mew-mime mew-edit mew-decode mew-encode mew-cache mew-minibuf mew-complete mew-addrbook mew-local mew-vars3 mew-vars2 mew-vars mew-env mew-mule3 mew-mule mew-gemacs mew-key mew-func mew-blvs mew-const mew tex regexp-opt advice help-fns advice-preload tex-site auto-loads quail help-mode easymenu view cjktilde disp-table tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)