NetBSD Problem Report #48050

From www@NetBSD.org  Fri Jul 12 13:32:02 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 8393571A49
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 12 Jul 2013 13:32:02 +0000 (UTC)
Message-Id: <20130712133200.ABBEF71A53@mollari.NetBSD.org>
Date: Fri, 12 Jul 2013 13:32:00 +0000 (UTC)
From: memnon+netbsd@sdf-eu.org
Reply-To: memnon+netbsd@sdf-eu.org
To: gnats-bugs@NetBSD.org
Subject: esh-mode.el from pkg esh conflicts with emacs eshell
X-Send-Pr-Version: www-1.0

>Number:         48050
>Category:       pkg
>Synopsis:       esh-mode.el from pkg esh conflicts with emacs eshell
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 12 13:35:00 +0000 2013
>Closed-Date:    Fri Jul 12 17:26:09 +0000 2013
>Last-Modified:  Fri Jul 12 17:30:01 +0000 2013
>Originator:     Memnon Anon
>Release:        6.0.1
>Organization:
>Environment:
NetBSD sdf 6.0.1 NetBSD 6.0.1 (SDF61) #0: Mon Jan 16 18:14:29 UTC 2012  root@ol:/src/sys/arch/amd64/compile/SDF61 amd64
>Description:
Package esh provides an elisp file esh-mode.el which is being installed to /usr/pkg/share/emacs/site-lisp/esh-mode.el.

It seems that mode is no longer functional (tested with 
emacs 23.4 & 24.3) ->
M-x load-file /usr/pkg/share/emacs/site-lisp/esh-mode.el ->
"Symbol's value as variable is void: shared-lisp-mode-map"

Even worse: That file shadows eshell, bundled with emacs, so 
that starting eshell on a system where package esh is installed 
will result in the error above.

See also:
* https://bugs.gentoo.org/show_bug.cgi?id=425780 
(Gentoo had the same problem and fixed it)
* http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=36796
Seems to be the same problem, but the reporter fixed it by deleting 
the file manually.
>How-To-Repeat:
1.) Install package esh
2.) Start emacs
3.) M-x eshell
>Fix:
Several Options AFAICT:

A) The mode seems no longer functional. Remove it from the package.
B) Instead (provide 'esh), use (provide 'esh-mode) or similar so that it 
   no longer conflicts with eshell.
C) If you want to ship the file (although it is broken) and don't
   want to modify it, put it someplace outside the emacs load-path.
   I don't know netbsd well enough so far, in debian, that would 
   probably be /usr/share/doc/esh-mode/examples/ .

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Fri, 12 Jul 2013 17:26:09 +0000
State-Changed-Why:
Fixed by installing the .el file into the examples directory.
Thanks for the PR!


From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48050 CVS commit: pkgsrc/shells/esh
Date: Fri, 12 Jul 2013 17:25:09 +0000

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Fri Jul 12 17:25:09 UTC 2013

 Modified Files:
 	pkgsrc/shells/esh: Makefile PLIST

 Log Message:
 Install emacs mode into examples directory since it
 a) doesn't work with current emacses and
 b) breaks the eshell mode coming with emaces.

 Bump PKGREVISION.

 Addresses PR 48050 by Memnon Anon.


 To generate a diff of this commit:
 cvs rdiff -u -r1.29 -r1.30 pkgsrc/shells/esh/Makefile
 cvs rdiff -u -r1.9 -r1.10 pkgsrc/shells/esh/PLIST

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.