From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: don@donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#1251: marked as done (23.0.60; `process-status' does not work with buffer names) Date: Tue, 28 Oct 2008 13:25:04 -0700 Message-ID: References: <877i7siie0.fsf@cyd.mit.edu> <20081025171416.86510B45CE5@mt-computer.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1225225504-14953-0" X-Trace: ger.gmane.org 1225225875 3992 80.91.229.12 (28 Oct 2008 20:31:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Oct 2008 20:31:15 +0000 (UTC) To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 28 21:32:17 2008 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KuvEb-0007GS-3f for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Oct 2008 21:32:14 +0100 Original-Received: from localhost ([127.0.0.1]:42292 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KuvDT-00072I-Ol for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Oct 2008 16:31:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KuvCj-0006i8-P7 for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2008 16:30:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KuvCi-0006hM-9O for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2008 16:30:16 -0400 Original-Received: from [199.232.76.173] (port=56763 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KuvCi-0006hE-21 for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2008 16:30:16 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:53062) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KuvCh-0006ZP-D8 for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2008 16:30:16 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9SKU31b016167; Tue, 28 Oct 2008 13:30:03 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9SKP4uU015047; Tue, 28 Oct 2008 13:25:04 -0700 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com X-Emacs-PR-Message: closed 1251 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:21986 Archived-At: This is a multi-part message in MIME format... ------------=_1225225504-14953-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Tue, 28 Oct 2008 16:17:43 -0400 with message-id <877i7siie0.fsf@cyd.mit.edu> and subject line Re: 23.0.60; `process-status' does not work with buffer na= mes has caused the Emacs bug report #1251, regarding 23.0.60; `process-status' does not work with buffer names to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact don@donarmstrong.com immediately.) --=20 1251: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D1251 Emacs Bug Tracking System Contact don@donarmstrong.com with problems ------------=_1225225504-14953-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.3 required=4.0 tests=AWL,BAYES_00,FOURLA, IMPRONONCABLE_2,MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 25 Oct 2008 17:14:30 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9PHERhA032661 for ; Sat, 25 Oct 2008 10:14:28 -0700 Received: from mail.gnu.org ([199.232.76.166]:54971 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Ktmft-0001Dx-RV for emacs-pretest-bug@gnu.org; Sat, 25 Oct 2008 13:11:41 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KtmiY-0003gL-4B for emacs-pretest-bug@gnu.org; Sat, 25 Oct 2008 13:14:26 -0400 Received: from mail.gmx.net ([213.165.64.20]:60195) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KtmiX-0003dF-CQ for emacs-pretest-bug@gnu.org; Sat, 25 Oct 2008 13:14:25 -0400 Received: (qmail invoked by alias); 25 Oct 2008 17:14:20 -0000 Received: from chello062178240212.3.14.tuwien.teleweb.at (EHLO mt-computer.local) [62.178.240.212] by mail.gmx.net (mp020) with SMTP; 25 Oct 2008 19:14:20 +0200 X-Authenticated: #4064391 X-Provags-ID: V01U2FsdGVkX187Nkhou807skW9+z1+cnVOsPmRQu0OaXJjUxdkrD 709vuPdpbmMAyH Received: by mt-computer.local (Postfix, from userid 502) id 86510B45CE5; Sat, 25 Oct 2008 19:14:16 +0200 (CEST) From: Markus Triska To: emacs-pretest-bug@gnu.org Subject: 23.0.60; `process-status' does not work with buffer names Message-Id: <20081025171416.86510B45CE5@mt-computer.local> Date: Sat, 25 Oct 2008 19:14:16 +0200 (CEST) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.47 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Contrary to what its info entry says, process-status does not work if its argument is a buffer name; in emacs -Q, evaluating the form: (let* ((buffer "bc-buf") (bc (start-process "bc" buffer "/usr/bin/bc"))) (mapcar 'process-status (list buffer (get-buffer buffer)))) yields: (nil run) The following patch fixes this problem for me: 2008-10-25 Markus Triska * process.c (Fprocess_status): Accept buffer names. Update docstring to match info description. diff --git a/src/process.c b/src/process.c index b8e390e..4a238f7 100644 --- a/src/process.c +++ b/src/process.c @@ -828,18 +828,15 @@ closed -- for a network stream connection that is closed. connect -- when waiting for a non-blocking connection to complete. failed -- when a non-blocking connection has failed. nil -- if arg is a process name and no such process exists. -PROCESS may be a process, a buffer, the name of a process, or -nil, indicating the current buffer's process. */) +PROCESS may be a process, a buffer, a process name, a buffer name, or +nil, indicating the current buffer's process. */) (process) register Lisp_Object process; { register struct Lisp_Process *p; register Lisp_Object status; - if (STRINGP (process)) - process = Fget_process (process); - else - process = get_process (process); + process = get_process (process); if (NILP (process)) return process; In GNU Emacs 23.0.60.14 (i386-apple-darwin8.11.1, GTK+ Version 2.12.9) of 2008-10-25 on mt-computer.local Windowing system distributor `The XFree86 Project, Inc', version 11.0.40400000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t ------------=_1225225504-14953-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.0 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1251-done) by emacsbugs.donarmstrong.com; 28 Oct 2008 20:17:40 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9SKHbA0013730 for <1251-done@emacsbugs.donarmstrong.com>; Tue, 28 Oct 2008 13:17:38 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 29D6D57E0B2; Tue, 28 Oct 2008 16:17:43 -0400 (EDT) From: Chong Yidong To: Markus Triska Cc: Stefan Monnier , 1251-done@emacsbugs.donarmstrong.com Subject: Re: 23.0.60; `process-status' does not work with buffer names Date: Tue, 28 Oct 2008 16:17:43 -0400 Message-ID: <877i7siie0.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > > Contrary to what its info entry says, process-status does not work if > > its argument is a buffer name; in emacs -Q, evaluating the form: > > I think we should fix the info entry, rather than the code. Yes, we can't accept buffer names in process-status because it already treats strings as process names. I've updated the lisp manual. Thanks for spotting this. ------------=_1225225504-14953-0--