From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 09 11:42:21 2012 Received: (at submit) by debbugs.gnu.org; 9 Jul 2012 15:42:21 +0000 Received: from localhost ([127.0.0.1]:58279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoG6O-0005CF-Eh for submit@debbugs.gnu.org; Mon, 09 Jul 2012 11:42:21 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38879) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoG6K-0005C6-OA for submit@debbugs.gnu.org; Mon, 09 Jul 2012 11:42:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SoG19-0000RY-EL for submit@debbugs.gnu.org; Mon, 09 Jul 2012 11:37:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:46285) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoG19-0000RR-Ai for submit@debbugs.gnu.org; Mon, 09 Jul 2012 11:36:55 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoG0y-0004jR-Gk for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2012 11:36:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SoG0r-0000Pd-1H for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2012 11:36:43 -0400 Received: from acsinet15.oracle.com ([141.146.126.227]:24128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoG0q-0000PQ-NP for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2012 11:36:36 -0400 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q69FaWtg025196 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 9 Jul 2012 15:36:32 GMT Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q69FaV5H010460 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 9 Jul 2012 15:36:32 GMT Received: from abhmt108.oracle.com (abhmt108.oracle.com [141.146.116.60]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q69FaVk4004037 for ; Mon, 9 Jul 2012 10:36:31 -0500 Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 09 Jul 2012 08:36:31 -0700 From: "Drew Adams" To: Subject: 24.1; (wrong-type-argument processp nil) in `shell-mode' Date: Mon, 9 Jul 2012 08:36:30 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: Ac1d6JxIy7EOa8icS8SNUng+wZhvIA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) I am seeing this in my own setup. Have not yet been able to repro starting with emacs -Q (see below at end). But hopefully this report will help anyway. I visit an Emacs-Lisp file foo.el, then `M-x shell-mode'. Yes, I imagine that that is not an expected user interaction. Still, the error message shown does not seem appropriate (low-level). This is the backtrace: Debugger entered--Lisp error: (wrong-type-argument processp nil) * process-command(nil) * (car (process-command (get-buffer-process (current-buffer)))) * (file-name-nondirectory (car (process-command (get-buffer-process (curren= t-buffer))))) * (let ((shell (file-name-nondirectory (car (process-command (get-buffer-pr= ocess (current-buffer)))))) (hsize (getenv "HISTSIZE"))) (and (stringp hsiz= e) (integerp (setq hsize (string-to-number hsize))) (> hsize 0) (set (make-= local-variable (quote comint-input-ring-size)) hsize)) (setq comint-input-r= ing-file-name (or (getenv "HISTFILE") (cond ((string-equal shell "bash") "~= /.bash_history") ((string-equal shell "ksh") "~/.sh_history") (t "~/.histor= y")))) (if (or (equal comint-input-ring-file-name "") (equal (file-truename= comint-input-ring-file-name) (file-truename "/dev/null"))) (setq comint-in= put-ring-file-name nil)) (if (and comint-input-ring-file-name (string-match= shell-dumb-shell-regexp shell)) (set-process-sentinel (get-buffer-process = (current-buffer)) (function shell-write-history-on-exit))) (setq shell-dirs= tack-query (cond ((string-equal shell "sh") "pwd") ((string-equal shell "ks= h") "echo $PWD ~-") (t "dirs"))) (when (string-equal shell "bash") (add-hoo= k (quote comint-preoutput-filter-functions) (quote shell-filter-ctrl-a-ctrl= -b) nil t))) * (progn (let ((shell (file-name-nondirectory (car (process-command (get-bu= ffer-process ...))))) (hsize (getenv "HISTSIZE"))) (and (stringp hsize) (in= tegerp (setq hsize (string-to-number hsize))) (> hsize 0) (set (make-local-= variable (quote comint-input-ring-size)) hsize)) (setq comint-input-ring-fi= le-name (or (getenv "HISTFILE") (cond ((string-equal shell "bash") "~/.bash= _history") ((string-equal shell "ksh") "~/.sh_history") (t "~/.history"))))= (if (or (equal comint-input-ring-file-name "") (equal (file-truename comin= t-input-ring-file-name) (file-truename "/dev/null"))) (setq comint-input-ri= ng-file-name nil)) (if (and comint-input-ring-file-name (string-match shell= -dumb-shell-regexp shell)) (set-process-sentinel (get-buffer-process (curre= nt-buffer)) (function shell-write-history-on-exit))) (setq shell-dirstack-q= uery (cond ((string-equal shell "sh") "pwd") ((string-equal shell "ksh") "e= cho $PWD ~-") (t "dirs"))) (when (string-equal shell "bash") (add-hook (quo= te comint-preoutput-filter-functions) (quote shell-filter-ctrl-a-ctrl-b) ni= l t))) (comint-read-input-ring t)) * (if (ring-empty-p comint-input-ring) (progn (let ((shell (file-name-nondi= rectory (car (process-command ...)))) (hsize (getenv "HISTSIZE"))) (and (st= ringp hsize) (integerp (setq hsize (string-to-number hsize))) (> hsize 0) (= set (make-local-variable (quote comint-input-ring-size)) hsize)) (setq comi= nt-input-ring-file-name (or (getenv "HISTFILE") (cond ((string-equal shell = "bash") "~/.bash_history") ((string-equal shell "ksh") "~/.sh_history") (t = "~/.history")))) (if (or (equal comint-input-ring-file-name "") (equal (fil= e-truename comint-input-ring-file-name) (file-truename "/dev/null"))) (setq= comint-input-ring-file-name nil)) (if (and comint-input-ring-file-name (st= ring-match shell-dumb-shell-regexp shell)) (set-process-sentinel (get-buffe= r-process (current-buffer)) (function shell-write-history-on-exit))) (setq = shell-dirstack-query (cond ((string-equal shell "sh") "pwd") ((string-equal= shell "ksh") "echo $PWD ~-") (t "dirs"))) (when (string-equal shell "bash"= ) (add-hook (quote comint-preoutput-filter-functions) (quote shell-filter-c= trl-a-ctrl-b) nil t))) (comint-read-input-ring t))) * (when (ring-empty-p comint-input-ring) (let ((shell (file-name-nondirecto= ry (car (process-command (get-buffer-process ...))))) (hsize (getenv "HISTS= IZE"))) (and (stringp hsize) (integerp (setq hsize (string-to-number hsize)= )) (> hsize 0) (set (make-local-variable (quote comint-input-ring-size)) hs= ize)) (setq comint-input-ring-file-name (or (getenv "HISTFILE") (cond ((str= ing-equal shell "bash") "~/.bash_history") ((string-equal shell "ksh") "~/.= sh_history") (t "~/.history")))) (if (or (equal comint-input-ring-file-name= "") (equal (file-truename comint-input-ring-file-name) (file-truename "/de= v/null"))) (setq comint-input-ring-file-name nil)) (if (and comint-input-ri= ng-file-name (string-match shell-dumb-shell-regexp shell)) (set-process-sen= tinel (get-buffer-process (current-buffer)) (function shell-write-history-o= n-exit))) (setq shell-dirstack-query (cond ((string-equal shell "sh") "pwd"= ) ((string-equal shell "ksh") "echo $PWD ~-") (t "dirs"))) (when (string-eq= ual shell "bash") (add-hook (quote comint-preoutput-filter-functions) (quot= e shell-filter-ctrl-a-ctrl-b) nil t))) (comint-read-input-ring t)) * (let ((delay-mode-hooks t)) (comint-mode) (setq major-mode (quote shell-m= ode)) (setq mode-name "Shell") (progn (if (get (quote comint-mode) (quote m= ode-class)) (put (quote shell-mode) (quote mode-class) (get (quote comint-m= ode) (quote mode-class)))) (unless (keymap-parent shell-mode-map) (set-keym= ap-parent shell-mode-map (current-local-map))) (let ((parent (char-table-pa= rent shell-mode-syntax-table))) (unless (and parent (not (eq parent (standa= rd-syntax-table)))) (set-char-table-parent shell-mode-syntax-table (syntax-= table)))) (unless (or (abbrev-table-get shell-mode-abbrev-table :parents) (= eq shell-mode-abbrev-table local-abbrev-table)) (abbrev-table-put shell-mod= e-abbrev-table :parents (list local-abbrev-table)))) (use-local-map shell-m= ode-map) (set-syntax-table shell-mode-syntax-table) (setq local-abbrev-tabl= e shell-mode-abbrev-table) (setq comint-prompt-regexp shell-prompt-pattern)= (shell-completion-vars) (set (make-local-variable (quote paragraph-separat= e)) "\\'") (set (make-local-variable (quote paragraph-start)) comint-prompt= -regexp) (set (make-local-variable (quote font-lock-defaults)) (quote (shel= l-font-lock-keywords t))) (set (make-local-variable (quote shell-dirstack))= nil) (set (make-local-variable (quote shell-last-dir)) nil) (shell-dirtrac= k-mode 1) (set (make-local-variable (quote ansi-color-apply-face-function))= (lambda (beg end face) (when face (put-text-property beg end (quote font-l= ock-face) face)))) (setq list-buffers-directory (expand-file-name default-d= irectory)) (when (ring-empty-p comint-input-ring) (let ((shell (file-name-n= ondirectory (car (process-command ...)))) (hsize (getenv "HISTSIZE"))) (and= (stringp hsize) (integerp (setq hsize (string-to-number hsize))) (> hsize = 0) (set (make-local-variable (quote comint-input-ring-size)) hsize)) (setq = comint-input-ring-file-name (or (getenv "HISTFILE") (cond ((string-equal sh= ell "bash") "~/.bash_history") ((string-equal shell "ksh") "~/.sh_history")= (t "~/.history")))) (if (or (equal comint-input-ring-file-name "") (equal = (file-truename comint-input-ring-file-name) (file-truename "/dev/null"))) (= setq comint-input-ring-file-name nil)) (if (and comint-input-ring-file-name= (string-match shell-dumb-shell-regexp shell)) (set-process-sentinel (get-b= uffer-process (current-buffer)) (function shell-write-history-on-exit))) (s= etq shell-dirstack-query (cond ((string-equal shell "sh") "pwd") ((string-e= qual shell "ksh") "echo $PWD ~-") (t "dirs"))) (when (string-equal shell "b= ash") (add-hook (quote comint-preoutput-filter-functions) (quote shell-filt= er-ctrl-a-ctrl-b) nil t))) (comint-read-input-ring t))) * (progn (make-local-variable (quote delay-mode-hooks)) (let ((delay-mode-h= ooks t)) (comint-mode) (setq major-mode (quote shell-mode)) (setq mode-name= "Shell") (progn (if (get (quote comint-mode) (quote mode-class)) (put (quo= te shell-mode) (quote mode-class) (get (quote comint-mode) (quote mode-clas= s)))) (unless (keymap-parent shell-mode-map) (set-keymap-parent shell-mode-= map (current-local-map))) (let ((parent (char-table-parent shell-mode-synta= x-table))) (unless (and parent (not (eq parent ...))) (set-char-table-paren= t shell-mode-syntax-table (syntax-table)))) (unless (or (abbrev-table-get s= hell-mode-abbrev-table :parents) (eq shell-mode-abbrev-table local-abbrev-t= able)) (abbrev-table-put shell-mode-abbrev-table :parents (list local-abbre= v-table)))) (use-local-map shell-mode-map) (set-syntax-table shell-mode-syn= tax-table) (setq local-abbrev-table shell-mode-abbrev-table) (setq comint-p= rompt-regexp shell-prompt-pattern) (shell-completion-vars) (set (make-local= -variable (quote paragraph-separate)) "\\'") (set (make-local-variable (quo= te paragraph-start)) comint-prompt-regexp) (set (make-local-variable (quote= font-lock-defaults)) (quote (shell-font-lock-keywords t))) (set (make-loca= l-variable (quote shell-dirstack)) nil) (set (make-local-variable (quote sh= ell-last-dir)) nil) (shell-dirtrack-mode 1) (set (make-local-variable (quot= e ansi-color-apply-face-function)) (lambda (beg end face) (when face (put-t= ext-property beg end (quote font-lock-face) face)))) (setq list-buffers-dir= ectory (expand-file-name default-directory)) (when (ring-empty-p comint-inp= ut-ring) (let ((shell (file-name-nondirectory (car ...))) (hsize (getenv "H= ISTSIZE"))) (and (stringp hsize) (integerp (setq hsize (string-to-number hs= ize))) (> hsize 0) (set (make-local-variable (quote comint-input-ring-size)= ) hsize)) (setq comint-input-ring-file-name (or (getenv "HISTFILE") (cond (= ... "~/.bash_history") (... "~/.sh_history") (t "~/.history")))) (if (or (e= qual comint-input-ring-file-name "") (equal (file-truename comint-input-rin= g-file-name) (file-truename "/dev/null"))) (setq comint-input-ring-file-nam= e nil)) (if (and comint-input-ring-file-name (string-match shell-dumb-shell= -regexp shell)) (set-process-sentinel (get-buffer-process (current-buffer))= (function shell-write-history-on-exit))) (setq shell-dirstack-query (cond = ((string-equal shell "sh") "pwd") ((string-equal shell "ksh") "echo $PWD ~-= ") (t "dirs"))) (when (string-equal shell "bash") (add-hook (quote comint-p= reoutput-filter-functions) (quote shell-filter-ctrl-a-ctrl-b) nil t))) (com= int-read-input-ring t)))) * (delay-mode-hooks (comint-mode) (setq major-mode (quote shell-mode)) (set= q mode-name "Shell") (progn (if (get (quote comint-mode) (quote mode-class)= ) (put (quote shell-mode) (quote mode-class) (get (quote comint-mode) (quot= e mode-class)))) (unless (keymap-parent shell-mode-map) (set-keymap-parent = shell-mode-map (current-local-map))) (let ((parent (char-table-parent shell= -mode-syntax-table))) (unless (and parent (not (eq parent (standard-syntax-= table)))) (set-char-table-parent shell-mode-syntax-table (syntax-table)))) = (unless (or (abbrev-table-get shell-mode-abbrev-table :parents) (eq shell-m= ode-abbrev-table local-abbrev-table)) (abbrev-table-put shell-mode-abbrev-t= able :parents (list local-abbrev-table)))) (use-local-map shell-mode-map) (= set-syntax-table shell-mode-syntax-table) (setq local-abbrev-table shell-mo= de-abbrev-table) (setq comint-prompt-regexp shell-prompt-pattern) (shell-co= mpletion-vars) (set (make-local-variable (quote paragraph-separate)) "\\'")= (set (make-local-variable (quote paragraph-start)) comint-prompt-regexp) (= set (make-local-variable (quote font-lock-defaults)) (quote (shell-font-loc= k-keywords t))) (set (make-local-variable (quote shell-dirstack)) nil) (set= (make-local-variable (quote shell-last-dir)) nil) (shell-dirtrack-mode 1) = (set (make-local-variable (quote ansi-color-apply-face-function)) (lambda (= beg end face) (when face (put-text-property beg end (quote font-lock-face) = face)))) (setq list-buffers-directory (expand-file-name default-directory))= (when (ring-empty-p comint-input-ring) (let ((shell (file-name-nondirector= y (car (process-command ...)))) (hsize (getenv "HISTSIZE"))) (and (stringp = hsize) (integerp (setq hsize (string-to-number hsize))) (> hsize 0) (set (m= ake-local-variable (quote comint-input-ring-size)) hsize)) (setq comint-inp= ut-ring-file-name (or (getenv "HISTFILE") (cond ((string-equal shell "bash"= ) "~/.bash_history") ((string-equal shell "ksh") "~/.sh_history") (t "~/.hi= story")))) (if (or (equal comint-input-ring-file-name "") (equal (file-true= name comint-input-ring-file-name) (file-truename "/dev/null"))) (setq comin= t-input-ring-file-name nil)) (if (and comint-input-ring-file-name (string-m= atch shell-dumb-shell-regexp shell)) (set-process-sentinel (get-buffer-proc= ess (current-buffer)) (function shell-write-history-on-exit))) (setq shell-= dirstack-query (cond ((string-equal shell "sh") "pwd") ((string-equal shell= "ksh") "echo $PWD ~-") (t "dirs"))) (when (string-equal shell "bash") (add= -hook (quote comint-preoutput-filter-functions) (quote shell-filter-ctrl-a-= ctrl-b) nil t))) (comint-read-input-ring t))) shell-mode() * call-interactively(shell-mode t nil) execute-extended-command(nil) call-interactively(execute-extended-command nil nil) 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. When I try with emacs -Q, and then load cygwin-mount.el, then load setup-cygwin.el, and then do `M-x shell-mode', I get no such error. The buffer is put in the proper mode (the mode-line lighter is "Shell-script[bash]", and I get the message "Indentation setup for shell type bash"). In GNU Emacs 24.1.1 (i386-mingw-nt5.1.2600) of 2012-06-10 on MARVIN Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (4.6) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include' From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 09 11:58:10 2012 Received: (at 11890) by debbugs.gnu.org; 9 Jul 2012 15:58:10 +0000 Received: from localhost ([127.0.0.1]:58301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoGLi-0005ZK-9x for submit@debbugs.gnu.org; Mon, 09 Jul 2012 11:58:10 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:48563) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoGLf-0005ZB-E4 for 11890@debbugs.gnu.org; Mon, 09 Jul 2012 11:58:09 -0400 Received: from frontend4.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3WWB0r1r06z4KKHJ; Mon, 9 Jul 2012 17:53:48 +0200 (CEST) Received: from igel.home (ppp-88-217-126-222.dynamic.mnet-online.de [88.217.126.222]) by mail.mnet-online.de (Postfix) with ESMTPA id 3WW9zk6FDSzbbmj; Mon, 9 Jul 2012 17:52:50 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id 788FBCA2A2; Mon, 9 Jul 2012 17:52:50 +0200 (CEST) From: Andreas Schwab To: "Drew Adams" Subject: Re: bug#11890: 24.1; (wrong-type-argument processp nil) in `shell-mode' References: X-Yow: .. I feel.. JUGULAR.. Date: Mon, 09 Jul 2012 17:52:50 +0200 In-Reply-To: (Drew Adams's message of "Mon, 9 Jul 2012 08:36:30 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11890 Cc: 11890@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) If you want sh-mode, then use it. shell-mode isn't it. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 09 12:10:07 2012 Received: (at 11890) by debbugs.gnu.org; 9 Jul 2012 16:10:07 +0000 Received: from localhost ([127.0.0.1]:58317 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoGXG-0005rd-Ma for submit@debbugs.gnu.org; Mon, 09 Jul 2012 12:10:07 -0400 Received: from rcsinet15.oracle.com ([148.87.113.117]:51151) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoGXE-0005rV-Nd for 11890@debbugs.gnu.org; Mon, 09 Jul 2012 12:10:05 -0400 Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q69G4lHs016160 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 9 Jul 2012 16:04:48 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q69G4kkI010612 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 9 Jul 2012 16:04:47 GMT Received: from abhmt117.oracle.com (abhmt117.oracle.com [141.146.116.69]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q69G4khq030647; Mon, 9 Jul 2012 11:04:46 -0500 Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 09 Jul 2012 09:04:46 -0700 From: "Drew Adams" To: "'Andreas Schwab'" References: Subject: RE: bug#11890: 24.1; (wrong-type-argument processp nil) in `shell-mode' Date: Mon, 9 Jul 2012 09:04:45 -0700 Message-ID: <07B28F5ABD0546EC8A39BD037E08FB76@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac1d6udsSjN+uP0LSzWs2Gx/u3MI5QAACvdQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: 11890 Cc: 11890@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) > If you want sh-mode, then use it. shell-mode isn't it. Fine, but OT. This is bug-gnu-emacs, not help-gnu-emacs. That is not the point of the bug report, which states clearly "Yes, I imagine that that is not an expected user interaction.". What I meant to type was `M-x shell'. FYI - Prior to Emacs 24, until you loaded some shell-related library, command `shell-mode' was simply not recognized. But once you did load it, if you used `M-x shell-mode' in an inappropriate context (e.g. buffer foo.el), you got the same error. 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. That is the point of the bug report, as was stated clearly at the outset: "Still, the error message shown does not seem appropriate (low-level)." From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 16 19:43:13 2012 Received: (at 11890) by debbugs.gnu.org; 16 Sep 2012 23:43:13 +0000 Received: from localhost ([127.0.0.1]:37687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TDOUa-0005er-Pu for submit@debbugs.gnu.org; Sun, 16 Sep 2012 19:43:13 -0400 Received: from rcsinet15.oracle.com ([148.87.113.117]:30513) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TDOUZ-0005ei-1G for 11890@debbugs.gnu.org; Sun, 16 Sep 2012 19:43:11 -0400 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q8GNfw0j029767 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <11890@debbugs.gnu.org>; Sun, 16 Sep 2012 23:41:59 GMT Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q8GNfw95017808 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <11890@debbugs.gnu.org>; Sun, 16 Sep 2012 23:41:58 GMT Received: from abhmt109.oracle.com (abhmt109.oracle.com [141.146.116.61]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q8GNfvpk003061 for <11890@debbugs.gnu.org>; Sun, 16 Sep 2012 18:41:58 -0500 Received: from dradamslap1 (/10.159.170.142) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 16 Sep 2012 16:41:57 -0700 From: "Drew Adams" To: <11890@debbugs.gnu.org> References: <07B28F5ABD0546EC8A39BD037E08FB76@us.oracle.com> Subject: RE: bug#11890: 24.1; (wrong-type-argument processp nil) in `shell-mode' Date: Sun, 16 Sep 2012 16:41:47 -0700 Message-ID: <1201DA549CC34DCBBBE099BE33714553@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <07B28F5ABD0546EC8A39BD037E08FB76@us.oracle.com> Thread-Index: Ac1d6udsSjN+uP0LSzWs2Gx/u3MI5QAACvdQDZ5u5/A= X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Spam-Score: -7.4 (-------) X-Debbugs-Envelope-To: 11890 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -7.4 (-------) ping From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 28 11:52:03 2016 Received: (at 11890) by debbugs.gnu.org; 28 Apr 2016 15:52:03 +0000 Received: from localhost ([127.0.0.1]:53319 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avoEV-0006Cu-7W for submit@debbugs.gnu.org; Thu, 28 Apr 2016 11:52:03 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:59823) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avoEU-0006Cd-ES for 11890@debbugs.gnu.org; Thu, 28 Apr 2016 11:52:02 -0400 Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1avoER-0004St-Rv; Thu, 28 Apr 2016 17:52:01 +0200 From: Lars Ingebrigtsen To: "Drew Adams" Subject: Re: bug#11890: 24.1; (wrong-type-argument processp nil) in `shell-mode' References: <07B28F5ABD0546EC8A39BD037E08FB76@us.oracle.com> Date: Thu, 28 Apr 2016 17:51:59 +0200 In-Reply-To: <07B28F5ABD0546EC8A39BD037E08FB76@us.oracle.com> (Drew Adams's message of "Mon, 9 Jul 2012 09:04:45 -0700") Message-ID: <87fuu5afz4.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 11890 Cc: 'Andreas Schwab' , 11890@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) "Drew Adams" writes: > 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. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 28 12:10:26 2016 Received: (at 11890) by debbugs.gnu.org; 28 Apr 2016 16:10:26 +0000 Received: from localhost ([127.0.0.1]:53354 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avoWI-0008JW-37 for submit@debbugs.gnu.org; Thu, 28 Apr 2016 12:10:26 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:24877) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avoWG-0008JJ-HF for 11890@debbugs.gnu.org; Thu, 28 Apr 2016 12:10:24 -0400 Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u3SGAIuM017946 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 28 Apr 2016 16:10:18 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.13.8) with ESMTP id u3SGAIlN008152 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 28 Apr 2016 16:10:18 GMT Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id u3SGAF39023217; Thu, 28 Apr 2016 16:10:16 GMT MIME-Version: 1.0 Message-ID: <42210bb6-aac5-4853-8813-51e689996892@default> Date: Thu, 28 Apr 2016 09:10:14 -0700 (PDT) From: Drew Adams To: Lars Ingebrigtsen Subject: RE: bug#11890: 24.1; (wrong-type-argument processp nil) in `shell-mode' References: <07B28F5ABD0546EC8A39BD037E08FB76@us.oracle.com> <87fuu5afz4.fsf@gnus.org> In-Reply-To: <87fuu5afz4.fsf@gnus.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: userv0022.oracle.com [156.151.31.74] X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: 11890 Cc: Andreas Schwab , 11890@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > > 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. >=20 > 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: =20 (file-name-nondirectory (car (process-command (get-buffer-process (current-buffer))))) =20 I imagine that it should be, or rather that it should perhaps raise an error with a more suitable message. From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 28 12:13:08 2016 Received: (at 11890) by debbugs.gnu.org; 28 Apr 2016 16:13:08 +0000 Received: from localhost ([127.0.0.1]:53360 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avoYu-0008NQ-GZ for submit@debbugs.gnu.org; Thu, 28 Apr 2016 12:13:08 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:60160) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avoYs-0008NJ-Vk for 11890@debbugs.gnu.org; Thu, 28 Apr 2016 12:13:07 -0400 Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1avoYo-0004jY-Qi; Thu, 28 Apr 2016 18:13:06 +0200 From: Lars Ingebrigtsen To: Drew Adams Subject: Re: bug#11890: 24.1; (wrong-type-argument processp nil) in `shell-mode' References: <07B28F5ABD0546EC8A39BD037E08FB76@us.oracle.com> <87fuu5afz4.fsf@gnus.org> <42210bb6-aac5-4853-8813-51e689996892@default> Date: Thu, 28 Apr 2016 18:13:02 +0200 In-Reply-To: <42210bb6-aac5-4853-8813-51e689996892@default> (Drew Adams's message of "Thu, 28 Apr 2016 09:10:14 -0700 (PDT)") Message-ID: <87shy590fl.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 11890 Cc: Andreas Schwab , 11890@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Drew Adams writes: >> 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. There are many functions that may fail if called with invalid parameters or in invalid buffers. Emacs does not attempt to cover them all with user-level error messages. If you don't have a recipe here, I don't see what how to proceed further, and I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 28 12:13:26 2016 Received: (at control) by debbugs.gnu.org; 28 Apr 2016 16:13:27 +0000 Received: from localhost ([127.0.0.1]:53363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avoZC-0008Ny-Oc for submit@debbugs.gnu.org; Thu, 28 Apr 2016 12:13:26 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:60179) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avoZB-0008Nq-Kc for control@debbugs.gnu.org; Thu, 28 Apr 2016 12:13:25 -0400 Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1avoZ9-0004jy-HE for control@debbugs.gnu.org; Thu, 28 Apr 2016 18:13:25 +0200 Date: Thu, 28 Apr 2016 18:13:23 +0200 Message-Id: <87oa8t90f0.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #11890 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) tags 11890 unreproducible close 11890 From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 28 12:16:23 2016 Received: (at 11890) by debbugs.gnu.org; 28 Apr 2016 16:16:24 +0000 Received: from localhost ([127.0.0.1]:53374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avoc3-0001Lr-EM for submit@debbugs.gnu.org; Thu, 28 Apr 2016 12:16:23 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:42738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avoc1-0001ER-5a for 11890@debbugs.gnu.org; Thu, 28 Apr 2016 12:16:21 -0400 Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u3SGGERc019767 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 28 Apr 2016 16:16:14 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id u3SGGEtt024763 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 28 Apr 2016 16:16:14 GMT Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id u3SGGDCN017333; Thu, 28 Apr 2016 16:16:13 GMT MIME-Version: 1.0 Message-ID: <6ddddf95-9be9-420d-bb07-09a51e7ddfd1@default> Date: Thu, 28 Apr 2016 09:16:11 -0700 (PDT) From: Drew Adams To: Lars Ingebrigtsen Subject: RE: bug#11890: 24.1; (wrong-type-argument processp nil) in `shell-mode' References: <07B28F5ABD0546EC8A39BD037E08FB76@us.oracle.com> <87fuu5afz4.fsf@gnus.org> <42210bb6-aac5-4853-8813-51e689996892@default> <87shy590fl.fsf@gnus.org> In-Reply-To: <87shy590fl.fsf@gnus.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: 11890 Cc: Andreas Schwab , 11890@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > > 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 a= n > > error with a more suitable message. >=20 > There are many functions that may fail if called with invalid parameters > or in invalid buffers. Emacs does not attempt to cover them all with > user-level error messages. >=20 > If you don't have a recipe here, I don't see what how to proceed > further, and I'm closing this bug report. How to proceed is to make the `shell-mode' code ensure that if there is no process then it raises an error saying that there is no process. The low-level error is the wrong error. From unknown Wed Sep 10 09:37:37 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 27 May 2016 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator