all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* easy-menu: wrong-type-argument keymapp
@ 2005-05-26 23:31 Tim Johnson
  0 siblings, 0 replies; 6+ messages in thread
From: Tim Johnson @ 2005-05-26 23:31 UTC (permalink / raw)


:-) Since easy-menu seems to be the topic dejour here's what's
teasing my brain today......

The following code works in xemacs, but generates
an error message from emacs where this
code is in .emacs:
(easy-menu-add-item  nil '("File") ["Load Desktop" desktop-read t])

;; and the error message is:
(wrong-type-argument keymapp nil)
 define-key(nil [menu-bar File] ("File" keymap "File"))

 easy-menu-add-item documentation tells me (I think)
 that nil defaults to global keymap.

 Any help would be appreciated. Furthermore, I've
 taken over a orphaned major mode to which I've added
 easy-menu code that works in xemacs but not in emacs,
 so this is a first step in resolving these performances
 between forks.

 Cheers
 tim
-- 
Tim Johnson <tim@johnsons-web.com>
      http://www.alaska-internet-solutions.com

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

* Re: easy-menu: wrong-type-argument keymapp
       [not found] <mailman.1985.1117151351.25862.help-gnu-emacs@gnu.org>
@ 2005-05-28 14:13 ` Stefan Monnier
  2005-05-28 15:48   ` Tim Johnson
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2005-05-28 14:13 UTC (permalink / raw)


>  Any help would be appreciated. Furthermore, I've

Which version of Emacs?  Have you tried with Emacs-CVS?


        Stefan

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

* Re: easy-menu: wrong-type-argument keymapp
  2005-05-28 14:13 ` Stefan Monnier
@ 2005-05-28 15:48   ` Tim Johnson
  2005-05-28 16:08     ` Drew Adams
  0 siblings, 1 reply; 6+ messages in thread
From: Tim Johnson @ 2005-05-28 15:48 UTC (permalink / raw)


* Stefan Monnier <monnier@iro.umontreal.ca> [050528 07:29]:
> >  Any help would be appreciated. Furthermore, I've
 
 Hi Stefan
 
> Which version of Emacs?  Have you tried with Emacs-CVS?

 GNU Emacs 21.2.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 I haven't tried Emacs-CVS, and would probably wait until
 I finish switching over to a slackware 10 partition, as
 I'm in the process of moving off of this RH partition.

 Have there been other problems with easymenu on the current
 distro?

 FYI:
 (easy-menu-add-item  nil 
   '("edit") ["Load Desktop" desktop-read :active t])
 ;; works fine on the "edit" path and I've created a new
 ;; menu called "colors" to pick specific color-theme-**

 Looks like it is just the "file" path/menu that is creating
 a problem.

 Thanks,
 Let me know what you think.
 cheers
 tim

-- 
Tim Johnson <tim@johnsons-web.com>
      http://www.alaska-internet-solutions.com

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

* RE: easy-menu: wrong-type-argument keymapp
  2005-05-28 15:48   ` Tim Johnson
@ 2005-05-28 16:08     ` Drew Adams
  2005-05-28 18:04       ` Tim Johnson
  2005-05-29  3:04       ` Tim Johnson
  0 siblings, 2 replies; 6+ messages in thread
From: Drew Adams @ 2005-05-28 16:08 UTC (permalink / raw)


     GNU Emacs 21.2.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
     I haven't tried Emacs-CVS, and would probably wait until
     I finish switching over to a slackware 10 partition, as
     I'm in the process of moving off of this RH partition.

     Looks like it is just the "file" path/menu that is creating
     a problem.

Ah, File only - that rings a bell. I ran into this when trying to use a
version of printing.el that fit with an older (mid 2004) version of Emacs.

I believe that the problem is the version of Emacs you are using and its fit
with your code wrt the File option. At some point last year, they changed
the internal name of the File option. Here is what Vinicius Latorre
(printing.el author) wrote to me about that:

    I don't remember the exact date when Emacs changed the internal
    name of File
    option.  Some time ago the internal name was "files", but from
    some date the
    internal name was renamed to "file".  So, using v6.8.3 (the latest
    printing) in
    old Emacs gives the error above.  Also, using v6.8 (old
    printing) in latest
    Emacs gives the same error.  The internal name changing
    happened in version
    21.3.50 (I guess).

In sum, the library (code) that you use must fit the version of Emacs
(easymenu).

HTH,

  Drew

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

* Re: easy-menu: wrong-type-argument keymapp
  2005-05-28 16:08     ` Drew Adams
@ 2005-05-28 18:04       ` Tim Johnson
  2005-05-29  3:04       ` Tim Johnson
  1 sibling, 0 replies; 6+ messages in thread
From: Tim Johnson @ 2005-05-28 18:04 UTC (permalink / raw)


* Drew Adams <drew.adams@oracle.com> [050528 08:29]:
>      GNU Emacs 21.2.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
>      I haven't tried Emacs-CVS, and would probably wait until
>      I finish switching over to a slackware 10 partition, as
>      I'm in the process of moving off of this RH partition.
> 
>      Looks like it is just the "file" path/menu that is creating
>      a problem.
> 
> Ah, File only - that rings a bell. I ran into this when trying to use a
> version of printing.el that fit with an older (mid 2004) version of Emacs.
 
  Understood. Version conflict. While I got you Drew, I would mention
  that when I try to use menu-bar+, I get a void variable error for
  menu-bar-last-search-type. I've not yet to find where that variable
  is defined......

  Thank you folks.
  tim

> I believe that the problem is the version of Emacs you are using and its fit
> with your code wrt the File option. At some point last year, they changed
> the internal name of the File option. Here is what Vinicius Latorre
> (printing.el author) wrote to me about that:
> 
>     I don't remember the exact date when Emacs changed the internal
>     name of File
>     option.  Some time ago the internal name was "files", but from
>     some date the
>     internal name was renamed to "file".  So, using v6.8.3 (the latest
>     printing) in
>     old Emacs gives the error above.  Also, using v6.8 (old
>     printing) in latest
>     Emacs gives the same error.  The internal name changing
>     happened in version
>     21.3.50 (I guess).
> 
> In sum, the library (code) that you use must fit the version of Emacs
> (easymenu).
> 
> HTH,
> 
>   Drew
> 
> 
> 
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

-- 
Tim Johnson <tim@johnsons-web.com>
      http://www.alaska-internet-solutions.com

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

* Re: easy-menu: wrong-type-argument keymapp
  2005-05-28 16:08     ` Drew Adams
  2005-05-28 18:04       ` Tim Johnson
@ 2005-05-29  3:04       ` Tim Johnson
  1 sibling, 0 replies; 6+ messages in thread
From: Tim Johnson @ 2005-05-29  3:04 UTC (permalink / raw)


* Drew Adams <drew.adams@oracle.com> [050528 08:29]:
<...>      
>Looks like it is just the "file" path/menu that is creating
>      a problem.
> 
> Ah, File only - that rings a bell. I ran into this when trying to use a
> version of printing.el that fit with an older (mid 2004) version of Emacs.
> 
> I believe that the problem is the version of Emacs you are using and its fit
> with your code wrt the File option. At some point last year, they changed
> the internal name of the File option. Here is what Vinicius Latorre
> (printing.el author) wrote to me about that:
> (easymenu).
<...> Yep. In this case I just changed 'path-name' to "files" to make it
      work successfully .... am moving to a cleaner distro soon.
      thanks
      tim
-- 
Tim Johnson <tim@johnsons-web.com>
      http://www.alaska-internet-solutions.com

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

end of thread, other threads:[~2005-05-29  3:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-26 23:31 easy-menu: wrong-type-argument keymapp Tim Johnson
     [not found] <mailman.1985.1117151351.25862.help-gnu-emacs@gnu.org>
2005-05-28 14:13 ` Stefan Monnier
2005-05-28 15:48   ` Tim Johnson
2005-05-28 16:08     ` Drew Adams
2005-05-28 18:04       ` Tim Johnson
2005-05-29  3:04       ` Tim Johnson

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.