GNU bug report logs - #11890
24.1; (wrong-type-argument processp nil) in `shell-mode'

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Mon, 9 Jul 2012 15:43:02 UTC

Severity: wishlist

Tags: unreproducible

Found in version 24.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Drew Adams <drew.adams <at> oracle.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Andreas Schwab <schwab <at> linux-m68k.org>, 11890 <at> debbugs.gnu.org
Subject: bug#11890: 24.1; (wrong-type-argument processp nil) in `shell-mode'
Date: Thu, 28 Apr 2016 09:10:14 -0700 (PDT)
> > If `shell-mode' is a command that is intended only for certain contexts
> > then it should control/manage that.  It should issue a proper error
> > message when the context is inappropriate.  It should not simply barf
> > with a wrong-type arg error.
> 
> Do you have a recipe from -Q?  From the backtrace included, it kinda
> looked like the bug was triggered from your own code.

No, and it should not matter.  The command should not just barf with
a wrong-type error msg.

As the bug report says:

  Clearly, this code in shell.el is not tolerant of there being no process:
 
  (file-name-nondirectory
   (car (process-command (get-buffer-process (current-buffer)))))
 
  I imagine that it should be, or rather that it should perhaps raise an
  error with a more suitable message.




This bug report was last modified 9 years and 108 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.