From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vinicius Jose Latorre Newsgroups: gmane.emacs.devel Subject: Re: Icicles, Printing and Easy Menu Date: Wed, 01 Nov 2006 00:11:21 -0200 Message-ID: <45480249.5040107@ig.com.br> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1162347117 24080 80.91.229.2 (1 Nov 2006 02:11:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Nov 2006 02:11:57 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 01 03:11:53 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 1Gf5a1-0007AZ-RI for ged-emacs-devel@m.gmane.org; Wed, 01 Nov 2006 03:11:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gf5a1-0006cw-D5 for ged-emacs-devel@m.gmane.org; Tue, 31 Oct 2006 21:11:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gf5Zm-0006YN-1K for emacs-devel@gnu.org; Tue, 31 Oct 2006 21:11:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gf5Zj-0006V2-Cg for emacs-devel@gnu.org; Tue, 31 Oct 2006 21:11:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gf5Zj-0006Uv-8B for emacs-devel@gnu.org; Tue, 31 Oct 2006 21:11:31 -0500 Original-Received: from [200.221.4.202] (helo=smtp.uol.com.br) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gf5Zd-0003v0-4W; Tue, 31 Oct 2006 21:11:25 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by socom5.uol.com.br (Postfix) with ESMTP id D12A14002EE7; Tue, 31 Oct 2006 23:11:20 -0300 (BRT) Original-Received: from [201.82.10.114] (unknown [201.82.10.114]) by socom5.uol.com.br (Postfix) with ESMTP id 0A6EF40032F1; Tue, 31 Oct 2006 23:11:16 -0300 (BRT) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060910 SeaMonkey/1.0.5 Original-To: Herbert Euler In-Reply-To: X-SIG5: 24b9989d563ac8a6db4b539229dc19ed 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:61506 Archived-At: Herbert Euler wrote: >> I reproduce the same problem with the following operations: >> >> 1. Start Emacs with either >> >> $ emacs -Q >> >> or >> >> $ emacs -q >> >> 2. In the *scratch* window: >> >> (require 'pp) >> ==> pp >> (require 'printing) >> ==> printing >> (pr-update-menus t) >> ==> Debugger entered--Lisp error: (wrong-type-argument listp 3) >> >> So, there is clearly something wrong with Easy Menu. I will >> track this later. > > The problem is in Printing. (require 'pp) is not needed at all. Only > (require 'printing) and (pr-update-menus t) when Emacs is started with > '-q' is sufficient to produce the error. > > Regards, > Guanpeng Xu Well, I'm using Linux and Emacs 22.0.50.1. I couldn't reproduce the problem using the steps above. But using the steps that Drew Adams wrote, I got the error too. The steps are: 1. create file foo.el with these contents: (defun define-foo-mode-map () "" (setq foo-mode-map (make-sparse-keymap)) ;; Bind foo-find-file in foo-mode-map to whatever ;; whatever find-file is bound to globally. (substitute-key-definition 'find-file 'foo-find-file foo-mode-map global-map)) (define-minor-mode foo-mode "" (define-foo-mode-map)) (defun foo-find-file (file &optional wild) "" (interactive)) 2. emacs -Q 3. M-x load-file foo.el 4. M-x foo-mode 5. M-x load-file printing.el 6. M-: (pr-update-menus t) Regards, Vinicius