Subject: pkg/36796: eshell does not launch in pkgsrc/emacs
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <pikapika@8-0.net>
List: pkgsrc-bugs
Date: 08/16/2007 22:35:00
>Number:         36796
>Category:       pkg
>Synopsis:       eshell does not launch in pkgsrc/emacs
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 16 22:35:00 +0000 2007
>Originator:     raphael
>Release:        netbsd current 4.99.28
>Organization:
>Environment:
NetBSD lysopaine.localhost 4.99.28 NetBSD 4.99.28 (POUET)
>Description:
when using pkgsrc/emacs (which is 22.1) and trying to lauch eshell (M-x eshell), I get : 
Debugger entered--Lisp error: (void-variable shared-lisp-mode-map)
  (nconc (make-sparse-keymap) shared-lisp-mode-map)
  (setq esh-mode-map (nconc (make-sparse-keymap) shared-lisp-mode-map))
  (let ((map ...)) (setq esh-mode-map (nconc ... shared-lisp-mode-map)) (define-key esh-mode-map "	" (quote lisp-complete-symbol)) (define-key esh-mode-map [menu-bar] (make-sparse-keymap)) (define-key esh-mode-map [menu-bar esh] (cons "esh" map)) (define-key map [comment-region] (quote ...)) (define-key map [indent-region] (quote ...)) (define-key map [indent-line] (quote ...)) (put (quote comment-region) (quote menu-enable) (quote mark-active)) (put (quote indent-region) (quote menu-enable) (quote mark-active)))
  (if esh-mode-map nil (let (...) (setq esh-mode-map ...) (define-key esh-mode-map "	" ...) (define-key esh-mode-map [menu-bar] ...) (define-key esh-mode-map [menu-bar esh] ...) (define-key map [comment-region] ...) (define-key map [indent-region] ...) (define-key map [indent-line] ...) (put ... ... ...) (put ... ... ...)))
  eval-buffer(#<buffer  *load*> nil "/usr/pkg/share/emacs/site-lisp/esh-mode.el" nil t)  ; Reading at buffer position 5019
  load-with-code-conversion("/usr/pkg/share/emacs/site-lisp/esh-mode.el" "/usr/pkg/share/emacs/site-lisp/esh-mode.el" nil nil)
  eshell-mode()
  eshell(nil)
  call-interactively(eshell)
  execute-extended-command(nil)
  call-interactively(execute-extended-command)

and of course no eshell working
>How-To-Repeat:
launching eshell gives always the same error
>Fix:
Some people in #emacs told me his version of eshell did not contained any reference to shared-lisp-mode-map