unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [viniciusjl@ig.com.br: Re: Icicles, Printing and Easy Menu]
@ 2006-11-02 21:47 Richard Stallman
  2006-11-04  3:18 ` Chong Yidong
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Stallman @ 2006-11-02 21:47 UTC (permalink / raw)


Would one of the expert debuggers please turn attention to this issue?
We need to figure out what is happening in this simple test case.


------- Start of forwarded message -------
Date: Wed, 01 Nov 2006 03:08:05 -0200
From: Vinicius Jose Latorre <viniciusjl@ig.com.br>
MIME-Version: 1.0
To: Herbert Euler <herberteuler@hotmail.com>
CC:  rms@gnu.org,  emacs-devel@gnu.org
Subject: Re: Icicles, Printing and Easy Menu
In-Reply-To: <BAY112-F2010C16B628AB27018B3CADAF80@phx.gbl>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed 
	version=3.0.4

Herbert Euler wrote:
>> 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)
>
> I have known what is wrong, and written to Drew Adams.  Thank you.
For some reason the command:

   (easy-menu-change '("file") "Print" pr-menu-spec "print-buffer")

has no effect just after step 5.
The command above is correct, but has no effect, that is, "Print" 
submenu is not created.

But if after step 5, you do:

    5.1 C-h v global-map RET    ;; create *Help* buffer in another window
    5.2 C-x o                                 ;; switch to *Help* buffer

Now, all works.


Regards,


Vinicius
------- End of forwarded message -------

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-08  2:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-02 21:47 [viniciusjl@ig.com.br: Re: Icicles, Printing and Easy Menu] Richard Stallman
2006-11-04  3:18 ` Chong Yidong
2006-11-08  2:00   ` Vinicius Jose Latorre

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).